Commit Graph
111 Commits
Author SHA1 Message Date
Whitewater 1fad306f67 fix: toast message handling on android (#3604)
* fix(toast): ensure default duration is applied when showing toast messages

* fix: handle potential undefined toastRefs and improve conflict warning

* chore: correct spelling of 'dismiss' in ToastRef and related usages
2025-04-27 15:17:50 +08:00
Stephen Zhou a95de490ec feat: translation mode (#3568) 2025-04-25 20:38:44 +08:00
DIYgod 01b8037336 feat(mobile): optimize list search result list 2025-04-23 19:40:11 +08:00
Whitewater ae41eed457 fix: normalize safe area insets in android (#3554)
* fix: normalize safe area insets in android

* fix: import isAndroid utility
2025-04-22 17:37:28 +00:00
Innei 798f73dfe7 fix(mobile): add ScreenErrorScreen component for error handling
- Introduced a new ScreenErrorScreen component to display user-friendly error messages.
- Integrated the ScreenErrorScreen into the WrappedScreenItem using an ErrorBoundary for improved error management.
- Enhanced navigation experience by allowing users to go back when an error occurs.

These changes improve the application's resilience and user experience during error scenarios.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 13:13:56 +08:00
Innei 8096bf5c1e feat(mobile): integrate expo-device for device type management
- Added expo-device package to manage device types.
- Implemented device type initialization in the app startup process.
- Created hooks and atoms for accessing device type throughout the app.
- Updated navigation logic to handle iPad-specific presentation styles.
- Removed unused loading indicator component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 00:16:44 +08:00
DIYgod 61c099b527 feat(mobile): openLinksInExternalApp setting 2025-04-18 12:04:40 +08:00
Innei 6c9448ccd1 chore(mobile):rename screen filename
- Updated import paths for existing screens to use camel case naming conventions.
- Introduced new screens: EditEmailScreen, FollowScreen, ForgetPasswordScreen, InvitationScreen, ListScreen, LoginScreen, ProfileScreen, RsshubFormScreen, SignUpScreen, TwoFactorAuthScreen, and SelectReadingModeScreen.
- Enhanced the onboarding experience with the addition of EditProfileScreen.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-16 22:02:00 +08:00
DIYgod 319216e4ce feat: one time token (#3482)
* feat: unified auth for desktop and ssr

* feat: use one time token

* feat: remove better auth patch

* feat(desktop): handle session changes

* feat(desktop): recover ck auth for compatibility
2025-04-15 20:27:20 +08:00
Innei ee5c66305a feat(tabbar): enhance BottomTabProvider with initialTabIndex and context integration
- Added initialTabIndex prop to BottomTabProvider for customizable tab index.
- Integrated BottomTabContext to manage tab state and improve context handling.
- Introduced useResetTabOpacityWhenFocused hook to reset tab opacity based on focus state.
- Updated TabRoot components to utilize context for tab index management.
- Adjusted PagerListVisibleContext default value for better visibility handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:50:07 +08:00
Innei 22964c71c0 refactor(tabbar): simplify tab item rendering and improve performance with memoization
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:07:19 +08:00
Innei a758e430de perf: optimize performance in dev mode
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 22:04:53 +08:00
Stephen Zhou e7728a3d34 refactor: unify unread count locales and logic (#3453) 2025-04-10 16:22:46 +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
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
Innei 283673b14b fix(mobile): enhance SafeNavigationScrollView with tab screen detection
- Introduced useInTabScreen hook to determine if the current screen is within a tab.
- Updated SafeNavigationScrollView to conditionally check for scroll to bottom only when in a tab screen.
- Removed unused useViewDidAppear hook from navigation hooks for cleaner code.

These changes improve the functionality of the SafeNavigationScrollView and streamline the navigation hooks.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 21:32:43 +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
Stephen Zhou 16be7cd868 feat(mobile): notification (#3424)
* init messaging

* use expo-notifications plugin

* unread badge

* background fetch

* update

* skip for no user

* cache messaging token

* navigate to entry

* get entry without prefetch

* update channel

* update channel for web and desktop

* remove useless dep

* check user in task

* messaging as hook

* fix condition

* rename
2025-04-08 10:45:11 +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 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
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 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
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
Stephen Zhou 7efa6aa96a feat(mobile): translation for operation (#3396) 2025-04-03 12:25:54 +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 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
Innei 4bbc37fdb1 feat(mobile): enhance invitations screen with loading state and error handling
- Replaced the user avatar icon in the UserAvatar component for better visual consistency.
- Added a new GroupedInsetActivityIndicatorCell to display a loading indicator while fetching invitations.
- Updated the Invitations screen to handle loading states and improved error handling with toast notifications.
- Refactored invitation data fetching to ensure proper data structure and loading management.

These changes improve user experience by providing feedback during data loading and enhancing error visibility.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-01 23:12:40 +08:00
Stephen Zhou 776c63ec5c chore: lint 2025-04-01 20:26:14 +08:00
Innei f3fee3676f fix(mobile): trigger timeline twice if scroll to change page view
- Added EventBus integration to handle timeline selection in `atoms.ts` and `PageList.tsx`.
- Updated `selectTimeline` function to dispatch events for better state management.
- Specified `react-native` as a peer dependency in `package.json` to ensure compatibility.
- Updated `pnpm-lock.yaml` to reflect the new version of `react-native`.

These changes enhance the responsiveness of the UI and improve the overall architecture of the event handling system.
2025-04-01 18:48:07 +08:00
Stephen Zhou f1e34e9f04 feat(mobile): init i18n support (#3377)
* feat(mobile): init i18n support

* get default from device setting

* ios native support

* inline

* update

* update
2025-03-31 15:16:11 +00:00
Innei 1c99cbd033 refactor: rename internal context retrieval method and remove unused popTo function
- Renamed `__internal_getCtxValue` to `__dangerous_getCtxValue` for clarity.
- Removed the unused `popTo` method from the Navigation class.
- Updated references to the renamed method in StackNavigation and WrappedScreenItem components.
- Introduced a new `handleDismiss` function in WrappedScreenItem to handle dismiss events more effectively.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-30 21:57:47 +08:00
DIYgod e4d5dbd7a7 feat: firebase analytics 2025-03-28 00:01:07 +08:00
DIYgod bf127de547 feat(mobile): use firebase analytics together with track 2025-03-27 19:52:55 +08:00
DIYgod d2af10f366 feat(mobile): set op user agent in analytics init 2025-03-27 17:46:59 +08:00
DIYgod 962c31ffed feat(mobile): user agent 2025-03-27 17:40:24 +08:00
DIYgod 7b6950185a feat(mobile): nativate to invitation screen for api invitation error 2025-03-26 21:54:54 +08:00
DIYgod 3f551c6fcf feat(mobile): invitation screen 2025-03-26 21:44:13 +08:00
Innei b5fc2f6a70 feat: add some tracker
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-25 22:26:10 +08:00
Innei 549d76285a refactor(tracker): add tracker package
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-25 21:17:12 +08:00
Innei 81fc94c946 feat(mobile): don't need to swipe from the far left to go back to the previous page
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-25 14:15:05 +08:00
Innei 9ac2e169c8 refactor(mobile): enhance stack navigation structure and add state handling
- Introduced AttachNavigationScrollViewProvider for better context management.
- Added StateHandler component to manage screen name updates based on navigation events.
- Updated imports and optimized component structure for improved readability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-24 23:47:37 +08:00
Stephen Zhou 8a5f92d0e7 refactor: translation language -> action language (#3154)
* refactor: action language -> action language

* type

* mobile

* type

* fix

* prefer local settings, drop backward compatibility

* update

* update

* update

* chore: auto-fix linting and formatting issues

* update

* update

* update

* follow ui

* update

* add description

* fix build

* update

* update

* update
2025-03-24 10:10:48 +08:00
Stephen Zhou 7123b86d04 chore: fix lint 2025-03-23 08:00:39 +08:00
Innei 79aab469c3 feat(mobile): enhance screen options and header configuration
- Added new properties to ScreenOptionsContext for customizable header areas.
- Implemented resolveScreenOptions function to manage header configurations based on context options.
- Updated WrappedScreenItem to utilize new header area components for improved layout.
- Refactored EntryNormalItem to use SquareImage for better image handling.
- Introduced loading state for images to enhance user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-22 22:08:56 +08:00
Innei fca0a94e6e feat(mobile): emit screen change events on route appearance and disappearance
- Added event emissions for screen changes when a route appears or disappears, including the screen ID and route details.
- Updated the ScreenChangeEventPayload type to optionally include route information.

These changes enhance navigation tracking within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-21 18:36:50 +08:00