Commit Graph

5711 Commits

Author SHA1 Message Date
Innei 7944f974bf fix: resolve context block typings 2025-08-30 10:45:50 +08:00
Innei 371fc19796 update
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-29 01:05:39 +08:00
Innei 52cf707248 update
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-29 01:03:49 +08:00
Innei 7b9bfd69c4 update
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-29 01:03:46 +08:00
Innei 6006a8e8b0 update 2025-08-29 01:03:35 +08:00
Innei 2a6196121d chore(deps): update package versions across multiple projects
- Updated various dependencies in package.json files for improved stability and performance.
- Notable updates include:
  - Upgraded `pnpm` to version 10.15.0.
  - Updated `@babel` packages to versions 7.28.3 and 7.28.2.
  - Upgraded `eslint` to version 9.33.0 and related plugins.
  - Updated `@electron-forge` packages to version 7.8.3.
  - Various other dependency updates across mobile, desktop, and internal packages to ensure compatibility and leverage new features.

These updates collectively enhance the overall functionality and maintainability of the project.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-29 01:02:27 +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
Innei a9bb77167e refactor(webview): ios preload webview module
- Refactored WebViewManager to improve lifecycle management and state handling.
- Introduced a debug panel for monitoring WebView state and actions in development mode.
- Updated JavaScript injection methods to use a centralized dispatch system for better maintainability.
- Improved handling of local HTML loading and state replay after process termination.
- Added new functions for debugging, including state retrieval and flushing pending scripts.

