Commit Graph
178 Commits
Author SHA1 Message Date
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
Innei 975285ec30 feat(mobile): implement native image preview with QuickLook on iOS
- Add ImagePreview helper class for displaying images using QuickLook
- Extend HelperModule with previewImage function to load and display images
- Update WebView bridge to support image preview from web content
- Implement MarkdownImage component with base64 image conversion
- Add cross-platform quickLookImage method for native image preview

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-08 01:24:56 +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 86ed6d4eed fix(rn-entry): entry content layout
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-26 23:05:54 +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 998706e0c1 fix(grouped-list): update text style for title in GroupedInformationCell component
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 21:14:20 +08:00
Innei f4003502e4 chore(rn): update uikit colors
Signed-off-by: Innei <tukon479@gmail.com>
2025-01-24 19:49:39 +08:00