Commit Graph
133 Commits
Author SHA1 Message Date
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
WhitewaterandStephen Zhou 903b98953a feat(mobile): add social entry list component (#2733)
* refactor(mobile): extract entry list article component

* feat(mobile): add social entry list component

* fix: lint

* chore: typo

* refactor(mobile): replace FlashList with TimelineSelectorList

* chore: auto-fix linting and formatting issues

* refactor(mobile): extract ItemSeparator component

* chore: add diff

* fix: merge

---------

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-02-14 00:02:14 +08:00
Innei baf1af5f99 feat(mobile): add context menu and animated text for timeline view selector
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 22:55:16 +08:00
Innei 710ae5da7a refactor(mobile): reorganize timeline selector components and imports
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 22:41:14 +08:00
Innei 8703a0d503 feat(mobile): add animated unread indicator for entries
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 22:23:46 +08:00
Stephen Zhou ddd6a2c8cd feat(mobile): unread state for entry (#2730)
* feat: unread state for entry

* mark feed as read

* fix type

* feat: mark as read when entering entry detail

* prefetch unread

* show unread count for view

* fix: use feed subscription for view unread count

* fix: clean not exist subscriptions

* Pre fetch subscriptions in advance

* fix: add entry ids to list
2025-02-13 18:51:39 +08:00
DIYgod 676e8bc55b feat: subscription list; TimelineSelectorHeader and TimelineSelectorList components 2025-02-13 13:58:46 +08:00
Innei bc252c33a0 refactor(mobile): improve AI summary component and remove unused assets
- Remove Media.xcassets and Accent color set
- Update Utils.swift to hardcode accent color
- Enhance AISummary component with error handling and retry functionality
- Adjust layout and styling for AI summary
- Update image size calculation to handle undefined dimensions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 20:42:01 +08:00
Innei f5c4d35c6c feat(mobile): add AI summary generation for entries
- Implement AI summary feature for entry details
- Add summaries table to database schema
- Create summary service and store for managing summaries
- Introduce new components for displaying AI-generated summaries
- Add header actions for generating and toggling summaries
- Integrate with API for summary generation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 18:11:42 +08:00
DIYgod 36f7767b56 feat: update icons 2025-02-12 16:52:03 +08:00
Whitewater dea3380beb fix(mobile): update types and star entry with view (#2728) 2025-02-12 16:17:06 +08:00
Innei 60a2b9cad5 refactor(mobile): improve view selector and tab layout components
- Replace PlatformPressable with Pressable in tab layout
- Add separator between views and lists in view selector
- Use ReAnimatedTouchableOpacity and useAnimatedStyle
- Simplify color and styling imports

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 15:49:51 +08:00
Stephen Zhou d8a796d3ab feat(mobile): load archive entries (#2725)
* feat(mobile): load archive entries

* only hydrate for view

* leave note

* fix type
2025-02-12 15:27:03 +08:00
DIYgod 3b1db30456 feat: animated view selector 2025-02-12 15:20:49 +08:00
Stephen Zhou c01984d50f feat(mobile): refresh control for entry list (#2723) 2025-02-11 22:15:18 +08:00
Whitewater 2f1d0485f8 feat: add collections table and implement collection management services (#2718)
* feat: add collections table and implement collection management services

* chore: fix typo in star entry hook and add toast for star

* chore: generate drizzle migration script

* chore: clean code
2025-02-11 17:57:05 +08:00
Innei 220e2e0843 refactor: migrate context menu and update entry detail interactions
- Replace custom iOS context menu with zeego/context-menu
- Add dropdown menu for entry detail header actions
- Implement copy link and open in browser functionality
- Update entry hook to support optional selector
- Rename action components for clarity
- Remove deprecated context menu implementation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 16:06:21 +08:00
Innei ebea9d824f refactor: improve navigation and component rendering in mobile app
- Update SafeNavigationScrollView to support custom headerLeft prop
- Optimize EntryListScreen with memoized header actions and simplified conditions
- Simplify EntryListContent by removing BottomTabBarHeightContext.Consumer
- Add Link to Terms of Service in login screen
- Wrap Feed screen with BottomTabBarHeightContext.Provider

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 15:42:27 +08:00
Stephen Zhou a63bb82935 feat(mobile): entry list by feed or category; pagination (#2717)
* feat(mobile): entry list pagination support, remove deprecated views

* feat: entry list by feed

* feat: support category

* back title
2025-02-11 09:04:20 +08:00
Innei 8fede2f0c4 refactor: update routes from /feeds to /timeline and improve timeline navigation (#2716)
* refactor: update routes from /feeds to /timeline and improve timeline navigation

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: improve timeline selector and list view rendering

- Optimize timeline selector with auto-scrolling and dynamic rendering
- Enhance list switch button with improved styling and title display
- Memoize and optimize timeline-related hooks and components
- Add utility functions for scrolling and visibility detection

Signed-off-by: Innei <tukon479@gmail.com>

* fix: prevent timeline selector error when timelineId is undefined

- Add null check for timelineId before processing timeline selection
- Ensure safe handling of timeline selector when no timeline is selected

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add InboxSwitchButton for timeline navigation

- Implement InboxSwitchButton component for inbox timeline selection
- Add handling for inbox timeline in TimelineSwitchButton
- Support unread indicator and navigation for inbox timelines

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 22:03:41 +08:00
Whitewater 5867d54eab chore(mobile): improve layout and styling in login terms (#2715) 2025-02-10 17:58:37 +08:00
lawvs 8409ab1899 feat: add context menu for entry items 2025-02-08 23:12:31 +08:00
Innei 713dc47531 feat(mobile): add PortalProvider to EntryContentWebView and adjust ActivityIndicator
- Wrap EntryItem content with PortalProvider for better portal management
- Simplify ActivityIndicator by removing explicit size prop
- Improve WebView content loading experience in entry list

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 22:50:49 +08:00
Innei 8e99f1ac88 refactor(mobile): update entry list item styling with system colors
- Replace zinc color skeletons with system fill color in EntryItemSkeleton
- Remove negative margin from entry title text in EntryItem
- Improve visual consistency using system background and fill colors

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 22:49:20 +08:00
Innei 17c7f9d3e9 chore(mobile): update dependencies and refactor UI components
- Upgrade react-native-uikit-colors to v0.2.0
- Enhance CustomURLSchemeHandler with improved task management
- Update RecommendationListItem and EntryListItem with context menu improvements
- Refactor entry list item styling using system colors and context menu preview
- Add context menu preview to login and entry list modules

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 22:24:17 +08:00
Innei a98695370c refactor(mobile): simplify WebView initialization and entry loading
- Remove unnecessary WebView preparation in main entry point
- Extract WebView entry setting logic into a separate function
- Preload WebView for entry rendering in the main index screen
- Optimize entry list item press handling with WebView entry preparation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 19:32:58 +08:00
Innei 64db32ef34 feat: Implement the webview sandbox using a microfront end for rn to implement the full html renderer (#2691)
* init

Signed-off-by: Innei <tukon479@gmail.com>

* feat: parser and renderer

Signed-off-by: Innei <tukon479@gmail.com>

* feat: shared webview

* feat: add UIColor hex conversion extension and accent color asset and xhr rewrite

* feat(mobile): enhance WebView and HTML rendering for iOS

- Refactor SharedWebView module with improved JavaScript injection and link handling
- Add ModalWebViewController for opening links in a modal view
- Implement dynamic content height measurement
- Update HTML renderer with Jotai state management
- Improve WebView configuration and debug mode

Signed-off-by: Innei <tukon479@gmail.com>

* lockfile

Signed-off-by: Innei <tukon479@gmail.com>

* chore: auto-fix linting and formatting issues

* fix(mobile): improve WebView debug mode and UI text styling

- Remove debug-only conditional for WebView inspector
- Add text label class to GroupedInsetListActionCell for consistent styling

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): add FullScreenWKWebView for iOS WebView layout

- Create custom WKWebView subclass to override safe area insets
- Enables full-screen WebView rendering without default padding

Signed-off-by: Innei <tukon479@gmail.com>

* chore(mobile): remove FullScreenWKWebView Swift file

- Delete unused custom WKWebView subclass for iOS
- Cleanup unnecessary file after previous implementation

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): refactor iOS WebView infrastructure

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): add native helper module and improve entry detail screen

- Add HelperModule for iOS to open links in a modal WebView
- Implement cross-platform link opening mechanism
- Enhance entry detail screen with dynamic title and scroll behavior
- Add loading indicator for entry content
- Refactor navigation and scroll view components

Signed-off-by: Innei <tukon479@gmail.com>

* fix(mobile): improve WebView JavaScript and URL loading thread safety

- Dispatch JavaScript evaluation and URL loading on the main thread
- Ensure thread-safe WebView interactions for iOS
- Prevent potential race conditions in SharedWebViewModule

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(mobile): remove useOpenLink hook and update link opening mechanism

- Replace custom useOpenLink hook with native openLink function
- Update WebView navigation and recommendation list item to use new link opening method
- Remove unnecessary hook and simplify link handling

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-07 23:15:29 +08:00
Whitewater 900a3477c3 refactor: migrate context menu to zeego/context-menu and update usage (#2698) 2025-02-07 13:47:43 +08:00
lawvs 631b240499 fix: tweak Select component width 2025-02-06 16:47:22 +08:00
Whitewater 5d6386f29b refactor: migrate dropdown menu to zeego/dropdown-menu (#2696)
* refactor: integrate zeego dropdown menu in Select and SortActionButton

* refactor: remove DropdownMenu component

* refactor: remove react-native-context-menu-view dependency
2025-02-06 13:42:04 +08:00
Stephen Zhou fb266f4a8f refactor(mobile): prefetch entry logic 2025-02-05 21:32:52 +08:00
Stephen Zhou 03a1438133 feat(mobile): prefetch entry content 2025-02-05 20:34:35 +08:00
Innei f84957f46b fix: shiki theme resolver and lockfile maintainance
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-05 14:18:25 +08:00
Innei 23a9d870ee refactor: replace LoadingIndicator with ActivityIndicator across mobile app
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-26 14:50:28 +08:00
DIYgod 686efe7d62 fix: type errors 2025-01-25 21:11:52 +08:00
Innei f4003502e4 chore(rn): update uikit colors
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 19:49:39 +08:00
Innei 7365eb5e38 fix(rn-base): Switch component flex
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 19:42:18 +08:00