Commit Graph
130 Commits
Author SHA1 Message Date
DIYgod ece26375a6 feat(mobile): actions icons 2025-04-16 22:47:24 +08:00
Innei f52026a3ce feat(mobile): enhance share subscription functionality in ProfileScreen
- Updated useShareSubscription hook to include a removeItemById method for managing subscriptions.
- Integrated the new functionality into ProfileScreen, allowing users to unsubscribe from feeds.
- Added context providers for managing profile state and actions.
- Refactored list item components to utilize ItemPressable for better interaction handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-16 22:46:49 +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
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
DIYgod 7e553db6cb feat(mobile): link to actions documentation 2025-04-10 23:26:38 +08: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
DIYgod a65742e2bf feat(mobile): success toast 2025-04-09 17:53:20 +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 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 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
Stephen Zhou 927ae4ce9e feat(mobile): translation for edit profile 2025-04-03 22:32:32 +08:00
Stephen Zhou ae52e87637 fix(mobile): pass totp code 2025-04-03 16:38:06 +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 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 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 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
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 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
Innei 92904be1a7 feat(mobile): add invitations feature and server configurations
- Introduced the Invitations screen to manage invitation codes and display user invitations.
- Added ServerConfigsProvider to fetch and manage server configuration data.
- Updated GroupedInformationCell to include children prop for better flexibility.
- Integrated new LoveCuteFiIcon for visual representation in the settings and invitations.
- Updated package.json and pnpm-lock.yaml to include new dependencies and workspace links.

