Commit Graph
252 Commits
Author SHA1 Message Date
Stephen Zhou a67d84b7d7 feat(mobile): cache image info (#2899) 2025-02-27 11:10:32 +08:00
Innei 053c5330be fix(mobile): improve item separator rendering
- Use Tailwind's height utility class for consistent separator height
- Add `collapsable={false}` to prevent rendering artifacts
- Use `transform: [{ scaleY: 0.5 }]` for precise hairline width
- Update separators in entry list, settings, and subscription modules

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-27 00:53:38 +08:00
Innei 67152ff06d refactor(mobile): improve entry content header actions
- Refactor header right actions with centralized action items
- Add type definition for action items
- Extract action handlers into separate functions
- Simplify dropdown menu and action bar rendering
- Add missing type imports for menu and icon configurations

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 23:27:19 +08:00
Innei 546e4482c3 feat(mobile): enhance header actions and layout
- Add star icon with color for starred entries in dropdown menu
- Conditionally render star action based on subscription
- Adjust NavigationHeader height and layout styling
- Remove flex direction and alignment in header component

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 23:20:05 +08:00
Innei a3955dffed fix(mobile): adjust entry title and feed title display
- Reduce horizontal padding in EntryTitle component
- Trim feed title to remove potential whitespace

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 23:12:32 +08:00
Innei 458cbf7a5f feat(mobile): enhance entry header with dynamic title and read history
- Add headerTitleAbsolute prop to NavigationHeader for flexible title positioning
- Implement EntryReadHistory component to show recent readers
- Improve header left group with back button and read history avatars
- Optimize header title rendering and opacity animation
- Update UserAvatar and EntryNormalItem styling

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 22:58:30 +08:00
Stephen Zhou 7d092cdd2d fix(mobile): do not mark as read when scrolling up (#2896) 2025-02-26 22:48:37 +08:00
DIYgod f56ede452c fix(mobile): grid footer unread status updating 2025-02-26 22:17:12 +08:00
DIYgod 0a1a469d19 feat(mobile): grid entry mark read 2025-02-26 22:14:18 +08:00
Innei 3164e100a3 refactor(mobile): replace @gorhom/portal with custom portal implementation
- Remove @gorhom/portal dependency
- Create custom Portal and PortalHost components
- Update imports and usage across mobile app
- Simplify portal-related code in various components
- Remove unnecessary portal-related dependencies in package.json

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:53:00 +08:00
Innei d9846a717d feat(mobile): add dynamic blur effect in discover header
- Introduce animatedY shared value to control header blur opacity
- Implement dynamic blur effect based on scroll position
- Update DiscoverContext to include animatedY
- Add scroll event handling in Recommendations tab

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:38:04 +08:00
Innei e52e03f2da feat(mobile): improve header layout and animation
- Add smooth centering animation for navigation header title
- Implement blur effect in search and discover headers
- Standardize header action group width
- Remove unnecessary refresh control in search tabs
2025-02-26 21:19:39 +08:00
Innei 09ed50a4d7 refactor(mobile): reorganize navigation and layout components
This commit restructures the mobile app's navigation and layout components, moving them from scattered locations into a more organized structure. Key changes include:

- Created new layout and navigation-related directories
- Moved context, hooks, and view components to more logical locations
- Improved imports and component organization
- Added constants for UI-related values
- Simplified and standardized navigation and tab bar components

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:00:51 +08:00
DIYgod e481486921 feat: optimize login page 2025-02-26 20:55:29 +08:00
DIYgod ee01f9a799 feat(mobile): optimize discover styles 2025-02-26 18:43:29 +08:00
Whitewater ec8f0a91f0 chore(mobile): improve styling (#2894)
* chore(mobile): update EntryGridFooter description text styling

* chore(mobile): improve padding in AddFeedDialog input field
2025-02-26 18:42:07 +08:00
DIYgod 3ab1c5a9d2 feat(mobile): bigger header buttons 2025-02-26 15:53:44 +08:00
DIYgod 6fafbcb2b8 feat: remove pictureViewFilterNoImage 2025-02-26 15:42:01 +08:00
DIYgod 3b1db6740a feat(mobile): optimize entry grid item styles 2025-02-26 15:38:01 +08:00
Stephen Zhou 2c632c36b6 fix: clear session token after sign out (#2888) 2025-02-25 16:29:59 +00:00
DIYgod 92fca31637 feat(mobile): article and social media entry list styles 2025-02-25 22:36:05 +08:00
Innei 265f23fd76 feat(mobile): add native scroll to top functionality for iOS
- Implement `scrollToTop` function in HelperModule for iOS
- Add native module method to scroll scroll views to top
- Update hooks and components to use new native scroll to top method
- Enhance cross-platform scroll behavior for mobile app
2025-02-25 22:33:35 +08:00
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