Commit Graph
1563 Commits
Author SHA1 Message Date
Innei ba0c9119dc refactor(mobile): Replace TimelineSelectorHeader with TimelineSelectorProvider
- Remove TimelineSelectorHeader component
- Introduce TimelineSelectorProvider to manage timeline context
- Update entry list, subscriptions, and feed screens to use new provider
- Simplify component structure and improve context management

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 20:29:42 +08:00
Innei bdff613867 feat(mobile): Enhance PreviewImage and EntryGridItem with interactive preview and animation
- Add onPreview callback to PreviewImage for custom actions during image preview
- Implement WebView entry setting when previewing an item in EntryGridItem
- Add fade-in animation to EntryGridItemAccessory for smoother UI transitions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 20:12:43 +08:00
Innei 9113c0a2e5 feat(mobile): Add media preview accessories and no-media rendering support
- Enhance PreviewImage with optional Accessory component
- Update PreviewPageProvider to support rendering accessories in image preview
- Add noMedia prop to EntryContentWebView for selective media rendering
- Implement EntryGridItemAccessory to show entry details in image preview
- Update HTML renderer to support noMedia configuration

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 20:07:48 +08:00
Innei 27818f6559 feat(mobile): Enhance grid view with dynamic media rendering and improved item handling
- Refactor EntryListContentGrid to dynamically render media items from entry store
- Update EntryGridItem to support image and video media types
- Modify viewable items hook to support custom ID extraction
- Add support for more flexible grid item rendering with type-specific content

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 19:26:05 +08:00
DIYgod 7ccea72707 chore: fix dependencies 2025-02-19 19:03:30 +08:00
Innei b412798958 refactor(mobile): Simplify EntryListSelector and ViewPagerList component structure
Move TimelineSelectorHeader to wrap ViewPagerList and remove redundant wrapping in EntryListSelector

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 18:48:44 +08:00
DIYgod 2130af1079 chore: fix dependencies 2025-02-19 17:09:00 +08:00
DIYgod 9c269e0ee9 chore: fix nativewind config 2025-02-19 16:56:03 +08:00
DIYgod 4512819bf5 chore: fix dependencies 2025-02-19 16:51:54 +08:00
DIYgod ac64569da0 chore: fix test 2025-02-19 16:08:16 +08:00
DIYgod 94b4129eb8 fix: format 2025-02-19 15:55:13 +08:00
DIYgod 36ea29ae7d chore: update dependencies 2025-02-19 15:27:20 +08:00
Innei b276de9655 feat(ui): Add quick timeline selector with improved menu interaction
Enhance timeline column with a new quick selector feature:
- Implement dynamic panel rendering with smooth animations
- Improve triangle menu interaction with configurable delay
- Add trigger area for better user experience

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 14:08:27 +08:00
Whitewater 714a933361 feat(mobile): refactor EntryList to use pager view (#2802)
* feat(mobile): refactor EntryList to use pager view

* chore: clean code
2025-02-19 02:10:47 +08:00
Innei b31705b546 feat(ui): Improve triangle menu interaction with configurable delay
Enhance triangle menu behavior by:
- Adding configurable open delay to useTriangleMenu hook
- Implementing timeout mechanism for smoother menu interactions
- Fixing timer management and state updates in menu trigger logic

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 23:32:10 +08:00
Innei 03f92a51b2 feat(mobile): Add image context menu with save, copy, and share actions
Enhance image interaction by introducing a new ImageContextMenu component:
- Implement context menu for images with copy, save, and share functionalities
- Add support for saving images to device library
- Integrate image editing and file system utilities
- Update PreviewImage and EntryGridItem to use the new context menu

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 23:26:28 +08:00
DIYgod e40acd8237 docs: update slogan 2025-02-18 21:03:58 +08:00
Innei 47b1072993 feat(mobile): Add hide no media item feature for picture view
Implement a new UI setting to filter out entries without images in picture view mode:
- Add `pictureViewFilterNoImage` setting in UI settings
- Create `HideNoMediaActionButton` component for toggling the filter
- Update `EntryGridItem` to respect the new filter setting
- Integrate hide no media button in timeline and feed headers

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 20:17:20 +08:00
Innei 053517db63 feat(mobile): Add image headers for cross-origin image loading
Enhance image loading across multiple components by:
- Importing `getImageHeaders` utility function
- Adding custom headers to image sources to resolve cross-origin issues
- Improving image rendering with transition and recycling key support

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 17:42:18 +08:00
Innei 113c4045b7 feat(mobile): Implement global image preview with advanced gestures
Refactor image preview functionality into a centralized provider:
- Create PreviewImageProvider for managing image preview state
- Add advanced gesture handling for pinch, pan, and tap interactions
- Improve image loading with transition and recycling key
- Enhance user experience with smooth animations and interactions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 17:26:50 +08:00
Innei 9d8ac3021d feat(auth): Enhance login provider icons with custom styling
Add custom text color classes for GitHub and Apple login providers to improve visual consistency across dark and light modes

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 16:37:16 +08:00
Konv Suu 0487034edd feat(select): add itemClassName prop for customizable item styling (#2793)
* feat(select): add itemClassName prop for customizable item styling

* update

* udpate
2025-02-18 13:42:17 +08:00
Innei 640bbf1c74 fix(ui): Correct triangle menu and layout positioning logic
Refactored coordinate calculations in triangle menu interaction:
- Reordered point parameters in `isPointInTriangle` function
- Adjusted trigger and panel rectangle coordinate references
- Modified margin classes for better layout spacing

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-18 13:26:26 +08:00
IzumiMasaharuandWhitewater afbea643e6 fix: Resolved the issue of being unable to reset it to empty after using the proxy. (#2788)
* Update proxy.ts

* Update next.md

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: Whitewater <me@waterwater.moe>
2025-02-18 13:05:05 +08:00
Whitewater c251aeaf65 feat(mobile): implement collection entry list (#2787)
* feat(mobile): implement collection entry list

* refactor(mobile): update entry item skeleton
2025-02-18 02:04:23 +08:00
Stephen Zhou f226de53ab fix(mobile): can not load native module (#2791) 2025-02-17 23:59:40 +08:00
Innei 22ac1be1a5 feat(mobile): add loading indicator for infinite scroll in entry list
Add a loading footer component to the EntryListContentGrid to show an ActivityIndicator when there are more entries to load. Update the component to use the hasNextPage flag from useFetchEntriesControls to conditionally render the loading indicator.

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-17 23:46:21 +08:00
Innei 1d4e37e35a feat(mobile): add preview image component with advanced gesture handling
Introduce a new PreviewImage component with sophisticated gesture interactions for mobile image preview:
- Implement pinch-to-zoom functionality
- Add pan and double-tap gestures for image manipulation
- Support smooth animations for zooming and closing
- Handle image scaling, translation, and modal transitions
- Refactor entry list components to use new preview image component

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-17 23:42:10 +08:00
Stephen Zhou c8f580c0a1 feat(mobile): auto mark as read when scrolling (#2781)
* feat(mobile): auto mark as read when scrolling

* reset unread state after fetch

* refetch with subscription and unread

* chore: auto-fix linting and formatting issues

* chore: trigger build
2025-02-17 13:16:37 +00:00
Innei a52798729e feat(mobile): improve entry list and detail view with UI refinements
- Enhance social media entry list with dynamic text expansion and "See more" option
- Update entry detail view to support social media view type
- Adjust unread indicator and pressable styles
- Add social media specific title and info components
- Refactor settings screen with improved section organization

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-17 20:16:23 +08:00
Innei c3e2ea6921 feat(timeline): enhance timeline selector panel with close button and conditional rendering
Add close button to timeline selector panel and implement conditional rendering based on timeline column visibility. Improve panel header layout and interaction.

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-17 17:57:16 +08:00
Innei befd15ea22 refactor(timeline): improve timeline selector panel interaction with triangle menu
Implement a more sophisticated mouse tracking mechanism for the timeline selector panel, using a triangle-based approach to determine when to open and close the panel. Replace previous Jotai-based state management with a custom hook that tracks mouse movement and provides a more intuitive panel interaction.

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-17 17:31:35 +08:00
Innei e0292fa44d feat(timeline): add advanced timeline selector panel with quick navigation
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-17 17:12:45 +08:00
Stephen Zhou b397dc0658 fix(mobile): use the right import path for feed atom (#2779) 2025-02-17 07:47:51 +00:00
Stephen Zhou fc70859fe9 refactor(mobile): remove load archived entries button (#2774) 2025-02-17 14:50:55 +08:00
Konv Suu 4295decfa9 feat(profile): enhance email management and avatar fallback for better mobile support (#2776) 2025-02-17 12:23:44 +08:00
Konv Suu c7b151394a feat(mobile): add triggerAsChild prop to EntryReadHistory component (#2773) 2025-02-17 11:09:26 +08:00
Stephen Zhou fad9f944d5 fix(mobile): unread style not working, bring views back (#2765) 2025-02-16 10:12:12 +00:00
Whitewater 34648a366d chore(mobile): display feed title in entry item (#2756)
* fix: correct spelling of RelativeDateTime

* chore: display feed title in entry item

* feat(mobile): add feed icon to entry item display
2025-02-15 19:01:43 +08:00
DIYgod f44b1a5604 feat: optimize unread indicator styles 2025-02-14 21:56:13 +08:00
Innei d1612131aa fix(timeline): stabilize timeline ID handling with memoized state
Introduce a memoized state for timelineId to ensure consistent rendering and prevent potential race conditions when route parameters change dynamically.

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 21:48:24 +08:00
Innei 665cf95afb feat(mobile): add feed or rsshub feed
- Add multiple new SVG icons in the mobile app's icons directory
- Create a new Overlay component in the UI components
- Update search module and other related components
- Refactor and clean up various mobile app files

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 21:31:17 +08:00
Innei 9a32c87e02 refactor(mobile): enhance social timeline entry item layout and interactions
- Update EntryItem component with improved styling and user interactions
- Add UserAvatar and RelativeDateTime components
- Adjust layout for author information and entry description
- Implement navigation to feed page on avatar press

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 20:21:25 +08:00
DIYgod 2de63b04d0 feat: remove nightly build 2025-02-14 20:05:27 +08:00
Innei ac06382d79 refactor(mobile): rename ItemPressable component and update imports
Rename `item-pressable.tsx` to `ItemPressable.tsx` and update all import references across the mobile app to maintain consistent file naming conventions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 20:03:18 +08:00
Innei 4095462f34 refactor(mobile): replace icons with UserAvatar and update tab layout
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 19:42:08 +08:00
Whitewater 15232f6b59 chore: update social timeline (#2752)
* feat: add unread indicator animation

* feat: enable image preview on press in social timeline
2025-02-14 18:36:11 +08:00
Innei 63a1774635 refactor: reorganize html-renderer project structure and imports
This commit includes several structural changes:
- Added Vite alias for `~` to simplify imports
- Moved atoms and hooks into `src` directory
- Updated import paths across components
- Removed unused hooks and files

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 17:30:11 +08:00
Innei 62fea74c24 refactor: replace cn utility with clsx and update imports
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-14 17:26:42 +08:00
DIYgod 29f48e3918 feat: timeline selector onWheel 2025-02-14 10:46:14 +08:00