Commit Graph
258 Commits
Author SHA1 Message Date
Stephen Zhou 2c04919bda fix: can not follow list in preview, close #3895 2025-06-19 19:18:07 +08:00
Innei 079b0fed39 fix: adjust shadow style for header elevation in SubviewLayoutInner
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-19 14:14:00 +08:00
Stephen Zhou 8f66d91ce1 feat: changeCategoryView for mobile, better local data update 2025-06-18 16:46:27 +08:00
Stephen Zhou f108a45601 feat: delete or rename category for mobile, improve local data update, close #3945 2025-06-18 16:14:52 +08:00
Cason Kervis e3deb2ec10 fix(dayjs): fix relative time not follow language change (#3932)
* fix(dayjs): fix relative time not follow when language change

* fix: update world in grid item template

* fix: change dayjs locale to settings change

* fix: apply suggest review suggestion
2025-06-18 15:51:27 +08:00
Konv Suu 1de43e1595 fix(desktop): enhance scroll behavior when navigating between Discover and Recommendation pages (#3948) 2025-06-18 15:51:00 +08:00
Innei b72ab7dffd fix(avatar-upload): cropping functionality keep aspect
- Added a helper function `constrainCropData` to ensure crop dimensions remain within image boundaries and maintain a 1:1 aspect ratio.
- Updated image loading and cropping logic to utilize the new helper function for better validation of crop data.
- Improved mouse event handling for cropping to ensure accurate resizing and positioning of the crop area.
- Adjusted crop style calculations to account for the actual display size of the image within its container.

These changes aim to provide a more robust and user-friendly experience when uploading and cropping avatars.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-18 13:47:56 +08:00
lawvs 71dc626996 fix: simplify NoContent component usage in EntryContent 2025-06-18 13:31:22 +08:00
Innei 8130bbceb3 feat(avatar-upload): implement avatar upload modal and related functionality
- Introduced `AvatarUploadModal` component for user-friendly avatar image uploads, including cropping and validation for file type and size.
- Added `uploadAvatarBlob` function to handle the upload process to the server.
- Updated `ProfileSettingForm` to integrate the avatar upload modal, allowing users to upload and preview their avatars seamlessly.
- Enhanced localization with new strings for avatar upload instructions and error messages.

These changes aim to improve the user experience by providing a straightforward method for uploading and managing profile images.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 23:14:54 +08:00
Innei 704c11d5c6 feat(discover): add SimpleDiscoverModal for enhanced feed discovery
resolves FOL-1537

- Introduced `SimpleDiscoverModal` component to facilitate searching and adding feeds via keywords or URLs.
- Implemented form validation using Zod and integrated with the API for feed discovery.
- Updated `SubscriptionList` to show the modal when adding feeds, improving user experience.
- Enhanced localization with new strings for the discover functionality.

These changes aim to streamline the process of discovering and adding feeds, providing users with a more intuitive interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 01:31:12 +08:00
Cason Kervis 67180d3bf3 fix(marquee): improved antimate effect (#3937)
* feat(marquee): add space between head and tail, stop when one cycle complete

* feat(marquee): support corner-player
2025-06-17 00:59:31 +08:00
Innei ed752c51e7 refactor(ui): extract shared ui components
- Added `HeaderActionButton` and `HeaderActionGroup` components for improved action handling in the UI.
- Introduced `Media`, `MediaContainerWidthProvider`, and related context components to manage media dimensions and rendering.
- Enhanced markdown rendering components (`BlockImage`, `InlineImage`, `MarkdownLink`) to utilize the new media structure, improving image handling and layout.
- Updated various components to import from the new media structure, ensuring consistency and better organization.

These changes aim to enhance the media handling capabilities and improve the overall user experience in the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 00:55:53 +08:00
Innei 423f1298c3 refactor(entry-content): handle entry actions, fixed #3841
- Introduced `ApplyEntryActions` component to manage entry actions more effectively.
- Updated `NoContent` component to utilize `useShowSourceContent` for better state management.
- Refactored `EntryContent` to remove unnecessary readability and source content effects, enhancing performance.
- Enhanced `RuleCardToolbar` to include confirmation dialog for rule deletion, improving user experience and preventing accidental deletions.

These changes aim to improve the modularity and usability of the entry content features across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 00:38:42 +08:00
Innei 7b3ec02d5a feat(ui): enhance user interface with new components and layout improvements
- Redesigned the Discover, RSSHub, and Actions pages for a more modern and user-friendly experience.
- Introduced `HeaderActionButton` and `HeaderActionGroup` components to streamline action button layouts.
- Updated the `ActionSetting` and `RSSHub` components to utilize the new button components, improving functionality and visual consistency.
- Enhanced the `WhenSection` component with improved spacing and label styling for better readability.

These changes aim to elevate the overall user experience and maintain a cohesive design across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-17 00:09:05 +08:00
Innei f9aca60d6f refactor(ui): re-design rsshub page ui
- Improved the layout and styling of the ActionSetting, Recommendations, UserProfileModal, Trending, and RSSHub components for better visual consistency and responsiveness.
- Adjusted class names to center elements and enhance spacing, ensuring a more cohesive user experience.
- Updated the UserAvatar component to display either the user's name or handle when the name is not available.
- Refactored the discover page to include a more structured header and additional content sections, improving overall navigation and accessibility.

These changes aim to enhance the user interface and provide a more intuitive experience across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 23:22:56 +08:00
Innei 5ddf4b8b18 refactor(action): enhance ActionSetting layout and styling
- Updated the layout of the ActionSetting component for improved responsiveness and visual clarity.
- Replaced the animated placeholder with a simpler static design and adjusted icon sizes for better alignment.
- Enhanced the ActionButtonGroup with a more structured layout, including dynamic labels and improved spacing.
- Refined the overall user interface to provide a more cohesive experience when managing action rules.

This refactor aims to improve usability and maintainability of the action settings interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 18:19:20 +08:00
Innei 671750b21a fix(action): action button group with dynamic labels and disabled states
- Updated the ActionButtonGroup to conditionally render button labels based on the presence of actions.
- Added disabled states for the export and copy to clipboard options when no actions are available.
- Improved user interface by ensuring appropriate icons and labels are displayed for share and import actions.

This enhancement provides clearer feedback to users regarding available actions and improves overall usability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 18:03:52 +08:00
Innei c9dc6426f8 feat(action): add empty state placeholder for action rules
- Introduced an `EmptyActionPlaceholder` component to display a message when no action rules are present.
- Updated `ActionSetting` to conditionally render the placeholder or the list of action rules based on their availability.
- Enhanced the user interface with animations for the empty state and a prompt to create new actions.

This addition improves user experience by guiding users to start creating action rules when none exist.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 18:02:01 +08:00
Innei 394d00f1a2 feat: support share actions and import from clipboard
- Added a new utility function `copyToClipboard` to handle clipboard operations with error handling.
- Refactored existing clipboard interactions across various components and hooks to utilize the new utility function.
- Introduced import/export functionality for action rules, allowing users to copy rules to clipboard and import from clipboard.
- Enhanced user feedback with toast notifications for clipboard actions.

This update improves code reusability and user experience when interacting with the clipboard.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 17:55:15 +08:00
Innei 1ace5eaaa3 refactor(action): replace ActionCard with RuleCard and restructure action settings
- Removed ActionCard component and its associated imports.
- Introduced RuleCard component to handle action rules.
- Updated ActionSetting to utilize RuleCard instead of ActionCard.
- Added new sections for handling conditions and actions (WhenSection, ThenSection).
- Introduced constants for available actions and their configurations.
- Removed TargetActionList component as part of the refactor.

This refactor enhances the modularity and maintainability of the action settings UI.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-16 16:52:34 +08:00
Stephen Zhou 53957468c9 refactor(desktop): use summary from store package (#3944) 2025-06-16 16:14:58 +08:00
Eric Zhu 2ba7dde263 feat(locales): update zh-CN translations (#3941) 2025-06-16 11:41:20 +08:00
Cason Kervis 9af1b0eb06 feat: don't show the group entries when click the > button on desktop (#3935) 2025-06-16 11:40:29 +08:00
0-o0 cca1a9f268 fix: icon can't follow theme switch correctly (#3922) 2025-06-16 11:38:22 +08:00
Stephen Zhou 1ad0312674 fix: remove coop & coep header, use localStorage for web for now 2025-06-13 23:42:40 +08:00
Innei 1ac1d464cf fix: mobile subview overflow, fixed #3886
- Updated the renderItem and renderValue props in the Recommendations and Trending components to improve clarity and consistency in rendering.
- Adjusted layout structure in the Trending component for better responsiveness and alignment.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 23:18:27 +08:00
Innei b6bccdf820 refactor: update layout structure in SubviewLayout and enhance renderValue type in ResponsiveSelect
- Modified SubviewLayout to use a div wrapper for improved layout management and added overflow handling.
- Updated the renderValue prop type in ResponsiveSelect to accept a ResponsiveSelectItem instead of a string for better type safety.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 23:18:27 +08:00
Innei d6bdcee6a9 fix: hide entry navigation button in no timeline view
- Updated import statement for FeedViewType to use a named import.
- Introduced a new constant, isInHasTimelineView, to determine if the current view supports timeline features.
- Modified rendering logic to conditionally display elements based on the new timeline view check.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 21:55:47 +08:00
Innei ec0d861eb1 refactor: optimize entry selection in ListItem component
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-13 19:57:21 +08:00
Stephen Zhou 24ae0655ab fix: sort entries by publishedAt and insertedAt 2025-06-13 11:31:04 +08:00
Innei 20d8590c58 fix(auth): add support for dark mode icons in login components
- Introduced `iconDark64` property to `AuthProvider` interface for dark mode icon support.
- Updated `LoginModalContent` and `Login` components to conditionally render dark mode icons based on the current theme.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 21:06:15 +08:00
Innei a42ae14278 feat(settings): add 'Hide Extra Badge' option to appearance settings and update translations
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 21:03:45 +08:00
Konv Suu 37ec87b121 fix(discover): borken style in discover page (#3905) 2025-06-12 16:49:31 +08:00
Stephen Zhou f928707264 feat(desktop): export sqlite database 2025-06-12 15:33:28 +08:00
Stephen Zhou b9936b87d6 fix: bring back changes in create and update list 2025-06-12 14:03:47 +08:00
Stephen Zhou 8d6489f605 refactor: remove duplicated fetchEntryContentByStream 2025-06-11 22:55:44 +08:00
Stephen Zhou f325da0c31 fix(desktop): translate content for social media 2025-06-11 13:22:19 +08:00
Stephen Zhou d3f889a42d refactor(desktop): use translation and readability from shared store (#3902) 2025-06-11 12:36:26 +08:00
Stephen Zhou 784a95cff1 refactor(desktop): use database and store from shared package (#3897) 2025-06-11 11:36:25 +08:00
Innei d3b65ac033 fix(language-selector):remove language description label on onboarding modal
- Updated LanguageSelector component to include a showDescription prop, allowing conditional rendering of the language description.
- Modified the Intro component to set showDescription to false, streamlining the user interface in the new user guide.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-11 00:50:37 +08:00
Innei 0fd9298f20 fix(desktop): fix switch sub hotkey scope
- Renamed FeedColumn to SubscriptionColumn for consistency and clarity.
- Updated imports and component references throughout the subscription column module.
- Introduced new SubscriptionColumnHeader, SubscriptionList, and SubscriptionTabButton components to enhance functionality and organization.
- Removed the deprecated TimelineList component to streamline the codebase.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-11 00:04:04 +08:00
Innei 228b4b09ae feat(profile): redesign user profile modal
- Introduced a new ListCard component to display user-created lists with relevant details.
- Updated user data handling to include image and improved structure for user information.
- Refactored the UserProfileModalContent to streamline rendering of user info, lists, and subscriptions.
- Removed unnecessary state management and improved overall layout for better user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-10 23:43:20 +08:00
Innei c7607dec09 fix: unfollow before list delete
- Replaced object key checks with direct array length checks for list and inbox subscriptions to enhance performance and readability.
- Updated components to utilize the new subscription ID variables for improved clarity in data management.
- Removed unnecessary list invalidation after deletion to simplify the mutation success flow.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-10 21:51:17 +08:00
Innei d39f95c5b3 fix(desktop): can update list after create list
- Replaced grouped data hooks with direct ID retrieval for lists and inboxes to simplify data management.
- Updated related components to utilize the new hooks for improved performance and clarity.
- Enhanced list creation and update logic to utilize centralized actions for better maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-10 21:45:56 +08:00
Cason Kervis e03d1ec872 fix(profile): fix input box not fully width (#3898)
* fix(profile): fix input box not fully width

* fix: update translate
2025-06-10 20:17:50 +08:00
huanfei ad7d191b74 fix: adjust some style (#3896)
* feat: adjust style

* fix: preview button line break
2025-06-10 20:16:50 +08:00
Innei 4d7c01c68c refactor(profile): simplify user profile modal layout and enhance user info display
- Removed unnecessary state management for header simplicity and scroll handling.
- Updated user info display to include bio, website, and social links in a more structured layout.
- Integrated follow button functionality for users to follow others directly from the profile modal.
- Improved overall styling and organization of the user profile modal for better user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-10 00:28:06 +08:00
Innei b934d65a7b chore(profile): extract social media constants and functions into a separate module
- Created a new constants file for social media icons and links to improve code organization and reusability.
- Updated the user profile modal components to utilize the new constants and functions for rendering social links.
- Refactored social link handling to streamline the process of generating URLs based on user data.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-10 00:13:58 +08:00
Innei 507a525965 feat(profile): add user profile with bio, website, and social links
- Added fields for user bio, website, and social links (Twitter, GitHub, Instagram, Facebook, YouTube, Discord) in the profile settings form.
- Updated the user profile modal to display bio, website, and social links.
- Improved email management UI for better layout and user experience.
- Introduced new translations for the added fields in the settings locale.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-10 00:08:25 +08:00
Innei 9f63483332 feat(upgrade): add linkifyChangelog utility and update changelog rendering
- Introduced a new utility function `linkifyChangelog` to convert commit hashes, issue/PR numbers, and contributor mentions into clickable links.
- Updated the `AppNotificationContainer` to utilize the new utility for rendering the changelog in both development and production environments.
- Modified the `Paper` component styling for improved visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-09 22:31:18 +08:00