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