Commit Graph
5608 Commits
Author SHA1 Message Date
Innei 60ea682fba feat(entry-content): introduce navigation hints constants and refactor hint logic
- Added constants for navigation hints, including icons and text, to improve maintainability and clarity.
- Refactored the EntryNavigationHandler and useEntryNavigationHints hook to utilize these constants, enhancing the user experience with clearer guidance.
- Updated styling for hint buttons to improve visual consistency across components.

These changes collectively streamline the navigation hint implementation, providing a more intuitive interaction model for users.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-15 21:37:52 +08:00
Innei 92dbd65690 refactor(entry-content): enhance entry navigation and scrolling hints
- Removed the scroll hint indicator from the AIEntryLayout component to streamline the layout.
- Introduced an EntryNavigationHandler to manage navigation hints and close gestures in the EntryContent component, improving user guidance.
- Updated the EntryScrollingAndNavigationHandler to remove unnecessary state management related to navigation hints, simplifying the logic.

These changes collectively enhance the user experience by providing clearer navigation cues and a more efficient entry content interaction model.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-15 21:27:56 +08:00
Innei 4ae9b67eef feat(entry-column): implement wheel gesture close functionality and refactor entry navigation
- Introduced a custom hook `useWheelGestureClose` to handle closing the entry content via wheel gestures when at the top of the scrollable area.
- Refactored `AIEntryLayout` and `EntryContent` components to integrate the new wheel gesture functionality, enhancing user experience during entry navigation.
- Updated `EntryColumnShortcutHandler` to streamline command bindings and improve interaction with the entry content.
- Enhanced entry navigation hints to provide clearer guidance for users on how to exit the entry view.

These changes collectively improve the responsiveness and intuitiveness of the entry content interactions, offering a more seamless user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-15 21:27:47 +08:00
DIYgod baf2f1fab1 feat(ai): add AISplineButton component and integrate into MainDestopLayout
- Introduced AISplineButton component to provide a floating button for opening the AI chat panel.
- Integrated AISplineButton into MainDestopLayout, ensuring it is displayed when the AI chat panel is not visible and the layout is in floating mode.
- Updated welcome description in localization to reflect a more focused assistance context.

These changes enhance the user interface by providing quick access to AI chat functionality, improving overall user experience.
2025-08-15 20:42:22 +08:00
DIYgod 955ee5441c feat(entry-layout): implement swipe-to-close functionality and enhance entry content navigation
- Added swipe and scroll gesture detection to close the entry content when scrolled up significantly.
- Introduced a scroll hint button to guide users on how to exit the entry view.
- Refactored AIEntryLayout to improve animation handling and user experience during entry transitions.
- Updated EntryScrollingAndNavigationHandler to streamline scroll detection logic and remove unnecessary state management.

These changes collectively enhance the interaction model for entry content, providing a more intuitive and responsive user experience.
2025-08-15 20:05:12 +08:00
Innei e420266014 refactor(entry-content): enhance scrolling and navigation behavior in EntryScrollingAndNavigationHandler
- Removed unnecessary viewportProps from ScrollArea in EntryContent component.
- Introduced constants for scroll detection thresholds and UI panel positioning to improve readability and maintainability.
- Enhanced the EntryScrollingAndNavigationHandler to manage scroll-based navigation more effectively, including touch and wheel gesture support.
- Added logic to show/hide navigation panels based on scroll position and user interactions, improving the overall user experience.

These changes collectively streamline the scrolling and navigation functionality, providing a more intuitive interaction within the entry content components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-14 15:46:08 +08:00
Innei a917b11876 feat(lcp): implement LCP optimization with LCPEndDetector and enhance motion components
- Introduced `LCPEndDetector` to monitor and optimize Largest Contentful Paint (LCP) by deferring animations until the page is fully loaded.
- Updated motion components to accept `lcpOptimization` prop, disabling initial animations until LCP is confirmed to improve performance.
- Integrated `LCPEndDetector` into the root providers for effective monitoring across the application.

These changes collectively enhance the loading performance and user experience by ensuring smoother transitions and animations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-14 15:17:18 +08:00
Innei 1d65d8895a refactor(feature): enhance feature management with improved type safety and utility functions
- Introduced a new `checkFeatureEnabled` function to centralize feature checking logic, reducing code duplication.
- Added `getFeature` function for non-hook feature checks.
- Updated `useFeature` hook to utilize the new utility for better clarity and maintainability.
- Enhanced type definitions for debug feature values and feature keys.

These changes improve the structure and readability of feature management within the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-14 14:31:24 +08:00
Stephen Zhou 302bfbaa24 fix(desktop): hide EntryReadHistory for legacy entry content 2025-08-14 09:27:16 +08:00
Innei 10c34f6d0b fix: delete missing command
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-14 01:02:17 +08:00
Innei 2dcdf0d6f2 fix(entry-content): escape key to back to entry list in zen mode
- Refactored featureConfigMap to utilize TypeScript's `satisfies` operator for improved type safety.
- Added a focusable reference in EntryContent to manage focus behavior during animations.
- Integrated hotkey handling in EntryScrollingAndNavigationHandler to improve navigation experience based on AI feature status and Zen mode.

