Commit Graph

6111 Commits

Author SHA1 Message Date
Stephen Zhou c2ed44c19e
feat: parse natural language date 2025-10-22 11:20:08 +08:00
Innei c72c526664
chore: downgrade React and React-DOM to version 19.0.0 across all packages for compatibility
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 01:06:50 +08:00
lawvs 088b2c5fd9 fix: improve toast loading behavior 2025-10-21 23:57:50 +08:00
DIYgod 0fa7a8221c
feat: add last used login method tracking and localization updates 2025-10-21 21:45:44 +08:00
Innei 8ab91cd157
feat(ai): redesign command pill style
- Updated Shortcut components to include icon rendering and a command prefix for better user experience.
- Modified shortcut trigger patterns to use '/' instead of '#' for consistency across the application.
- Added new icon selection feature in ShortcutModalContent for improved customization.
- Updated localization files to include new icon-related strings.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 21:40:56 +08:00
Stephen Zhou baf998d912
chore: format 2025-10-21 20:33:41 +08:00
Stephen Zhou 5aa6d1a5d6
fix: stable groupedSuggestions 2025-10-21 20:14:08 +08:00
DIYgod 79b0dab3b4
feat: add last used login method tracking in LoginModalContent 2025-10-21 20:01:10 +08:00
Innei d3bf8a89db
feat: implement context block visibility management with popover for hidden blocks in AIChatContextBar
- Added logic to limit visible context blocks to a maximum of 4, with additional blocks accessible via a popover.
- Updated ContextBlock component to accept an optional className prop for better styling flexibility.
- Improved Tailwind CSS class ordering for consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 19:53:14 +08:00
Innei 8ec65625c9
fix: reorder Tailwind CSS classes for improved consistency in MentionDropdown and TypeaheadDropdown components
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 19:37:19 +08:00
Innei 3406aecec6
fix: update ShortcutComponent styles for improved layout and cursor behavior
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 19:32:12 +08:00
Stephen Zhou ae89af5608
feat: text attribute for mention 2025-10-21 18:03:37 +08:00
DIYgod baacb1c672
fix: package inconsistent versions 2025-10-21 17:20:39 +08:00
DIYgod 8757e5a2ef
fix: prettier tailwindcss classname sorting 2025-10-21 16:49:19 +08:00
DIYgod 5a90d145a0
chore: format 2025-10-21 16:43:33 +08:00
DIYgod 9127b157c2
fix: update default Xcode version to 26.0.1 2025-10-21 16:40:10 +08:00
DIYgod 7507270b39
chore: update dependencies 2025-10-21 16:33:03 +08:00
DIYgod 878ad81a7d
fix: align entry details column layout with ai panel states 2025-10-21 15:11:02 +08:00
Stephen Zhou 36bc50b1c0
feat: separation for mentions 2025-10-21 12:27:39 +08:00
DIYgod f818469d22
feat(ChatInput): enhance placeholder to reflect entry context and add missing import 2025-10-21 11:48:35 +08:00
DIYgod ab9304a85f
chore: cdn refresh 2025-10-21 10:55:28 +08:00
Stephen Zhou f51e910251
feat: at button for mention (#4579) 2025-10-21 09:59:00 +08:00
Innei b9fe2903fa
fix(TextAreaWrapper): import React to resolve JSX issues
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 01:29:27 +08:00
Innei 68478b436f
refactor(ai): shortcut node (#4580)
* init

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(ai-chat): improve layout and styling in ChatInput and EditableMessage components

Updated the ChatInput and EditableMessage components to enhance their layout by adjusting padding and margins for better visual consistency. Refactored the MentionLikePill component to streamline its structure and improve styling, including the use of clsx for conditional class names. Removed unused hotkey properties from ShortcutData and ShortcutMetadata interfaces to simplify type definitions.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(ai-chat): enhance shortcut handling and editor integration

Updated the ChatShortcutsRow and ChatInterface components to improve shortcut selection and integration with the Lexical editor. The onSelect prop in ChatShortcutsRow now accepts ShortcutData, allowing for more detailed shortcut handling. Refactored the ChatInterface to create a temporary editor instance for processing shortcuts, enhancing the user experience. Additionally, modified the getShortcutTextValue utility to return the prompt directly, simplifying shortcut text retrieval.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(ai-chat): enhance auto timeline summary shortcut with Lexical editor integration

Updated the useAutoTimelineSummaryShortcut hook to improve the handling of timeline summary shortcuts. Refactored the buildSummaryMessage function to utilize the Lexical editor for generating summary messages, allowing for better integration with the editor's state. Introduced a temporary editor instance to manage shortcut nodes effectively, enhancing the overall functionality and user experience.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 01:24:03 +08:00
Innei e008dfa016
refactor(ai-chat): restructure mention handling and improve type definitions
Refactored the MentionNode and related types to enhance clarity and maintainability. Removed the old convertMentionElement function and updated the importDOM method to throw an error for unimplemented spans. Introduced a base interface for mention data and specific interfaces for different mention types, improving type safety. Updated mention text value utilities to include a new function for display text, enhancing the mention display logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 21:24:49 +08:00
Innei 414ab5232f
feat: lexical editor more functional
Added AutoLinkPlugin and TabIndentationPlugin to the LexicalRichEditor for improved user experience. Introduced ExitCodeBoundaryPlugin to manage caret behavior when exiting code contexts and TripleBacktickTogglePlugin for toggling code blocks. Updated node imports and types to support these new features, enhancing the editor's capabilities.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 20:48:59 +08:00
DIYgod 832f33485c
feat(ai-chat): add support for Anthropic provider and update model mappings 2025-10-20 20:46:53 +08:00
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 2025-10-18 16:13:33 +08:00