Commit Graph
225 Commits
Author SHA1 Message Date
Whitewater 8a0049dc15 fix(mobile): revert ref bind for nav scroll view ref (#2856) 2025-02-23 21:38:33 +08:00
Whitewater 5a3825e36d refactor(mobile): remove legacy scroll-to-top (#2855) 2025-02-23 16:09:54 +08:00
Innei 3b5fb5febe fix(mobile): disable scroll-to-top for timeline view selector
- Disabled scroll-to-top behavior for horizontal ScrollView in TimelineViewSelector
- Prevents unintended scrolling when tapping the status bar

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-23 15:45:41 +08:00
Innei 79631bbcbc fix(mobile): remove shadow from PlayerTabBar
- Removed shadow styling from PlayerTabBar component
- Simplified tab bar appearance by eliminating unnecessary shadow effect

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-22 15:51:35 +08:00
Innei 577f07f85e feat(mobile): enhance player UI with floating tab bar and control improvements
- Added PlayerTabBar component to display active track in the tab bar
- Replaced FloatingBar with PlayerTabBar for consistent player controls
- Improved play/pause button with animated transitions
- Updated progress bar text styling with tabular numbers
- Refined DismissIndicator styling in player screen

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 23:11:10 +08:00
Innei 48461f15e6 feat(mobile): add reusable MediaCarousel component
- Created a new MediaCarousel component to handle multiple media types in a scrollable view
- Implemented dynamic indicator for multi-image carousels
- Refactored EntryGridItem to use the new MediaCarousel component
- Exposed PreviewImageProps interface for better type compatibility

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 22:46:00 +08:00
Innei ae89d8d716 refactor(mobile): simplify entry list rendering and context management
- Refactored EntryListContentGrid to use direct entry IDs instead of complex masonry item mapping
- Introduced EntryListContext to provide view type context
- Updated EntryGridItem to handle multiple media types and scrolling
- Simplified ViewPagerList to render a single view instead of multiple pages
- Removed unused pager view logic and simplified entry list rendering

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 21:48:02 +08:00
Innei c4c9ceb385 refactor(mobile): simplify scroll-to-top implementation
Remove scroll-to-top atom and consolidate scroll-to-top logic into a new hook, improving component integration and reducing complexity

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 20:32:50 +08:00
Stephen Zhou 15e3e1c27f refactor(entries): remove isArchived parameter from entry fetching logic (#2836) 2025-02-21 17:07:51 +08:00
Innei 8dbb6343fb feat(mobile): add native iOS toast module with SPIndicator
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-21 16:52:24 +08:00
Stephen Zhou c0afb39788 feat(mobile): render as read (#2835) 2025-02-21 02:37:22 +00:00
Stephen Zhou cc51d861c9 fix(mobile): auth redirect and 2fa support (#2829) 2025-02-21 02:27:44 +00:00
Whitewater 9b3439f711 feat(mobile): implement scroll-to-top functionality (#2831)
* refactor(mobile): wrap entry list components to forward refs

* feat(mobile): implement scroll-to-top functionality

* fix: cast ref types in TimelineSelectorMasonryList

* chore: ensure proper cleanup in useScrollToTopRef hook
2025-02-21 03:45:07 +08:00
Innei 9c720a7d8c feat(mobile): enhance tab bar icon and label animations
- Implemented new TabIcon and TextLabel components for improved tab bar interactions
- Added fade and color interpolation animations for tab icons and labels
- Extracted icon and label rendering logic from main Tabbar component
- Introduced new animation configurations for tab bar elements

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 23:53:16 +08:00
Innei 761e7d5333 refactor(mobile): enhance navigation scroll view and tab bar interactions
- Introduced new context for attaching navigation scroll view refs
- Improved tab bar behavior when re-selecting the same tab
- Removed deprecated scroll view context
- Updated imports and context management for tab bar components

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 23:13:23 +08:00
Innei ea374cb30c refactor(mobile): improve bottom tab bar and related components
- Refactored bottom tab bar implementation with new context and hooks
- Added new components for bottom tab bar management
- Updated imports and references to bottom tab bar related functionality
- Introduced new spring presets and relative date time improvements

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 22:31:39 +08:00
Stephen Zhou 8e2dfe99c8 feat(mobile): audio player (#2801) 2025-02-20 20:40:44 +08:00
Stephen Zhou bd476807e5 refactor(native): remove sn pro font (#2828) 2025-02-20 20:31:26 +08:00
DIYgod 5b6dbd2a6d fix: types 2025-02-20 11:29:29 +08:00
DIYgod 79b4703026 feat(mobile): deletion button 2025-02-20 10:49:52 +08:00
Stephen Zhou 6b991d379e fix(mobile): svg background transparent (#2820) 2025-02-20 02:01:37 +00:00
Innei 63e6a30d83 refactor(mobile): Update TimelineViewSelector context menu handling
- Modify TimelineViewSelector to pass view-specific context menu props
- Adjust TimelineViewSelectorContextMenu to handle undefined viewId more precisely
- Simplify context menu rendering logic for view-based timelines

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 21:44:29 +08:00
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
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 36ea29ae7d chore: update dependencies 2025-02-19 15:27:20 +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
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
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
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
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 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
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