Commit Graph
541 Commits
Author SHA1 Message Date
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 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
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
Innei 9c7901356f refactor(pager): simplify Pager component and enhance iOS functionality
- Replaced the custom native view with a more streamlined PagerView component.
- Updated the Pager component to utilize hooks for page rendering and state management.
- Introduced new methods in EnhancePagerController for better state handling and page transitions.
- Fixed method naming inconsistencies in EnhancePagerViewModule.
- Removed unused ScaleFadeRotate animation component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-31 18:25:52 +08:00
Stephen Zhou 25a87a90d7 fix(mobile): show title and translation at grid footer, close #3351 2025-03-31 10:03:03 +08: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
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
dependabot[bot]andDIYgod 38571c4e0c build(deps): bump the minor group across 1 directory with 13 updates (#3350)
* build(deps): bump the minor group across 1 directory with 13 updates

Bumps the minor group with 13 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [electron](https://github.com/electron/electron) | `34.3.4` | `34.4.1` |
| [@tanstack/query-sync-storage-persister](https://github.com/TanStack/query/tree/HEAD/packages/query-sync-storage-persister) | `5.69.0` | `5.70.0` |
| [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) | `5.69.0` | `5.70.0` |
| [@tanstack/react-query-persist-client](https://github.com/TanStack/query/tree/HEAD/packages/react-query-persist-client) | `5.69.0` | `5.70.0` |
| [es-toolkit](https://github.com/toss/es-toolkit) | `1.33.0` | `1.34.1` |
| [react-hook-form](https://github.com/react-hook-form/react-hook-form) | `7.54.2` | `7.55.0` |
| [react-native-screens](https://github.com/software-mansion/react-native-screens) | `4.9.2` | `4.10.0` |
| [use-sync-external-store](https://github.com/facebook/react/tree/HEAD/packages/use-sync-external-store) | `1.4.0` | `1.5.0` |
| [@sentry/react](https://github.com/getsentry/sentry-javascript) | `9.9.0` | `9.10.1` |
| [framer-motion](https://github.com/motiondivision/motion) | `12.5.0` | `12.6.2` |
| [builder-util-runtime](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/builder-util-runtime) | `9.2.10` | `9.3.1` |
| [electron-updater](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-updater) | `6.3.9` | `6.6.2` |
| [@tanstack/react-query-devtools](https://github.com/TanStack/query/tree/HEAD/packages/react-query-devtools) | `5.69.0` | `5.70.0` |



Updates `electron` from 34.3.4 to 34.4.1
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v34.3.4...v34.4.1)

Updates `@tanstack/query-sync-storage-persister` from 5.69.0 to 5.70.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.70.0/packages/query-sync-storage-persister)

Updates `@tanstack/react-query` from 5.69.0 to 5.70.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.70.0/packages/react-query)

Updates `@tanstack/react-query-persist-client` from 5.69.0 to 5.70.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.70.0/packages/react-query-persist-client)

Updates `es-toolkit` from 1.33.0 to 1.34.1
- [Release notes](https://github.com/toss/es-toolkit/releases)
- [Changelog](https://github.com/toss/es-toolkit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/toss/es-toolkit/compare/v1.33.0...v1.34.1)

Updates `react-hook-form` from 7.54.2 to 7.55.0
- [Release notes](https://github.com/react-hook-form/react-hook-form/releases)
- [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md)
- [Commits](https://github.com/react-hook-form/react-hook-form/compare/v7.54.2...v7.55.0)

Updates `react-native-screens` from 4.9.2 to 4.10.0
- [Release notes](https://github.com/software-mansion/react-native-screens/releases)
- [Commits](https://github.com/software-mansion/react-native-screens/compare/4.9.2...4.10.0)

Updates `use-sync-external-store` from 1.4.0 to 1.5.0
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/use-sync-external-store)

Updates `@sentry/react` from 9.9.0 to 9.10.1
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/9.9.0...9.10.1)

Updates `framer-motion` from 12.5.0 to 12.6.2
- [Changelog](https://github.com/motiondivision/motion/blob/main/CHANGELOG.md)
- [Commits](https://github.com/motiondivision/motion/compare/v12.5.0...v12.6.2)

Updates `builder-util-runtime` from 9.2.10 to 9.3.1
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/builder-util-runtime/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/HEAD/packages/builder-util-runtime)

Updates `electron-updater` from 6.3.9 to 6.6.2
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/electron-updater@6.6.2/packages/electron-updater)

Updates `@tanstack/react-query-devtools` from 5.69.0 to 5.70.0
- [Release notes](https://github.com/TanStack/query/releases)
- [Commits](https://github.com/TanStack/query/commits/v5.70.0/packages/react-query-devtools)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@tanstack/query-sync-storage-persister"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@tanstack/react-query"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@tanstack/react-query-persist-client"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: es-toolkit
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: react-hook-form
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: react-native-screens
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: use-sync-external-store
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@sentry/react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: framer-motion
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: builder-util-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: electron-updater
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@tanstack/react-query-devtools"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: types

* fix: types

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
2025-03-30 13:53:47 +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
Innei 28a6a5d5d3 fix: add email verification to users table and update related migrations
- Added `email_verified` column to the `users` table in the SQL migration.
- Updated migration imports to include the new migration for `0019_wonderful_shape`.
- Modified the user schema to include `emailVerified` field.
- Updated user handling in the store to manage the new `emailVerified` property.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-28 17:25:17 +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 e4d5dbd7a7 feat: firebase analytics 2025-03-28 00:01:07 +08:00
Whitewater 446733450a fix: add locale support for balance formatting (#3319)
* fix: add locale support for balance formatting

* refactor: rewrite toScientificNotation function with locale support and tests

* test: add locale-specific tests for toScientificNotation function

* chore: update usage
2025-03-27 14:04:04 +00:00
DIYgod ea4a99d1d5 feat(mobile): add login track 2025-03-27 20:27:36 +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
Stephen Zhou ed86426728 Revert "fix(mobile): token header for social sign in"
This reverts commit dd0058e4aa.
2025-03-27 17:44:41 +08:00
DIYgod 962c31ffed feat(mobile): user agent 2025-03-27 17:40:24 +08:00
Innei 2558fe656d fix(mobile): adjust margin for email section in edit-email screen
- Reduced top margin from 8 to 4 for the email section to improve layout consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-27 14:56:24 +08:00
Stephen Zhou dfd52756a4 build: update mgc icon to 1.36 (#3310) 2025-03-27 11:35:43 +08:00
Stephen Zhou dd0058e4aa fix(mobile): token header for social sign in 2025-03-27 11:10:04 +08:00
Innei 883d21a7df feat(mobile): register InvitationScreen in sitemap for modal navigation
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-26 23:24:56 +08:00
Whitewater 92f76b93d5 fix(mobile): adjust truncate styles in navigation header title (#3282) 2025-03-26 22:02:45 +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
DIYgod 537ef01c83 feat(mobile): get user role 2025-03-26 21:44:12 +08:00
DIYgod 680a0fd7db feat(mobile): optimize verification email sending 2025-03-26 19:52:12 +08:00
Innei 1cd67cdac5 feat(mobile): enhance image sharing functionality with URL support
- Updated UIImage extension to include URL handling in the activity item source.
- Modified HelperModule to accept an optional URL parameter when sharing images.
- Adjusted ImageContextMenu to pass the image URL during sharing actions.

This improves the image sharing experience by allowing users to share images along with their associated URLs.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-26 18:29:01 +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 7ce1242f30 fix: image context menu actions via native code, fixed #3262
- Introduced a new UIImage extension to create a UIActivityItemSource, allowing images to be shared with titles and URLs.
- Enhanced HelperModule with new functions to save, share, copy images, and retrieve base64 from UIImageView.
- Updated MediaCarousel to use preview_image_url for video context menus.
- Refactored Image and ImageContextMenu components for improved image handling and context menu actions.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-26 16:50:21 +08:00
Whitewater b89fe51b96 fix(mobile): replace SafeModalScrollView with SafeNavigationScrollView in SelectReadingModeScreen (#3300) 2025-03-26 08:48:07 +00:00
DIYgod 0bee60c02a fix(mobile): header title overflow 2025-03-26 12:58:44 +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
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
VikasandStephen Zhou 1a9f273606 feat: add PDF export functionality (#3264)
* feature add: export article as pdf (issue: 1314)

* reverted pnpm-lock.yaml, deleted unwanted code, ensured some checks

* chore: update icon

* update changelog

---------

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-03-25 01:10:38 +00: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 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