- Simplified the layout of the usage overview card for better visual clarity.
- Removed the `StatCompact` component as it was no longer needed.
- Adjusted the size of the `UsageProgressRing` for a more cohesive design.
- Cleaned up unused variables to streamline the code.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed the `destroy` method in `ZustandChat` to be asynchronous, ensuring proper cleanup with `await`.
- Updated `newChat` and `switchToChat` actions to await the destruction of the old chat instance before creating a new one.
- Initialized `#eventEmitter`, `#status`, and `#error` in `ZustandChatState` constructor for better state management.
Signed-off-by: Innei <tukon479@gmail.com>
- Added logic to control AI panel visibility based on the current view in ChatHeader.
- Enhanced AIEnhancedTimelineLayout to automatically show the AI panel when in 'All' view.
- Refactored imports for better organization and clarity.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced mouse position tracking with spring-based intensity for smoother animations.
- Introduced multiple transform properties for layered visual effects.
- Improved event handling for pointer movements and visibility of the prompt.
- Cleaned up code for better readability and performance.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new layout component for timeline pages to handle redirection based on canonical timeline IDs.
- Updated `usePeekModal` to utilize `getTimelineIdByView` for improved URL generation in modal navigation.
- Enhanced the overall routing logic for better user experience and consistency in timeline navigation.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated subscription view retrieval in usePeekModal for improved modal routing.
- Updated AnimatedMarkdown to utilize subscription view when navigating entries.
- Cleaned up EntryContentForPreview by removing unnecessary class names for better styling consistency.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated `useNavigateEntry` to utilize `getTimelineIdByView` for better clarity in timeline ID generation.
- Introduced `VIEW_SLUG_BY_VIEW` and `VIEW_PARAM_ALIAS_MAP` in `useRouteParams` for improved mapping of feed views to their respective routes.
- Refactored `computeTimelineTabLists` in `useTimelineList` to normalize and filter timeline IDs, enhancing the handling of known timeline values.
This refactor improves maintainability and readability of the timeline navigation logic.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced ChatBottomPanel component to manage chat input, shortcuts, and rate limit notices.
- Refactored ChatInterface to utilize ChatBottomPanel, enhancing the structure and readability of the chat layout.
- Created ChatMessageContainer to handle message display and scrolling behavior, improving user experience.
- Added ScrollToBottomButton for easier navigation in long chat histories.
- Consolidated message rendering logic into a new Messages component for better maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Renamed the configuration parameter for clarity and simplified checks for rate limiting.
- Consolidated logic for generating rate limit messages, enhancing readability and maintainability.
- Improved handling of remaining requests and reset times for better user feedback.
Signed-off-by: Innei <tukon479@gmail.com>
- Implemented a notice for users when the session is interrupted, prompting them to retry their last message.
- Added localization for the interruption message in English, Japanese, and Chinese.
- Enhanced the chat interface to handle message retries effectively, improving user experience during connection issues.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored session handling by introducing shared components for session items and empty states.
- Added functionality to filter and display both chat and task sessions in ChatHistoryDropdown.
- Implemented loading states and delete session capabilities for better user experience.
- Improved task session management with the ability to create new tasks directly from the dropdown.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed RateLimitNotice from a div to a button for better accessibility and interaction.
- Added an "Upgrade Plan" button to encourage users to upgrade their plan directly from the notice.
- Improved layout styling for better visual clarity.
fix(useChatHistory): streamline loading state checks
- Simplified loading state condition in loadHistory function to improve performance.
fix(ai-chat-session): remove unnecessary localization logic in fetchRemoteSessions
- Cleaned up fetchRemoteSessions function by removing unused i18n imports and related code.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed the rateLimitNoticeRef from ChatInterface, simplifying the height calculation.
- Updated RateLimitNotice component to eliminate the ref prop, streamlining its implementation.
Signed-off-by: Innei <tukon479@gmail.com>
* feat(rateLimit): enhance RateLimitNotice to display token usage information
Updated RateLimitNotice component to accept token usage data and display it alongside error messages. Modified related components to utilize the new token usage prop for improved user feedback on rate limits.
* fix: remove rate limit notice for onboarding
* fix: handle negative reset time
* fix: correct reset time check in RateLimitNotice component
* refactor(rateLimit): refactor RateLimitNotice to utilize chatConfig for message display
- Removed tokenUsage prop and normalized token data logic.
- Integrated chatConfig to build messages for free usage and token usage.
- Improved message rendering logic for better clarity on rate limits and resets.
* chore: clean code
* refactor: update RateLimitNotice handling and layout adjustments