These changes collectively enhance the code structure and user interaction within the entry content components, providing a more responsive and intuitive experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-14 00:43:15 +08:00
Innei 9b94f86d42 refactor(ui): update GlassButton variant and enhance SubviewLayout with improved button integration
- Changed the default variant of GlassButton from "glass" to "flat" for a more streamlined appearance.
- Integrated GlassButton into SubviewLayout for the back button and action area, enhancing the visual consistency and user interaction.
- Improved layout structure in EntryTitle for better spacing and readability.

These changes collectively enhance the UI components, providing a more cohesive and user-friendly experience across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-14 00:16:14 +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
Innei e39eb6f565 refactor(entry-header): restructure entry header components for improved context management 2025-08-13 16:14:43 +08:00
Stephen Zhou 649f623e7d fix(desktop): prefetch entry detail for entry not exist 2025-08-13 15:15:55 +08:00
Stephen Zhou 84c84d8d60 fix(desktop): blurhash for video grid 2025-08-13 11:21:58 +08:00
Stephen Zhou 433bf4cb1b fix(desktop): add missing size info to show blurhash 2025-08-13 11:07:43 +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 da24b8a37f refactor(header): improve header layout and styling
- Updated header component styles for better responsiveness and visual appeal.
- Changed border radius and padding for the header elements to enhance the overall design.
- Adjusted margin and width properties to ensure consistent layout across different screen sizes.

These changes collectively enhance the user experience by providing a more polished and adaptable header design.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 21:43:46 +08:00
Innei abd0e28af7 feat(ai): support switch ai panel style in ai setting
- Added a new PanelStyleSegment component to manage AI chat panel styles, allowing users to select between fixed and floating layouts.
- Updated localization files to include new strings for panel style settings.
- Refactored existing components to integrate the new panel style options, improving user configurability and experience.

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

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 21:02:55 +08:00
Innei e528367e8b feat(ai): support AI chat close float panel
- Introduced a new interface for WebAISettings, extending AISettings to include panel style options.
- Updated default settings creation to include a fixed panel style.
- Refactored AI chat panel visibility management, allowing dynamic visibility based on panel style.
- Implemented a new hook for managing AI panel visibility and integrated it into the floating panel component.
- Removed deprecated context bar search service and replaced it with a unified feed entry search service for improved search functionality.

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

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 20:37:48 +08:00
lawvs a8418e4fe7 fix: handle potential IndexSizeError in text selection listener 2025-08-12 01:35:56 +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 3d577699fc refactor(ai): optimize code rendering and layout adjustments
- Introduced memoization for the ShikiHighLighter component to enhance performance during code rendering.
- Updated layout properties in AIDisplayFlowPart and AIMessageParts for improved responsiveness and visual consistency.
- Enhanced the ChatInterface component with flex properties for better layout management.
- Adjusted message rendering logic in AIMarkdownStreamingMessage to improve first paint performance.

These changes collectively enhance the efficiency and user experience of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 00:24:42 +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
Innei bce22113a0 refactor: streamline animation handling and improve layout responsiveness
- Replaced custom spring transition settings with predefined Spring presets for smoother animations in AIEntryLayout.
- Removed unused animation logic and imports in EntryContent to simplify the component structure.
- Enhanced ArticleLayout's responsiveness by adjusting padding for better layout on smaller screens.

These changes collectively improve code maintainability and user interface responsiveness.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-11 23:19:55 +08:00
Innei dba2461de7 fix(ai): fix auto-scroll logic and improve some ui
- Updated the ChatInterface component to improve scrolling behavior and UI elements.
- Replaced the scroll-to-bottom button with a more visually appealing design and added functionality to reset scroll state.
- Enhanced the AIChatWaitingIndicator with animations for better user feedback during processing.
- Refactored the useAutoScroll hook to improve performance and user interaction handling, ensuring smoother scrolling experience.
- Filtered out empty message parts before persisting to the database, improving data integrity.

