Commit Graph
1071 Commits
Author SHA1 Message Date
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
DIYgod 6748801e4e feat(ai): add max height and auto scroll support to AIReasoningPart component 2025-11-06 17:03:33 +08:00
Innei 3439180c6c feat(updater): implement distribution update handling and external link opening
- Added a new method to open external URLs in the app.
- Enhanced the updater to check for distribution updates and notify users.
- Updated the updater status types to include distribution updates.
- Refactored the update notice component to handle distribution store updates.
- Added localization for distribution update notifications.

This update improves the user experience by allowing seamless updates from distribution stores and providing clear notifications for available updates.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 16:37:33 +08:00
DIYgod fef048fc2c feat(about): integrate EnvironmentDebugModalContent and enhance renderer version click handling 2025-11-06 16:25:40 +08:00
songkeys 6f02b5142a fix(onboarding): missing step 2025-11-06 12:28:02 +08:00
DIYgod 0634a79780 fix: types 2025-11-06 09:51:38 +08:00
DIYgod ae97aa2b1a refactor(ai): drop floating chat panel and simplify timeline layout 2025-11-06 09:09:06 +08:00
Innei f6a8691e3a fix(translation): update user role checks for translation prefetching
Refactored translation prefetching logic across multiple components to utilize the new isFreeRole function. This change ensures that users with Free roles do not trigger translation prefetching, optimizing performance and enhancing user experience. Updated relevant imports and conditions in EntryItemImpl, useEntryContent, and various EntryList components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 21:41:56 +08:00
DIYgod f7b648f25e feat(aiChat): conditionally render floating panel based on view type
style: adjust padding in ListItem component for better spacing
2025-11-05 17:33:57 +08:00
DIYgod aee647197b refactor: remove aiColWidthAll from UISettings interface 2025-11-05 17:12:53 +08:00
DIYgod 9bd586345c feat: new ai layout for all view 2025-11-05 17:03:43 +08:00
DIYgod b0fdc29688 feat(context): remove feedId from timeline summary context and related functions 2025-11-05 15:38:28 +08:00
Innei 61398f72f1 feat(mcp): add Fabric AI workspace integration to MCP presets
Introduced a new MCP preset for Fabric AI, including configuration details such as transport type and API URL. This addition enhances the functionality of the MCP by allowing users to connect their Fabric AI workspace, enabling features like reading and searching workspaces, creating, and updating notes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 14:44:58 +08:00
Innei 053f680dc0 fix(translation): implement user role-based translation prefetching
Enhanced translation prefetching logic across multiple components by incorporating user role checks. Users with the Free role will no longer trigger translation prefetching, optimizing performance and resource usage. Updated relevant hooks and components to utilize the new logic for improved user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 01:24:34 +08:00
Innei cd99ec9179 feat(error-handling): enhance error parsing and localization updates
Updated the error parsing logic in the error-parser.ts file to include additional status handling for FollowAPIError. Improved the toastFetchError function to utilize status codes for payment-related errors. Additionally, localized new error messages in English, Japanese, and Chinese, including updates for trial user limits and AI memory errors.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 23:18:35 +08:00
Innei 2ac5aed4e1 fix(ui): sonner styles
Updated the global shortcuts registration to ensure proper detection of editable elements by checking if the target is an instance of HTMLElement. This change enhances the accuracy of shortcut handling in editable contexts.

style(toast): remove unused toast styles

Deleted redundant CSS styles related to sonner toast notifications to streamline the stylesheet and improve maintainability.

style(toast): enhance toast styles with z-index and pointer events

