Commit Graph

890 Commits

Author SHA1 Message Date
Stephen Zhou 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
Cyandev 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
DIYgod 79b0dab3b4
feat: add last used login method tracking in LoginModalContent 2025-10-21 20:01:10 +08:00
DIYgod 7507270b39
chore: update dependencies 2025-10-21 16:33:03 +08:00
Innei b9fe2903fa
fix(TextAreaWrapper): import React to resolve JSX issues
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-21 01:29:27 +08:00
Innei 414ab5232f
feat: lexical editor more functional
Added AutoLinkPlugin and TabIndentationPlugin to the LexicalRichEditor for improved user experience. Introduced ExitCodeBoundaryPlugin to manage caret behavior when exiting code contexts and TripleBacktickTogglePlugin for toggling code blocks. Updated node imports and types to support these new features, enhancing the editor's capabilities.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 20:48:59 +08:00
Innei 1b89ea0af0
refactor(ai-chat): simplify isEmpty state checks in ChatInput and LexicalRichEditor
Updated the ChatInput and LexicalRichEditor components to streamline the logic for determining if the editor is empty. The isEmpty state now directly utilizes the $getRoot().isEmpty() method, enhancing code clarity and maintainability. Removed unnecessary text content checks in favor of a more efficient approach.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 19:58:48 +08:00
Innei 97d77c4868
feat(ai-chat): enhance ChatInput and EditableMessage components with height adjustments
Updated the ChatInput and EditableMessage components to set a fixed height for the LexicalRichEditor, improving the layout consistency. Additionally, refactored the AITaskModal to manage prompt state outside of react-hook-form, allowing for better control over the prompt length and submission handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-20 19:49:06 +08:00
Stephen Zhou 86980e71f6
feat: update date mention and mention information (#4578) 2025-10-20 17:34:39 +08:00
Innei ef0af46e6f
fix: update text autospace classes in ListItem, EntryTitle, and ArticleLayout components
- Replaced `[text-autospace:auto]` with `autospace-normal` class in ListItem, EntryTitle, and ArticleLayout components to standardize text spacing.
- Added a new utility class `autospace-normal` in tailwind.css to ensure consistent text rendering across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-19 23:44:44 +08:00
Innei 0602e74500
refactor: replace AIShortcutButton import path and enhance gradient handling
- Updated the import path for the AIShortcutButton component to the new location.
- Introduced a more flexible gradient handling function that adapts based on the dark/light mode.
- Removed the old AIShortcutButton component file as it is no longer needed.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-18 19:39:46 +08:00
Stephen Zhou 9a8bfffb38
feat: rich editor support for prompt and task (#4574) 2025-10-17 21:56:07 +08:00
Innei 2a55f9276a
chore(ui): add size prop for switch
- Updated the prompt input field with additional padding for better usability.
- Added size prop to the Switch component, allowing for small and medium sizes.
- Adjusted styles for the Switch component to accommodate the new size options, ensuring consistent appearance across different sizes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-10-17 21:04:04 +08:00
DIYgod 5f4e47da07
feat: make summarize timeline shortcut undeletable 2025-10-17 20:19:18 +08:00
DIYgod 2607e2042b
feat(ai): refine summarization prompt for clarity and context 2025-10-17 15:22:45 +08:00
lawvs 8c96029432 fix(ai): update default button background color for improved visibility 2025-10-17 15:14:03 +08:00
DIYgod ab257747be
feat(ai): update default button styles for improved visibility 2025-10-17 14:25:11 +08:00
DIYgod 6966ec56ad
feat(ai): add default shortcuts for summarization and analysis 2025-10-17 12:02:40 +08:00
DIYgod 6fa873ec25
feat(shortcuts): enhance shortcut management with contextual targeting and UI updates 2025-10-15 22:39:32 +08:00
Stephen Zhou 35cd41e3fa
refactor: remove view--1 (#4548) 2025-10-15 21:51:40 +08:00
Stephen Zhou 157da4d1bd
fix: do not skip summary for short content 2025-10-11 09:55:40 +08:00
Innei 99ed348352
feat(ai): talk about ai timeline summary
Signed-off-by: Innei <tukon479@gmail.com>
2025-10-10 22:46:34 +08:00
Stephen Zhou 8c9784202c
refactor: move checkLanguage to utils 2025-10-10 15:23:42 +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
Stephen Zhou 4595666cd5
chore: fix typecheck 2025-10-09 10:24:50 +08:00