Commit Graph
658 Commits
Author SHA1 Message Date
Whitewater 3e04dc7291 refactor: upgrade FlashList to v2 (#4298)
* refactor: upgrade FlashList to v2

* chore: upgrade @shopify/flash-list to v2.0.0

* chore: update packageManager version to pnpm@10.14.0

* fix: revert packageManager version to pnpm@10.12.1

* chore: update ref type for TimelineSelectorMasonryList component
2025-08-03 13:56:39 +08:00
lawvs 7a4f5078e7 fix: set default view for FollowImpl 2025-08-02 19:59:57 +08:00
Innei b0af343c8a feat(settings): add option for independent content font size and presets
- Introduced `useDifferentFontSizeForContent` and `mobileContentFontSize` settings in UISettings.
- Updated Appearance screen to allow users to toggle and select content-specific font sizes.
- Added localization for new settings in English, Japanese, Simplified Chinese, and Traditional Chinese.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-29 17:52:43 +08:00
Stephen Zhou 3faac497e9 fix(mobile): improve social media skeleton 2025-07-25 16:39:10 +08:00
Innei 6892c05d09 feat(mobile): support font scaling for web render
Signed-off-by: Innei <tukon479@gmail.com>
2025-07-24 22:12:45 +08:00
Innei e32430f4d9 refactor: remove performance hack for pager list and update imports to use FlashList directly
Signed-off-by: Innei <tukon479@gmail.com>
2025-07-24 20:20:31 +08:00
lawvs fbaf31daf3 fix: update pull-up navigation to use shared values for gesture state 2025-07-24 12:30:07 +08:00
Stephen Zhou c058c88af5 fix(mobile): use correct for trending preview 2025-07-24 12:21:49 +08:00
Stephen Zhou 308822a16d feat: preview trending feed, resolve FOL-2267 2025-07-24 11:28:41 +08:00
Whitewater ab7efc34a7 feat: implement pull-up navigation on Android (#4228)
* feat: implement pull-up navigation on Android

* refactor: update folder structure

* feat: integrate scroll view progress into pull-up navigation

* refactor: extract PullUpIndicatorIos component

* fix: compatible custom text size

* chore: clean code
2025-07-24 04:43:47 +08:00
Innei 38553bfa85 feat(mobile): support custom text size. resolves FOL-2297
- Updated PlayerScreen to use consistent import statements and improved structure.
- Refactored CoverArt component to enhance animation handling with Reanimated.
- Added typography specifications to typography.ts for better text management.
- Extended Tailwind configuration to include custom font sizes.
- Implemented font scaling options in settings localization files for accessibility.
- Added a script to replace Text imports from react-native with a new import path.
- Updated package dependencies for Babel and added glob for file handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-24 01:40:02 +08:00
Innei 8b76fa3623 chore: move lightbox location
Signed-off-by: Innei <tukon479@gmail.com>
2025-07-23 21:30:01 +08:00
Stephen Zhou 3a9cec4c64 feat: hide from timeline option (#4229) 2025-07-23 18:26:38 +08:00
Stephen Zhou cd4593604b fix: typecheck 2025-07-21 17:40:22 +08:00
Stephen Zhou 35d7f9e784 fix: sync unread when mismatched, close #4028 2025-07-21 16:52:37 +08:00
lawvs 71408ea923 fix: ensure default view resets correctly 2025-07-21 16:05:23 +08:00
lawvs 04b6f4c933 feat: enhance FollowFeed components to utilize defaultView 2025-07-21 14:49:21 +08:00
Whitewater d45e4bac06 refactor: simplify audio state handling (#4188)
* chore: allow pause audio when playing

* refactor: update PlayerAction props to use state instead of isPlaying and isLoading

* refactor: remove playingAudioUrl from EntryExtraData

* refactor: simplify audio state

* refactor: simplify audio state handling

* chore: review
2025-07-19 15:14:34 +08:00
Stephen Zhou 51a243eeea fix: toggle translation settings, close #4187 2025-07-16 21:02:57 +08:00
Stephen Zhou 4ee723675b fix: show custom feed title, close #4177 2025-07-16 15:57:40 +08:00
lawvs a097112f5e chore: tweak pager selected logic 2025-07-15 02:51:54 +08:00
DIYgodandClaude e7c8380647 fix(mobile): prevent incorrect read marking during pull-to-refresh
The entry list was incorrectly marking entries as read during pull-to-refresh
operations. This happened because when the refresh control rebounds from
negative contentOffset back to 0, the scroll direction is detected as "down"
causing entries to be mistakenly marked as read.

The fix adds a condition to only mark entries as read when:
1. Scroll direction is down (user swiping up)
2. Current offset is greater than 0 (not at the top or rebounding)

This ensures entries are only marked as read during genuine upward scrolling,
not during pull-to-refresh rebounds.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 19:37:00 +08:00
DIYgodandClaude 4ebff4d35d feat(mobile): improve entry list loading states
- Add skeleton loading states for all entry list view types (Articles, Pictures, Social, Videos)
- Show loading skeleton when entries are not ready and no data yet
- Add proper padding to avoid overlap with header and tab bar
- Create realistic skeletons that match actual entry item structures:
  - Articles: 7 items with title, description, and image placeholders
  - Pictures: 8 items (4 per column) with varied heights and footer content
  - Social: 5 items with social-specific layout
  - Videos: 6 items (3 per column) with video thumbnail and metadata
- Improve UX by showing loading state instead of empty message during data fetch

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 19:00:39 +08:00
Stephen Zhou 2c579c1e83 fix(android): can not open video in external app (#4172) 2025-07-14 16:55:08 +08:00
Stephen Zhou 93ac45881c fix: loading indicator for payment 2025-07-10 18:33:21 +08:00
Stephen Zhou 932e30189f feat(mobile): refresh session after stripe payment 2025-07-10 18:02:11 +08:00
Stephen Zhou 8055ec05be fix: activation prompt 2025-07-10 11:11:54 +08:00
30bb37c7b9 feat: referral (#3761)
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
2025-07-10 09:47:11 +08:00
lawvs 79c9b05246 refactor: add PlayerAction component for video playback controls, close #3915 2025-07-10 04:48:19 +08:00
lawvs 777f4caba9 refactor: optimize the user experience of lightbox 2025-07-09 18:55:43 +08:00
lawvs d5ac4091b0 refactor: use EntryMediaItem component for media rendering 2025-07-09 05:20:50 +08:00
lawvs 0150803e47 chore: remove unused preloadWebViewEntry calls in EntryPictureItem 2025-07-09 05:18:29 +08:00
lawvs 66cb588e95 fix: shamefully addressed lint issues 2025-07-09 03:58:06 +08:00
Stephen Zhou 684dc53379 fix(mobile): persist trending query 2025-07-08 17:43:27 +08:00
lawvs 68f1d35b69 refactor: simplify MediaCarousel components 2025-07-08 01:04:34 +08:00
Whitewater 533850b03f fix: improved lightbox component for iOS (#4089)
* feat: replace Image component with ProxyImage for improved performance and styling

* fix: update Image component style prop

* fix: improved layout in ImageItem component

* feat: integrate animated ref for media preview in EntryPictureItem
2025-07-06 00:08:47 +08:00
DIYgod 47bfc49dad feat(mobile): use insertedBefore for mark above read 2025-07-05 16:21:57 +08:00
DIYgod ad003bd3b8 feat(mobile): real user deletion 2025-07-04 18:54:02 +08:00
DIYgod a0ee5b16d2 feat: update twitter handle 2025-07-03 15:12:18 +08:00
lawvs 63d3df515b refactor: long press to open text select sheet for ai summary 2025-07-03 12:22:03 +08:00
Whitewater e9e67de25f feat: implement imperative modal (#4041)
* feat: implement ImperativeModalProvider with modal context and controls

* fix: make onClose prop optional for bottom modal

* chore: add ImperativeModalProvider to context providers

* feat: wrap BottomModal content in KeyboardAvoidingView for better keyboard handling

* chore: add polyfill for Promise.withResolvers

* fix: wrap ImperativeModal in a View and update onClose to accept modal ID

* feat: implement ImperativeModal with context and modal control hooks

* refactor: redesign imperative modal with root-siblings

* fix: wrap BottomModal in a View to resolve rendering issues on Android

* refactor: replace Alert.prompt with modalPrompt for category creation and renaming
2025-07-02 17:20:41 +00:00
Stephen Zhou 796171de0e refactor: useWhoami from user store (#4061)
* refactor: useWhoami from user store

* update

* update

* update

* update

* return all
2025-07-02 21:57:53 +08:00
Innei 66591e452b feat(mobile): add horizontal padding for pic and video layout
- Added contentContainerStyle to EntryListContentPicture and EntryListContentVideo for consistent padding.
- Updated TimelineSelectorList to merge additional contentContainerStyle and scrollIndicatorInsets from props.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-01 14:24:01 +08:00
lawvs 650a68fccd fix: improve unread count display in ViewItem 2025-07-01 12:25:24 +08:00
Innei 9711a0bc20 feat(timeline): implement animated title transition in TimelineHeader
- Added AnimatedTitle component to handle cross-fade animation for title changes in the TimelineHeader.
- Utilized useSharedValue and useAnimatedStyle from react-native-reanimated for smooth opacity transitions.
- Improved user experience by visually indicating title changes during navigation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-30 20:31:13 +08:00
Innei 86d75b9252 feat(timeline): enhance unread message indicator with animated visibility
- Wrapped the UnreadCount component in an Animated.View to improve visibility during drag interactions.
- Added opacity animation based on drag progress to create a smoother user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-30 20:15:08 +08:00
DIYgod df80682b2c Merge branch 'main' into dev 2025-06-29 10:27:30 +08:00
Stephen Zhou fbd0b3e08f fix: collection is not up to date (#4009) 2025-06-26 09:30:59 +08:00
lawvs b5a81f379b feat: replace Modal with BottomModal in SelectableTextSheet component 2025-06-26 03:29:31 +08:00
lawvs d9e8f8da2c refactor: improve layout in TimelineViewSelector 2025-06-24 19:17:23 +08:00