Commit Graph
541 Commits
Author SHA1 Message Date
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
Whitewater 0559ff1846 fix(mobile): add translucent status bar (#3420)
* fix(mobile): add translucent status bar

* chore(mobile): simplify splash screen configuration
2025-04-07 11:41:40 +08:00
DIYgod 5f42bdd9c7 feat(mobile): app check config for android 2025-04-07 11:40:47 +08:00
DIYgod f51e71bce9 fix: types 2025-04-05 21:59:32 +08:00
Innei 2a290360d1 fix(mobile): merge TabScreenProps ios and other platform
- Added optional `identifier` property to `TabScreenProps` interface for better tab management.
- Updated import statements in `TabRoot` and `TabScreen` components to reference the new types file.
- Refactored `TabScreen` component to utilize the new `identifier` property in state management.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-05 21:46:05 +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 9516c4496c fix(mobile): update loading indicator visibility in NavigationHeader component
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-05 20:27:17 +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
Innei 171f8be655 fix(mobile): fix safe area handling in navigation and login modules
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-04 16:17:40 +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 4ea69b916e feat(mobile): header hideable ele scroll threshold 2025-04-04 13:40:34 +08:00
DIYgod 7c334b5808 feat(mobile): use TouchableOpacity for EntryListFooter 2025-04-04 00:29:58 +08:00
DIYgod 0013837dce feat(mobile): image loading bg and forcing https 2025-04-04 00:21:40 +08:00
DIYgod da7bfef51a feat(mobile): tighter picture video notification entry item 2025-04-04 00:04:23 +08:00
DIYgod d5b579f4f4 feat(mobile): entries loading indicator 2025-04-03 23:47:31 +08:00
Stephen Zhou 927ae4ce9e feat(mobile): translation for edit profile 2025-04-03 22:32:32 +08:00
Innei 46e5943ee8 fix(mobile): update pager functionality to use activeViews for page selection
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 21:36:47 +08:00
Innei f08d2033da refactor(mobile): update EntryListEmpty styles and enhance TimelineViewSelector functionality
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 21:29:43 +08:00
DIYgod d237ad1b9d feat(mobile): handle empty entry list 2025-04-03 21:20:44 +08:00
DIYgod d0a8f6baa4 feat(mobile): mark above as read bottom button 2025-04-03 20:49:42 +08:00
Whitewater 9c75d8b9fc fix: wrap SubscriptionFeedCategoryContextMenu in a View (#3402)
* fix(mobile): wrap SubscriptionFeedCategoryContextMenu in a View

* chore(mobile): add asChild and style props to ContextMenu.Trigger
2025-04-03 12:33:57 +00:00
Stephen Zhou ae7723ddd2 refactor: fix durationInSeconds type (#3399)
* chore: fix durationInSeconds type

* chore: type
2025-04-03 17:36:37 +08:00
Stephen Zhou ae52e87637 fix(mobile): pass totp code 2025-04-03 16:38:06 +08:00
Stephen Zhou 825bc21686 fix(mobile): correct twoFactorEnabled state 2025-04-03 16:33:25 +08:00
Innei 4a779668e7 feat: introduce PlatformActivityIndicator for consistent loading indicators across mobile components
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 16:14:04 +08:00
Innei 91a91d89c7 feat(mobile): add OTPWindow component to navigation sitemap and enhance screen registration logic
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 14:28:23 +08:00
Innei 635ce07741 fix(mobile): update invitations query handling and error logging in ConfirmGenerateDialog
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 13:52:30 +08:00
Stephen Zhou 7efa6aa96a feat(mobile): translation for operation (#3396) 2025-04-03 12:25:54 +08:00
Stephen Zhou c471acc2dd fix: update view source content icon, close #3373 2025-04-03 10:34:53 +08:00
Stephen Zhou 46bc1876e8 feat(mobile): translation for settings (#3391)
* feat(mobile): translation for settings

* general

* appearance

* data control

* account

* invitation

* about

* privacy

* list

* actions

* update action

* update list and common words

* settings
2025-04-02 23:59:19 +08:00
Innei 48b18c20b6 feat(mobile): remove ThemedBlurView for android
- Added conditional rendering for iOS and Android platforms in ThemedBlurView component.
- Implemented a fallback View for Android with dynamic background color and opacity settings.
- Improved code readability by utilizing the useColor hook for background color management.

These changes ensure a consistent and visually appealing blur effect across both iOS and Android platforms.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-02 23:04:02 +08:00
Innei 7590be35ec fix(mobile): OTPWindow component and modal handling
- Updated OTPWindow to include an onDismiss prop for better modal management.
- Improved animation handling using Animated API for smoother transitions.
- Refactored state management to control UI visibility and component rendering more effectively.
- Integrated FullWindowOverlay for a consistent modal presentation.

These changes enhance the user experience during two-factor authentication by providing a more responsive and visually appealing modal interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-02 22:54:56 +08:00
Whitewater 25d253ff33 feat: android prototype (#3376)
* fix(mobile): mock webview module for Android

* fix(mobile): disable new architecture for track player workaround

* chore(mobile): add @react-native-menu/menu dependency

* fix(mobile): handle undefined index in PagerList onIndexChange

* fix(mobile): add error handling for stream fetch response

* fix(mobile): update aspect ratio handling for video components

* fix(mobile): mock Galeria component

* fixup! fix(mobile): update aspect ratio handling for video components

* chore(ci): add GitHub Actions workflow for building Android app

* fix(mobile): improve CocoaPods pre-install script to handle missing CocoaPods

* fix(mobile): move splash screen image configuration to Android-specific settings

* fix(mobile): image in android

* fix: patch react-native-track-player patch

* fix: build profile
2025-04-02 19:24:06 +08:00
Innei e2cc31d4ba fix(mobile): fix OTPWindow and integrate verification function
- Updated OTPWindow component to accept a generic verification function and handle success callbacks more flexibly.
- Refactored useTOTPModalWrapper to utilize the new OTPWindow for improved modal presentation and verification handling.
- Enhanced the animation settings for the modal to maintain consistency in user experience.

These changes streamline the two-factor authentication process and improve the overall usability of the OTP modal.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-02 17:59:57 +08:00
Innei 9be249dba7 feat(mobile): enhance TOTP modal handling and invitation confirmation
- Added a new function to validate authentication codes in the auth module.
- Updated the useTOTPModalWrapper to include a dismiss option for better modal management.
- Integrated the TOTP modal wrapper into the invitation confirmation dialog for improved user experience.
- Refactored the Invitations screen to utilize the updated TOTP modal handling.

These changes improve the security and usability of the invitation process by ensuring proper two-factor authentication handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-02 17:49:32 +08:00
Stephen Zhou d27e5aba03 fix(mobile): sort language keys 2025-04-02 10:24:34 +08:00
Stephen Zhou 9e4b7a50cf refactor(mobile): clearer language select 2025-04-02 10:14:37 +08:00
Stephen Zhou 584b2b500d chore: type check 2025-04-02 09:48:01 +08:00
Stephen Zhou 20f0abe302 feat(mobile): translation for home tabs (#3386)
* feat(mobile): translation content

* Starred

* inbox feeds lists

* profile

* discovery category

* search

* dayjs

* bring localizations back

* translation for mobile content

* todo note

* add settings resource

* settings

* Extract

* Extract

* Manually type

* extend

* remove feed_view_type

* remove discover.category

* update note

* type
2025-04-02 09:44:26 +08:00
Innei e7ae1f69ad feat(mobile): introduce HeaderSubmitTextButton and refactor header components
- Added HeaderSubmitTextButton for improved button functionality in headers.
- Updated various screens to utilize HeaderSubmitTextButton instead of HeaderSubmitButton for better consistency.
- Refactored header components to include new hooks and improve layout handling.
- Enhanced styling of FakeNativeHeaderTitle for better visual hierarchy.

These changes enhance the user interface and provide a more consistent experience across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-01 23:56:34 +08:00