- 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>
ensure the AI chat context bar keeps the mainView block for every numeric view, including FeedViewType.All
include the mainView block in auto timeline summary requests so uploads always carry view metadata
- Replaced `[text-autospace:auto]` with `autospace-normal` class in ListItem, EntryTitle, and ArticleLayout components to standardize text spacing.
- Added a new utility class `autospace-normal` in tailwind.css to ensure consistent text rendering across the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Added `[text-autospace:auto]` class to the `className` property in both ArticleLayout and HTML components to enhance text rendering and improve readability.
- This change ensures better handling of text spacing across different content types.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the positioning of the scroll-to-bottom button in the ChatInterface component to improve visibility and accessibility.
- Changed the bottom offset from 44 to 48 and adjusted the vertical translation for better alignment.
Signed-off-by: Innei <tukon479@gmail.com>
- Eliminated the check for whether the last group type starts with "tool-" to simplify the logic in the AIChainOfThought component.
- This change enhances readability and maintains the intended functionality without the redundant condition.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated title generation feature in the ChatMoreDropdown component, allowing users to generate a title based on the last two messages.
- Added new translations for title generation prompts in English, Japanese, and Chinese.
- Implemented loading state to indicate when the title is being generated.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced the random ID generation for collapseId with React's useId for improved stability and performance.
- Updated the effect logic to conditionally close the collapse based on the currentChainReasoningIsFinished state.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed background styling in UserChatMessage to use `bg-fill` for consistency.
- Updated button variant in AIChatPane from `ghost` to `outline` for better visibility.
- Simplified the bottom panel layout in AIChatInterface by removing unnecessary class names.
- Enhanced the FeedSelectionFirstScreen with a new gradient background and improved content structure.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the import path for the AIShortcutButton component to the new location.
- Introduced a more flexible gradient handling function that adapts based on the dark/light mode.
- Removed the old AIShortcutButton component file as it is no longer needed.
Signed-off-by: Innei <tukon479@gmail.com>