Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint/v0.3.0 #509

Merged
merged 109 commits into from
Feb 14, 2025
Merged

Sprint/v0.3.0 #509

merged 109 commits into from
Feb 14, 2025

Conversation

mrcfps
Copy link
Contributor

@mrcfps mrcfps commented Feb 14, 2025

Summary

CH1111 and others added 30 commits February 6, 2025 20:50
- Implement drag and drop functionality for adding images to canvas
- Add image node type with preview and metadata support
- Update node types, colors, and icons to include image nodes
- Extend schema to support image node type
- Add image preview modal using Ant Design Image component
- Implement dynamic image node resizing
- Update node preview logic to handle image nodes
- Add image node type to translations
- Generate unique image IDs using utility function
- Add server-side image upload for drag and drop
- Implement image copying to clipboard with cross-origin support
- Update node action menu to handle image-specific actions
- Modify image node styling for better scrolling
- Update image node type definitions in shared types
- Add image node to context preview rendering
- Simplify image node component imports and props
- Adjust image preview modal rendering logic
- Create `useUploadImage` hook to standardize image upload process
- Add image upload support to chat panel, skill node, and canvas components
- Update translations with image upload related messages
- Remove direct image upload implementations in favor of centralized hook
- Implement image paste handling in chat input components
- Add editable title functionality to node headers
- Update chat input and node components to support image upload and title editing
- Implement drag and drop image upload functionality in chat input
- Add visual feedback for dragging images
- Update translations with drop image hint
- Add padding to chat input containers for consistent styling
…upport

This commit introduces several key updates:
- Upgraded LangChain and related dependencies to latest versions
- Added DeepSeek chat model with reasoning content support
- Updated skill engine and result handling to incorporate reasoning content
- Introduced content parsing utility for combining reasoning and main content
- Updated type definitions and package configurations
- Introduce new 'Upload File' menu item in import resource modal
- Add file import integration with new component
- Update translations for file upload in English and Chinese
- Include new file-related menu item in import resource types
- Enhance file upload process with more robust state management
- Add support for tracking upload status and generating resource IDs
- Implement file upload with detailed error handling
- Update file upload interface to include more metadata
- Add file size and type validation for uploads
- Implement max file size limit of 5MB
- Restrict file types to PDF, DOCX, RTF, TXT, MD, HTML, and EPUB
- Update upload component styling and error handling
- Persist file list in global store for better state management
…omponent

- Remove redundant file type validation checks
- Consolidate file extension validation
- Streamline file upload validation logic
- Introduce ModelLabel component to display model name with vision support icon
- Add tooltip for models without image processing capabilities
- Update translations for no vision support message in English and Chinese
…resources

- Add create document and import resource buttons to empty states
- Update translation keys for more concise messaging
- Improve user experience by providing direct actions when no items exist
mrcfps and others added 27 commits February 13, 2025 22:38
- Update drag and drop styling with green color scheme

- Add rounded border and improved visual feedback

- Improve text styling for drop zone message
feat(resource): Add custom file icon component and improve resource i…
- Introduce `defaultChatModel` option in `SkillEngineOptions`
- Update `chatModel` method to support optional default chat model selection
- Add new `ModelInfo` interface for model configuration
- Modify multiple modules to use default chat model when specified
- Exclude 'skill' nodes from target nodes
- Reverse node order to show most recent nodes first
- Simplify filtering and sorting logic in node selector components
- Implement new endpoint `/knowledge/resource/createWithFile` in API
- Update client-side hooks to use file upload for resource creation
- Modify OpenAPI schema and types to support file upload
- Refactor resource creation to handle file content directly
- Update Prisma schema to include optional `reasoningContent` field
- Modify action step DTO and service to handle reasoning content
- Update result aggregator to include reasoning content when creating action steps
- Adjust content parsing to use reasoning content in skill service
- Relocate `getWholeParsedContent` and `getParsedReasoningContent` functions from ai-workspace-common to utils package
- Update import paths in affected files to use new utils location
- Export content parser functions in utils index file
- Remove `defaultChatModel` option from `SkillEngineOptions`
- Remove `ModelInfo` interface
- Update `chatModel` method to use `defaultModel` for chat model selection
- Streamline model configuration logic
- Add `useContextHasImage` hook to detect image context
- Replace generic image not supported icon with custom error icon
- Conditionally show warning icon when model lacks vision capabilities and image is present
- Improve visual feedback for model selection with context-aware icon
…load

- Use `safeParseJSON` to parse resource data from string or object
- Ensure flexible data handling in resource creation endpoint
- Update resource creation method to include parsed data
…ed resource saving

- Add collapsible metadata section for title and URL editing
- Update content clipper UI with Form and Collapse components
- Modify resource saving hook to support custom title and URL
- Add new translation keys for metadata input placeholders
- Adjust popup styling to accommodate new content clipper layout
- Add `contextItems` prop to ModelSelector in multiple components
- Remove deprecated `useContextHasImage` hook
- Update model selector to dynamically check for image context
- Propagate context items through chat panel and related components
- Preserve GIF format during image resizing
- Update content type and file extension handling for GIFs
- Maintain original image scaling logic for all image types
feat(api): Add GIF support in image processing
…-title

Feat/support extension save url title
- Add dragging state check to conditionally render memo node action buttons
- Integrate editor performance context to track dragging node
- Prevent action buttons from appearing while a node is being dragged
feat(canvas): Hide action buttons during node dragging
@mrcfps mrcfps merged commit f9a096f into main Feb 14, 2025
1 check passed
@mrcfps mrcfps deleted the sprint/v0.3.0 branch February 14, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants