Commit Graph
807 Commits
Author SHA1 Message Date
Innei a06a3fe2fc refactor(ai-chat): restructure image thumbnail handling and enhance message components
- Moved the `ImageThumbnail` component to a new location, consolidating its functionality with hover preview and error handling.
- Updated `UserMessageParts` to utilize `UserRichTextMessage` instead of the deprecated `AIRichTextMessage`, improving clarity in message rendering.
- Enhanced `FileAttachmentNode` to utilize the new `useMessageByIdSelector` for better file attachment management.
- Refactored `useFileUpload` to omit the nonce from options, streamlining the file upload process.

These changes aim to improve the modularity and maintainability of the AI chat components, enhancing the overall user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 18:47:42 +08:00
Stephen Zhou 3f2b7401b8 fix: explicit date range 2025-09-24 16:55:51 +08:00
Innei 2fe07f9489 fix(ai-chat): improve file attachment display logic in message components
- Updated the `getFileDisplayContent` function to default to "completed" status for file attachments, enhancing clarity in the display of upload statuses.
- Added a condition in `AIDataBlockItem` to return the attachment name directly when no upload status is present, improving user feedback for file attachments.
- Refactored the handling of reasoning parts in `AIMessageParts` to use a more descriptive variable name, enhancing code readability.

These changes aim to provide a clearer and more informative user experience when interacting with file attachments in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 16:41:43 +08:00
Stephen Zhou d590edf742 fix: peek modal for entry not loaded 2025-09-24 16:12:56 +08:00
Stephen Zhou d955c424c6 feat: mention date (#4512) 2025-09-24 16:03:02 +08:00
Innei 3732d65784 fix(ai-chat): enhance tool part handling in AIMessageParts component
- Updated the AIMessageParts component to improve handling of tool-related message parts by modifying the condition to check for "tool-" prefix.
- Introduced the ToolInvocationComponent for rendering tool-specific parts, enhancing the modularity and clarity of the message display logic.

These changes aim to streamline the integration of tool functionalities within the AI chat interface, improving user experience and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 14:07:52 +08:00
Innei 87935aa3c5 fix(modal, ai-chat, settings): enhance modal padding, streamline animated markdown, and add timeline tabs customization
- Adjusted padding in the modal component for improved layout consistency.
- Refactored the `MarkdownAnimateText` component to simplify text animation logic and improve rendering of various input types.
- Introduced a new customization option for timeline tabs in the settings, enhancing user experience and flexibility.

These changes aim to improve the overall UI consistency and provide users with more customization options in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 23:58:23 +08:00
Innei 25bde0b468 fix(ai-chat): update message container width for improved layout consistency
- Adjusted the width calculations in multiple components to use `--ai-chat-message-container-width` instead of the previous layout width. This change ensures a more consistent and responsive design across the AI chat interface.
- Updated components including `AIChainOfThought`, `AIDisplayFlowPart`, `AIReasoningPart`, and others to reflect this new width calculation, enhancing the overall user experience.

These modifications aim to streamline the layout and improve visual coherence in the chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 23:38:36 +08:00
Innei 4ca4a2d2cb fix(ai-message): update AIMarkdownStreamingMessage styles and remove unused CSS
- Added a new style for `prose-pre:text-base` in the `AIMarkdownStreamingMessage` component to enhance text readability.
- Deleted the unused `styles.css` file related to animation, streamlining the codebase and removing unnecessary files.

These changes aim to improve the visual presentation of messages and maintain a cleaner project structure.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 23:24:48 +08:00
Innei fa011c56d3 fix(ai-message): adjust layout width for AIMarkdownStreamingMessage
- Added a dynamic width calculation to the `AIMarkdownStreamingMessage` component, ensuring it adapts to the AI chat layout width. This change enhances the responsiveness and visual consistency of the message display.

These modifications aim to improve the user experience by providing a more flexible and visually appealing chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 22:45:01 +08:00
Innei a2eb94528d fix(ai): auto track scrolling
- Replaced manual checks for editable elements in global shortcuts with a utility function `detectIsEditableElement` for cleaner code and better maintainability.
- Updated `AIChatRoot` to use `LexicalRichEditorRef` for the input reference, enhancing type safety and consistency in the chat input handling.
- Integrated `AIPanelRefsContext` in `ChatInput` and `ChatInterfaceContent` to streamline access to the input reference across components.
- Removed the deprecated `animatedPlugin` file to clean up unused code.

These changes aim to enhance the overall structure and functionality of the AI chat interface, improving user experience and code maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 22:43:54 +08:00
Stephen Zhou d4ec031b23 fix: import path 2025-09-23 22:41:33 +08:00
Stephen Zhou 81794ca298 fix: missing category after dragging 2025-09-23 22:36:24 +08:00
Innei 2b467e68d0 fix(ai-message): message streaming animation
- Enhanced `AIMarkdownStreamingMessage` to use a stable reference for the `isStreaming` state, ensuring consistent rendering during updates.
- Updated `MarkdownAnimateText` to handle number inputs and preserve element structure for valid React elements, improving flexibility in rendering.
- Added logic in `TokenizedText` to skip rendering completely empty tokens and preserve whitespace-only tokens without additional DOM elements.

These changes aim to enhance the rendering logic and user experience in the AI chat interface by providing more robust handling of various input types and improving performance during streaming.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 21:40:15 +08:00
Innei c840fa62ca feat(ai): add shiny text on ai reasoning
- Integrated `ShinyText` into `AIChainOfThought` for improved visual feedback during reasoning.
- Updated `AIMessageParts` to conditionally render reasoning parts only if text is present, enhancing logic clarity.
- Introduced `useDeferredValue` for low-priority rendering of display parts, optimizing performance.

These changes aim to improve the user experience by providing clearer visual cues and more efficient rendering in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 21:15:26 +08:00
Innei 304755aba3 fix: refactor AIChainOfThought for improved collapse functionality
- Introduced a new `AIInnerReasoningPart` component to encapsulate the rendering logic for individual reasoning parts, enhancing modularity.
- Updated `AIChainOfThought` to utilize the new component and manage collapse state more effectively using a ref.
- Simplified the extraction of headings from reasoning text, improving readability and maintainability of the code.

These changes aim to enhance the user experience by providing clearer feedback during AI reasoning processes and improving the overall structure of the components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 20:46:45 +08:00
Innei 2308a11e45 fix: enhance AIChainOfThought integration in AIMessageParts
- Updated AIChainOfThought to accept an additional `isStreaming` prop for better control over rendering during streaming.
- Adjusted AIMessageParts to pass the `shouldMessageAnimation` state to AIChainOfThought, ensuring consistent behavior in the chat interface.
- Refactored the component structure for improved readability and maintainability.

These changes aim to enhance the user experience by providing clearer feedback during AI reasoning processes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 20:33:35 +08:00
Innei 80b157adc4 fix: enhance AIChainOfThought and AIReasoningPart components
- Refactored AIChainOfThought to accept groups of ReasoningUIPart instead of children, improving the structure for displaying reasoning parts.
- Added logic to extract headings from reasoning text for better context presentation during streaming.
- Simplified AIReasoningPart by removing unnecessary collapse functionality, focusing on rendering text directly.
- Updated AIMessageParts to utilize the new structure for displaying reasoning parts, ensuring a cohesive integration.

These changes aim to improve the clarity and functionality of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 20:29:04 +08:00
DIYgod 355596edc2 feat: remove ai display analytics tool 2025-09-23 20:26:26 +08:00
lawvs 7409bf6ce7 fix: adjust padding in ArticleLayout component 2025-09-23 18:17:16 +08:00
Stephen Zhou b416578674 fix: fit container for grid item 2025-09-23 17:48:42 +08:00
lawvs 837e6036ee fix: context menu cannot be triggered 2025-09-23 17:18:49 +08:00
Stephen Zhou 640c09b530 fix: allow remove main feed/entry block 2025-09-23 15:21:31 +08:00
Stephen Zhou 756b57c7bf fix: disable preview media in picture item ai 2025-09-23 10:51:39 +08:00
Stephen Zhou c58c83b50e Revert "fix: image position by remove useless aspect ratio component"
This reverts commit 7eec68a830.
2025-09-23 09:53:10 +08:00
Stephen Zhou 191566434e Revert "fix: add ai chat root to preview media content"
This reverts commit 69ef7505e8.
2025-09-22 23:19:48 +08:00
Innei a9d5cbd519 feat(ios): support liquid glass tabbar
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-22 22:07:59 +08:00
lawvs a9e8f32c8e fix(discover): update backPath to include query parameters in FeedCardActions 2025-09-22 18:46:45 +08:00
Stephen Zhou 9ab7400a33 feat: introduce media layout to unify video and picture layout 2025-09-22 15:18:30 +08:00
Stephen Zhou 7eec68a830 fix: image position by remove useless aspect ratio component 2025-09-22 11:08:13 +08:00
Stephen Zhou 69ef7505e8 fix: add ai chat root to preview media content 2025-09-22 10:38:03 +08:00
Stephen Zhou efc00e0d03 fix: pass as to combobox 2025-09-22 10:27:24 +08:00
DIYgod 0cb65c7d16 feat(ai-chat): add inline folo reference icons 2025-09-21 16:43:24 +08:00
Stephen Zhou a4baa19abe chore: downgrade linkedom 2025-09-19 23:09:44 +08:00
Stephen Zhou d04d5dfd62 chore: update @sentry/electron and patch 2025-09-19 22:43:28 +08:00
Stephen Zhou b8eb83fe63 chore: lint 2025-09-19 22:24:30 +08:00
Innei 792134d9ae chore: update dependencies across multiple packages for improved stability and performance
- Upgraded various dependencies in package.json files, including @electron-forge, @sentry/react, and @better-auth.
- Updated devDependencies and fixed version mismatches in internal components and utilities.
- Enhanced settings sync queue to spread object properties for better payload handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-19 22:02:30 +08:00
Innei 5194e6e6b6 fix: update payload handling in settings sync queue to spread object properties
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-19 21:24:11 +08:00
Stephen Zhou 49fc1ad874 fix: no main feed for view 2025-09-19 16:57:17 +08:00
lawvs 11e66ec5a7 fix: enhance DiscoverForm with improved keyword handling
- Added support for handling composition events during keyword input.
- Refactored keyword change logic to improve user experience.
- Updated FEED_DISCOVERY_INFO structure for better clarity and usage.
2025-09-19 16:16:22 +08:00
lawvs 42d0f10a46 chore: sync AI chat session title on task name update 2025-09-19 15:26:52 +08:00
Konv Suu 594b419e97 feat: enhance modal layout with improved styling and structure (#4500) 2025-09-19 12:50:02 +08:00
DIYgod 9b1061b810 feat: simplify all view 2025-09-18 21:21:47 +08:00
DIYgod ed211aaef6 feat: remove unused default shortcuts from welcome content 2025-09-18 19:52:08 +08:00
Innei 30ea1271f5 feat: update AI chat interface and entry item styles for improved user experience
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-18 14:55:28 +08:00
Stephen Zhou 42eaf2f815 feat: support folder as current feed 2025-09-18 14:24:32 +08:00
Stephen Zhou 5cb2a2647e feat: add current feed block 2025-09-18 13:13:34 +08:00
DIYgod 48e84ca209 feat: aggregated ai chain of thought 2025-09-18 11:55:45 +08:00
Innei 4d4dce682c feat: add warning message for AI-generated content accuracy
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-18 00:49:15 +08:00
Innei a04008fddd fix: ai layout elements style
- Updated various components to improve layout consistency and responsiveness, including AIDisplayAnalyticsPart, AIReasoningPart, and ToolInvocationComponent.
- Introduced max-width constraints to ensure proper rendering across different screen sizes.
- Enhanced the TokenUsagePill component by integrating TooltipPortal for better tooltip management and improved styling for token usage display.
- Implemented useLayoutEffect in ChatInterface to manage bottom panel height dynamically, improving user experience during chat interactions.

These changes aim to streamline the user interface and enhance the overall functionality of the AI chat components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-18 00:11:42 +08:00