Commit Graph
6084 Commits
Author SHA1 Message Date
Innei 43a91c200c chore: adjust ai settings
Updated the AISmartSidebar component to utilize CSS animations instead of motion/react for smoother performance. Introduced a new hook to manage prompt visibility based on focusable scope, enhancing user experience. Removed the label from the PersonalizePromptSection for a cleaner UI and updated localization files accordingly.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 20:44:13 +08:00
Innei 1b89ea0af0 refactor(ai-chat): simplify isEmpty state checks in ChatInput and LexicalRichEditor
Updated the ChatInput and LexicalRichEditor components to streamline the logic for determining if the editor is empty. The isEmpty state now directly utilizes the $getRoot().isEmpty() method, enhancing code clarity and maintainability. Removed unnecessary text content checks in favor of a more efficient approach.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 19:58:48 +08:00
Innei 97d77c4868 feat(ai-chat): enhance ChatInput and EditableMessage components with height adjustments
Updated the ChatInput and EditableMessage components to set a fixed height for the LexicalRichEditor, improving the layout consistency. Additionally, refactored the AITaskModal to manage prompt state outside of react-hook-form, allowing for better control over the prompt length and submission handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 19:49:06 +08:00
Innei 822f135193 feat(ai-chat): implement keyboard shortcut for toggling AI chat
Added functionality to handle keyboard shortcuts for toggling the AI chat feature using tinykeys utilities. The implementation allows for comma-separated shortcuts and ensures proper event handling to prevent default actions when the shortcut is triggered.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 18:05:29 +08:00
DIYgod fafc98208a feat(ai-settings): update section titles and improve layout for task management 2025-10-20 17:43:02 +08:00
Stephen Zhou 86980e71f6 feat: update date mention and mention information (#4578) 2025-10-20 17:34:39 +08:00
DIYgod e9de114ebe feat(desktop-settings): focus ai sections when opened from chat 2025-10-20 17:06:55 +08:00
DIYgod b064d3385e feat(settings): reorder Usage Analysis section and restore view details button 2025-10-20 15:04:24 +08:00
DIYgod 4a1f01036d feat(ai-chat): show shared category in combined context block 2025-10-20 14:41:34 +08:00
DIYgod 2874cb2c62 fix(ai-chat): include main view context when view is all
ensure the AI chat context bar keeps the mainView block for every numeric view, including FeedViewType.All
include the mainView block in auto timeline summary requests so uploads always carry view metadata
2025-10-20 14:21:02 +08:00
DIYgod 231b2ce083 refactor: reuse context bar blocks for AI chat transcripts 2025-10-20 13:58:06 +08:00
DIYgod 2c6f947cd4 chore: remove claude files 2025-10-20 11:45:57 +08:00
DIYgod 2d3f271e78 fix(ai-chat): incorporate unreadOnly setting in timeline summary logic 2025-10-20 11:42:10 +08:00
DIYgod add77bf597 fix(ai-chat): respect manual chat creation in all timeline 2025-10-20 11:14:16 +08:00
Innei ef0af46e6f fix: update text autospace classes in ListItem, EntryTitle, and ArticleLayout components
- Replaced `[text-autospace:auto]` with `autospace-normal` class in ListItem, EntryTitle, and ArticleLayout components to standardize text spacing.
- Added a new utility class `autospace-normal` in tailwind.css to ensure consistent text rendering across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-19 23:44:44 +08:00
Innei 9e28fcd738 fix: update text autospace in ArticleLayout and HTML components
- Added `[text-autospace:auto]` class to the `className` property in both ArticleLayout and HTML components to enhance text rendering and improve readability.
- This change ensures better handling of text spacing across different content types.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-19 20:33:28 +08:00
Innei 06321af9e8 fix: adjust scroll button positioning in ChatInterface
- Updated the positioning of the scroll-to-bottom button in the ChatInterface component to improve visibility and accessibility.
- Changed the bottom offset from 44 to 48 and adjusted the vertical translation for better alignment.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 21:51:42 +08:00
Innei 62e1470014 fix: chain of thought finish condition
- Eliminated the check for whether the last group type starts with "tool-" to simplify the logic in the AIChainOfThought component.
- This change enhances readability and maintains the intended functionality without the redundant condition.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 21:19:22 +08:00
Innei 6c51a0a09c feat: add title generation functionality to ChatMoreDropdown
- Integrated title generation feature in the ChatMoreDropdown component, allowing users to generate a title based on the last two messages.
- Added new translations for title generation prompts in English, Japanese, and Chinese.
- Implemented loading state to indicate when the title is being generated.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 21:09:43 +08:00
Innei 246bd80ffe fix: ai chain thought close state
- Replaced the random ID generation for collapseId with React's useId for improved stability and performance.
- Updated the effect logic to conditionally close the collapse based on the currentChainReasoningIsFinished state.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 20:59:11 +08:00
Innei 13147f5c43 fix: update UserChatMessage styling
- Changed background styling in UserChatMessage to use `bg-fill` for consistency.
- Updated button variant in AIChatPane from `ghost` to `outline` for better visibility.
- Simplified the bottom panel layout in AIChatInterface by removing unnecessary class names.
- Enhanced the FeedSelectionFirstScreen with a new gradient background and improved content structure.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 20:48:41 +08:00
Innei 0602e74500 refactor: replace AIShortcutButton import path and enhance gradient handling
- Updated the import path for the AIShortcutButton component to the new location.
- Introduced a more flexible gradient handling function that adapts based on the dark/light mode.
- Removed the old AIShortcutButton component file as it is no longer needed.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 19:39:46 +08:00
DIYgod 5d940341b2 feat: shortcut mention desktop/v0.7.1 v0.7.1 2025-10-18 16:13:33 +08:00
DIYgod 623963951b feat: add effect to clear blocks and start new chat when timeline view changes 2025-10-18 10:10:41 +08:00
DIYgod 4a46d457e1 fix: import getEditorStateJSONString from the correct module 2025-10-18 10:05:48 +08:00
DIYgod 2f0133d1b5 feat: use shortcut as timeline summary 2025-10-18 10:01:23 +08:00
Innei 31a2ae9482 feat(ai): add block disable functionality
- Introduced a `disabled` state for context blocks, allowing users to toggle blocks on and off without removing them.
- Updated `ContextBlock` and `CombinedContextBlock` components to handle the new `disabled` prop and associated click behavior.
- Filtered out disabled blocks in the `ChatInterface` to improve user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 01:11:49 +08:00
Innei d282bd8cb2 refactor: unify rich text attachment component
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-17 23:41:04 +08:00
Innei 2b902efff2 reactor: extract context block hook
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-17 23:11:09 +08:00
Stephen Zhou cf77555a3c feat: mention view support 2025-10-17 22:34:05 +08:00
Stephen Zhou 9a8bfffb38 feat: rich editor support for prompt and task (#4574) 2025-10-17 21:56:07 +08:00
Innei c772ed9ab1 fix(ai): update AIModelIndicator and ChatInput styles
- Changed the border radius of the AIModelIndicator component from `rounded-full` to `rounded-xl` for a more modern appearance.
- Adjusted the layout of the ChatInput component by modifying the `self-start` class to improve alignment and visual consistency.
- Removed unnecessary `self-start` class from the AIModelIndicator instance within ChatInput for cleaner styling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-17 21:53:12 +08:00
Innei 6ca3f79084 fix(ai): add shortcut to open this modal
- Integrated new hooks for creating and editing AI shortcuts, improving the user experience for managing shortcuts.
- Adjusted layout styles in various components for better visual consistency, including padding and margin updates.
- Removed deprecated modal handling for shortcuts, streamlining the codebase.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-17 21:43:24 +08:00
Innei 2a55f9276a chore(ui): add size prop for switch
- Updated the prompt input field with additional padding for better usability.
- Added size prop to the Switch component, allowing for small and medium sizes.
- Adjusted styles for the Switch component to accommodate the new size options, ensuring consistent appearance across different sizes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-17 21:04:04 +08:00
DIYgod 5f4e47da07 feat: make summarize timeline shortcut undeletable 2025-10-17 20:19:18 +08:00
DIYgod 2607e2042b feat(ai): refine summarization prompt for clarity and context 2025-10-17 15:22:45 +08:00
lawvs 8c96029432 fix(ai): update default button background color for improved visibility 2025-10-17 15:14:03 +08:00
DIYgod e5d4a2c5b5 feat(ai): remove title generation logic 2025-10-17 14:56:01 +08:00
DIYgod ab257747be feat(ai): update default button styles for improved visibility 2025-10-17 14:25:11 +08:00
DIYgod 6966ec56ad feat(ai): add default shortcuts for summarization and analysis 2025-10-17 12:02:40 +08:00
DIYgod 363ea4e3df feat: optimize ai shortcuts position 2025-10-17 11:50:57 +08:00
DIYgod f100d09efd feat: remove ai export 2025-10-17 11:11:00 +08:00
DIYgod 5f2b93694e feat: styles and uneditable title 2025-10-17 11:05:41 +08:00
Innei f5292422c3 feat(ai): implement dynamic chat title generation and UI updates
- Added functionality to generate and update chat titles based on user messages and AI responses.
- Introduced a button in the EditableTitle component to trigger title generation, enhancing user experience.
- Updated localization files to include new strings for title generation actions in English, Japanese, and Chinese.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-16 22:04:18 +08:00
Innei 8ac1650f1a feat(ai): update timeline summary options in ChatInput component
- Replaced the text for timeline summary options in the ChatInput component to enhance clarity.
- Updated localization files for English, Japanese, and Chinese to reflect the new text for timeline summary options.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-16 21:19:41 +08:00
Innei f960beca82 feat(ai): ai editable title layout
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-16 21:16:06 +08:00
DIYgod f9039c688c fix: types 2025-10-16 21:03:54 +08:00
Innei 9519d1c643 fix(ai): only close ai panel when focused and floating style
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-16 20:43:04 +08:00
DIYgod af8c3b63a0 feat: chat title as history menu trigger 2025-10-16 17:52:33 +08:00
DIYgod 3591c115f9 feat: chat default title 2025-10-16 17:29:57 +08:00