Commit Graph
6129 Commits
Author SHA1 Message Date
DIYgod ce324fe9d3 fix: update title and meta tags 2025-10-22 17:22:44 +08:00
Stephen Zhou bddab57de7 fix: tooltip for date 2025-10-22 17:07:57 +08:00
Innei 25dc8fce93 fix(list-item-template): adjust vertical positioning of unread indicator
- Changed the top positioning of the accent indicator in the ListItem component from `top-6` to `top-5` for improved alignment.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 16:53:30 +08:00
Innei cc01736f8f style: compact layout
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 16:35:50 +08:00
Innei e07c310fdf fix(entry): update ai layout toc update
- Removed an empty line in the ITocItem interface for cleaner code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 16:20:51 +08:00
DIYgod 496ce345e9 feat: update ai spline 2025-10-22 16:18:17 +08:00
Innei a598f4275a refactor: reorganize entry content components and update imports
- Removed legacy components: AISummary, ApplyEntryActions, EntryContent, and their associated files.
- Updated import paths for EntryContentLegacy and EntryNoContent to reflect the new structure.
- Improved component organization for better maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 16:10:53 +08:00
DIYgod 748f23e471 fix: style for small screens 2025-10-22 15:31:55 +08:00
DIYgod 8d85f56e77 fix: update AI chat panel width range to use timelineMaxWidth 2025-10-22 15:21:14 +08:00
DIYgod f40170e9ac fix: electron dev 2025-10-22 15:10:08 +08:00
DIYgod 9eb133970c fix: add no-drag-region class to button in AIHeaderTitle component 2025-10-22 15:08:14 +08:00
Innei 2c82e87ec6 fix: adjust min-width in EntryHeaderBreadcrumb component
- Changed min-width from 120px to 0 in the EntryHeaderBreadcrumb component to improve layout responsiveness.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 14:42:59 +08:00
Innei a184042653 refactor: simplify ChatShortcutsRow and update AIShortcutButton styles
- Removed unused showSettings function from ChatShortcutsRow to streamline the component.
- Updated AIShortcutButton styles to use a more pronounced background for better visibility.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 14:34:20 +08:00
DIYgod a82a15a1ce fix: types 2025-10-22 13:38:08 +08:00
DIYgod 874b4a19d2 fix: line clamp calculation 2025-10-22 13:31:49 +08:00
DIYgod 53cc934968 feat: remove legacy layout 2025-10-22 13:14:50 +08:00
Stephen Zhou 2163a74085 chore: format 2025-10-22 11:30:39 +08:00
Stephen Zhou 3ac8309aeb refactor: relative date format 2025-10-22 11:28:36 +08:00
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