Commit Graph
191 Commits
Author SHA1 Message Date
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
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 8963f222cb fix: missing icon 2025-02-13 17:37:58 +08:00
DIYgod 676e8bc55b feat: subscription list; TimelineSelectorHeader and TimelineSelectorList components 2025-02-13 13:58:46 +08:00
Stephen Zhou 1327f5671c fix(mobile): context menu crash when released too quickly (#2732) 2025-02-12 22:34:03 +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 39ca541fc5 fix: types 2025-02-12 16:56:05 +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
Innei 970c9329d2 feat(mobile): enhance entry detail page with star and share actions
- Add star/unstar functionality for entries
- Implement share action for entries
- Improve header actions with animated visibility
- Update collection sync service with transaction handling
- Refactor useFeed hook to support optional selectors

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 00:08:14 +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
Whitewater f5618ddb3a refactor: update asset handling in mobile app (#2720) 2025-02-11 14:07:56 +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
Innei 160eb14258 feat(mobile): add reader inline style rendering option
- Implement dynamic inline style rendering for WebView content
- Create new atom for managing reader inline style preference
- Update EntryContentWebView to support toggling inline style rendering
- Modify HTML renderer to conditionally apply inline styles

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 16:39:37 +08:00
Innei 70e1de5a27 feat(mobile): add dynamic code highlighting theme support in WebView
- Implement code theme selection for light and dark modes
- Add Shiki code highlighter with dynamic theme loading
- Create atoms and hooks for managing code highlighting themes
- Enhance WebView rendering with customizable code block styling

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 16:28:42 +08:00
DIYgod dee24dc7d7 fix: types 2025-02-09 15:23:18 +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 b534667c05 feat(mobile): enhance HTML renderer with image rendering and blurhash support
- Add blurhash and image scaling to MarkdownImage component
- Implement useCalculateNaturalSize hook for responsive image sizing
- Create atoms and types for entry model and media
- Update HTML renderer to support dynamic image rendering with Jotai state management
- Improve iOS image preview with save functionality and dynamic root view controller retrieval

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 19:12:47 +08:00