Commit Graph
735 Commits
Author SHA1 Message Date
DIYgod f3076d780c feat: replace MediaGallery with inline media rendering in SocialMediaLayout 2025-09-15 15:28:46 +08:00
Stephen Zhou 94fde23e4b feat: back to feed first 2025-09-15 11:52:11 +08:00
Stephen Zhou de88624ece fix: remove duplicated feed id, improve performance 2025-09-15 11:24:04 +08:00
Innei 7119b91975 feat: integrate EntriesContext for improved subscription management
- Added EntriesProvider and context to manage subscription entries more effectively across components.
- Refactored EntrySubscriptionList and related components to utilize the new context for data fetching and state management.
- Introduced EntrySubscriptionSkeleton for better loading states in the subscription column.
- Removed the outdated useEntrySubscriptionData hook to streamline data handling.

These changes enhance the overall architecture and performance of the subscription column, providing a more cohesive user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-13 00:28:17 +08:00
Innei 863bc43f3d feat: enhance subscription column functionality
- Introduced new components for managing subscription entries, including EntrySubscriptionItem and EntrySubscriptionList, to improve the display and interaction within the subscription column.
- Added hooks for handling entry visibility and data fetching, optimizing performance and user experience.
- Implemented a toolbar for toggling the visibility of the entry list, enhancing user control over the interface.
- Refactored sidebar atoms to support new subscription-related states and actions.

These changes aim to provide a more robust and user-friendly experience in managing subscriptions within the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 23:32:58 +08:00
Innei 6e028b3e68 chore: remove zen and wider mode
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 20:47:07 +08:00
Innei e9669c1f33 refactor: enhance entry actions handling and toolbar integration
- Updated the HIDE_ACTIONS_IN_ENTRY_CONTEXT_MENU to explicitly define its type for better type safety.
- Introduced HIDE_ACTIONS_IN_ENTRY_TOOLBAR_ACTIONS to consolidate hidden actions for the toolbar.
- Refactored ActionBar to utilize useSortedEntryActions for improved action filtering and rendering.

These changes aim to streamline the entry actions logic and improve the maintainability of the ActionBar component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 17:41:01 +08:00
Innei 19c1f4c0e9 refactor: enhance modal styling and structure
- Updated modal component styles for improved visual consistency, including changes to border radius, padding, and text styles.
- Adjusted shadow properties in the Tailwind CSS configuration for better appearance in both light and dark themes.
- Refined layout and spacing within the modal to enhance user experience.

These changes aim to improve the overall aesthetics and usability of the modal component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 17:36:30 +08:00
Innei 8cebbc6f01 refactor: enhance navigation by integrating view parameter retrieval
- Updated EntryColumnShortcutHandler to utilize getRouteParams for retrieving the view parameter during navigation.
- Ensured that the view parameter is passed correctly when navigating to the next entry, improving the consistency of navigation behavior.

These changes aim to enhance the clarity and functionality of the entry column navigation logic.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 02:02:48 +08:00
Innei ba71145768 fix: breadcrumb return back prev page logic
- Updated the logic in useNavigateEntry to ensure the final view is determined correctly based on the type of the view parameter.
- Refactored the EntryTitle component to simplify the rendering of recent readers, improving readability and maintainability.
- Adjusted the EntryHeaderBreadcrumb to pass the view parameter during navigation, enhancing functionality.

These changes aim to improve code clarity and ensure consistent behavior across navigation and entry display components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 01:48:46 +08:00
Innei 6849e30047 refactor: streamline ChatInput key handling logic
- Simplified the Enter key handling in the ChatInput component by removing unnecessary conditions.
- Ensured that the handleSend function is called directly when the Enter key is pressed, improving code clarity.

These changes enhance the readability and maintainability of the ChatInput component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 01:24:34 +08:00
Innei a5dfea871c refactor: simplify entry actions handling and improve context menu integration
- Removed the 'compact' parameter from several components to streamline the entry actions logic.
- Updated the CommandActionButton usage in ActionBar for better context menu interaction.
- Enhanced the ActionBar component to handle mouse position for context menu display.
- Cleaned up imports and adjusted related components to reflect the changes in props and structure.

These modifications aim to improve code clarity and maintainability while ensuring consistent functionality across entry actions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-12 01:23:28 +08:00
DIYgod 418d99aae9 feat: more stable switching timeline back to top 2025-09-11 21:47:29 +08:00
DIYgod 1870bd11e1 feat: implement getAvatarUrl utility for user avatars
- Added getAvatarUrl function to handle user avatar retrieval, including fallback logic for missing images.
- Updated EntryUser and UserProfileModalContent components to utilize the new getAvatarUrl function for improved avatar handling.

