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>
- Introduced a `disabled` state for context blocks, allowing users to toggle blocks on and off without removing them.
- Updated `ContextBlock` and `CombinedContextBlock` components to handle the new `disabled` prop and associated click behavior.
- Filtered out disabled blocks in the `ChatInterface` to improve user experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the border radius of the AIModelIndicator component from `rounded-full` to `rounded-xl` for a more modern appearance.
- Adjusted the layout of the ChatInput component by modifying the `self-start` class to improve alignment and visual consistency.
- Removed unnecessary `self-start` class from the AIModelIndicator instance within ChatInput for cleaner styling.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated new hooks for creating and editing AI shortcuts, improving the user experience for managing shortcuts.
- Adjusted layout styles in various components for better visual consistency, including padding and margin updates.
- Removed deprecated modal handling for shortcuts, streamlining the codebase.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the prompt input field with additional padding for better usability.
- Added size prop to the Switch component, allowing for small and medium sizes.
- Adjusted styles for the Switch component to accommodate the new size options, ensuring consistent appearance across different sizes.
Signed-off-by: Innei <tukon479@gmail.com>
- Added functionality to generate and update chat titles based on user messages and AI responses.
- Introduced a button in the EditableTitle component to trigger title generation, enhancing user experience.
- Updated localization files to include new strings for title generation actions in English, Japanese, and Chinese.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced the text for timeline summary options in the ChatInput component to enhance clarity.
- Updated localization files for English, Japanese, and Chinese to reflect the new text for timeline summary options.
Signed-off-by: Innei <tukon479@gmail.com>