Commit Graph
189 Commits
Author SHA1 Message Date
DIYgod 6e1f9d8a8f feat: add PersonalizePromptSection to AI settings 2025-11-20 20:14:49 +08:00
DIYgod 6913079254 feat: enhance AI timeline functionality and improve settings integration 2025-11-20 15:01:16 +08:00
DIYgod 26c842751a feat: add AI timeline sorting feature with customizable prompt settings 2025-11-19 22:36:15 +08:00
Innei add03d787b refactor: simplify dependency array in SettingItemButtonImpl component
- Removed unused dependencies from the effect hook in the SettingItemButtonImpl component for cleaner code and improved readability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-19 00:14:45 +08:00
Innei 09825fb7d1 refactor: restructure app tip components and enhance onboarding experience
- Removed the AppTip component and its controller, consolidating functionality into AppTipModalContent.
- Updated MainDesktopLayout to utilize the new modal for onboarding tips.
- Enhanced the modal presentation with animation and improved layout for better user experience.
- Cleaned up unused imports and streamlined the app tip logic for clarity and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-18 23:26:01 +08:00
Whitewater 6d808df3e6 fix(integration): escaping content for json body in custom integrations (#4728)
* fix: add jsonEscape option for placeholder replacement

Enhance the replacePlaceholders method to support JSON escaping of values when specified in options. This improves handling of JSON strings in templates.

* fix(integration): add default Content-Type header for non-GET methods
2025-11-18 20:17:19 +08:00
Innei 52a0a75983 refactor: update UI components for improved styling and functionality
- Replaced hardcoded color values with CSS variables for better maintainability in AGENTS.md.
- Enhanced the Subscription Feeds section with a sticky action bar and improved layout in feeds.tsx.
- Updated the Personalize Prompt section to use a more visually appealing design with a backdrop blur effect.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-18 16:50:33 +08:00
Innei fdd7d5adf8 refactor: update notifications settings UI for improved layout and accessibility
- Removed unused imports and components to streamline the code.
- Enhanced the notifications section layout with improved spacing and styling.
- Updated the display of notification channels to use a more accessible design.
- Added loading and empty state indicators for better user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-18 16:29:14 +08:00
Innei 7c06ca6d84 feat: implement BYOK (Bring Your Own Key) feature for AI providers (#4727)
* feat: implement BYOK (Bring Your Own Key) feature for AI providers

- Added BYOK section in AI settings to manage custom API keys.
- Introduced components for adding, editing, and deleting BYOK providers.
- Updated translations for BYOK-related UI elements.
- Modified existing components to support new BYOK functionality.

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

* feat: enhance BYOK provider support and update UI elements

- Added support for the "OpenRouter" BYOK provider in relevant components.
- Updated translations for security-related UI elements to reflect new descriptions.
- Adjusted styling in settings components for improved visual consistency.

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

* feat: refine BYOK provider management and enhance UI

- Introduced a new constants file for BYOK provider options.
- Updated the ByokProviderModalContent to filter available providers based on configured ones.
- Enhanced the ByokSection to manage provider addition and editing more effectively.
- Adjusted table styling in the PlanComparisonTable for improved readability.
- Added new translation keys for "AI Bring Your Own Key" in multiple languages.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-18 15:52:54 +08:00
Stephen Zhou 042cbdd2fa feat: manage subscription on stripe 2025-11-18 15:42:00 +08:00
Stephen Zhou 958e0a6d41 refactor: remove onetime payment 2025-11-18 12:31:44 +08:00
Stephen Zhou 849c18ce8c fix(plan): new or upgrade 2025-11-18 11:44:25 +08:00
Stephen Zhou b29bf9f90c fix: button text and discount desc 2025-11-18 09:57:22 +08:00
InneiandDIYgod c7d0165eb8 feat: refine onboarding (#4708)
* feat(ai-onboarding): implement AI onboarding modal and related components

- Added AI onboarding modal with step-by-step guidance for new users.
- Introduced components for feed selection, import steps, and chat interface.
- Integrated animations and user interactions for a smoother onboarding experience.
- Updated localization files to support new onboarding dialog texts.

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

* feat(app-tip): enhance onboarding experience with next step functionality

- Added 'hasNextStep' prop to AppTip and AppTipDialog components to manage step navigation.
- Updated button actions to reflect the new step logic, allowing users to proceed or finish the onboarding.
- Introduced new localization strings for onboarding descriptions and actions in multiple languages.
- Added a button in the settings about tab to trigger the AI onboarding experience.

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

* refactor(app-tip): remove video placeholder and related constants for a cleaner onboarding experience

- Eliminated video placeholder text and associated constants from AppTipMediaPreview and constants.ts.
- Updated useAppTipController to remove media references, streamlining the onboarding steps.
- Revised localization strings to reflect the new onboarding narrative without video references.

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

* refactor(ai-onboarding): streamline onboarding flow and enhance UI components

- Removed the DiscoverImportStep and PreFinish components to simplify the onboarding process.
- Updated step management in the onboarding modal to focus on essential steps.
- Enhanced the AIChatPane and FeedsSelectionList components with improved layout and animations.
- Introduced new localization strings for empty feed selection scenarios.
- Updated modal transitions for a smoother user experience.

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

* feat(app-tip): enhance media preview component to support image and video types

- Added support for distinguishing between video and image media types in AppTipMediaPreview.
- Updated rendering logic to conditionally display video or image elements based on media type.
- Introduced a fallback icon for error handling based on media type.
- Enhanced state management for video playback and replay functionality.

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

* feat(renderer): add support for Markdown rendering in ArticleLayout

- Introduced EntryContentMarkdownRenderer for handling Markdown content.
- Updated ArticleLayout to conditionally render HTML or Markdown based on entry type.
- Refactored EntryContentHTMLRenderer to use a shared props type for better type safety.
- Added types for entry content renderer props to improve code clarity.

This enhancement allows for more flexible content rendering in the application.

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

* feat(entry-actions): integrate onboarding entry checks into action configurations

- Added `isOnboardingEntryUrl` utility to identify onboarding entries based on their URL.
- Updated `useEntryActions` to disable specific actions when the entry is an onboarding entry.
- Enhanced `MoreActions` and `HeaderActions` components to support the disabled state for actions based on onboarding status.
- Refactored `ArticleLayout` to utilize the new onboarding entry check for rendering logic.

This update improves user experience by preventing certain actions on onboarding entries.

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

* feat(app-tip): enhance onboarding experience with new user guide state management

- Introduced `useNewUserGuideState` for managing the state of the new user onboarding guide.
- Added `APP_TIP_DISMISS_EVENT` constant for handling dismissal events.
- Refactored `useAppTipController` to utilize the new state management, improving clarity and functionality.
- Updated `EntryColumnContent` to integrate new user guide navigation logic.

This update streamlines the onboarding process and enhances user experience by providing better state management for onboarding tips.

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

* feat(app-tip): enhance media rendering in AppTipDialog and introduce OpmlAbstractGraphic

- Updated AppTipDialog to conditionally render a custom React node for media previews.
- Added reactNode property to AppTipStepMedia type for improved media handling.
- Introduced OpmlAbstractGraphic component for enhanced visual representation in onboarding tips.
- Updated useAppTipController to utilize the new OpmlAbstractGraphic in onboarding media.

These changes improve the onboarding experience by providing more dynamic media content.

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

* feat(OpmlAbstractGraphic): implement animated paths and dynamic rendering

- Added a new OpmlAbstractGraphic component to visually represent RSS readers with animated paths.
- Introduced deterministic pseudo-random path generation for smoother animations.
- Enhanced component responsiveness with layout effects and resize handling.
- Implemented hand-drawn style connector lines to improve visual appeal.

These changes enhance the onboarding experience by providing a more engaging and dynamic visual representation of RSS readers.

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

* feat(app-tip): add extra content support in AppTipDialog and enhance useAppTipController

- Updated AppTipDialog to render additional content through the new `extra` property in AppTipStep.
- Modified AppTipStep type to include an optional `extra` field for custom React nodes.
- Introduced AiSplineIndicatorToggle component in useAppTipController for toggling AI settings.

These changes improve the flexibility of the AppTipDialog and enhance the onboarding experience by allowing for dynamic content rendering.

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

* feat(app-tip): implement useAppTipController for enhanced onboarding experience

- Introduced useAppTipController to manage the onboarding flow and user guide interactions.
- Added state management for active steps, dismissal handling, and AI guide toggling.
- Integrated AiSplineIndicatorToggle for dynamic AI settings within the onboarding process.
- Enhanced event handling for debugging onboarding steps through custom events.

These changes improve the onboarding experience by providing a structured and interactive guide for new users.

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

* feat(app-tip): introduce AICopilotMedia component for enhanced AI interaction

- Added AICopilotMedia component to facilitate dynamic AI-driven conversations and recommendations.
- Integrated chat script for user-assistant interactions, showcasing AI capabilities in real-time.
- Updated useAppTipController to include AICopilotMedia in the onboarding flow, enhancing user engagement.

These changes improve the onboarding experience by providing interactive AI content that guides users through relevant information and resources.

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

* fix: update hoverMarkUnread setting to false for consistency

* feat: implement onboarding feed and entry detection

- Added utility functions to identify onboarding feeds and entries.
- Updated various components to display onboarding feeds distinctly.
- Enhanced sorting logic to prioritize onboarding feeds in lists.
- Added localization strings for onboarding feed messages.

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

* feat: add OverviewMedia component for enhanced onboarding visuals

- Introduced a new OverviewMedia component to display animated connections between onboarding elements.
- Integrated OverviewMedia into the app tip controller to enrich the new user dialog experience.
- Implemented responsive path calculations and animations for a dynamic visual presentation.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: DIYgod <i@diygod.me>
2025-11-18 01:16:40 +08:00
Stephen Zhou e1efc058cf fix: show token remaining from usage 2025-11-17 10:33:22 +08:00
DIYgod 57c579827a fix: adjust column width and text size in PlanComparisonTable; update translation for high performance AI model selection 2025-11-15 15:26:23 +08:00
DIYgod 2723f5bed7 feat: add AI model selection labels and translations for English, Japanese, and Chinese 2025-11-15 15:15:01 +08:00
Innei 3adf4feec9 feat(auth): implement login requirement for various actions
- Introduced `requiresLogin` property for menu items and actions across multiple components to enforce user authentication.
- Added `useRequireLogin` hook to manage login checks and modal presentation.
- Updated context menus, action buttons, and settings to utilize the new login guard functionality.
- Enhanced user experience by prompting login where necessary, ensuring actions are only accessible to authenticated users.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-14 15:11:14 +08:00
Stephen Zhou b37b60bf03 feat: onetime payment notice for cn users 2025-11-12 12:46:02 +08:00
Innei 3a603bf912 fix: upgrade plan modal error
- 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>
2025-11-11 23:42:57 +08:00
DIYgod a07e5eb065 fix: update feature descriptions for AI credits and requests in multiple languages 2025-11-11 20:36:33 +08:00
DIYgod 81119140e9 fix: update plans grid to display only paid plans and adjust layout for better responsiveness 2025-11-11 20:15:13 +08:00
DIYgod 2d5d076626 feat: implement timeline summarization feature and update related UI components 2025-11-11 20:02:23 +08:00
Stephen Zhou 9c2754134d chore: paid settings level 2025-11-11 19:29:48 +08:00
Stephen Zhou 262c9819c3 chore: update feature format 2025-11-11 17:16:59 +08:00
Stephen Zhou c2f7d0eae2 chore: basic plan description 2025-11-11 14:59:12 +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 3832e21b7c fix: can close ai panel
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 15:07:28 +08:00
DIYgod fef048fc2c feat(about): integrate EnvironmentDebugModalContent and enhance renderer version click handling 2025-11-06 16:25:40 +08:00
DIYgod ae97aa2b1a refactor(ai): drop floating chat panel and simplify timeline layout 2025-11-06 09:09:06 +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 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
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
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 9f192f3cbf fix(settings): simply setting modal scroll to section logic and highlight
- Renamed SettingSectionHighlightContext to SettingSectionHighlightIdContext for clarity.
- Simplified highlight registration logic and improved scrolling behavior in SettingModalContent.
- Enhanced visual feedback for highlighted sections with a new animation effect.
- Cleaned up unused code and optimized imports for better maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-30 18:11:02 +08:00
Innei 0661c5fc1e fix: setting modal initial tab logic
- Introduced SettingTabProvider for better context management of setting tabs.
- Updated SettingModalLayout to remove initialTab prop and manage tab state internally.
- Refactored SettingModalContent to utilize SettingTabProvider and streamline initial tab resolution.
- Removed unnecessary console logs and cleaned up code for improved readability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-30 17:38:05 +08:00
DIYgod bd3975b25d feat: rename ai tokens to ai credits 2025-10-29 20:17:01 +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
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
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
Innei 750a69e2f6 feat(appearance): add custom color picker for accent color selection
- Introduced a CustomColorPicker component to allow users to select custom hex colors for the accent color.
- Updated the AccentColorSelector to integrate the new color picker with a popover for better user experience.
- Enhanced the getAccentColorValue function to handle custom colors and return appropriate values for light and dark themes.
- Adjusted styles and icons for improved visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 21:35:38 +08:00
Stephen Zhou b551610a5f chore: remove ai token plan 2025-10-22 18:17:05 +08:00