- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>
- 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>