Commit Graph
428 Commits
Author SHA1 Message Date
Innei 9368136793 fix(subscription-item): ItemSeparator in list list
- Refactored ListSubscriptionItem component to enhance readability by restructuring JSX elements.
- Maintained existing functionality while ensuring consistent styling and layout.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 21:09:25 +08:00
Innei 3669223c13 feat(entry-list): enhance entry components with view type support
- Updated EntryNormalItem, EntrySocialItem, EntryVideoItem, and EntryGridFooter to accept and utilize view type for better context handling.
- Refactored EntryListSelector to include a NoLoginGuard for improved user experience.
- Added display names for memoized components for better debugging.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 21:08:34 +08:00
Innei ac39545c39 perf: optimize re-render when switch view
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 17:27:26 +08:00
Innei 755e895b6e refactor: simplify useSelectedView hook and update selectTimeline function to use target parameter for event dispatching
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 16:39:45 +08:00
Innei 12bfa9ba9c fix: correct view type in useSelectedFeed hook to ensure proper feedId retrieval
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 16:28:16 +08:00
DIYgod 46f8ae0e48 refactor(mobile): optimize useSelectedView hook 2025-04-11 15:27:14 +08:00
Innei 23eaf86926 feat: implement tap gesture for ItemPressable component; refactor context menu entry and entry list components for improved performance and readability
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 14:19:57 +08:00
Innei 3e3698a044 refactor: replace TimelineSelectorProvider with TimelineHeader in entry list and feed screens; enhance useSelectedFeed for better selector support
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 13:37:10 +08:00
DIYgod 87aa06243e feat(mobile): ai summary card styles 2025-04-11 11:38:52 +08:00
DIYgod 17dd1e70f2 fix(mobile): entry normal item text positions 2025-04-11 00:09:45 +08:00
DIYgod 7e553db6cb feat(mobile): link to actions documentation 2025-04-10 23:26:38 +08:00
Stephen Zhou baff103ded fix(mobile): prefetch for preview feed 2025-04-10 18:48:26 +08:00
Stephen Zhou 23adc686ac feat(mobile): show error message (#3455) 2025-04-10 10:22:47 +00:00
Stephen Zhou e7728a3d34 refactor: unify unread count locales and logic (#3453) 2025-04-10 16:22:46 +08:00
Innei f1e113a012 chore(mobile): update icon background color in ActionsScreen
- Changed the icon background color in the ActionsScreen from #D8B4FE to #9333EA to align with the new design scheme.

This modification aims to enhance visual consistency within the settings section of the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-10 14:53:37 +08:00
Innei 4ce80cda9d chore(mobile): update icon background colors in settings and invitations
- Changed the icon background colors for various settings in the SettingsList component to enhance visual consistency.
- Updated the icon background color in the InvitationsScreen to match the new design scheme.

These modifications aim to improve the overall aesthetic and user experience within the settings and invitations sections.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-10 14:49:01 +08:00
Stephen Zhou 8dd6d5c846 fix(mobile): optimize translation query (#3450)
* fix(mobile): optimize translation query

* update

* update
2025-04-10 14:05:58 +08:00
Innei f24f21ae73 fix(mobile): update clipboard handling and refine dropdown menu visibility logic, fix #3443
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-09 21:20:29 +08:00
Stephen Zhou 104c3fb5f1 fix(mobile): mark as read payload for feed list (#3441)
* fix(mobile): make as read payload for feed list

* update
2025-04-09 21:02:37 +08:00
DIYgod a65742e2bf feat(mobile): success toast 2025-04-09 17:53:20 +08:00
DIYgod 53b2136889 feat(mobile): add mark as read action button for feed list 2025-04-09 17:28:13 +08:00
DIYgod 22d642a3fb feat(mobile): update mark as read icon 2025-04-09 17:02:19 +08:00
DIYgod 5ede249048 feat(mobile): mark as read filters 2025-04-09 16:56:54 +08:00
DIYgod d70f08251f feat(mobile): getSubscriptionByCategory by view 2025-04-09 16:23:15 +08:00
DIYgod 98468d4183 feat(mobile): unified getFetchEntryPayload 2025-04-09 16:23:15 +08:00
Stephen Zhou 77f19095b6 fix(mobile): border radius for last group when expanded 2025-04-09 11:03:34 +08:00
Stephen Zhou 77246e1a05 fix(mobile): share feed button (#3434)
* fix(mobile): share feed button

* update

* update
2025-04-09 02:55:30 +00:00
DIYgod 559a8eeed0 fix(mobile): entry list fetchNextPage not triggered 2025-04-08 23:01:48 +08:00
Innei 6054ec9795 fix(mobile): attach to safe navigation scroll header
- Replaced instances of NavigationBlurEffectHeader with NavigationBlurEffectHeaderView across multiple screens for consistency in header design.
- Introduced useViewDidAppear hook to manage view appearance events using Jotai for state management.
- Updated About screen to dynamically include commitSha with app version and build ID.

These changes improve the visual consistency of navigation headers and enhance the functionality of screen hooks.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 21:27:16 +08:00
Innei b1c356fcd4 fix(mobile): timeline list separator style
- Changed background class from "bg-secondary-system-grouped-background" to "bg-system-background" for consistency.
- Removed opacity modifier from separator background class for a cleaner design.

These updates enhance the visual consistency of the ItemSeparator component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 20:40:03 +08:00
Innei 13b1375c50 feat(ui): improve GroupedList and Invitations components with enhanced child handling and color usage
- Added memoization for child elements in GroupedList to optimize rendering.
- Updated Invitations component to utilize dynamic color for UserAvatar based on theme.
- Refactored color imports for better consistency across components.

These changes enhance performance and visual consistency in the UI components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 20:27:45 +08:00
lawvs 3bbe28086a fix: format 2025-04-08 01:55:12 +08:00
Whitewater 17c4244dc5 feat(mobile): enhance onboarding with internationalization (#3426)
* refactor(mobile): extract language selection

* feat(mobile): enhance onboarding with language selection preferences

* feat(mobile): enhance onboarding with internationalization support

* feat(mobile): add internationalization support for onboarding preferences

* feat(mobile): localize reading preferences in onboarding screen

* feat(mobile): add internationalization support to onboarding completion and interests steps

* feat(mobile): add Japanese, Traditional Chinese, and Hong Kong Chinese localization for onboarding steps

* chore(mobile):  better internationalization support
2025-04-08 01:42:49 +08:00
Innei bb7fa92d45 refactor(mobile): enhance header components and layout
- Introduced `NavigationBlurEffectHeaderView` for improved header rendering in various settings screens.
- Updated `SafeNavigationScrollView` to accept a `Header` prop for better layout flexibility.
- Refactored existing screens to utilize the new header component, enhancing consistency across the app.
- Adjusted styles for header text to improve visual hierarchy.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 21:23:12 +08:00
Innei cd024e45d3 fix(mobile): remove prefetching of entry translations
- Removed `usePrefetchEntryTranslation` calls from `EntryGridFooter`, `EntryNormalItem`, and `EntrySocialItem` components to optimize performance and reduce unnecessary data fetching.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 19:38:08 +08:00
Innei 4fc8ec3f42 feat: scrollview scroll to end detection
- Refactored HelperModule to include new async functions for scrolling and image handling.
- Removed ProfileViewModule and associated UI components to streamline the codebase.
- Updated expo-module.config.json to reflect the removal of ProfileViewModule.
- Improved SafeNavigationScrollView and TimelineSelectorList to utilize new scroll handling features.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 19:31:56 +08:00
Innei db5c4c04dd feat(mobile): enhance settings synchronization and event handling
- Updated the settings change event to include a structured payload for better data management.
- Refactored the persist and load methods in the SettingSyncQueue to utilize a key-value storage system instead of localStorage.
- Added logging for remote settings in development mode to aid in debugging.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 18:56:20 +08:00
Innei 1e9d20ed47 feat(mobile): streamline settings management and sync functionality
- Updated general and UI settings to utilize shared default settings from the new shared package.
- Introduced a new sync queue for managing local and remote settings synchronization.
- Removed outdated settings interfaces that are now integrated into the shared package.
- Enhanced event handling for setting changes to improve responsiveness and data consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 18:04:29 +08:00
Innei 20be007d0c fix(mobile): update icon background colors in settings screens
- Changed icon background colors for various settings navigation links to enhance visual consistency.
- Updated background color for Actions and Invitations screens to match new design specifications.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-05 21:32:35 +08:00
Innei c14d241b60 feat(mobile): implement error handling components and integrate crashlytics
- Added GlobalErrorScreen and ListErrorView for improved error display.
- Enhanced ErrorBoundary to support custom fallback rendering.
- Integrated crashlytics initialization in the app startup process.
- Updated various components to utilize the new error handling structure.
- Fixed import paths for OTPWindow component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-05 21:24:12 +08:00
Innei 30a45666b9 feat(mobile): add tab screen identifiers and improve tab management
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-05 20:22:37 +08:00
DIYgod 1fd4fad3bf feat(mobile): image styles 2025-04-04 15:55:38 +08:00
DIYgod 97da0786d1 feat(mobile): simplify entry header 2025-04-04 15:21:47 +08:00
DIYgod 503263326c feat(mobile): update context menu items 2025-04-04 15:08:11 +08:00
DIYgod 1ceeed52bc feat(mobile): mark as unread in menu 2025-04-04 14:52:26 +08:00
DIYgod 9d64dbbf92 feat(mobile): entry list scroll to top for unreadonly switching 2025-04-04 14:10:13 +08:00
DIYgod 24834f5d05 feat(mobile): expand header for horizontal scrolling 2025-04-04 14:01:44 +08:00
DIYgod 9de4425b75 feat(mobile): entry list scroll to top for refetching 2025-04-04 13:42:45 +08:00
DIYgod 7c334b5808 feat(mobile): use TouchableOpacity for EntryListFooter 2025-04-04 00:29:58 +08:00
DIYgod da7bfef51a feat(mobile): tighter picture video notification entry item 2025-04-04 00:04:23 +08:00