- Removed unused `useSetSettingTab` import from `UpgradePlanModalContent`.
- Updated `SettingModalContent` to improve initial tab resolution and ensure active setting is correctly managed with memoization and effects.
Signed-off-by: Innei <tukon479@gmail.com>
- Consolidated update decision logic into a new method for better readability and maintainability.
- Updated fallback logic to utilize the new method when distribution update info is unavailable.
Signed-off-by: Innei <tukon479@gmail.com>
- 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>