Commit Graph
914 Commits
Author SHA1 Message Date
DIYgod 4e1c9bfdb4 feat: add moonshotai provider and user role priority constants 2025-11-15 12:10:03 +08:00
DIYgod e48d40a7e7 chore: update package versions for client-sdk and ai-tools 2025-11-15 12:09:47 +08:00
Innei 16c005aa57 style: enhance code highlighter and login button appearance
- Updated CSS for the code highlighter to improve layout and add custom scrollbar styles.
- Refined the Shiki component with a subtle glow effect and improved header layout.
- Adjusted the LoginButton icon size and color for better visibility.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-14 21:31:41 +08:00
DIYgod 94c3b91699 feat: replace hcaptcha with recaptcha-v3 2025-11-14 21:09:10 +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
Innei 35437ecf8e feat(auth): allow loginless
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-14 00:32:34 +08:00
DIYgod abde9948be fix: update Discord invite link across documentation and code 2025-11-13 11:47:05 +08:00
DIYgod 54e5e84617 feat: ai shortcuts 2025-11-12 20:46:46 +08:00
DIYgod e59f98e85d feat: subscription limit warning 2025-11-12 11:45:12 +08:00
Stephen Zhou 9c2754134d chore: paid settings level 2025-11-11 19:29:48 +08:00
Stephen Zhou 5f0e41fa5d chore: add basic role enum 2025-11-11 15:06:10 +08:00
Stephen Zhou 03c0cc54b5 chore: downgrade linkedom 2025-11-08 15:17:47 +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
DIYgod 2ff37e1094 fix: use exact package version 2025-11-06 21:30:35 +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
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
lawvs 9b9ee76bcc fix: handle undefined initialValue and check for empty JSON root 2025-11-06 15:32:15 +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
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 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
songkeys 7e03fee949 refactor(onboarding): new tracking points 2025-11-02 17:40:29 +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
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 220702c456 Revert "chore: update API URLs to use folo.is domain"
This reverts commit ad75a1e47b.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-30 17:06:20 +08:00
DIYgod 9a8228fc7a chore: update URLs to use folo.is domain in configuration files 2025-10-30 09:04:39 +08:00
Innei ad75a1e47b chore: update API URLs to use folo.is domain
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-29 22:54:53 +08:00
DIYgod d0a7ca9db1 fix: types 2025-10-29 21:28:17 +08:00
DIYgod 6c369b4988 chore: update @follow-app/client-sdk version to 0.3.75 in pnpm-workspace.yaml 2025-10-29 21:07:44 +08:00
songkeys e956be9d10 fix: refresh views after subscription 2025-10-29 15:17:04 +08:00
Innei 19d92cf57e fix: some element styling
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-27 20:41:56 +08:00
Konv Suu 85df73f99f fix: toast close button was clipped and its focus style (#4609)
* fix: toast close button was clipped and its focus style

* lint
2025-10-26 09:22:04 +08:00
Konv Suu 13bc195ff1 feat: add language params to video url (#4610) 2025-10-26 09:21:33 +08:00
Innei 4fb9321b3f chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-25 22:43:26 +08:00
CyandevandInnei 876d51d1cd refactor: progressive blur effect (#4607)
* refactor: progressive blur effect

* Update packages/internal/components/src/ui/progressive-blur/index.tsx

---------

Co-authored-by: Innei <tukon479@gmail.com>
2025-10-25 22:42:45 +08:00
Innei 21124f50c9 fix(entry-content): scroll to top on content animation start, fixed #4599
- Added functionality to scroll to the top of the EntryContent when the animation starts, utilizing the springScrollTo utility.
- Removed unused zenMode method from the RenderGlobalContext interface to clean up the code.

These changes enhance the user experience by ensuring the content is visible upon entry and streamline the codebase by removing unnecessary methods.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-24 21:22:40 +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 b53db73211 feat: implement glassmorphic depth design system for UI components
- Introduced a comprehensive glassmorphic design system to enhance visual hierarchy in UI elements such as modals, toasts, and floating panels.
- Added detailed design principles, color usage guidelines, and component structure examples to AGENTS.md.
- Updated AISmartSidebar component to utilize layered glass effects and smooth animations.
- Enhanced CSS styles for glassmorphic elements, ensuring performance optimizations and accessibility considerations.

These changes aim to elevate the user experience through refined aesthetics and improved interaction dynamics.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 21:55:13 +08:00
Innei e26a3d4b10 fix: ui element shadow and height
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 21:16:05 +08:00
DIYgod 53ec8ec512 feat: update AI feature integration and adjust layout styles 2025-10-23 15:51:16 +08:00
DIYgod 2d5c94587b feat: server shorcuts 2025-10-23 11:31:35 +08:00
Innei 1cf837d475 fix(settings): update ACCENT_COLOR_MAP to use 'orange' as default fallback
- Changed the ACCENT_COLOR_MAP definition to use a type-safe approach with `satisfies`.
- Updated the fallback color in `getAccentColorValue` function from `blue` to `orange` for consistency in accent color handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 01:31:50 +08:00
Innei 05981958a8 perf(trans): batch transition fetch
- Bump version of `@follow-app/client-sdk` to 0.3.69 in `pnpm-lock.yaml` and `pnpm-workspace.yaml`.
- Update `@folo-services/ai-tools` version to 0.2.44 in `apps/desktop/layer/renderer/package.json`.
- Modify Vite configuration to exclude `@follow-app/client-sdk` from optimization.
- Refactor translation hooks to use `enabled` instead of `setting` for clarity.
- Introduce a new utility function `readNdjsonStream` for handling NDJSON streams in the store module.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-23 01:30:12 +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 015f4ea10a fix(editor): is input empty state
- Modified the isEmpty method in both ChatInput and LexicalRichEditor components to check if the editor's content is empty by verifying if the trimmed text content is an empty string.
- Added an accessories prop to LexicalRichEditor for improved flexibility in rendering additional UI elements.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-22 21:51:06 +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
DIYgod f40170e9ac fix: electron dev 2025-10-22 15:10:08 +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