Folo/apps/desktop
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
..
build feat(desktop): add custom AppX manifest generation for Microsoft Store 2025-07-16 12:13:59 +08:00
changelog release(desktop): release v0.7.0 2025-08-07 14:43:50 +08:00
configs refactor: Progressive migration Client SDK (#4227) 2025-07-23 01:21:34 +08:00
layer feat(ai): support ai attachement (#4316) 2025-08-08 16:32:52 +08:00
plugins/vite fix(electron): hotfix update logic 2025-07-30 01:36:23 +08:00
resources
scripts feat(desktop): add custom AppX manifest generation for Microsoft Store 2025-07-16 12:13:59 +08:00
static
.env.example
CLAUDE.md feat(ai): support ai attachement (#4316) 2025-08-08 16:32:52 +08:00
bump.config.ts
bump.hotfix.config.js
electron.vite.config.ts
forge.config.cts feat(desktop): enhance build configuration for Microsoft Store support 2025-07-16 13:01:22 +08:00
package.json release(desktop): release v0.7.0 2025-08-07 14:43:50 +08:00
postcss.config.cjs
tailwind.config.ts feat(ai): implement streaming message buffer and enhance thinking indicator 2025-08-05 01:10:11 +08:00
vite.config.electron-render.ts
vite.config.ts refactor: Progressive migration Client SDK (#4227) 2025-07-23 01:21:34 +08:00