* 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
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
* 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
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.
* 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
- 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>
- 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>
- 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>
* 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>
- 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>
- 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>