These changes enhance the user experience by ensuring consistent avatar display across the application.
2025-09-10 20:35:24 +08:00
DIYgod b68d8d8e52 feat: move recent reads below the title 2025-09-10 18:32:01 +08:00
DIYgod 922df61be0 feat: audio and video icon in all item 2025-09-10 17:41:57 +08:00
Stephen Zhou bb8208d31e fix: prefer subscription view 2025-09-10 17:20:25 +08:00
Stephen Zhou c1ba64e615 fix: no content state for readability 2025-09-10 16:56:12 +08:00
Stephen Zhou 4254da6c69 feat: audio player for article layout 2025-09-10 15:41:37 +08:00
Stephen Zhou dcb5fca520 fix: blurhash for ai video item 2025-09-09 22:50:36 +08:00
DIYgod 6c1ee7dc30 feat: compact unified view 2025-09-09 21:36:29 +08:00
DIYgod 280bc2a45e Revert "Merge pull request #4460 from RSSNext/feat/remove-all-view"
This reverts commit fdf076f28b, reversing
changes made to 3776d82d97.
2025-09-09 21:36:29 +08:00
Innei b07e2de01e fix: entry meta no title in breadcrumb and catch not found error
- Introduced a new higher-order component, withAppErrorBoundary, to wrap components with error boundary functionality.
- Created EntryNotFoundErrorFallback component to display a user-friendly message when an entry is not found.
- Updated error handling in EntryContent to utilize the new EntryNotFound error type.
- Added EntryContentFallback component to manage entry prefetching and loading states, enhancing user experience during data retrieval.

These changes improve error management and user feedback for entry-related issues.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-09 19:22:51 +08:00
songkeys ebf86a20a9 feat(view): remove all masonry view 2025-09-09 13:46:41 +08:00
Innei 3776d82d97 feat: implement scroll handling with new custom hook
- Added a new hook, useAttachScrollBeyond, to manage scroll behavior and state across components.
- Updated ChatInterface and WelcomeScreen to utilize the new hook for handling scroll events, improving the user experience by ensuring consistent scroll threshold management.
- Refactored AIChatRoot to maintain clean code structure.

These changes enhance the chat interface by providing a centralized way to manage scroll interactions, improving overall usability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-08 22:32:52 +08:00
Innei 2a2085a0f1 feat: add AI shortcut functionality for enhanced user interaction
- Introduced a new hook, useAIShortcut, to manage keyboard shortcuts for creating new chats and closing the AI chat panel.
- Integrated the useAIShortcut hook into the AIChatRoot component to enable these shortcuts when the AI chat is focused.

These changes improve user experience by providing quick access to essential chat functions through keyboard shortcuts.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-08 22:03:05 +08:00
Innei a075aa1ff6 feat: enhance AI panel functionality and visibility management
- Added a "Close Sidebar" option in the ChatMoreDropdown for improved user control over the AI panel.
- Updated AIIndicator to simplify visibility logic for the spline button.
- Refactored AIEntryLayout to better manage AI panel visibility and layout based on the current panel style.

These changes improve the user experience by providing more intuitive controls and ensuring consistent behavior of the AI panel across components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-08 21:13:46 +08:00
Innei 682771cd4e feat: implement scroll threshold state management
- Introduced AIRootStateContext to manage the scroll threshold state across components.
- Updated AIChatRoot, ChatHeader, ChatInterface, and WelcomeScreen to utilize the new context for scroll behavior.
- Added SCROLLED_BEYOND_THRESHOLD constant to define the scroll limit for triggering state changes.

These changes enhance the chat interface by allowing components to react to scroll position, improving user experience and interaction dynamics.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-08 21:07:30 +08:00
Innei b05f49fe84 fix: can scroll on entry content
- Modified the AIEntryLayout component to include a relative positioning class for better layout management.
- This change enhances the overall rendering and interaction experience within the entry column.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-08 20:53:02 +08:00
Innei d7a7b0c8c3 fix: improve entry layout and animation handling
- Updated AIEntryLayout to include a wrapper div for better pointer event management and layout structure.
- Removed unnecessary layout animation div in EntryContent to streamline rendering.
- Adjusted padding in SocialMediaLayout for improved spacing.

