- Modified ContextBlock and AIChatContextBar components to enhance styling with updated background colors.
- Introduced ShortcutTooltip component for improved tooltip functionality in ChatShortcutsRow and ShortcutComponent.
- Refactored AIShortcutButton to accept a ref prop for better integration with parent components.
- Adjusted UserChatMessage styles for consistency in message bubble appearance.
These changes aim to improve the UI consistency and enhance user interactions within the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a custom hook `useUnSavedBlocker` to prompt users about unsaved changes when navigating away from the action settings.
- Updated the `SettingModalLayout` component to use a new shadow class for better visual consistency.
- Enhanced localization by adding a new translation key for unsaved changes in the English locale.
- Refactored shadow styles in Tailwind CSS to utilize CSS variables for improved maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a comprehensive glassmorphic design system to enhance visual hierarchy in UI elements such as modals, toasts, and floating panels.
- Added detailed design principles, color usage guidelines, and component structure examples to AGENTS.md.
- Updated AISmartSidebar component to utilize layered glass effects and smooth animations.
- Enhanced CSS styles for glassmorphic elements, ensuring performance optimizations and accessibility considerations.
These changes aim to elevate the user experience through refined aesthetics and improved interaction dynamics.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced static class names with clsx for conditional class application.
- Adjusted margin for the feed icon to enhance layout consistency.
These changes improve the visual presentation of the EntryListHeader component.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed the sorting of files before hash calculation to ensure a consistent hash output.
- Updated the hash calculation to include additional files directly, enhancing the accuracy of the generated hash.
These changes streamline the hash generation process and improve reliability across the application.
Signed-off-by: Innei <tukon479@gmail.com>
Introduces an 'analytics' property with a 'view' field to FeedSelection and updates subscription logic to use the analytics view if available, defaulting to articles otherwise.
* refactor: redesign action rule editor layout
* refactor(action): enhance action setting layout and functionality
- Introduced a new ShareImportSection component for better organization of action sharing and importing features.
- Updated EmptyActionPlaceholder styles for improved UI consistency.
- Refactored ActionButtonGroup to utilize useCallback for better performance.
- Adjusted layout and styling across various components for a cleaner and more cohesive design.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(action): improve layout and functionality of action components
- Integrated ScrollArea for better scrolling behavior in RuleList and RuleCard components.
- Enhanced styling for various sections, including WhenSection and ThenSection, to improve visual consistency.
- Updated button variants and class names for better adherence to design tokens.
- Refactored layout structures to ensure a more cohesive user experience across action-related components.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(action): enhance RuleList and context menu functionality
- Introduced RuleListItem component to improve the structure and readability of the RuleList.
- Added context menu support for rule deletion, enhancing user interaction.
- Updated the delete rule logic to handle selected index adjustments more intuitively.
- Improved styling and layout for better visual consistency across action components.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(action): update icon usage in CompactRuleCard
- Replaced icon classes in CompactRuleCard component to use MingCute icons for better consistency and adherence to design tokens.
- Updated the arrow icons to `i-mingcute-arrow-up-line` and `i-mingcute-arrow-down-line` for improved visual clarity.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(action): update RuleCardToolbar to use Button component
- Replaced the native button element with the Button component from the UI library for better consistency and adherence to design tokens.
- Updated button properties to align with the new component's API, enhancing the overall styling and functionality of the RuleCardToolbar.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor(action): clean up RuleCardToolbar button class
- Removed commented-out className from the button in RuleCardToolbar for improved code clarity and maintainability.
- This change aligns with the ongoing efforts to streamline component code and enhance readability.
Signed-off-by: Innei <tukon479@gmail.com>
---------
Signed-off-by: Innei <tukon479@gmail.com>
- 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>