Commit Graph

6151 Commits

Author SHA1 Message Date
DIYgod 731834153c release(desktop): release v0.8.0 desktop@0.8.0 2025-10-23 16:02:20 +08:00
DIYgod 53ec8ec512 feat: update AI feature integration and adjust layout styles 2025-10-23 15:51:16 +08:00
DIYgod d93e7698ce feat: enable AI feature toggle in AISummaryCardBase and adjust spacing in EntryPlaceholderLogo 2025-10-23 11:54:29 +08:00
DIYgod 13cb874cac fix: types 2025-10-23 11:41:17 +08:00
DIYgod 2d5c94587b feat: server shorcuts 2025-10-23 11:31:35 +08:00
Stephen Zhou 1bfdccc566 chore: parseDateRangeById 2025-10-23 11:21:01 +08:00
Stephen Zhou 5d69066e50 feat: pass id or display name in date format 2025-10-23 11:11:37 +08:00
Stephen Zhou 3c784b103c fix: no clamp for date 2025-10-23 10:38:46 +08:00
Innei c221cb3691 fix: remap prop setting -> enabled
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 01:41:41 +08:00
Innei 1cf837d475 fix(settings): update ACCENT_COLOR_MAP to use 'orange' as default fallback
- Changed the ACCENT_COLOR_MAP definition to use a type-safe approach with `satisfies`.
- Updated the fallback color in `getAccentColorValue` function from `blue` to `orange` for consistency in accent color handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 01:31:50 +08:00
Innei 05981958a8 perf(trans): batch transition fetch
- Bump version of `@follow-app/client-sdk` to 0.3.69 in `pnpm-lock.yaml` and `pnpm-workspace.yaml`.
- Update `@folo-services/ai-tools` version to 0.2.44 in `apps/desktop/layer/renderer/package.json`.
- Modify Vite configuration to exclude `@follow-app/client-sdk` from optimization.
- Refactor translation hooks to use `enabled` instead of `setting` for clarity.
- Introduce a new utility function `readNdjsonStream` for handling NDJSON streams in the store module.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 01:30:12 +08:00
Innei 235a8603f9 feat(ai-chat): optimize ai page visual center
- Added `visualOffsetY` prop to `ChatInterface` for dynamic vertical positioning.
- Updated layout structure in `ChatInterface` to accommodate visual offset adjustments.
- Modified the AI chat page to utilize the new visual offset feature, improving the user experience during chat interactions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 23:43:27 +08:00
Innei 5ebeb9cdf8 feat(ai-chat): keep draft message
- Added functionality to save and restore draft messages in the ChatInput component.
- Integrated draft message handling in ChatInterface to manage drafts per chat session.
- Updated the ChatInput component to accept initialDraft and onDraftChange props for better draft management.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 23:31:58 +08:00
Stephen Zhou 5ce7965a89 fix: date mention display name 2025-10-22 23:07:21 +08:00
Innei 2d66d07d34 feat(ai-chat): add shortcut functionality with AI page support
- Updated the ChatShortcutsRow component to include logic for displaying shortcuts based on the AI page context.
- Added a new target option for shortcuts to be displayed specifically on the AI page.
- Modified the ShortcutModalContent to allow users to select the AI page as a target for shortcuts.
- Updated localization files to include new translations for the AI page shortcut target.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 22:57:32 +08:00
Stephen Zhou 26ea58a87b fix: drop relative format for now, chrono parse 2025-10-22 22:53:36 +08:00
Innei fa78765258 feat(ai-chat): refactor error handling and introduce rate limit notice
- Replaced the CollapsibleError component with a new RateLimitNotice component to handle rate limit errors more effectively.
- Added ErrorMessage component for displaying general error messages in the chat interface.
- Updated ChatInterface and AIChatInterface to accommodate the new error handling structure, ensuring proper display of rate limit and other errors.
- Enhanced error parsing utility functions to streamline error information extraction.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 22:41:37 +08:00
Innei 015f4ea10a fix(editor): is input empty state
- Modified the isEmpty method in both ChatInput and LexicalRichEditor components to check if the editor's content is empty by verifying if the trimmed text content is an empty string.
- Added an accessories prop to LexicalRichEditor for improved flexibility in rendering additional UI elements.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 21:51:06 +08:00
Innei e8c1d47f84 feat(ai): edit message initial height base on message height
- Added `initialHeight` prop to `EditableMessage` for dynamic editor height based on original message height.
- Updated `UserChatMessage` to measure and set the message bubble height before editing, improving the user experience during message editing.
- Adjusted `AllItem` component's wrapper class for better padding consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 21:35:38 +08:00
Innei 7c17183bee fix(ChatTitle): add shrink-0 class to icon for layout consistency
- Updated the ChatTitle component to include the `shrink-0` class on the icon for improved layout consistency during state changes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 21:35:38 +08:00
Innei 750a69e2f6 feat(appearance): add custom color picker for accent color selection
- Introduced a CustomColorPicker component to allow users to select custom hex colors for the accent color.
- Updated the AccentColorSelector to integrate the new color picker with a popover for better user experience.
- Enhanced the getAccentColorValue function to handle custom colors and return appropriate values for light and dark themes.
- Adjusted styles and icons for improved visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 21:35:38 +08:00
Stephen Zhou b551610a5f chore: remove ai token plan 2025-10-22 18:17:05 +08:00
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