Commit Graph
567 Commits
Author SHA1 Message Date
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
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
songkeys 84380d5c1a feat(onboarding): add skip button 2025-11-06 17:04:32 +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
Innei e9553e40d0 feat(payment): implement upgrade prompt for AI summary and enhance error handling
Added functionality to suggest an upgrade when payment-related errors occur in the AI summary component. Introduced a new UpgradeRequiredDialog for user prompts and integrated it with existing error handling. Updated localization for upgrade messages in multiple languages. Refactored related components to improve clarity and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 01:06:36 +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 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 6a49168181 feat(subscription): add SubscriptionScreen and update settings navigation
Introduced a new SubscriptionScreen for managing user subscriptions, replacing the previous PlanScreen references. Updated navigation links in SettingsList to reflect this change, ensuring proper routing. Enhanced localization files to include new subscription-related strings for multiple languages.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 20:45:58 +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
Stephen Zhou 1613ca965f chore: show MAX_AI_REQUESTS_PER_MONTH 2025-11-02 17:30:36 +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
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
DIYgod bd3975b25d feat: rename ai tokens to ai credits 2025-10-29 20:17:01 +08:00
lawvs 628a40a76d chore(locales): add onboarding operation type to analytics 2025-10-27 15:39:06 +08:00
Alex SuandDIYgod 6ade8521a6 feat(i18n): update zh-TW translations (#4596)
Co-authored-by: DIYgod <i@diygod.me>
2025-10-25 21:51:30 +08:00
DIYgod d1f0ce3c10 feat: remove showCompactTimelineInSub 2025-10-25 16:45:09 +08:00
Innei 00f7b0c2be feat(ai): add ai memory
- Updated '@follow-app/client-sdk' to version 0.3.73 in pnpm-lock.yaml and pnpm-workspace.yaml.
- Bumped '@folo-services/ai-tools' to version 0.2.47 in package.json.
- Introduced SaveMemoryCard component for displaying saved memories in AIMessageParts.
- Added UserMemorySection to manage and display user memories in settings.
- Enhanced localization for memory-related features in English, Japanese, and Chinese.

These changes improve the AI's memory functionality and ensure up-to-date dependencies.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-24 21:19:18 +08:00
DIYgod 87a60dcb02 feat(ai-chat): add context menu for chat shortcuts 2025-10-24 19:57:31 +08:00
DIYgod 60dcd42f16 feat(subscription-column): add view tab context menu 2025-10-24 17:31:21 +08:00
lawvs eb7ee17486 chore: add 'task' operation type to token analytics 2025-10-24 15:59:58 +08:00
Innei b21a5f40cf refactor(action): implement unsaved changes blocker
- Added a custom hook `useUnSavedBlocker` to prompt users about unsaved changes when navigating away from the action settings.
- Updated the `SettingModalLayout` component to use a new shadow class for better visual consistency.
- Enhanced localization by adding a new translation key for unsaved changes in the English locale.
- Refactored shadow styles in Tailwind CSS to utilize CSS variables for improved maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-24 15:25:03 +08:00
DIYgod c80209f7ed feat: remove 'ai-page' target from shortcuts and related components 2025-10-23 21:56:02 +08:00
Innei 4d6ca1b02f refactor: redesign action rule editor layout (#4587)
* refactor: redesign action rule editor layout

* refactor(action): enhance action setting layout and functionality

- Introduced a new ShareImportSection component for better organization of action sharing and importing features.
- Updated EmptyActionPlaceholder styles for improved UI consistency.
- Refactored ActionButtonGroup to utilize useCallback for better performance.
- Adjusted layout and styling across various components for a cleaner and more cohesive design.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(action): improve layout and functionality of action components

- Integrated ScrollArea for better scrolling behavior in RuleList and RuleCard components.
- Enhanced styling for various sections, including WhenSection and ThenSection, to improve visual consistency.
- Updated button variants and class names for better adherence to design tokens.
- Refactored layout structures to ensure a more cohesive user experience across action-related components.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(action): enhance RuleList and context menu functionality

- Introduced RuleListItem component to improve the structure and readability of the RuleList.
- Added context menu support for rule deletion, enhancing user interaction.
- Updated the delete rule logic to handle selected index adjustments more intuitively.
- Improved styling and layout for better visual consistency across action components.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(action): update icon usage in CompactRuleCard

- Replaced icon classes in CompactRuleCard component to use MingCute icons for better consistency and adherence to design tokens.
- Updated the arrow icons to `i-mingcute-arrow-up-line` and `i-mingcute-arrow-down-line` for improved visual clarity.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(action): update RuleCardToolbar to use Button component

- Replaced the native button element with the Button component from the UI library for better consistency and adherence to design tokens.
- Updated button properties to align with the new component's API, enhancing the overall styling and functionality of the RuleCardToolbar.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(action): clean up RuleCardToolbar button class

- Removed commented-out className from the button in RuleCardToolbar for improved code clarity and maintainability.
- This change aligns with the ongoing efforts to streamline component code and enhance readability.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 16:16:42 +08:00
DIYgod 2d5c94587b feat: server shorcuts 2025-10-23 11:31:35 +08:00
Innei 2d66d07d34 feat(ai-chat): add shortcut functionality with AI page support
- Updated the ChatShortcutsRow component to include logic for displaying shortcuts based on the AI page context.
- Added a new target option for shortcuts to be displayed specifically on the AI page.
- Modified the ShortcutModalContent to allow users to select the AI page as a target for shortcuts.
- Updated localization files to include new translations for the AI page shortcut target.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 22:57:32 +08:00
Stephen Zhou bddab57de7 fix: tooltip for date 2025-10-22 17:07:57 +08:00
DIYgod 0fa7a8221c feat: add last used login method tracking and localization updates 2025-10-21 21:45:44 +08:00
Innei 8ab91cd157 feat(ai): redesign command pill style
- Updated Shortcut components to include icon rendering and a command prefix for better user experience.
- Modified shortcut trigger patterns to use '/' instead of '#' for consistency across the application.
- Added new icon selection feature in ShortcutModalContent for improved customization.
- Updated localization files to include new icon-related strings.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 21:40:56 +08:00
Stephen Zhou 36bc50b1c0 feat: separation for mentions 2025-10-21 12:27:39 +08:00
Innei 43a91c200c chore: adjust ai settings
Updated the AISmartSidebar component to utilize CSS animations instead of motion/react for smoother performance. Introduced a new hook to manage prompt visibility based on focusable scope, enhancing user experience. Removed the label from the PersonalizePromptSection for a cleaner UI and updated localization files accordingly.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 20:44:13 +08:00
DIYgod fafc98208a feat(ai-settings): update section titles and improve layout for task management 2025-10-20 17:43:02 +08:00
DIYgod f100d09efd feat: remove ai export 2025-10-17 11:11:00 +08:00
Innei f5292422c3 feat(ai): implement dynamic chat title generation and UI updates
- Added functionality to generate and update chat titles based on user messages and AI responses.
- Introduced a button in the EditableTitle component to trigger title generation, enhancing user experience.
- Updated localization files to include new strings for title generation actions in English, Japanese, and Chinese.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-16 22:04:18 +08:00
Innei 8ac1650f1a feat(ai): update timeline summary options in ChatInput component
- Replaced the text for timeline summary options in the ChatInput component to enhance clarity.
- Updated localization files for English, Japanese, and Chinese to reflect the new text for timeline summary options.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-16 21:19:41 +08:00
DIYgod 3591c115f9 feat: chat default title 2025-10-16 17:29:57 +08:00
DIYgod 6fa873ec25 feat(shortcuts): enhance shortcut management with contextual targeting and UI updates 2025-10-15 22:39:32 +08:00
DIYgod 0f638f6c32 feat(i18n): add translation keys for timeline summary options 2025-10-15 21:08:37 +08:00
DIYgod 7a9c95db4a feat: add new folo bot icon 2025-10-09 21:49:55 +08:00
songkeys ecb7e5c1c6 feat: new onboarding 2025-10-09 20:57:26 +08:00
Stephen Zhou 907655e1aa refactor: remove startupScreen option 2025-10-09 17:53:29 +08:00
RieN 7z ba236f6bb9 feat: add image-only view setting and related UI updates (#4524)
* feat: add image-only view setting and related UI updates

- Introduced a new setting for image-only view mode.
- Updated components to conditionally render based on the new setting.
- Added translations for the new feature in multiple languages.

* fix: changelog
2025-10-07 01:20:13 +08:00
Innei c27aced55b fix: timeline chat session unique
- Introduced localization for "New Chat" and timeline summary title in multiple languages.
- Updated AIChatRoot to accept chatId as a prop for better state management.
- Refactored useChatHistory to utilize localized titles for chat sessions.
- Improved ChatHeader and ChatMoreDropdown to leverage translation for tooltips and messages.
- Enhanced WelcomeScreen to set a localized title for the timeline summary.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-29 20:24:50 +08:00
lawvs fa7a6e18d8 feat(i18n): add translations for task management features
- Implemented internationalization for task scheduling, actions, and modal titles.
- Updated existing components to utilize translation functions for better localization support.
2025-09-26 16:29:15 +08:00
DIYgod 54e8c87508 feat: remove tip and boost 2025-09-25 21:35:46 +08:00
Innei 09f8d1d3bf feat(ai-chat): enhance date mention functionality with new relative date options
- Added support for relative date mentions for the last 15 days and specific weekdays (Monday to Sunday) in the AI chat.
- Updated localization files to include translations for the new date mention keys in English, Japanese, and Simplified Chinese.
- Refactored the date mention configuration to improve clarity and maintainability.

These changes aim to provide users with more flexible date mention options, enhancing the overall user experience in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-25 00:23:50 +08:00
Innei 091a4740ba feat(ai-chat): enhance date mention functionality and localization
- Introduced new date mention capabilities, allowing for relative date mentions such as "today," "yesterday," and various ranges (e.g., "last 3 days").
- Updated localization files to include translations for new date mention keys in English, Japanese, and Simplified Chinese.
- Refactored mention handling to improve the display of date mentions, ensuring they are formatted correctly based on user language settings.
- Added support for dynamic display names based on date ranges, enhancing user experience in the AI chat interface.

These changes aim to provide a more intuitive and localized experience when users interact with date mentions in the AI chat.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 22:20:50 +08:00
Innei 97505e93cf fix(locales): normalize description punctuation across multiple languages
- Updated various description strings in the locales to ensure they end with appropriate punctuation, enhancing consistency and readability.
- Adjusted entries in English, Japanese, Simplified Chinese, and Traditional Chinese locales to follow sentence case and proper punctuation rules.

These changes aim to improve the overall user experience by providing clearer and more professional text presentation across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-24 14:05:06 +08:00
Innei 87935aa3c5 fix(modal, ai-chat, settings): enhance modal padding, streamline animated markdown, and add timeline tabs customization
- Adjusted padding in the modal component for improved layout consistency.
- Refactored the `MarkdownAnimateText` component to simplify text animation logic and improve rendering of various input types.
- Introduced a new customization option for timeline tabs in the settings, enhancing user experience and flexibility.

These changes aim to improve the overall UI consistency and provide users with more customization options in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-23 23:58:23 +08:00
DIYgod 0011034254 feat: add timeline summary feature 2025-09-17 17:39:49 +08:00