These changes enhance the mobile app's functionality and user experience by allowing users to manage invitations effectively.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-01 22:45:06 +08:00
Stephen Zhou 0d90900172 refactor: locales structure (#3381)
* refactor: locales structure

* move

* avoid external in app

* Revert "move"

This reverts commit e89a9263784199719be0c42c0813b6e6bcd7b818.

* update

* type check

* update

* update

* update

* fix filter language
2025-04-01 11:08:10 +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
Stephen Zhou ea758ca2b2 feat: allow link to social provider with different email (#3355) 2025-03-30 04:52:34 +00:00
Stephen Zhou 0a1f9c4216 chore: update hono type 2025-03-30 12:02:10 +08:00
Stephen Zhou abc35be47c feat: translate on server, global action setting (#3294)
* refactor: translate on server

* refactor: remove summary and translation action

* enable summary and translation from settings

* remove translate and summary from action

* follow setting

* ignore whitespace change

* correct content translation for social item

* update

* update

* fix content

* global setting for summary on mobile

* translation store

* show and cache translation

* update migrate sql

* token header for social sign in

* remove readabilityContent in web view

* ci debug

* check repository

* ci check condition

* fix readability

* show entry content translation

* update

* update

* translation for social item

* Revert "remove translate and summary from action"

This reverts commit c8a195a9b224b308cbcd86a6293ffae03e946a72.

* update text

* support global,once,action summary and translation

* fix condition

* refactor

* refactor: extract use entry translation hook

* update

* rename

* Revert "rename"

This reverts commit 672092f88c04670c7e1017aaf8b9caa6499f1877.

* update

* update

* fix

* translation header action

* unsave prompt

* chore: auto-fix linting and formatting issues

* connect and row

* prompt on mobile before leave

* update

* follow action setting

* hide button when follow action

* update changelog
2025-03-28 15:14:03 +08:00
DIYgod 3f551c6fcf feat(mobile): invitation screen 2025-03-26 21:44:13 +08:00
Innei 9cfd4aacfd refactor(mobile): replace SafeModalScrollView with SafeNavigationScrollView across multiple screens
- Removed SafeModalScrollView component and replaced it with SafeNavigationScrollView in various files including FollowList, EditCondition, EditRewriteRules, EditWebhooks, and EditEmail screens.
- Updated import statements accordingly to reflect the changes.

This change enhances consistency in the navigation handling across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-26 16:59:22 +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 149ca034f6 fix(mobile): profile modal header style
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-24 15:44:07 +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
Innei 4317337b43 fix(mobile): grouped list constants
- Added new constants for GROUPED_SECTION_TOP_MARGIN and GROUPED_SECTION_BOTTOM_MARGIN to standardize spacing in grouped list components.
- Updated GroupedList and related components to utilize the new margin constants, ensuring consistent layout across various screens.
- Refactored multiple settings routes to remove unnecessary wrapper views, improving layout efficiency and readability.
- Adjusted the About, Account, and other settings screens to enhance visual consistency and user experience.

These changes improve the overall layout and responsiveness of grouped list components in the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-21 16:34:34 +08:00
Innei 0a1af86931 fix(mobile): integrate ListScreen navigation and enhance list item actions
- Imported ListScreen for navigation within the Lists module.
- Updated AddListButton to present ListScreen on press.
- Modified ListItemCellImpl to navigate to ListScreen with the selected list's ID when the edit action is triggered.
- Adjusted GroupedInsetListCard to hide separators for improved layout.

These changes enhance user navigation and interaction within the lists feature of the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 16:14:25 +08:00
Innei b822ee8b51 feat(mobile): introduce grouped list components and improve layout
- Added constants for icon text gap and a new enum for card item styles.
- Implemented GroupedInsetListCard with customizable separator support.
- Enhanced GroupedList and related components to utilize new styles and layout adjustments.
- Updated various components to incorporate pixel ratio for responsive design.
- Refactored item rendering in subscription lists to support first and last item styling.

These changes improve the visual consistency and responsiveness of grouped list components in the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 16:09:58 +08:00
Innei 18eef52fdb chore(mobile): update package versions and improve color handling
- Bumped versions of `react-native-uikit-colors`, `apple-uikit-colors`, and `tailwindcss-uikit-colors` to 0.3.10 in `pnpm-lock.yaml` and `package.json` for consistency and to leverage the latest features and fixes.
- Updated the import from `useCurrentColors` to `useCurrentColorsVariants` in the `index.tsx` provider file to align with the new API.
- Added a blank line in `Actions.tsx` for improved code readability.

These changes ensure the application is using the latest color utilities and maintain clean code practices.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 14:09:53 +08:00
DIYgod 001ea90c27 fix(mobile): actions rules compatibility 2025-03-20 14:02:21 +08:00
Innei f21b9e7bf0 refactor: replace @react-navigation and expo-router (#3151)
* init

* init

* refactor(mobile): enhance tab navigation and structure

- Added `TabScreenModule` and `TabScreenView` to support dynamic tab management.
- Replaced `FOTabBarController` with a more streamlined `UITabBarController` implementation.
- Updated `TabBarModule` to utilize new tab switching logic and event handling.
- Modified `TabBarRootView` to manage tab views more effectively and handle tab index changes.
- Adjusted main application file to integrate new tab components and improve navigation flow.

These changes aim to improve the tab navigation experience and maintainability of the codebase.

* tabbar

* refactor(mobile): streamline navigation and tab management

- Refactored main application structure to enhance tab navigation, integrating `BottomTabs` and `TabRoot` components for improved tab management.
- Updated `NavigationHeader` and `SafeNavigationScrollView` to better handle header visibility and scrolling behavior.
- Introduced `ScreenItemContext` for managing screen state and scroll position across navigation.
- Cleaned up unused imports and optimized component structure for better maintainability.

These changes aim to improve the overall navigation experience and code organization within the mobile application.

* update

* feat(mobile): implement BottomTabProvider for enhanced tab management

- Introduced `BottomTabProvider` component to manage tab visibility and scroll view context.
- Refactored `BottomTabs` to utilize context for background opacity and tab visibility, simplifying the component structure.
- Removed the deprecated `TabClient` component to streamline the tab implementation.
- Added a null check in `Tabbar` to prevent rendering when there are no tab screens.

These changes aim to improve the organization and functionality of the tab navigation system within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>

* update

* update

* update

* update

* update

* feat(mobile): integrate ErrorBoundary and enhance navigation context

- Added `ErrorBoundary` component to handle errors gracefully within the application.
- Integrated `BottomTabProvider` to manage tab visibility and scroll view context more effectively.
- Refactored navigation components to utilize new context for improved state management.
- Updated `SafeNavigationScrollView` and `Settings` components to streamline scrolling behavior and context usage.
- Removed deprecated code and optimized component structure for better maintainability.

These changes enhance the user experience by providing error handling and improving navigation management.

* feat(mobile): enhance navigation and layout components

- Registered new screens (`TermsScreen`, `LoginScreen`, `SignUpScreen`, `ForgetPasswordScreen`, `TwoFactorAuthScreen`) with the `NavigationSitemapRegistry` for improved navigation management.
- Adjusted layout properties in `HeaderElements` and `NavigationHeader` for better alignment and responsiveness.
- Refactored `Tabbar` to remove unnecessary animated reactions, optimizing performance.
- Exported `ActionGroup` component for better reusability in `TimelineSelectorProvider`.
- Updated `DebugScreen` to utilize the new navigation methods for component presentation.

These changes improve the overall navigation experience and component structure within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): implement new architecture support and refactor TabBar components

- Added support for the new architecture in the iOS podspec by conditionally defining `OTHER_SWIFT_FLAGS`.
- Refactored `TabBarPortalModule`, `TabBarRootView`, and `TabScreenView` to improve structure and maintainability.
- Replaced native view components with standard React Native views in `TabBarPortal`, `TabRoot`, and `TabScreen` for better compatibility and performance.
- Updated import paths for `TabScreenProps` to ensure correct type usage.

These changes enhance the navigation experience and prepare the codebase for future architecture improvements.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): refactor navigation and onboarding components

- Removed outdated navigation dependencies from `package.json` to streamline the project.
- Enhanced `TabBarRootView` to improve tab switching animations and manage view transitions more effectively.
- Updated `App` component structure for better readability and integration of onboarding logic.
- Introduced `OnboardingScreen` with improved layout and navigation handling.
- Refactored navigation context types to include additional screen options for better flexibility.

These changes enhance the navigation experience and prepare the application for future onboarding features.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): enhance intent handling with navigation integration

- Added navigation support in `useIntentHandler` to handle incoming URLs more effectively.
- Integrated `FollowScreen` for presenting user-specific content based on URL parameters.
- Updated effect dependencies to include navigation for improved functionality.

These changes improve the handling of deep links and enhance the user experience when navigating to the follow screen.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: clean up pnpm-lock.yaml by removing unused navigation dependencies

- Removed outdated navigation packages including `@react-navigation/bottom-tabs`, `@react-navigation/drawer`, and `@react-navigation/native` to streamline the lock file.
- Cleaned up unnecessary entries and peer dependencies to improve maintainability and reduce clutter.

These changes help in optimizing the dependency management for the project.

Signed-off-by: Innei <tukon479@gmail.com>

* lint

Signed-off-by: Innei <tukon479@gmail.com>

* chore: auto-fix linting and formatting issues

* fix

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: update PickerIos component and remove FeedDrawer

- Added import for Portal in PickerIos component.
- Removed the FeedDrawer component entirely, cleaning up unused code.
- Replaced router.dismiss() with navigation.dismiss() in list screen options for better navigation handling.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-19 22:35:49 +08:00
DIYgod f2e29252f2 feat: rename (#3181)
* feat: rename

* fix

* fix

* fix
2025-03-19 21:43:55 +08:00