This update aims to enhance the overall performance and usability of the WebView component, providing developers with better tools for debugging and state management.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-26 22:20:57 +08:00
Innei b0c4052632 fix(mobile): try to fix ios crash in background
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-26 19:38:12 +08:00
Stephen Zhou d0c3d6ed92 fix: update style for transcript 2025-08-26 17:55:10 +08:00
Stephen Zhou c5a4971640 feat: transcription for audio and subtitles for video (#4368)
* feat: show audio transcription

* update

* support video subtitle

* update

* update

* update

* update

* update

* update

* update

* update

* update
2025-08-26 17:42:51 +08:00
Innei cb77438729 feat: enhance SEO and metadata for Folo application
Updated the index.html file to improve search engine optimization and social media sharing. Changes include a more descriptive title, comprehensive meta descriptions, and OpenGraph and Twitter card tags for better content representation. Added structured data for the Folo application to enhance visibility and user engagement across platforms.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-26 11:24:23 +08:00
lawvs a2ae1a0670 feat: add localization for scheduling options and labels 2025-08-26 00:38:53 +08:00
Innei ffa9bee287 feat: add double-click functionality to open entry URLs in a new tab
Implemented a new handleDoubleClick function in EntryItemWrapper to allow users to open entry URLs in a new tab when double-clicking on an entry item. This enhances user interaction and accessibility for navigating to external links.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-25 21:12:22 +08:00
dependabot[bot] 3dcb07a6c7 chore(deps): bump actions/setup-java from 4 to 5 (#4365)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4 to 5.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-25 17:14:36 +08:00
Whitewater 87822de78b feat: implement AI task management (#4362)
* feat(ai-task): implement AI task management components and queries

Add AITaskModal for creating and editing AI tasks, ScheduleConfig for scheduling options, and AITaskList for displaying tasks. Introduce query hooks for task management and define types for scheduling.

* feat: add TaskSchedulingSection for managing AI tasks

* chore: implement task creation limit and error handling in AIChatContextBar

* fix: lint

* refactor: simplify default form data handling and improve readability

* feat(ai-task): add AITaskModalHeader component for improved task title management

* refactor: streamline task scheduling UI

* refactor(ai-chat): update modal title and close capability for task scheduling

* feat(input): add TimeSelect component for custom time picking

* feat: integrate TimeSelect component for improved time selection

* feat: add DateTimePicker component for enhanced date and time selection

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

* feat(ai-task): implement TaskItem component for displaying individual AI tasks with status and actions

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

* feat: update client-sdk version and implement reusable ItemActions component for AI task and MCP service management

- Updated '@follow-app/client-sdk' to version 0.3.46 in pnpm-lock.yaml and pnpm-workspace.yaml.
- Introduced a new ItemActions component for handling action buttons and toggle switches in AI task and MCP service items.
- Refactored TaskItem, MCPServiceItem, and ShortcutItem components to utilize the new ItemActions component for improved code reuse and maintainability.
- Enhanced TokenUsageSection to display reset date in a more user-friendly format.
- Updated MCPService interface to include an 'enabled' property for better state management.

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

* refactor(ai-settings): remove unused export for MCPServicesSection

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

* fix: update task status logic to reflect correct scheduling states

* chore: update button styling for schedule action in AIChatContextBar

* feat: enhance task modal with internationalization support

Added translation keys for task-related actions and messages in English, Japanese, and Chinese. Updated the AITaskModal component to utilize these translations for improved user experience.

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
2025-08-25 17:14:14 +08:00
Konv Suu 8519d7361b fix(desktop): clear selected subscriptions after deleting (#4361) 2025-08-25 16:13:52 +08:00
Innei cf7c3e653e Merge pull request #4374 from RSSNext/sync/main-to-dev-20250824
Sync main branch to dev branch
2025-08-25 16:13:13 +08:00
lawvs 3aae7438a1 fix: remove LegalModal component 2025-08-25 04:03:26 +08:00
Innei 550e4b84c8 chore: update change log
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-25 00:12:54 +08:00
Innei f1a7f869a5 feat(ai-chat): refactor ChatHeader and ChatInterface components for improved layout and functionality
- Introduced a new ChatHeaderLayout component to encapsulate shared logic and rendering of action buttons, enhancing code organization.
- Updated ChatInterface to accept a centerInputOnEmpty prop, allowing for dynamic positioning of input elements based on message presence.
- Enhanced WelcomeScreen to support centerInputOnEmpty, improving layout responsiveness when no messages are available.
- Modified ChatMoreDropdown to conditionally render the toggle mode option based on the canToggleMode prop, providing more flexible UI behavior.

These changes collectively enhance the user experience by improving layout responsiveness and code maintainability within the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-25 00:02:57 +08:00
Innei accb64c181 feat(ai-chat): refactor AI reasoning display and enhance button styles
- Updated the GlassButton component to allow optional onClick handler and improved hover shadow effects for better user feedback.
- Replaced Accordion with CollapseCss in AIReasoningPart for a more streamlined display of reasoning content, enhancing the user experience during streaming.
- Modified AIChatContextBar button styles for consistency with the new material design, improving visual coherence across the application.
- Introduced a new ChatPageHeader component to encapsulate chat header functionalities, enhancing code organization and maintainability.

These changes collectively improve the UI/UX of the AI chat interface, providing clearer interactions and a more cohesive design.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-24 23:43:44 +08:00
Innei b849d51159 Merge pull request #4364 from RSSNext/release/mobile/0.2.6
release(mobile): Release v0.2.6
mobile/v0.2.6
2025-08-24 23:16:58 +08:00
Innei b858126cfd feat(ui): implement color mixing utility and update component styles
- Introduced a new Tailwind CSS plugin for dynamic color mixing, allowing for more flexible background and border color options.
- Updated styles in ChatInput, ChatInterface, CollapsibleError, UserChatMessage, and NetworkStatusIndicator components to utilize the new color mixing classes for improved visual consistency.
- Enhanced the NetworkStatusIndicator to provide clearer status messages and improved styling based on network conditions.

These changes enhance the UI by providing a more cohesive color scheme and better user feedback on network status.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-24 17:36:34 +08:00
Innei d3dad27f47 fix(about): update legal document paths for clarity
- Changed the paths for privacy and terms of service links from 'privacy.html' and 'tos.html' to 'privacy-policy' and 'terms-of-service' respectively.
- This update improves clarity and consistency in accessing legal documents.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-24 01:47:25 +08:00
Innei a9d70a9900 refactor(legal): remove legal package and update references
- Deleted the `@follow/legal` package and its associated files, including privacy and terms of service documents.
- Updated various components to remove dependencies on the legal package, replacing modal presentations with direct links to external privacy and terms pages.
- Adjusted configuration files and routes to reflect the removal of legal utilities, ensuring a cleaner codebase.

These changes streamline the project by eliminating unnecessary dependencies and improving the user experience with direct access to legal documents.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-24 01:46:30 +08:00
Innei 0ede6fb2cd feat(dependencies): refactor ipc decorator
- Updated the version of electron-ipc-decorator in package.json files for both main and renderer processes to 0.2.0, ensuring compatibility with the latest features and improvements.
- Adjusted pnpm-lock.yaml to reflect the new version and its integrity hash.
- Refactored IPC service classes to utilize the new version, enhancing code organization and functionality.
- Removed deprecated constructor calls in IPC service classes, simplifying the implementation.

These changes improve dependency management and enhance the overall architecture of the IPC system.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-23 18:32:55 +08:00
DIYgod 23664e6ceb feat: smoother entry header animation
- Removed unused imports and components from AIEntryLayout, simplifying the layout structure.
- Updated EntryContent to adjust height dynamically and improved the scroll area with a new viewport class.
- Enhanced EntryHeader to integrate a scroll-to-exit hint directly into the header, improving user guidance.
- Refactored EntryHeaderRoot to support motion styles for smoother animations.

These changes collectively improve code clarity and enhance the user experience by providing better navigation cues and layout responsiveness.
2025-08-23 01:20:27 +08:00
Cason Kervis 28ddb76df4 fix(desktop): using RSSHub icon in SVG format (#4366) 2025-08-23 01:06:20 +08:00
Innei 77684b6b9e refactor(animation): simplify AnimatePresence usage in AIEntryLayout
- Removed 'mode="popLayout"' from AnimatePresence in AIEntryLayout, streamlining the animation configuration.
- This change enhances the clarity of the animation logic and maintains consistent entry transitions.

These adjustments contribute to a cleaner codebase and improved animation handling within the AI interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-22 23:57:12 +08:00
Innei 7c2a7a93d8 chore(ui-color): update color scheme from 'accent' to 'folo' for consistency
- Replaced instances of 'text-accent' with 'text-folo' across various components, including BoostProgress, UserProfileModalContent, and MyWalletSection.
- Updated modal and wallet sections to reflect the new color scheme, enhancing visual consistency throughout the application.

These changes improve the overall aesthetic and maintain a cohesive design language across the user interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-22 19:20:44 +08:00
Innei a8903284d3 refactor(animation): update spring presets for smoother transitions
- Replaced instances of 'softSpring' with 'smooth' for improved animation consistency across components, including VideoPlayer, BoostModalContent, and SourceContentView.
- Updated transition settings in modal and panel components to utilize 'snappy' for a more responsive feel.
- Removed deprecated spring presets from the constants file to streamline the animation configuration.

These changes enhance the overall user experience by providing smoother and more cohesive animations throughout the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-22 19:14:00 +08:00
Innei 9890c2e79a feat(entry): enhance AIEntryLayout and EntryCommandShortcutRegister functionality
- Updated AIEntryLayout to use 'popLayout' mode for AnimatePresence, improving entry content overlay transitions.
- Refactored EntryCommandShortcutRegister to include hotkey support for the Escape key, allowing users to navigate away from AI entries more intuitively.
- Integrated feature flag checks to conditionally enable hotkey functionality based on the AI layout.

These changes collectively improve the user experience by enhancing animations and providing better navigation options within the AI interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-22 19:07:47 +08:00
Innei aa95332a93 fix(ai-chat): handle empty text in AIReasoningPart and improve message button visibility
- Added a check to return null if the text is empty in AIReasoningPart, preventing unnecessary rendering.
- Replaced motion div with a standard div for action buttons in AIChatMessage, improving visibility on hover with a more straightforward opacity transition.
- Updated loading element styling in AIMessageParts for better layout and visual consistency.

These changes enhance the user experience by ensuring components render correctly and improving the visibility of interactive elements.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-22 18:53:54 +08:00