Commit Graph
4036 Commits
Author SHA1 Message Date
Whitewater 4b0afb4f99 fix: resolve nested button HTML hydration errors (#4688)
* fix: remove nested button from ai shortcut

* fix: UserAvatar should not show login

* chore: ensure userId is accessed safely
2025-11-11 14:41:19 +08:00
Whitewater cfefb5a120 fix: remove unnecessary containerRef in SwipeWrapper component (#4690)
* fix: remove unnecessary containerRef in SwipeWrapper component

* fix: update mobile web app meta tags in index.html
2025-11-11 14:16:21 +08:00
Stephen Zhou 36fd41cd1a build(ssr): output path 2025-11-11 11:33:59 +08:00
Innei a2e27aa26d chore(ai): remove ai window rate limit
- 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>
2025-11-11 01:50:05 +08:00
Innei b8a9e92ba8 fix(style): rounded style based on article item container
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-11 00:33:29 +08:00
Innei fc95cddac0 fix(ai): reduce ai indicator interection position, closed 4677
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-11 00:06:28 +08:00
Chrys f8944183ee fix: scope pictureViewImageOnly to picture feeds (#4680) 2025-11-10 18:09:46 +08:00
Whitewater 2542f23428 fix: flushSync inside lifecycle (#4686) 2025-11-10 17:05:03 +08:00
Whitewater 0ec43718d3 Merge pull request #4687 from RSSNext/fix/hydrate-session-error
fix: hydrate sessions error
2025-11-10 16:59:59 +08:00
DIYgod ad97448509 Merge pull request #4676 from RSSNext/sync/main-to-dev-20251108
Sync main branch to dev branch
2025-11-10 15:09:29 +08:00
Innei ae0c6c39a6 chore: bump version to 1.1.1 in package.json
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 16:48:58 +08:00
Innei b927383e93 fix(ai): should stop when switch session
- 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>
2025-11-08 16:25:38 +08:00
Innei 9cc55c8765 feat(ai-chat): update ChatHeader and AIEnhancedTimelineLayout for improved panel visibility
- 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>
2025-11-08 16:17:50 +08:00
lawvs 2dcc2967e4 fix: prevent insertion of empty message results 2025-11-08 15:31:31 +08:00
Innei 0a42795377 refactor(ai-chat): enhance AISmartSidebar with spring animations and improved mouse interaction handling
- 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>
2025-11-08 15:22:05 +08:00
Stephen Zhou 03c0cc54b5 chore: downgrade linkedom 2025-11-08 15:17:47 +08:00
Innei 3832e21b7c fix: can close ai panel
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 15:07:28 +08:00
Innei 7f6b35e0b2 refactor: implement timeline redirection and enhance modal routing
- 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>
2025-11-07 21:43:46 +08:00
Innei 6d04292823 Merge branch 'release/desktop/1.1.0' into dev 2025-11-07 21:38:51 +08:00
Innei a1b2a5840b fix: ai preview peek modal wrong navigation entry url
- 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>
2025-11-07 21:38:38 +08:00
Innei 4a1fb17eae refactor: enhance timeline handling and view parsing
- 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>
2025-11-07 21:32:40 +08:00
DIYgod 698ba883a4 fix(ai): incorporate isInMASReview hook in RateLimitNotice and useAutoTimelineSummaryShortcut 2025-11-07 20:22:19 +08:00
DIYgod f5628c954a Merge remote-tracking branch 'origin/dev' into release/desktop/1.1.0 2025-11-07 20:07:44 +08:00
lawvs bffe2cd0df fix(ai): lint 2025-11-07 17:39:28 +08:00
Whitewater 26d7e3cb1a fix: handle chatId encoding in reconnectToStream (#4670)
* fix: handle chatId encoding in reconnectToStream

* fix: ensure chatId is always encoded in reconnectToStream
2025-11-07 17:15:09 +08:00
Innei e972598982 Merge remote-tracking branch 'origin/dev' into release/desktop/1.1.0 2025-11-07 17:06:44 +08:00
Innei 520ea60f2a fix(ai): detect resume tip after consume chat
- 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>
2025-11-07 16:59:40 +08:00
lawvs 2332ae2bb4 fix: lint 2025-11-07 16:18:17 +08:00
lawvs c25539f51a fix(ai-chat): add unread session indicator to dropdowns 2025-11-07 16:07:12 +08:00
Innei 8ee2e92993 fix(ai): rate limit notice message logic
- 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>
2025-11-07 15:50:52 +08:00
DIYgod 73261ccf74 chore: update changelog for v1.1.0 with new features and fixes 2025-11-07 15:11:26 +08:00
DIYgod fd55f86766 release(desktop): release v1.1.0 2025-11-07 10:53:22 +08:00
Innei 77f04b9753 feat(ai-chat): add interruption notice and retry functionality
- 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>
2025-11-07 00:43:19 +08:00
lawvs 500814ad3a fix: simplify type usage in rate limit functions 2025-11-07 00:10:14 +08:00
Innei 8794dcbce9 chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 23:58:20 +08:00
Innei 60f4ce2355 feat(ai): rate limit indicator 2025-11-06 23:42:25 +08:00
Innei c465843bd9 feat(ai-chat): merge ChatHistoryDropdown and TaskReportDropdown
- 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>
2025-11-06 22:47:14 +08:00
Innei ec672495b3 fix(ai): fix load ai history session
- 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>
2025-11-06 22:24:24 +08:00
DIYgod 3492de2c3c fix: downgrade vite version from 7.2.0 to 7.1.11 2025-11-06 21:55:28 +08:00
Innei e0a2e6c49c fix(chat): chat bottom input container calcultion
- 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>
2025-11-06 21:26:11 +08:00
DIYgod 7ca97e0208 fix: types 2025-11-06 21:16:06 +08:00
Innei ad1d4d9635 feat(ai-chat): add unread message indicator to TaskReportDropdown and SessionItem components
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 21:13:33 +08:00
DIYgod 68fb09eb03 chore: update dependencies (#4667)
* chore: update dependencies

* Implement code changes to enhance functionality and improve performance
2025-11-06 21:09:46 +08:00
lawvs 7d6df0ec17 fix: correct token usage message logic 2025-11-06 20:57:36 +08:00
Whitewater b6787a79f4 feat(rateLimit): enhance RateLimitNotice to display token usage info (#4662)
* 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
2025-11-06 20:45:19 +08:00
songkeys 46d8fccd2f feat(onboarding): compatible with json 2025-11-06 19:11:58 +08:00
DIYgod 959904d72e feat(chat): enhance resumeStream handling to manage transient status during stream resumption 2025-11-06 17:41:15 +08:00
DIYgod 264bd711e6 refactor(debug-registry): streamline debug registry entries for error simulation and app upgrade notifications 2025-11-06 17:14:24 +08:00
DIYgod 5ee4817cb6 fix(ai-chain-of-thought): update title rendering logic and improve heading extraction 2025-11-06 17:12:43 +08:00
songkeys 84380d5c1a feat(onboarding): add skip button 2025-11-06 17:04:32 +08:00