-
Notifications
You must be signed in to change notification settings - Fork 124
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
Sprint/v0.3.0 #509
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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
Feat/upload img
…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
- 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
Feat/canvas auto naming
Feat/support model load balance
- 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
Feat/model tip
- 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
pftom
approved these changes
Feb 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary