Commit Graph
280 Commits
Author SHA1 Message Date
DIYgod a60d1444a7 feat: add ProxiedImage 2025-02-25 20:02:59 +08:00
Innei ab831f7a53 refactor: enhance user header banner with dynamic gradient and scroll animations
- Improve UserHeaderBanner with dynamic color extraction and scroll interactions
- Add animated scaling and translation for header and avatar
- Simplify imports and remove unused variables
- Update default gradient colors
- Optimize rendering of gradient backgrounds

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 20:02:13 +08:00
Innei 5ba9431075 fix: improve header and scroll behavior in mobile components
- Refactor SafeNavigationScrollView to dynamically calculate header height
- Update TimelineSelectorList scroll and indicator insets
- Modify navigation scroll to top hook with view offset

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 19:42:37 +08:00
Innei de547f3bc9 fix: improve header height and scroll behavior for timeline and subscriptions
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 19:14:39 +08:00
DIYgod 4b84d68d32 fix: subscription list scroll 2025-02-25 18:42:22 +08:00
Innei 7bf4a26659 feat(mobile): enhance timeline and subscriptions header actions
- Extract UnreadOnlyActionButton as a reusable component
- Add support for secondary button variant
- Update TimelineSelectorProvider to handle subscriptions screen
- Modify EntryListContext to include 'subscriptions' type
- Refactor header actions to support different screen types

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 18:28:06 +08:00
DIYgod 494efa472c feat: remove lists in timeline selector 2025-02-25 18:00:45 +08:00
Innei 924cd70475 chore(mobile): update UIBarButton overlay prop and enhance 2FA screen styling
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 15:10:20 +08:00
Whitewater 6cbdf4599c feat(mobile): add context menu for video (#2876)
* chore: clean code

* feat(mobile): add star fn in the image context menu

* feat(mobile): add video context menu with star, open, copy, and share options

* feat(mobile): integrate video context menu and enhance media item rendering

* refactor: strict types

* chore: clean code

* fix: types
2025-02-25 13:27:04 +08:00
Stephen Zhou 8d76c35d69 feat(mobile): toggle unread only (#2873) 2025-02-25 11:33:27 +08:00
Stephen Zhou e40f8a9bbd refactor(mobile): submit button & react-native-otp-entry (#2870) 2025-02-25 10:47:43 +08:00
Innei e75c37fa80 feat(mobile): add Apple Intelligence glow effect module for iOS
- Implement AppleIntelligenceGlowEffectModule with show/hide functionality
- Create SwiftUI-based glow effect with dynamic gradient animations
- Update expo-module.config.json to include new native module
- Add debug panel options to trigger glow effect
- Enhance DebugButton with ReAnimatedTouchableOpacity

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 23:51:54 +08:00
Innei 150fbf7bac refactor(mobile): remove deprecated profile screen and update navigation
- Remove ProfileScreen from settings routes
- Comment out profile-related navigation links
- Add profile route to modal layout
- Update HomeLeftAction to use expo-router for profile navigation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 23:23:46 +08:00
Innei fce03fe977 feat(mobile): enhance dialog system with dynamic actions and improved header
- Refactor dialog library to support dynamic button actions
- Add support for custom header components and icons
- Improve AddFeedDialog layout and interaction
- Implement MarkAllAsReadDialog integration in home screen actions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 23:05:32 +08:00
Innei ea1c666bcd feat(mobile): enhance dialog system and UI interactions
- Add new dialog library for flexible modal interactions
- Implement AddFeedDialog with improved UX
- Update Tabbar and Pressable components with smoother animations
- Remove RootSiblingParent from main component
- Upgrade react-native-uikit-colors to v0.3.8
- Introduce ScaleFadeRotateIn animation for consistent UI transitions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 22:27:14 +08:00
Innei 956d9dfd1e feat(mobile): add titles and improve navigation screen configurations
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 20:47:53 +08:00
Innei 1d62245f4b feat(mobile): add add feed button to discover header
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 19:47:15 +08:00
Innei 5e53dd4927 feat(mobile): improve debug button with gesture handling and persistent position
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 19:43:09 +08:00
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 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 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
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
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 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
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