Commit Graph
5738 Commits
Author SHA1 Message Date
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
DIYgod 95d07fb7d4 fix(workflow): remove state and similarity_score properties from similar_issues prompt schema 2025-08-30 18:30:18 +08:00
DIYgod e096114b22 fix(workflow): remove URI format constraint from URL property in similar_issues prompt schema 2025-08-30 18:23:10 +08:00
DIYgod 46815c7cbe fix(workflow): add additionalProperties to similar_issues_result schema for strict responseFormat 2025-08-30 18:19:04 +08:00
DIYgod ff8e9be74c fix(workflow): update model reference in similar-issues prompt to OpenAI GPT-4.1 2025-08-30 18:16:01 +08:00
DIYgod f8ab04c3ea fix(workflow): set repo context to RSSNext/Folo in similar_issues prompt 2025-08-30 18:11:21 +08:00
DIYgod c869e07e27 fix(workflow): update model reference in similar-issues prompt to use OpenAI GPT-4o 2025-08-30 18:04:51 +08:00
DIYgod 40f86889ba fix(workflow): update model reference in similar-issues prompt to use custom key 2025-08-30 17:50:15 +08:00
DIYgod 79adda7ca6 fix(workflow): remove duplicate core require in github-script steps 2025-08-30 17:29:01 +08:00
DIYgod a514eb4d80 fix(workflow): indent issue body in similar-issues to avoid YAML parse of Markdown (#, lists, code) 2025-08-30 17:25:35 +08:00
DIYgod 27ae85385a fix(workflow): represent jsonSchema as single-line JSON string to avoid YAML multiline parse issues 2025-08-30 17:10:25 +08:00
DIYgod fe26c4d4af fix(workflow): define jsonSchema as YAML mapping to resolve prompt parse error 2025-08-30 17:05:01 +08:00
DIYgod f73590892f chore: add AI MCP similar-issues workflow and prompt 2025-08-30 16:59:02 +08:00
DIYgod 579d32659c docs: add prps 2025-08-30 16:32:59 +08:00
Innei 2eff764046 feat(ai): MCP integration presets (#4398)
* init

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

* feat: mcp preset

- Bumped the version of `@follow-app/client-sdk` from 0.3.48 to 0.3.50 in both `pnpm-lock.yaml` and `pnpm-workspace.yaml`.
- Refactored button rendering logic in `ai-task-modal.tsx` for cleaner code.
- Updated status color classes in `task-item.tsx` for improved styling consistency.
- Simplified props in `MCPPresetCard.tsx` and removed loading state handling for a more straightforward UI.
- Enhanced `MCPPresetSelectionModal.tsx` by removing unnecessary loading states and labels.
- Cleaned up `MCPServiceModalContent.tsx` by removing loading state handling from buttons.
- Improved `MCPServicesSection.tsx` by adjusting OAuth handling and refetch logic on window focus.
- Added new quick setup options for GitHub and Linear in `types.ts`.

These changes aim to enhance the user experience and maintainability of the codebase.

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

* refactor: implement query optimistic hook

- Introduced a new optimistic mutation system to enhance the user experience by providing immediate feedback during create, update, and delete operations.
- Added `createOptimisticConfig` for streamlined optimistic updates across various components.
- Refactored existing mutations in `ai-task` and `MCPServicesSection` to utilize the new optimistic strategies, improving responsiveness and error handling.
- Updated documentation in `CLAUDE.md` to clarify the usage of type checking and linting processes.

These changes aim to improve the overall performance and user interaction within the application.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-29 23:59:35 +08:00
DIYgod 651bc4d099 feat: remove ai daily report 2025-08-29 21:18:21 +08:00
Stephen Zhou d8bd4f6730 fix: improve srt parser 2025-08-29 17:10:50 +08:00
Innei 861442edc5 chore(sentry): enhance Sentry configuration for improved error tracking
- Updated Sentry configuration to include new integrations such as eventFilters, moduleMetadata, httpClient, and reactRouterV6BrowserTracing.
- Expanded the list of ignored error patterns to cover more specific cases, improving error handling.
- Removed redundant error handling logic from the Sentry initialization process, streamlining the setup.

These changes aim to enhance error tracking capabilities and improve overall application stability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-29 16:26:03 +08:00
lawvs 43de844718 fix: lint 2025-08-29 13:29:06 +08:00
Innei 73fb321791 chore: bump mobile version for tf
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-28 19:02:39 +08:00
Innei 80d83e30ec chore: bump mobile version for tf
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-28 18:19:49 +08:00
Innei 483a65ba54 refactor: replace Accordion with Collapse components
- Replaced the Accordion component with the new Collapse components in ToolInvocationComponent and DiscoverImport for improved UI consistency and functionality.
- Updated related styles and structure to accommodate the new Collapse implementation.
- Removed the deprecated Accordion component files to streamline the codebase.

These changes aim to enhance the user experience by providing a more modern and flexible collapsing interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-28 18:14:13 +08:00
Stephen Zhou a3e13ace93 feat: update transcript design 2025-08-28 10:19:49 +08:00
Innei 6eb1956896 fix(transcript): adjust color
- Updated the styling of the "No transcript available" and error messages for better visual consistency.
- Simplified class names and adjusted layout properties to enhance readability and user experience.
- Ensured that active states and hover effects are more intuitive across the transcript items.

These changes aim to provide a clearer and more engaging user interface for media transcripts.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 23:59:59 +08:00
Innei 70bf3fad2b feat(ai): add ai context usage info
- Upgraded the version of `@folo-services/ai-tools` from 0.2.20 to 0.2.31 in the package.json file.
- Introduced a new `TokenUsagePill` component to display token usage information in the AI chat message.
- Updated various components to utilize the new `TokenUsagePill` for better visibility of token metrics.
- Refactored type definitions in the chat store and related components to improve type safety and clarity.

These changes aim to enhance the user experience by providing clearer insights into token usage and improving the overall structure of the AI chat components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 23:08:32 +08:00
Innei a05c3950db chore(ai): remove some types
- Removed deprecated analytics types from the usage types file to simplify the codebase.
- Updated component files to import types directly from the client SDK, enhancing maintainability and clarity.
- Adjusted type definitions in the PatternsTab component to reflect the new usage pattern structure.

These changes aim to improve code organization and reduce redundancy in type definitions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 20:49:27 +08:00
Innei 9bd672969b feat(ai-usage): implement enhanced AI usage observability frontend
- Introduced a new frontend for tracking AI token usage with real-time analytics and user-friendly visualizations.
- Added components for usage analysis, including detailed usage modals, progress rings, and various charts to display usage patterns and efficiency.
- Integrated localization support for new UI elements and analytics features.
- Removed the deprecated token usage settings page to streamline the user interface.

These changes aim to empower users with actionable insights into their AI usage, enhancing overall user experience and engagement.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 20:37:00 +08:00
Innei b5f568652e feat(ai-chat): ai model name mapping
- Added a mapping for AI model names to improve user readability in the AIModelIndicator component.
- Updated the ChatHeader and ChatMoreDropdown components to remove the AI settings button and integrate it into the dropdown menu for better accessibility.
- Adjusted layout styles in the PersonalizePromptSection for improved alignment.

These changes aim to enhance the user experience by providing clearer model names and a more streamlined settings access.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 17:14:47 +08:00
Stephen Zhou c9511f42e4 fix(desktop): hideRecentReader option not work, close #4376 2025-08-27 17:01:49 +08:00
lawvs c647f11c59 fix(mobile): update injected js on Android 2025-08-27 16:37:40 +08:00
Innei c0b8b3f0e7 fix(ai-chat): adjust icon size in AIChatContextBar component
- Changed the size of the calendar icon in the AIChatContextBar from size-5 to size-3.5 for improved visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 13:52:11 +08:00
Stephen Zhou 7cb684d411 feat: show token usage 2025-08-27 11:44:04 +08:00
zhenlonghe 6dea9e8cfe chore: Update README.md, remove the Power section (#4385) 2025-08-27 10:04:33 +08:00
Innei 967922d9c9 chore(mobile): update build number in Info.plist
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 00:54:09 +08:00
Innei 3caa3f681d feat(ai): add security disclosure section to MCP services settings
- Introduced a new security disclosure section in the MCPServicesSection component, providing users with information about the secure storage of OAuth authentication tokens.
- Updated localization files to include titles and descriptions for the new security disclosure section in both English and Chinese.

These enhancements improve user awareness of security measures related to MCP services, contributing to a more informed user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-27 00:24:36 +08:00
Innei 268b182a39 fix(ci): try to fix ios simulator runtime
- Added a new step to check the CI environment, including user and Xcode path information.
- Implemented a robust Xcode setup process that accepts the license and sets the correct path using sudo if available.
- Introduced a method to start the Simulator Service with error handling for existing instances.
- Enhanced the iOS platform download process with checks for available SDKs and alternative download methods.
- Added a verification step to confirm successful setup and available SDKs.

This update aims to streamline the Xcode setup process in CI environments, ensuring a more reliable and informative workflow.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-26 22:28:04 +08:00