Commit Graph
355 Commits
Author SHA1 Message Date
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
Innei 93393f19fc feat(pager): enhance pager functionality with gesture support and UI updates
- Updated `Pager.tsx` to use `Pressable` for better interaction handling.
- Modified `EnhancePagerController.swift` to manage content views more effectively.
- Enhanced `EnhancePagerViewModule.swift` to support gesture recognition for smoother transitions.
- Refactored `usePagerView.ts` to utilize animated values for page transitions.

These changes improve user experience and interaction within the pager component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-01 18:05:47 +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
Innei 59b8e91ada feat(mobile): support copy for ai summary card, and optimize style
- Added `react-native-uikit-colors` dependency to the mobile example.
- Updated `App.tsx` to utilize `useCurrentColorsVariants` for dynamic theming.
- Modified `summary.tsx` to improve animated content display and height management.
- Enhanced `hooks.ts` to set a longer stale time for summary data.
- Refactored `store.ts` to manage pending summary generation promises more effectively.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-31 23:19:34 +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 25a87a90d7 fix(mobile): show title and translation at grid footer, close #3351 2025-03-31 10:03:03 +08:00
Innei 14ae20fb5a fix: wrapper scrollview to onboarding screens avoide small height mobile viewport
- Changed stack presentation for the OnboardingScreen to "fullScreenModal".
- Wrapped StepInterests and StepPreferences components in OnboardingSectionScreenContainer for consistent layout.
- Replaced View with Animated.View in OnboardingScreen for improved animations during transitions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-30 17:28:14 +08: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
DIYgod 0f384b0c73 fix(mobile): inline description translation 2025-03-28 20:03:03 +08:00
DIYgod 0e2b550a4b feat(mobile): social view translation separator 2025-03-28 18:17:01 +08:00
DIYgod 614fc7356a feat(mobile): change translation separator 2025-03-28 18:03:42 +08:00
DIYgod 10baaa9bde fix: types 2025-03-28 17:44:24 +08:00
Stephen Zhou 879d6dfa28 fix(mobile): translation separator, translate for entry title 2025-03-28 16:28:12 +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 ea4a99d1d5 feat(mobile): add login track 2025-03-27 20:27:36 +08:00
Stephen Zhou ed86426728 Revert "fix(mobile): token header for social sign in"
This reverts commit dd0058e4aa.
2025-03-27 17:44:41 +08:00
Stephen Zhou dd0058e4aa fix(mobile): token header for social sign in 2025-03-27 11:10:04 +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 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 359093dcf1 refactor(mobile): streamline app structure and enhance navigation
- Removed unnecessary FullWindowOverlay from App component.
- Introduced sitemap registration in main.tsx for better navigation management.
- Updated NoLoginInfo component to use Pressable for navigation to LoginScreen.
- Added DropdownMenu for environment profile selection in DebugButton.
- Created new sitemap.tsx file to manage navigation components.

This refactor improves code organization and enhances user experience in navigation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-25 21:17:12 +08:00
Konv SuuandStephen Zhou 78ba2c34aa fix(mobile): handle durationInSeconds format (#3259)
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-03-25 00:15:01 +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 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
Stephen Zhou fa3cce2fa9 build: update lint config (#3234)
* build: update lint config

* update

* update

* update
2025-03-22 12:35:53 +08:00
Whitewater 8b8487b1f7 fix: scroll to top in subscription tab by adding active prop (#3225)
* fix(mobile): add active prop to fix scroll to top in subscription tab

* refactor(mobile): convert SafeNavigationScrollView to forwardRef for improved ref handling

* fix: types
2025-03-22 00:40:24 +08:00
Stephen Zhou 18081805c2 fix(mobile): scroll to mark read not work (#3223) 2025-03-21 18:12:31 +08:00
Innei c901414c71 fix(mobile): enhance ItemPressable with touch highlight feature
- Added a touchHighlight prop to ItemPressable to control the highlight effect on press.
- Implemented animated background color change using react-native-reanimated for a smoother user experience.
- Updated EntryNormalItem and EntrySocialItem to disable touchHighlight, ensuring consistent behavior across different item types.

These changes improve the interactivity and visual feedback of pressable items in the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-21 16:48:50 +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
Stephen Zhou ac8ac2bad3 fix(mobile): category item border radius, background color (#3216) 2025-03-21 16:01:10 +08:00
Whitewater b0de460896 feat(mobile): pass view parameter to fetch collection (#3202) 2025-03-20 18:30:21 +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 2e85f493c1 feat(mobile): enhance grouped list layout and responsiveness
- Updated constants for GROUPED_LIST_MARGIN, GROUPED_LIST_ITEM_PADDING, and GROUPED_ICON_TEXT_GAP to utilize PixelRatio for improved responsiveness.
- Refactored GroupedList and related components to apply new margin and padding constants, ensuring consistent spacing across various screen sizes.
- Adjusted styles in multiple subscription items and separators to incorporate the new layout constants, enhancing visual consistency.

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

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 16:09:58 +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 f600ebbca9 fix(mobile): hide UserAvatar preview
- Replaced the noPreview prop with a new preview prop in the UserAvatar component, defaulting to true.
- Updated the rendering logic to conditionally display the avatar based on the preview prop.
- Adjusted instances of UserAvatar in EntryReadHistory and action.tsx to utilize the new preview prop.

These changes enhance the flexibility of the UserAvatar component by allowing for more controlled rendering behavior.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 14:19:25 +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 51e517babd fix(mobile): update navigation handling in SearchFeed and SearchList components
- Changed navigation method from `pushControllerView` to `presentControllerView` for better user experience.
- Added `itemStyle` prop with `ItemPressableStyle.Plain` to `ItemPressable` in both components for consistent styling.

These updates enhance the navigation flow and visual consistency within the search functionality of the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 13:46:27 +08:00
WhitewaterandStephen Zhou ef7ba5b3f5 refactor(mobile): unify colors in dark and light modes (#3193)
* refactor: remove unnecessary ItemSeparator from SectionTitle component

* Revert "refactor: remove unnecessary ItemSeparator from SectionTitle component"

This reverts commit 0d2ed81f8c0af44b1bc20caec1196e0df6cf690a.

* unify color

---------

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-03-20 11:09:13 +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
Whitewater 65780489a2 fix: add key prop to SubscriptionList (#3188) 2025-03-19 18:55:46 +08:00
Stephen Zhou fe10419827 refactor(mobile): avoid multiple useScaleHeight call (#3165) 2025-03-18 16:27:32 +08:00
Innei db3b8d6e4e refactor(mobile): update color usage in settings routes to utilize useColors hook
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-18 12:28:26 +08:00
DIYgod a5ff94795f feat(mobile): subscription list scroll protection 2025-03-17 21:05:46 +08:00
DIYgod f05f2964a1 feat(mobile): cleaner subscription list 2025-03-17 21:00:34 +08:00
DIYgod 07d379ba28 feat(mobile): extract PageList component 2025-03-17 20:40:28 +08:00