Added z-index and pointer-events styles to the toast component for better layering and interaction handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 22:55:49 +08:00
Innei ad97c27906 feat(ai-summary): enhance AI summary card with upgrade suggestion and error handling
Updated the AISummaryCardBase component to suggest an upgrade when encountering a payment-related error. Refactored error handling to utilize the FollowAPIError class. Improved localization for upgrade prompts in English, Japanese, and Chinese. Adjusted related components to pass error objects instead of error codes for better clarity.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 22:33:41 +08:00
Innei d4389ce2d3 fix(view-all): can not move to category in all view
Refactored the FeedCategoryImpl function to replace the 'view' prop with 'viewOnRoute' for better clarity and consistency. Adjusted related subscription action calls to utilize the new prop, ensuring proper state management and navigation behavior.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 21:42:44 +08:00
Innei fabe63621e refactor(api): remove unused API fetch and activation modal components
Deleted the api-fetch module and the ActivationModalContent component, streamlining the codebase. Updated references to use the new UpgradePlanModalContent where necessary. Adjusted response interceptors in the api-client to remove unused router references and error handling logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 21:21:23 +08:00
lawvs 2541490129 chore: only refetch chat session when user has task 2025-11-04 15:48:09 +08:00
songkeys 61acd01f7a fix(guide-modal): update onboarding step completion conditions
Modified the conditions for marking onboarding steps as complete in the GuideModalContent component. Now considers both "finish" and "manual-import-finish" steps as completed, ensuring proper tracking and user flow.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-03 21:52:50 +08:00
Whitewater cff58df175 feat: enhance test run functionality with stream resume (#4648)
* feat(ai): enhance test run functionality with session management

* fix: ensure session ID is returned from test run mutation

* chore: improve success message for test run

* fix(task): handle test run errors and improve user feedback

Added error handling for test run failures, dismissing the loading toast and providing specific error messages. Introduced a delay before switching to chat to ensure backend readiness.

* chore: update test start message for clarity in multiple languages
2025-11-03 16:47:17 +08:00
Konv Suu 70ac015321 fix: correct header height class assignment (#4650) 2025-11-03 00:15:52 +08:00
songkeys 7e03fee949 refactor(onboarding): new tracking points 2025-11-02 17:40:29 +08:00
Stephen Zhou 1613ca965f chore: show MAX_AI_REQUESTS_PER_MONTH 2025-11-02 17:30:36 +08:00
songkeys c356ddfc94 feat(onboarding): add progress bar to feed subscription step
Introduces a progress bar to visually indicate the completion status of feed subscriptions during onboarding. Progress updates as each feed is processed, and the bar is shown after a short delay for improved user feedback.
2025-11-02 17:26:19 +08:00
Innei 9688b20a00 refactor(ai): simplify usage metrics display and enhance styling
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-01 22:19:20 +08:00
DIYgod 7f1e9c9f3d Merge pull request #4643 from RSSNext/sync/main-to-dev-20251101
Sync main branch to dev branch
2025-11-01 11:10:14 +08:00
Innei 5aed1affab fix(ai): fetch remote messages if not exist
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-01 02:07:31 +08:00
Innei a939842ca9 feat: auto generate chat title in stream
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-01 00:36:55 +08:00
DIYgod d54d4bfa36 fix: update AISplineLoader to use the correct CDN URL for the AI icon 2025-10-31 22:18:19 +08:00
DIYgod e1a08b081f fix: update CardHeader layout to use flexbox for better alignment 2025-10-31 21:58:55 +08:00
Konv Suu f1f13f9088 fix(desktop): increase height for preview header style (#4628) 2025-10-31 20:53:50 +08:00
Whitewater 2ad4169c54 fix: skip streaming messages in message persist (#4637)
* fix: skip streaming messages in message processing

* fix(ai-chat): streamline message synchronization logic

Removed redundant message loading check in syncSessionMessages method to improve efficiency. Now directly fetches and persists messages when necessary.

* fix(ai-chat): update session time handling after message persistence

Ensure session time is updated based on the latest message creation date after successfully saving messages.

* fix: simplify message sync logic

* fix: update session updatedAt to use createdAt during sync
2025-10-31 20:38:26 +08:00
Innei 4ef3e2b2f1 fix: unify FeedPreviewCard layout and styling
- Removed border and background classes for a cleaner look.
- Adjusted padding and icon size for improved visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-31 20:35:28 +08:00
Whitewater 5c8fd4b726 fix: enable manual timeline summary override when switching chats (#4636) 2025-10-31 18:31:56 +08:00
lawvs a9e8d1be38 fix: update unread session logic for task reports 2025-10-31 15:53:07 +08:00
Innei 01b24ea084 feat: add forgot password on reset password form
- Replaced Button component with a styled button in AuthProviderButton for improved styling.
- Updated button properties to use 'disabled' instead of 'isLoading' for better UX.
- Added a link to the "Forget Password" page in the UpdateExistingPasswordForm for enhanced user navigation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-31 15:16:44 +08:00
Innei 48bda630e6 feat: add @number-flow/react package and update plan settings UI
- Added @number-flow/react version 0.5.10 to dependencies.
- Updated the RateLimitNotice component's styling for improved visual consistency.
- Refactored the billing period selection in the SettingPlan component to use SegmentGroup for better user experience.
- Enhanced price display in PlanHeader using NumberFlow for formatted currency output.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-31 15:07:41 +08:00
Stephen Zhou a1e2fd2c7f refactor: remove plan days left, show discount description 2025-10-31 14:33:20 +08:00
DIYgod 48b2ea39ae feat: useIsPaymentEnabled 2025-10-31 11:56:23 +08:00
Stephen ZhouandDIYgod 53e3578af2 feat: new payment (#4629)
* feat: new payment

* update

* update

* update

* update

* feat: enhance plan feature formatting and update localization strings

* update

* update

* update

* update

* refactor: remove NeedActivationToast and related activation modal logic

* update

* feat(settings): guard paid settings

Centralized paid-level metadata in @follow/shared and exposed the SettingNamespace union.
Updated the builder helpers and every settings tab to pull paid badges from that shared map.
Hardened the atoms helper to block writes and surface default values when a user lacks the required role.
Added the necessary workspace dependencies for the atoms package.

* fix: types

* feat(rate-limit-notice): update error messaging and add upgrade prompt

* feat(settings): integrate review checks into settings components

* update

* fix(plan): correct priority calculation in setting page data

* feat(ai-summary): add upgrade suggestion for AI summary when plan is insufficient

* feat(settings): enhance PaidBadge component to conditionally render based on MAS review status

---------

Co-authored-by: DIYgod <i@diygod.me>
2025-10-31 11:42:57 +08:00
Innei d255d7d6a2 feat(settings): enhance scroll behavior in SettingModalContent
- Added a new state to track if the scroller is at the top.
- Implemented a scroll event listener to update the scroller state.
- Updated SettingsTitle component styling based on scroller position for improved visual feedback.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-30 21:09:54 +08:00
Innei 534a6a6ca4 style(entry-header): enhance header and breadcrumb styles for improved visibility
- Updated the header component to include a new class for better styling.
- Modified the breadcrumb component to adjust text size and opacity for enhanced readability and transition effects.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-30 21:06:14 +08:00