These changes collectively enhance the user experience in the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-11 22:44:47 +08:00
Stephen Zhou e844a68b28 feat: author info for entry, close #4329 2025-08-11 22:26:56 +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 1dceab3046 chore: update build and tag action
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-11 16:18:36 +08:00
Innei 53ef23074b refactor(ai-file): cleanup and re-structure codebase
- Added FileAttachmentNode to handle file attachments in the editor.
- Introduced FileUploadPlugin to manage file uploads via drag-and-drop and paste.
- Created hooks for file upload integration and synchronization with chat blocks.
- Implemented UI components for file drop zone and file attachment display.
- Enhanced error handling and progress tracking during file uploads.
- Updated existing components to support new file attachment features.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-09 00:17:40 +08:00
Innei 9bb974b8fd feat(ai): support ai attachement (#4316)
* init

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

* feat(ai-chat): enhance file handling with category-based icon retrieval

- Introduced `getFileCategoryFromMimeType` function to categorize file types based on MIME type, improving the clarity of file handling in the AI chat interface.
- Updated `FileAttachmentBlock` and `AIChatContextBar` components to utilize the new categorization function for determining file icons, streamlining the code and enhancing maintainability.
- Removed redundant MIME type checks, simplifying the logic for icon assignment.

These changes improve the user experience by ensuring accurate file representation and reduce code complexity.

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

* feat: preview image

* Update avatar upload to use followApi and bump deps

* feat: Refactor AI chat context blocks and file upload handling

- Introduced new components for rendering AI chat context blocks, including AIDataBlockItem and AIDataBlockPart.
- Enhanced file attachment handling by updating the structure of AIChatContextBlock to separate file attachments from other block types.
- Implemented a new file upload hook (useFileUpload) to manage file uploads with progress tracking and toast notifications.
- Added UploadProgress and CircularProgress components for visual feedback during file uploads.
- Improved file processing logic to simulate realistic upload progress and handle errors more effectively.
- Updated existing components to utilize the new block structure and file upload logic.
- Created utility functions for managing block styles, icons, and labels for better code organization.

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

* feat: Enhance chat message rendering with Suspense and add ThinkingIndicator component

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

* fix: Remove error check for message metadata in AIChatMessage component

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-08 16:32:52 +08:00
dependabot[bot] 6a616f6595 chore(deps): bump signpath/github-action-submit-signing-request (#4313)
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 1.2 to 1.3.
- [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v1.2...v1.3)

---
updated-dependencies:
- dependency-name: signpath/github-action-submit-signing-request
  dependency-version: '1.3'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-08 16:03:36 +08:00
Innei 71b5e6ef79 Merge pull request #4312 from RSSNext/sync/main-to-dev-20250807
Sync main branch to dev branch
2025-08-07 23:00:25 +08:00
Innei ab540b23d1 feat(ai): chat session sort by updated 2025-08-07 22:12:00 +08:00
Innei cb5a2cd114 feat(ai): support customize chat title 2025-08-07 20:57:12 +08:00
Innei c654ca176c feat(ai): preview react flow modal
- Expand CLAUDE.md with detailed app/package structure
- Add full-screen flow chart preview modal to AIDisplayFlowPart
- Improve flow chart display and loading element sizing
2025-08-07 19:21:13 +08:00
Innei 9a12198d23 fix(ai): handle chat export mention syntax 2025-08-07 18:06:55 +08:00
Innei 3224aa656f Merge pull request #4310 from RSSNext/release/desktop/0.7.0
release(desktop): Release v0.7.0
v0.7.0
2025-08-07 17:13:40 +08:00
Innei a78fe3e633 chore: temporarily back to the original release logic
Signed-off-by: Innei <tukon479@gmail.com>
2025-08-07 15:56:02 +08:00
Innei 31b2bc9ced release(desktop): release v0.7.0 2025-08-07 14:43:50 +08:00
Innei 3b03d0435e fix(feed-title): fix feed title in list
- Swapped the order of title rendering to prioritize the provided title over the preferred title from the feed.
- This change improves the clarity of the displayed title in the feed component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-07 14:39:56 +08:00
Whitewater 846d25d4da chore(deps): update ai and folo dependencies (#4308) 2025-08-07 13:54:25 +08:00
Innei 28867d117d fix(ai-chat): adjust layout for WelcomeScreen and ChatInterface
- Updated the positioning of the personal prompt in the WelcomeScreen to use absolute positioning for better visibility.
- Corrected the translate-y calculation in ChatInterface to ensure proper alignment when no messages are present.

These changes enhance the layout and user experience of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-07 11:08:02 +08:00
Innei d78b7961fe chore(ai-chat): update scroll threshold for chat interface
- Adjusted the SCROLL_BOTTOM_THRESHOLD to dynamically use half of the window's inner height, improving the scrolling behavior in the chat interface.
- This change enhances the user experience by ensuring better visibility of new messages.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-07 00:36:28 +08:00
Innei 71fd806c29 chore(ai): adjust AIChatWaitingIndicator
- Replaced the AIChatTypingIndicator component with AIChatWaitingIndicator for improved clarity in the chat interface.
- Updated the rendering logic in ChatInterface to reflect this change, enhancing the user experience during message submission.

These modifications streamline the chat interface and clarify the status of message processing.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-06 23:25:57 +08:00
Innei 79e22e6593 feat(ai-chat): store scroll element ref
- Integrated AnimatePresence for smoother transitions in the ChatInterface layout.
- Refactored scroll area handling to use state instead of ref, improving responsiveness and state management.
- Updated WelcomeScreen button animations for better user experience during interactions.

These changes enhance the visual appeal and functionality of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-06 21:32:24 +08:00
dependabot[bot] 4f8ff18221 chore(deps): bump signpath/github-action-submit-signing-request (#4307)
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 1.2 to 1.3.
- [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v1.2...v1.3)

---
updated-dependencies:
- dependency-name: signpath/github-action-submit-signing-request
  dependency-version: '1.3'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 14:57:58 +08:00