These changes enhance the user experience by ensuring smoother animations and better layout consistency across components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-08 20:49:36 +08:00
Stephen Zhou 7b653ab756 fix: view name in bread crumb 2025-09-08 20:17:30 +08:00
Stephen Zhou d52a97b947 fix: entry content animation 2025-09-08 19:59:52 +08:00
Stephen Zhou 603d62bc31 fix: align entry header and chat header with sidebar 2025-09-08 17:56:53 +08:00
Stephen Zhou 2429dde83f Revert "fix: align entry header with sidebar"
This reverts commit 5361500112.
2025-09-08 17:25:11 +08:00
Stephen Zhou 5361500112 fix: align entry header with sidebar 2025-09-08 17:16:49 +08:00
Stephen Zhou 0bce143d32 fix: ensure entry title meta handler is there 2025-09-08 16:35:08 +08:00
Stephen Zhou eb06711dd2 fix: align mark all read button 2025-09-08 16:20:13 +08:00
DIYgod f0f26308e5 feat: improve uni-feed layout and styling consistency
- Adjusted highlight styles in the AllItem component to remove text color for better visual clarity.
- Reduced the minimum height of media elements in AllItem for a more compact layout.
- Updated the column width in AllMasonry for improved responsiveness and layout.
- Simplified the class names in MasonryItemRender for cleaner code.

These changes enhance the overall user interface by providing a more consistent and visually appealing layout across components.
2025-09-06 14:13:12 +08:00
Innei 4ecbc4b297 fix(header): fix electron macos header
- Renamed timeline column hooks to subscription column hooks for clarity and consistency.
- Updated zen mode handling in the settings and sidebar components to streamline functionality.
- Adjusted Tailwind CSS configurations for improved variant handling related to zen mode and left column visibility.

These changes enhance code readability and maintainability while improving the user experience in managing subscription visibility and settings.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-06 01:00:40 +08:00
Innei c130037e42 refactor(ai-chat): enhance ChatInput and ChatInterface layout
- Added z-index to ChatInput for improved layering.
- Refactored ChatInterface to simplify rendering logic and ensure consistent display of messages and loading indicators.
- Introduced a backdrop for the ChatInput when not centered, enhancing visual separation.

These changes improve the user interface and interaction experience within the AI chat components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-06 00:43:15 +08:00
Innei 4e0dfdfdde refactor(subscription-column): enhance swipe functionality and animation handling
- Introduced custom ordering for timeline views to improve swipe direction calculations.
- Updated state management to reflect the active view index accurately.
- Replaced animation transition properties with predefined spring presets for smoother animations.

These changes enhance the user experience by providing more intuitive swipe interactions and improved animation performance.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-06 00:08:12 +08:00
Innei 82dc3992c9 fix: should hide unhandled action in some place
- Updated `useEntryActions` to include `routeEntryId` for better context handling.
- Added `isCurrentVisitEntry` logic to conditionally hide the export action in the entry menu.
- Modified `MoreActions` component to conditionally render the customize toolbar action based on the new prop.
- Adjusted animation properties in `EntryItemWrapper` for smoother transitions.
- Added `data-hide-in-print` attribute to `AIChatFixedPanel` for improved print handling.

These changes improve the functionality and user experience of entry actions and related UI components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-05 23:55:05 +08:00
Innei f251e05c96 feat: enhance AIEntryLayout with entry header and animation
- Added AIEntryHeader component to display entry details dynamically.
- Implemented entry header animation using AnimatePresence for smoother transitions.
- Updated entry content rendering logic to improve visual consistency and user experience.

These changes enhance the layout and interaction of the AI entry components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-05 23:45:20 +08:00
Innei 530e18ecc1 fix: long hyperlinks should be wrapped at word boundaries, closed #4447
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-05 23:31:34 +08:00
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
DIYgod 335a38262a fix(media): enhance click handling and cursor styles in social media media components
- Updated the `PreviewMediaContent` and `SocialMediaGallery` components to improve click handling by stopping event propagation.
- Added cursor styles to indicate zoom functionality for better user experience.

These changes enhance the interactivity and visual feedback of media elements in the application.
2025-09-05 20:43:21 +08:00
lawvs df5acca9b7 chore: tweak switch of notify channels 2025-09-05 15:50:59 +08:00
Whitewater f2605390ef feat: add notification channels configuration (#4442)
* feat: add notification channels configuration

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

* fix: update error handling

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

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

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

* fix: shamefully ignore ts error
2025-09-05 15:47:22 +08:00
Stephen Zhou 430e015207 Revert "feat: update transcript design"
This reverts commit a3e13ace93.
2025-09-05 10:45:26 +08:00