Innei
9bb974b8fd
feat(ai): support ai attachement ( #4316 )
...
* init
Signed-off-by: Innei <tukon479@gmail.com >
* feat(ai-chat): enhance file handling with category-based icon retrieval
- Introduced `getFileCategoryFromMimeType` function to categorize file types based on MIME type, improving the clarity of file handling in the AI chat interface.
- Updated `FileAttachmentBlock` and `AIChatContextBar` components to utilize the new categorization function for determining file icons, streamlining the code and enhancing maintainability.
- Removed redundant MIME type checks, simplifying the logic for icon assignment.
These changes improve the user experience by ensuring accurate file representation and reduce code complexity.
Signed-off-by: Innei <tukon479@gmail.com >
* feat: preview image
* Update avatar upload to use followApi and bump deps
* feat: Refactor AI chat context blocks and file upload handling
- Introduced new components for rendering AI chat context blocks, including AIDataBlockItem and AIDataBlockPart.
- Enhanced file attachment handling by updating the structure of AIChatContextBlock to separate file attachments from other block types.
- Implemented a new file upload hook (useFileUpload) to manage file uploads with progress tracking and toast notifications.
- Added UploadProgress and CircularProgress components for visual feedback during file uploads.
- Improved file processing logic to simulate realistic upload progress and handle errors more effectively.
- Updated existing components to utilize the new block structure and file upload logic.
- Created utility functions for managing block styles, icons, and labels for better code organization.
Signed-off-by: Innei <tukon479@gmail.com >
* feat: Enhance chat message rendering with Suspense and add ThinkingIndicator component
Signed-off-by: Innei <tukon479@gmail.com >
* fix: Remove error check for message metadata in AIChatMessage component
Signed-off-by: Innei <tukon479@gmail.com >
---------
Signed-off-by: Innei <tukon479@gmail.com >
2025-08-08 16:32:52 +08:00
..
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-04-16 21:02:50 +08:00
2025-04-05 21:24:12 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-10 23:26:38 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-04-09 23:35:53 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-07-10 09:47:11 +08:00
2025-03-27 11:35:43 +08:00
2025-01-03 00:43:14 +08:00
2025-05-08 14:19:31 +08:00
2025-04-18 13:19:06 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-01-16 19:29:32 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-05-08 14:19:31 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-06-11 19:11:31 +08:00
2025-06-11 19:11:31 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-05-16 11:43:03 +08:00
2025-06-11 19:11:31 +08:00
2025-03-27 11:35:43 +08:00
2025-05-21 21:42:18 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-16 22:47:24 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-05-08 14:19:31 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-18 13:19:06 +08:00
2025-03-27 11:35:43 +08:00
2025-06-11 19:11:31 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-05-15 11:34:10 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-01 22:45:06 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2024-12-31 20:26:14 +08:00
2025-01-07 17:02:11 +08:00
2024-12-26 00:06:03 +08:00
2025-03-27 11:35:43 +08:00
2025-05-21 21:42:18 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-07-10 09:47:11 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-05-08 14:19:31 +08:00
2024-12-26 00:06:03 +08:00
2025-01-16 19:29:32 +08:00
2024-12-26 00:06:03 +08:00
2025-03-27 11:35:43 +08:00
2025-04-16 22:47:24 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-05-15 11:34:10 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-09 23:35:53 +08:00
2025-03-27 11:35:43 +08:00
2025-04-09 23:35:53 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-06-11 19:11:31 +08:00
2025-06-11 19:11:31 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-16 22:47:24 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-08-08 16:32:52 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-04-25 22:29:44 +08:00
2025-04-03 10:34:53 +08:00
2025-04-16 22:47:24 +08:00
2025-06-11 19:11:31 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00
2025-03-27 11:35:43 +08:00