Commit Graph
796 Commits
Author SHA1 Message Date
Innei 0e07f59c6a feat: new design ai layout (#4448)
* init

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

* feat(ai): add showSplineButton setting and update UI components

- Introduced a new setting `showSplineButton` to control the visibility of the AI assistant indicator.
- Updated the `createDefaultSettings` function to include the new setting with a default value of true.
- Modified the `AISplineButton` component to conditionally render based on the `showSplineButton` setting.
- Adjusted the modal content width in the `useDialog` hook for better layout.
- Enhanced the settings tab to define the new `showSplineButton` item with appropriate labels and descriptions.
- Updated localization files to include translations for the new setting.

These changes improve user control over the AI assistant's visibility and enhance the overall UI experience.

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

* feat(ai): implement AISmartSidebar with CSS animations

- Added AISmartSidebar component to replace motion/react animations with CSS animations for improved performance and visual effects.
- Introduced corresponding AISmartSidebar.css file to define animations and styles for the sidebar elements.
- Updated AISplineButton to conditionally render AISmartSidebar based on visibility settings.
- Refactored AIEntryLayout to use the new AIIndicator component, enhancing the integration of the sidebar.

These changes enhance the user experience by providing smoother animations and better control over the AI assistant's visibility.

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

* refactor(ui): update icon usage and improve layout spacing

- Replaced icons in the EntryMoreActions and MoreActions components for consistency.
- Adjusted padding and margin in various components, including AIEntryHeader and SubscriptionColumn, to enhance layout and visual appeal.
- Added a new label 'View' to the ai-block-constants for better clarity.

These changes improve the overall user interface and maintain consistency across components.

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

* refactor(ui): enhance ChatHeader and EntryListHeader layouts

- Updated the ChatHeaderLayout to conditionally render styles based on the floating state, improving visual consistency.
- Adjusted the EntryListHeader component to set a fixed height, ensuring uniformity in layout across different views.

These changes improve the overall user interface and maintain a consistent layout experience.

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

* refactor(ui): update ChatHeader and ChatMoreDropdown components

- Replaced GlassButton with ActionButton in ChatHeader for improved consistency and styling.
- Simplified the rendering of TaskReportDropdown and ChatMoreDropdown components.
- Adjusted layout styles in WelcomeScreen for better alignment.
- Enhanced ChatInterface to improve input positioning when no messages are present.

These changes enhance the user interface and maintain a consistent look across components.

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

* refactor(ai): adjust AI chat layout width for improved styling

- Updated the AI chat component to set a custom layout width of 65rem, enhancing the overall appearance and usability of the chat interface.

This change aims to provide a more consistent and visually appealing layout for the AI chat experience.

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

* refactor(ui): adjust spacing in EntryListHeader component

- Increased the gap between items in the EntryListHeader from 1 to 2 for improved layout and visual consistency.

This change enhances the overall user interface by providing better spacing in the header layout.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-05 23:22:15 +08:00
songkeysandInnei 7d0a0d1c40 feat(feed): a masonry view for all feed (#4335)
* feat(feed): a masonry view for all feed (wip)

* fix: adjust color and icons

* feat: all masonry

* feat: item details

* fix: styles

* fix: styles

* fix: default tab to be -1

* fix: selectable view

* fix: safe area

* fix: remove safe area

* fix: styles

* fix: styles

* fix: navigation

* fix: aspect-ratio

* fix: hooks

* fix: styles

* chore: comment

* fix: splash issue

* fix: style

* fix: style

* fix: style

* fix: style

* fix: close entry

* fix: styles

* fix: folder in all

* fix: styles

* fix: styles

* fix: styles

* refactor(desktop): enhance entry data handling in AllItem component

- Updated the AllItem component to destructure additional properties (content, description) from the entry state for improved data accessibility.
- Modified the rendering logic to display title, content, or description in the UI, enhancing user experience by providing more context.

This refactor aims to streamline data management and improve the presentation of entry information.

* refactor(desktop): improve entry display order in AllItem component

- Adjusted the rendering logic in the AllItem component to prioritize displaying the entry title before the description and content. This change enhances the clarity and relevance of the information presented to users.

This update aims to further refine the user experience by ensuring the most important entry information is highlighted first.

* feat: enhance AllItem component with keyword highlighting

- Added support for highlighting keywords in the title using a new `title_keyword` property in the ExtraModel.
- Introduced random card and highlight styles for visual differentiation.
- Updated the rendering logic to display highlighted keywords within the title.

This improves the user experience by making important keywords more prominent in the item display.

* refactor(AllItem): update media rendering logic to include Audios

- Modified the rendering conditions in the AllItem component to include Audios in the media display alongside Articles, Notifications, and Social Media.
- Removed the previously defined separate rendering block for Audios to streamline the component structure.

This update enhances the media display functionality by integrating Audios into the existing media rendering logic.

* fix: height calc

* feat(AllMasonry): add refetch and scroll handling functionality

- Introduced a `refetch` prop to the `AllMasonry` component for improved data fetching capabilities.
- Implemented a `handleScrollTo` function to facilitate scrolling to specific items within the masonry layout.
- Updated the component structure to accommodate these new features, enhancing user interaction and experience.

This update enhances the functionality of the AllMasonry component by allowing for better data management and item navigation.

* feat(AllItem): enhance title rendering and entry read tracking

- Updated the title rendering logic to improve keyword highlighting with case-insensitive matching.
- Integrated the `unreadSyncService` to mark entries as read when hovered, enhancing user interaction.
- Refactored highlight styles to support new underline and background options for better visual distinction.

This update improves the user experience by providing clearer title visibility and tracking read status effectively.

* refactor(AllItem): streamline hover behavior and enhance title keyword matching

- Refactored hover handling to utilize a timer for showing previews, improving performance and user experience.
- Updated title keyword matching logic to ensure proper escaping of special characters, enhancing accuracy in highlighting.
- Cleaned up unused underline-wavy styles for better code maintainability.

This update optimizes the interaction flow and improves the visual representation of keywords in titles.

* feat(timeline): filter views based on AI feature flag

- Introduced a check for the AI feature to conditionally filter out the 'All' view from the timeline list.
- Updated the logic to create view IDs based on the filtered views, enhancing the timeline's adaptability to feature availability.

This update improves the timeline's functionality by ensuring that the view options align with the current feature set.

* refactor(AllItem): simplify highlight styles and improve text decoration handling

- Removed unnecessary text-decoration-skip-ink styles from highlight class names for cleaner code.
- Added inline style to ensure consistent text decoration behavior in highlighted keywords.

This update enhances code maintainability and ensures proper rendering of highlighted text.

* fix(EntryColumnGrid): add refetch prop and update comments in AllItem

- Added the `refetch` prop to the `EntryColumnGrid` component for improved data handling.
- Updated comment in `AllItem` from "Social Media" to "Common views" for better clarity.
- Enhanced the no content display in `AllItem` for improved user experience.

This update improves functionality and clarity in the entry column components.

* refactor(AllItem): clean up media handling and improve preview logic

- Removed unused `firstMedia` variable and adjusted media cover logic for clarity.
- Updated aspect ratio handling to ensure default values are set correctly.
- Enhanced the no media available display for better user experience.
- Refactored preview display logic to improve readability and maintainability.

This update streamlines the media handling in the AllItem component and enhances the user interface.

* fix: index key

* refactor(AllItem): optimize title keyword highlighting logic

- Simplified the keyword highlighting logic in the AllItem component by extracting the regex pattern into a separate variable.
- Improved readability and maintainability of the code by reducing redundancy in the title rendering function.

This update enhances the performance and clarity of the title rendering process.

* fix: button width

* fix: first screen navigation

* fix: video hovering autoplay

* feat(timeline-tabs): implement customizable timeline tabs settings

- Added a new `TimelineTabsSettingsModal` component for managing visible and hidden timeline tabs.
- Introduced drag-and-drop functionality for reordering tabs and customizing their visibility.
- Updated `SubscriptionTabButton` to accept a shortcut prop for improved keyboard navigation.
- Enhanced global shortcuts handling to allow bypassing input restrictions for specific actions.

These changes provide users with greater flexibility in managing their timeline tabs, improving the overall user experience.

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

* refactor: clean up error handling in AllMasonry component and update UnreadSyncService to use new API method

- Removed console log from error handling in the AllMasonry component to streamline the code.
- Updated the UnreadSyncService to utilize the new `markAllAsRead` API method, improving the readability and structure of the request handling.

These changes enhance code clarity and maintainability across the affected components.

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

* refactor: optimize rendering performance in AllMasonry component

- Introduced `startTransition` for setting width in the ResizeObserver to improve rendering performance during layout updates.
- Updated the `LoadingSkeleton` component's class names for better styling consistency.
- Simplified key generation in the `SkeletonGrid` component by using `null` instead of `crypto.randomUUID()`.

These changes enhance the efficiency and maintainability of the AllMasonry component and its related elements.

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

* refactor: simplify icon rendering in TimelineTabsSettingsModal

- Removed conditional rendering for the icon in the TabItem component, directly displaying the icon for improved clarity and performance.
- This change streamlines the code and enhances the maintainability of the TimelineTabsSettingsModal component.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
2025-09-05 21:24:42 +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 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 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
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
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
WhitewaterandInnei 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
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 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
Cason Kervis 28ddb76df4 fix(desktop): using RSSHub icon in SVG format (#4366) 2025-08-23 01:06:20 +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 8f38177e78 feat(integration): implement collapsible integration settings with CollapseCss components
- Introduced CollapseCssGroup and CollapseCss components for managing collapsible sections in the integration settings.
- Refactored integration filtering logic to streamline the display of configured integrations.
- Enhanced UI to provide better visual feedback and organization of integration settings.
- Updated the integration section to utilize the new collapsible components, improving user experience and interaction.

These changes collectively enhance the usability and organization of the integration settings interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-22 16:02:29 +08:00
Innei 1f340595b6 refactor(ai-chat): split ai message or user message component
- Introduced UserChatMessage and UserMessageParts components to handle user messages distinctly, allowing for better editing and interaction.
- Updated AIChatMessage to streamline message rendering and improve markdown formatting.
- Enhanced ToolInvocationComponent with accordion functionality for better organization of tool call details.
- Adjusted layout properties across various components to ensure responsiveness and visual consistency.

These changes collectively enhance the usability and clarity of the AI chat interface, providing a more intuitive experience for users.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-21 22:05:35 +08:00
DIYgodandClaude bdc17c0f12 fix(subscription): deduplicate feed IDs when feeds exist in both subscriptions and lists
Previously, if a feed was both directly subscribed and existed in a subscribed list,
it would appear twice in the subscription IDs array, causing unread counts to be
doubled in SubscriptionTabButton.

Fixed by using Set to deduplicate feed IDs in:
- getSubscriptionIdsByViewSelector
- getSubscribedFeedIdAndInboxHandlesByView

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-20 19:53:10 +08:00
Innei 889d06c2c5 feat(ai-chat): update AI model management and enhance UI components
- Upgraded '@follow-app/client-sdk' to version 0.3.39, reflecting the latest changes in AI model management.
- Introduced a new AIModelIndicator component for displaying and selecting AI models.
- Enhanced ChatInput to include the AIModelIndicator, improving user interaction with AI models.
- Updated floating panel dimensions for better usability.
- Added useAIModel hook to manage AI model state and configuration.

These changes collectively improve the user experience by providing a more intuitive interface for managing AI models and enhancing the overall functionality of the AI chat feature.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-20 16:56:28 +08:00
Stephen Zhou f3b83e6b87 feat(desktop): payment for ai (#4309)
* feat: payment for ai

* update

* update

* remove referral progress

* update

* type

* update
2025-08-20 11:27:49 +08:00
Innei 0c9977d5d3 feat(ai): implement MCP service integration for enhanced AI capabilities (#4359)
* feat(ai): implement MCP service integration for enhanced AI capabilities

- Added functionality to manage MCP services, including adding, updating, removing, and connecting to services.
- Introduced UI components for MCP service management, allowing users to enable MCP services and discover service endpoints.
- Updated AI settings to include MCP service configurations and integrated translations for new UI elements.
- Enhanced error handling and user feedback for service connection and discovery processes.

These changes collectively extend the AI capabilities by integrating external services through secure OAuth connections, improving the overall user experience.

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

* feat(mcp): update MCP service integration and enhance settings management

- Upgraded '@follow-app/client-sdk' to version 0.3.38, reflecting the latest changes in MCP service management.
- Removed deprecated MCP service functions and streamlined the integration process for better performance.
- Introduced new UI components for managing MCP connections, including transport type selection and header configuration.
- Enhanced error handling and user feedback for service connection and discovery processes.
- Updated translations for new UI elements related to MCP services.

These changes collectively improve the user experience by providing a more robust and intuitive interface for managing external services through secure OAuth connections.

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

* feat(ai-chat): enhance ToolInvocationComponent with error handling and UI updates

- Added error handling to ToolInvocationComponent, displaying error messages and visual indicators when tool execution fails.
- Updated the UI to reflect tool status, changing icons and text based on success or failure.
- Improved styling for the back button in ChatInterfaceContent for a more consistent appearance.

These changes improve user feedback and interaction within the AI chat interface, enhancing overall usability.

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

* refactor(ai): streamline MCPServiceItem layout for improved readability

- Removed redundant resource and prompt counts from the MCPServiceItem component to simplify the display.
- Adjusted the layout to enhance the presentation of service details, including tools, creation date, and last used date.

These changes improve the clarity and usability of the MCP service information within the AI settings interface.

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

* chore: update deps

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-19 23:34:19 +08:00
Stephen Zhou c11ca3ba09 Merge branch 'dev' into sync/main-to-dev-20250819 2025-08-19 21:35:52 +08:00
Stephen Zhou 849bbebdfa fix(desktop): feed title not showing in list pick 2025-08-19 12:46:20 +08:00
DIYgod 12bd9c1dd6 feat: ai-shortcut-button component 2025-08-18 23:28:21 +08:00
DIYgod 4edae950c0 fix: adjust column count logic in VirtualGridImpl and update breakpoints for masonry layout
- Changed default column count from 1 to 2 in VirtualGridImpl for improved layout responsiveness.
- Updated breakpoint values in masonry utility to reflect new column count logic, enhancing layout consistency across different screen sizes.
2025-08-17 22:26:58 +08:00
DIYgod f3a4eab8af feat: revert entry animation and entry header 2025-08-17 12:54:54 +08:00
Innei db7b3ede20 feat(entry-content): enhance AI entry layout and improve subscription management
- Updated AIEntryLayout to include smoother animations for entry transitions.
- Added feedId and entryId to entry title metadata for better context handling.
- Refactored EntryTimeline component to accept additional className prop for styling flexibility.
- Improved EntryContent component structure by replacing motion div with a standard div for better performance.
- Enhanced entry read history and layout components for improved user experience.

These changes collectively enhance the visual appeal and functionality of the entry content layout, providing a more seamless user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-13 23:52:33 +08:00
Innei b55753918d feat: optimize ai entry content layout and re-structure store files
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-13 18:42:41 +08:00
Stephen Zhou 649f623e7d fix(desktop): prefetch entry detail for entry not exist 2025-08-13 15:15:55 +08:00
Innei 699cbfaefc feat(ui): enhance debug feature management and chat ai entry content layout
- Updated the debug feature atom to support feature overrides and added a new hook for setting debug feature values.
- Integrated debug feature toggles into the EnvironmentIndicator component, allowing users to enable or disable features dynamically.
- Refactored the useFeature hook to accommodate the new debug feature logic.
- Improved the EntryLayoutContent and AIEntryLayout components to handle feature visibility based on debug settings.
- Introduced a new AIEntryHeader component for better separation of concerns in entry header rendering.

These changes collectively enhance the configurability and usability of the debug features, providing users with better control over feature management in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-13 01:46:19 +08:00
Innei 3cd4eebddd feat(footer): add PoweredByFooter component for enhanced branding
- Introduced a new PoweredByFooter component to display copyright information and social media links.
- Updated layout and styling for better responsiveness and visual appeal.
- Removed the old PoweredByFooter implementation from the internal components.

These changes collectively enhance the user experience by providing a consistent branding element across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 23:18:59 +08:00
Innei ab537447e8 feat(ai): implement fixed and floating chat panel styles
- Introduced a new enum for AI chat panel styles, allowing users to toggle between fixed and floating layouts.
- Added state management for the floating panel dimensions and position, ensuring it remains anchored during window resizing.
- Updated various components to utilize the new panel style settings, enhancing the user experience with improved layout flexibility.
- Implemented UI elements for toggling between fixed and floating modes in the chat interface.

These changes collectively enhance the functionality and usability of the AI chat interface, providing users with more control over their layout preferences.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 01:27:57 +08:00
Innei 0737300ee4 feat(ai): implement auto-scroll feature and initialize settings
- Updated the AI chat settings to include an auto-scroll feature when streaming messages.
- Introduced a new settings initialization function to set default values for various AI settings.
- Enhanced the ChatInterface component to utilize the new auto-scroll setting for improved user experience.
- Added localization support for the new auto-scroll setting in the English language file.

These changes collectively enhance the functionality and usability of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-11 23:26:32 +08:00
Konv Suu b34a6673d4 refactor(desktop): enhance drop-zone component flexibility (#4324)
* refactor(desktop): enhance drop-zone component flexibility

* Update
2025-08-11 16:29:23 +08:00
Innei cb5a2cd114 feat(ai): support customize chat title 2025-08-07 20:57:12 +08:00
Innei 9a12198d23 fix(ai): handle chat export mention syntax 2025-08-07 18:06:55 +08:00
Whitewater 846d25d4da chore(deps): update ai and folo dependencies (#4308) 2025-08-07 13:54:25 +08:00
Innei dc8ce1f902 fix(ai): edit previous message parse in rich editor
- Integrated ScrollArea for better message editing experience in the EditableMessage component.
- Updated initial editor state handling to streamline the setup process.
- Added MentionPlugin to support mentions within the editor, enhancing user interaction.
- Refactored LexicalRichEditor to utilize EditorRefPlugin for improved editor reference management.

These changes improve the usability and functionality of the message editing interface in the AI chat application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-06 00:00:38 +08:00
Innei 8e0e921d1a refactor(ai-chat): improve message rendering and styling
- Updated AIMarkdownMessage to conditionally apply rehypePlugins based on processing state, enhancing performance.
- Replaced preformatted JSON display in ToolInvocationComponent with JsonHighlighter for better readability and styling.
- Adjusted ShikiHighLighter component in FeedClaimModalContent to remove unnecessary padding, improving layout consistency.
- Wrapped claim button text in a span for better semantic structure.

These changes enhance the user experience by improving the rendering of messages and ensuring a more consistent UI across components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-05 01:47:56 +08:00
Innei 5b2669e1b5 feat(ai): enhance chat interface with animated text and buffer improvements
- Introduced an animatedPlugin for enhanced text rendering in AIMarkdownMessage, adding a fade-in effect for words.
- Updated StreamingMessageBuffer to include a maximum buffer size to prevent out-of-memory issues.
- Improved the layout of ChatInput in ChatInterface for better spacing.
- Adjusted the PoweredByFooter link color for better visibility.
- Refactored parseMarkdown to support rehype plugins, allowing for more flexible markdown processing.

These changes enhance the user experience in the AI chat interface by improving text animations and performance during message rendering.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-05 01:31:47 +08:00
Innei fc11d0089f chore: update dependencies and refactor ai-chat module structure
- Updated @follow-app/client-sdk to version 0.3.26 in pnpm-lock.yaml and pnpm-workspace.yaml.
- Upgraded ai package to version 5.0.2 across various package.json files.
- Refactored ai-chat components to use new store structure, moving types and hooks from __internal__ to store.
- Introduced new AIChatContext and hooks for better state management in the ai-chat module.

These changes enhance the maintainability and performance of the ai-chat module while ensuring compatibility with updated dependencies.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-05 00:08:55 +08:00
Innei c4ac1b1875 feat(ai): add ai mention plugin (#4305)
* init

* refactor

* implement mention plugin for chat input

- Updated pnpm-lock.yaml and pnpm-workspace.yaml to include new versions of @floating-ui packages.
- Added MentionPlugin to the chat input component, enabling mention functionality.
- Created necessary components, hooks, and utilities for mention handling, including MentionNode, MentionDropdown, and related styles.
- Refactored existing code to integrate mention features seamlessly into the chat interface.

This update enhances the chat experience by allowing users to mention others easily, improving interactivity and engagement.

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

* Enhance mention functionality in chat editor

- Integrated MentionNode into AIRichTextMessage for improved mention handling.
- Updated MentionPlugin to utilize new hooks for mention search and insertion.
- Added useMentionIntegration and useMentionSearchService hooks for better mention management.
- Created contextBarSearchService and feedEntrySearchService for unified search functionality.
- Refactored LexicalRichEditor to support custom nodes from plugins.

This update improves the chat experience by streamlining mention interactions and enhancing search capabilities.

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

* Enhance mention integration and synchronization in chat editor

- Updated ChatInput layout for improved button positioning.
- Added select-none class to mention styles for better user experience.
- Refactored MentionDropdown to improve the display of mention types and content.
- Introduced useMentionBlockSync hook for bidirectional synchronization between mention nodes and context blocks.
- Enhanced useMentionIntegration to handle mention insertion with node key tracking.
- Implemented useMentionSearchService for streamlined mention search functionality.

These changes improve the overall mention handling and user interaction within the chat editor, making it more intuitive and efficient.

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

* Refactor ChatInput layout to include ScrollArea for improved scrolling experience

- Wrapped LexicalRichEditor in a ScrollArea component to enhance the input area’s usability.
- Adjusted styles in LexicalRichEditor for better layout consistency.

These changes aim to improve user interaction within the chat input by providing a more flexible scrolling interface.

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

* Remove deprecated mention functionality and update MentionNode for markdown export

- Deleted mention-related files and types as functionality has been moved to the desktop app.
- Updated MentionNode to change the text content format for markdown export.
- Refactored useMentionBlockSync to remove unused helper functions and streamline dependencies.
- Adjusted LexicalRichEditor placeholder styles for better alignment.

These changes clean up the codebase by removing obsolete mention features and enhancing the current mention handling in the chat editor.

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

* Implement AI chat message tracking functionality

- Added tracking for AI chat messages sent by integrating the tracker module into the ChatInterface component.
- Introduced a new tracker point for AIChatMessageSent in the TrackerMapper enum.
- Removed deprecated entry tracking methods to streamline the tracking process.

These changes enhance the analytics capabilities of the chat interface by monitoring AI interactions more effectively.

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

* Update VSCode settings for Tailwind CSS and i18n-ally configuration

- Streamlined the tailwindCSS.experimental.classRegex by removing unnecessary line breaks for better readability.
- Consolidated the tailwindCSS.experimental.configFile and i18n-ally settings into single-line arrays for consistency.
- Ensured proper formatting and alignment of settings to enhance maintainability.

These changes improve the clarity and organization of the VSCode settings file.

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-04 23:06:15 +08:00
Innei 6de58e038e fix: update FeedItem icon and enhance color constants
- Changed the icon in FeedItem component to a more appropriate representation.
- Updated color constants for various themes to improve contrast and visual appeal, ensuring better accessibility and aesthetics.

This update enhances the user interface by refining iconography and color usage across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-02 16:48:22 +08:00
Innei 44fe72bd92 feat(integration): add URL scheme support and enhance custom integration management
- Introduced URL scheme handling in the integration module, allowing users to define and execute URL schemes.
- Added validation for URL scheme templates to ensure correct format and required fields.
- Enhanced the CustomIntegrationManager to support both HTTP and URL scheme integrations.
- Implemented a preview feature for URL schemes in the CustomIntegrationModal.
- Updated UI components to accommodate new integration types and improve user experience.

This update expands the capabilities of custom integrations, enabling seamless interaction with external applications through URL schemes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-02 16:41:54 +08:00
Whitewater 244aca2ad6 feat: implement audio seeking functionality (#4295)
* refactor: move timeStringToSeconds to utility function

* feat: add seekAudio functionality to bridge and implement timestamp handling in MarkdownLink

* feat: implement audio seeking functionality in EntryContentWebView

* feat: implement audio seeking functionality for iOS

* chore: clean code

* fix: audio seeking functionality for iOS
2025-08-01 23:43:30 +08:00
Innei cf47ef442f feat(ai): listen for user text selection add to ai block
- Added text selection capabilities to ShadowDOM, allowing for text selection events to be captured and handled.
- Introduced a new utility for managing text selection within ShadowDOM.
- Updated ArticleLayout to support text selection events and integrate with AI chat block actions.
- Refactored EntryContent components to improve error handling and streamline entry updates.
- Implemented a new AIEntryLayout for better integration of AI chat features within entry content.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-01 21:30:30 +08:00
Innei c5ff53aa20 refactor: optimize chat components and remove unused GridContainer
- Refactored ToolInvocationComponent to use React.memo for performance optimization.
- Updated AIDisplayAnalyticsPart, AIDisplayEntriesPart, AIDisplayFeedsPart, and AIDisplaySubscriptionsPart to utilize memoization.
- Replaced GridContainer with standard div elements for layout consistency.
- Removed unused GridContainer and StatisticsOverview components to streamline the codebase.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-31 23:12:51 +08:00
Innei 73a1e6eb6c feat: integrate Lexical rich text editor and update chat components
- Added support for rich text messages in the chat interface using Lexical.
- Updated ChatInput and related components to handle EditorState and rich text formats.
- Introduced AIRichTextMessage component for rendering rich text messages.
- Removed legacy LexicalRichEditor component and adjusted database schema to drop richTextSchema.
- Updated dependencies to include Lexical packages at version 0.33.1.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-31 21:25:15 +08:00
Stephen Zhou e9c8d0b39c chore: integrate sqlite-online 2025-07-31 16:59:36 +08:00
Innei 4f78a8aa48 refactor: ai module and implement rich text (#4282) 2025-07-31 00:16:40 +08:00
Stephen Zhou 5d0ae8fd1c fix(desktop): move hydrate database to first, drop dataPersist option 2025-07-30 17:52:23 +08:00
Innei 680d7efc26 chore(dependencies): update nbump to version 2.1.5 across multiple packages
- Updated nbump version from 2.1.3 to 2.1.5 in pnpm-lock.yaml, package.json for desktop, mobile, and readability packages.
- Updated zx version from 8.6.1 to 8.7.2 in pnpm-lock.yaml.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-29 23:17:17 +08:00