Commit Graph
5773 Commits
Author SHA1 Message Date
lawvs df5acca9b7 chore: tweak switch of notify channels 2025-09-05 15:50:59 +08:00
Whitewater f2605390ef feat: add notification channels configuration (#4442)
* feat: add notification channels configuration

- Introduced NotifyChannelsConfig component for managing notification preferences.
- Updated AITaskModal to include options for notification channels.
- Enhanced task schema to support notification channels in task creation and updates.
- Added translations for notification-related strings in English, Japanese, and Chinese.

* fix: update error handling

* chore: set stale time for session list query to 1 minute

* fix: update refetch interval for AI chat session list query

* chore: update @follow-app/client-sdk to version 0.3.53

* fix: shamefully ignore ts error
2025-09-05 15:47:22 +08:00
Stephen Zhou 430e015207 Revert "feat: update transcript design"
This reverts commit a3e13ace93.
2025-09-05 10:45:26 +08:00
Innei bf2b5564c2 fix(ui): optimize tooltip duration
- Removed the `tooltipDefaultOpen` prop from the `ActionButton` component to simplify the API.
- Refactored the tooltip structure for improved readability and maintainability, ensuring consistent rendering of tooltip content.

These changes enhance the clarity and efficiency of the `ActionButton` component's tooltip functionality.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-05 00:40:15 +08:00
Innei 2c912fae20 fix(modal): Improve header action motion with more modal compliant UX design
- Introduced a new `HeaderActions` component with animation effects for improved user interaction.
- Updated the `PreviewMediaContent` to include the `HeaderActions` component, enhancing the visual feedback during media preview.

These changes enhance the user experience by providing dynamic interaction elements in the media preview interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-05 00:23:01 +08:00
Innei 68f92593b0 fix(ai-chat): enhance layout responsiveness in AIModelIndicator and ChatInterface components
- Updated the AIModelIndicator to adjust the visibility of the model name based on medium screen sizes.
- Modified the ChatInterface to ensure the GlobalFileDropZone uses the correct container class for improved layout consistency.

These changes improve the adaptability and user experience of the UI components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-04 23:41:37 +08:00
Innei f012707ebf fix(ai-chat): improve layout responsiveness in AIModelIndicator and ChatInterface components
- Updated the AIModelIndicator to conditionally display the model name based on screen size, enhancing visibility on smaller devices.
- Modified the ChatInterface to utilize a container class for better layout management, ensuring consistent styling across different screen sizes.

These changes enhance the user experience by improving the adaptability of the UI components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-04 23:38:33 +08:00
Innei 73a4e01e56 chore(ai): sync streamdown parser logic
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-04 19:17:05 +08:00
Innei d81dc6c1f1 fix(ai-chat): enhance AI reasoning display with arrow indicator
- Added a `hideArrow` prop to the `CollapseCss` component for better UI control.
- Introduced a new icon that appears on hover, improving the visual feedback for users interacting with the AI reasoning section.

This update enhances the user experience by providing clearer interaction cues in the AI chat display.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-04 14:17:25 +08:00
songkeys 3461aa2a64 chore: update @follow-app/client-sdk to 0.3.51 (#4441)
* chore: update @follow-app/client-sdk to 0.3.51

* fix: resolve conflict
2025-09-04 14:02:12 +08:00
lawvs b6f5d7074f fix: remove unused ipcServices assignment 2025-09-04 13:49:19 +08:00
Stephen Zhou 6d56c83ffa fix: i18n for ai operation type 2025-09-04 11:08:32 +08:00
lawvs a1c1f1649a fix: update lock file 2025-09-04 04:36:52 +08:00
Innei 3bee8dbd20 feat(api): integrate FollowClient for API interactions
- Introduced the FollowClient from `@follow-app/client-sdk` to manage API requests and responses, enhancing the structure and maintainability of the API client.
- Refactored the API client to utilize the new FollowClient, including request and response interceptors for logging and error handling.
- Updated the `updateNotificationsToken` and `deleteNotificationsToken` functions to use the new API methods.
- Added a new IPC service for better communication between the main and renderer processes.

This update improves API interaction efficiency and enhances error handling across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-04 01:06:39 +08:00
Innei 9a7d11504a refactor(ai-chat): simplify loading and error states in display components
- Removed unnecessary props and card wrappers from LoadingState and ErrorState components, streamlining their structure.
- Updated the withDisplayStateHandler function to reflect these changes, enhancing readability and maintainability.
- This refactor improves the overall performance and user experience of the AI chat display components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-03 23:10:14 +08:00
Stephen Zhou 2443d20461 fix: add data block for main view 2025-09-03 23:07:40 +08:00
Innei d64b22adb8 feat(ai): re-design ai subscription component
- Updated the version of `@folo-services/ai-tools` from `0.2.34` to `0.2.36` in `pnpm-lock.yaml` and `package.json`.
- Updated the version of `@folo-services/drizzle` from `0.1.24` to `0.1.25` in `pnpm-lock.yaml`.
- Refactored the `AIDisplaySubscriptionsPart` component to streamline the rendering of subscription items and improve navigation handling.
- Removed unused code and optimized the component structure for better maintainability.

This update enhances the AI tools integration and improves the user experience in the AI display component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-03 23:04:25 +08:00
Innei 12ded3b345 fix(discover): should validate form values
- Added form validation schema to the DiscoverForm for better input handling.
- Refactored keyword handling in DiscoverForm to improve performance using startTransition.
- Updated InboxTable to display a message when no inboxes are available, enhancing user feedback.
- Added localization for the new no inbox message.

This update improves user experience and input validation in the discover module.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-03 21:27:45 +08:00
Stephen Zhou 0ca804adb7 feat: add main view block 2025-09-03 17:21:27 +08:00
DIYgod d234f64d89 chore(workflow): remove max-tokens setting from similar-issues workflow 2025-09-03 16:12:27 +08:00
DIYgod 0b65d723c5 chore(workflow): update token in similar-issues workflow 2025-09-03 16:10:34 +08:00
DIYgod 360e6553e5 feat(ai): simplify EntrySummaryCard and remove unused quick actions
- Removed the `onSend` prop from `EntrySummaryCard` and associated quick actions logic, streamlining the component.
- Updated the `WelcomeScreen` to reflect the changes in `EntrySummaryCard`.
- Removed the `useSmartQuickActions` hook as it was no longer needed.
- Cleaned up localization files by removing the "conversation_starters" key.

This refactor enhances the clarity and maintainability of the AI chat components.
2025-09-03 15:52:51 +08:00
Stephen Zhou 62dae268cf fix: align entry item skeleton 2025-09-03 10:54:49 +08:00
Innei 2f5bbb9d9f feat(chat): auto-position user message to the viewport first
- Introduced new state and refs to manage the minimum height of the message container dynamically, improving layout stability during message sending.
- Implemented scroll positioning adjustments to ensure user messages are displayed correctly after sending.
- Updated the Messages component to accept a ref for better height calculations, enhancing the overall user experience in the chat interface.

This update improves the responsiveness and visual consistency of the chat interface during interactions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-03 00:49:13 +08:00
Innei c27a491c3f fix(modal): improve modal exit handling with deferred value
- Updated the `useHasModal` hook to utilize `useDeferredValue`, addressing issues with simultaneous hotkey responses during modal exit.
- This change enhances the responsiveness and reliability of modal interactions, ensuring a smoother user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 22:30:11 +08:00
Innei 607d6b3d5e fix(ai): restore ai summary card shown when chat panel closed
- Updated the modal's close logic to call `readyToClose()` before proceeding with the close action, ensuring that the animation state is properly managed.
- This change enhances the user experience by preventing premature closure of the modal during animations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 22:29:37 +08:00
Innei 40722d27ba feat(tutorial): integrate ScrollToExitTutorial for first-time users
- Removed the `show` prop from `ScrollToExitTutorial` and integrated it with the AI feature flag to determine visibility.
- Updated `EntryScrollingAndNavigationHandler` to display the tutorial for first-time users based on the presence of `entryId`.
- Cleaned up the `EntryHeaderImpl` component by removing the previous tutorial implementation.

This update enhances user onboarding by providing a tutorial for new users navigating the scroll-to-exit feature.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 21:47:17 +08:00
Innei 7897675a88 refactor(modal): streamline animation handling in modal component
- Removed the local state for closing animation and integrated it into the `useModalAnimate` hook.
- Updated the `useModalAnimate` hook to manage the closing state internally, improving encapsulation and reducing prop drilling.
- Enhanced the modal's close logic to prevent multiple calls during closing.

This refactor improves the maintainability and clarity of the modal component's animation logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 21:42:28 +08:00
DIYgod 7fc979536b chore: add endpoint to similar_issues workflow for inference integration 2025-09-02 18:34:14 +08:00
lawvs d8c6783b6a refactor: update message normalization to include metadata handling 2025-09-02 18:28:35 +08:00
lawvs 55d8cb2566 fix: prevent default action on audio play click 2025-09-02 18:27:48 +08:00
DIYgod 354b1b1b17 chore: add endpoint to similar_issues prompt configuration for inference 2025-09-02 17:39:38 +08:00
Whitewater c219971425 fix: type lint (#4430)
* fix: type lint

* fix: types
2025-09-02 14:14:05 +08:00
Innei c74bffd96d fix(ai): welcome screen overflow
- Added `ScrollArea` component to the `WelcomeScreen` to enhance scrolling behavior and layout management.
- Updated the structure of the component to ensure better responsiveness and user experience.

This update improves the overall usability of the WelcomeScreen in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 00:54:30 +08:00
Innei 125bfbed06 refactor(ai): ai display components
- Bumped version of `@folo-services/ai-tools` from 0.2.33 to 0.2.34 in package.json and pnpm-lock.yaml.
- Refactored `AIDisplayEntriesPart` and `AIDisplayFeedsPart` components to streamline rendering and improve user interaction.
- Updated the `withDisplayStateHandler` to accommodate input props for better state management.
- Enhanced the overall structure and readability of the display components.

This update improves the functionality and maintainability of the AI chat interface components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 00:40:43 +08:00
Innei 79bf7a86e5 feat(ai): update ai-tools and optimize chat message components animation
- Bumped version of `@folo-services/ai-tools` from 0.2.31 to 0.2.33 in package.json and pnpm-lock.yaml.
- Refactored `AIDisplayFlowPart` to improve error handling and compatibility with older data structures.
- Enhanced `AIChatMessage` and `AIMessageParts` components to support new props for better message rendering.
- Updated animation styles for chat messages to improve user experience during interactions.

This update improves the overall functionality and visual appeal of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-02 00:09:42 +08:00
Innei 1f54e024b9 feat(ai): enhance markdown rendering and animation in chat messages
- Added support for `react-markdown` and `rehype-raw` to improve markdown processing.
- Introduced `MarkdownAnimateText` component for animated text rendering during streaming.
- Updated `AIMessageParts` to utilize the new animation features.
- Refactored `AIMarkdownMessage.v2` to streamline markdown parsing and rendering.
- Created new utility components for tokenized text animation.

This update significantly enhances the user experience during chat interactions by providing dynamic and visually appealing markdown content.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-01 22:47:42 +08:00
Innei c8ba9aa2cd chore(ai): remove inappropriate fade-in animation
- Added AIMarkdownMessage.old.tsx for legacy markdown rendering.
- Introduced AIMarkdownMessage.v2.tsx with optimized streaming capabilities.
- Updated AIMessageParts to utilize the new AIMarkdownMessage.v2 component.
- Adjusted UserChatMessage and UserMessageParts to reference the appropriate AIMarkdownMessage versions.

This update enhances the markdown rendering experience during streaming interactions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-01 21:39:33 +08:00
lawvs 3b83c27571 fix: prevent horizontal overflow in modal content 2025-09-01 19:11:40 +08:00
lawvs d766af4ba3 fix: update AITaskModal to conditionally show settings tip 2025-09-01 19:09:27 +08:00
Innei e992612de6 fix: present modal in modal exit animation will stuck
- Updated modal animation styles to include perspective and z-index adjustments for improved depth perception.
- Refactored modal component to apply 3D transform styles and ensure consistent animation behavior.
- Modified MCPPresetCard and MCPPresetSelectionModal components to use new background styles for better visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-01 18:02:42 +08:00
DIYgodandClaude e2d007fd9c fix: align ItemStateLess styles with Item components across all view types
- Fixed ArticleItemStateLess to match ListItem template styling
- Fixed AudioItemStateLess to use ArticleItemStateLess (same ListItem pattern)
- Fixed NotificationItemStateLess for simple ListItem pattern (no description)
- Fixed SocialMediaItemStateLess to match custom layout with 32px avatar
- Fixed VideoItemStateLess to match GridItem template with accent dot
- Fixed PictureItemStateLess minor cleanup for masonry layout
- Updated all components to use consistent UIKit colors (text-text, text-text-secondary)
- Fixed ViewSelectorRadioGroup preview layout for grid-based views
- Fixed FeedForm button variant from "text" to "ghost"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 17:54:29 +08:00
Innei cfc68bee8d fix(ai): ai usage modal scrollarea
- Updated `UsageAnalysisSection` to include additional modal content class for better spacing.
- Refactored `DetailedUsageModal` to improve layout and added padding for better visual consistency.
- Adjusted `EfficiencyTab`, `HistoryTab`, `OverviewTab`, and `PatternsTab` components to include horizontal padding for improved aesthetics.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-01 17:00:46 +08:00
DIYgod 5ef0d70130 chore: update model reference in similar_issues prompt to use custom/openai/gpt-5 2025-09-01 16:08:43 +08:00
Innei aacac936ea fix: opml selection state, fixed #4424
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-01 15:49:36 +08:00
Innei a295737610 fix(ai): handle undefined uploadStatus in file display content
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-01 15:09:39 +08:00
Whitewater b325aa5319 feat(ai): add AI chat session management features (#4386)
* feat: add AI chat session queries

* feat(ai): add ChatSessionDropdown component to manage chat sessions

* refactor: renaming ChatSessionDropdown to TaskReportDropdown in headers

* chore: clean code

* feat: add AIChatSessionService for syncing chat session messages

* refactor: improve unread session handling

* feat: ensure chat session is marked as seen after message persistence

* feat: implement pagination for fetching unseen remote messages

* fix: prefer original message start time for createdAt in message conversion

* feat: implement active chat in AI setting

* chore: clean code

* fix: code review

* fix: add asChild prop to control DropdownMenuTrigger behavior

* feat: add button to view scheduled tasks in settings

* chore: enhance DropdownMenuTrigger with unread session indicator
2025-09-01 15:02:07 +08:00
DIYgod 1a76ea0744 chore: update repository context in similar_issues prompt to use dynamic variable 2025-08-31 21:15:27 +08:00
DIYgod 5582962674 fix(workflow): add similarity_score to similar_issues prompt schema and update output formatting 2025-08-30 19:39:00 +08:00
DIYgod ca4be7aebb fix(workflow): ensure URL property is correctly defined in similar_issues prompt schema 2025-08-30 18:31:28 +08:00