Commit Graph
2076 Commits
Author SHA1 Message Date
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
Stephen Zhou af5078971c chore: update changelog 2025-04-03 16:02:21 +08:00
DIYgod 44e2238b7a release(desktop): release v0.4.1 2025-04-03 15:48:59 +08:00
DIYgod c5353158be release(mobile): release v0.1.4 2025-04-03 15:48:11 +08:00
DIYgod 88963a9d37 feat: mark above as read bottom button 2025-04-03 15:46:53 +08:00
Innei e659e84a2c chore: update changelog
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 14:55:13 +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
Wilsonyiyi 363cc09509 fix(desktop): remove incorrect PDF export notification (#3393) 2025-04-03 12:26:37 +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 a9973296ec fix: show save action button when there is not action
close #3372
2025-04-03 09:54:57 +08:00
Innei b554b7629c fix: vercel ssr deploy script
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 00:22:17 +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
Konv Suu 7a75c7a272 refactor(desktop): update modal drag and resize hooks for improved functionality (#3382) 2025-04-02 23:13:41 +08:00
Wilsonyiyi 99c9250ae7 fix(desktop): modal close button cannot click (#3387) 2025-04-02 23:09:59 +08:00
Konv Suu b1069e4681 fix(desktop): update EntryTitle to handle localhost url (#3389) 2025-04-02 23:09:36 +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 823e8f870b fix(mobile): remove workaround for react-native-track-player (#3390) 2025-04-02 19:57:59 +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
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
Stephen Zhou 8ba80e546f refactor(ssr): remove unused locales (#3384)
* refactor: remove unused locales

* better default

* Revert "better default"

This reverts commit 272ca1501e80cc982e39abc1c4279657eb3a0b6b.
2025-04-01 20:04:18 +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
DIYgod 5dfd70ff20 feat: mobile staging and dev icons (#3375)
* feat: display mode in about

* feat(mobile): staging and dev icons

* update
2025-03-31 21:42:40 +08:00
Stephen Zhou b95237f22e refactor: move locales folder (#3374)
* chore: move locales out

* fix: correct import

* move generate local script
2025-03-31 18:59:29 +08:00
dependabot[bot] 43c68a9751 build(deps-dev): bump @vite-pwa/assets-generator from 0.2.6 to 1.0.0 (#3359)
Bumps [@vite-pwa/assets-generator](https://github.com/vite-pwa/assets-generator) from 0.2.6 to 1.0.0.
- [Release notes](https://github.com/vite-pwa/assets-generator/releases)
- [Commits](https://github.com/vite-pwa/assets-generator/compare/v0.2.6...v1.0.0)

---
updated-dependencies:
- dependency-name: "@vite-pwa/assets-generator"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 18:47:57 +08:00
dependabot[bot] ab6cd2eafa build(deps-dev): bump eas-cli from 15.0.15 to 16.1.0 (#3325)
Bumps [eas-cli](https://github.com/expo/eas-cli) from 15.0.15 to 16.1.0.
- [Release notes](https://github.com/expo/eas-cli/releases)
- [Changelog](https://github.com/expo/eas-cli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/expo/eas-cli/compare/v15.0.15...v16.1.0)

---
updated-dependencies:
- dependency-name: eas-cli
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 18:47:33 +08: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
Innei b2cafedae8 feat(ios): native enhance page view
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-31 17:05: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
Stephen Zhou 2a6ed5b6f3 build: update pod repo before build 2025-03-31 09:32:15 +08:00
Innei a6d264de85 refactor: follow native example and int native pager view
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-31 00:49:58 +08:00
DIYgod 2881d655ee feat: staging build (#3365)
* feat: move constants isElectronBuild

* feat: move constants isWebBuild

* feat: unified isDev

* feat: unified isProd

* chore: staging build

* update

* fix

* fix

* feat: staging icons

* fix
2025-03-30 22:13:11 +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] b75dd12d51 build(deps): bump the patch group with 17 updates (#3358)
Bumps the patch group with 17 updates:

| Package | From | To |
| --- | --- | --- |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.13` | `22.13.14` |
| [@sentry/vite-plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins) | `3.2.2` | `3.2.4` |
| [@react-native-firebase/analytics](https://github.com/invertase/react-native-firebase) | `21.12.0` | `21.12.3` |
| [@react-native-firebase/app](https://github.com/invertase/react-native-firebase) | `21.12.0` | `21.12.3` |
| [@react-native-firebase/app-check](https://github.com/invertase/react-native-firebase) | `21.12.0` | `21.12.3` |
| [@react-native-firebase/crashlytics](https://github.com/invertase/react-native-firebase) | `21.12.0` | `21.12.3` |
| [expo](https://github.com/expo/expo/tree/HEAD/packages/expo) | `52.0.40` | `52.0.41` |
| [expo-image](https://github.com/expo/expo/tree/HEAD/packages/expo-image) | `2.0.6` | `2.0.7` |
| [expo-sqlite](https://github.com/expo/expo/tree/HEAD/packages/expo-sqlite) | `15.1.2` | `15.1.3` |
| [react-native](https://github.com/facebook/react-native/tree/HEAD/packages/react-native) | `0.77.1` | `0.77.2` |
| [react-native-ios-utilities](https://github.com/dominicstop/react-native-ios-utilities) | `5.1.2` | `5.1.3` |
| [react-native-webview](https://github.com/react-native-webview/react-native-webview) | `13.13.4` | `13.13.5` |
| [drizzle-kit](https://github.com/drizzle-team/drizzle-orm) | `0.30.5` | `0.30.6` |
| [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) | `7.4.0` | `7.4.1` |
| [satori](https://github.com/vercel/satori) | `0.12.1` | `0.12.2` |
| [sonner](https://github.com/emilkowalski/sonner) | `2.0.1` | `2.0.2` |
| [electron-log](https://github.com/megahertz/electron-log) | `5.3.2` | `5.3.3` |


Updates `@types/node` from 22.13.13 to 22.13.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@sentry/vite-plugin` from 3.2.2 to 3.2.4
- [Release notes](https://github.com/getsentry/sentry-javascript-bundler-plugins/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.2.2...3.2.4)

Updates `@react-native-firebase/analytics` from 21.12.0 to 21.12.3
- [Release notes](https://github.com/invertase/react-native-firebase/releases)
- [Changelog](https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md)
- [Commits](https://github.com/invertase/react-native-firebase/compare/v21.12.0...v21.12.3)

Updates `@react-native-firebase/app` from 21.12.0 to 21.12.3
- [Release notes](https://github.com/invertase/react-native-firebase/releases)
- [Changelog](https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md)
- [Commits](https://github.com/invertase/react-native-firebase/compare/v21.12.0...v21.12.3)

Updates `@react-native-firebase/app-check` from 21.12.0 to 21.12.3
- [Release notes](https://github.com/invertase/react-native-firebase/releases)
- [Changelog](https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md)
- [Commits](https://github.com/invertase/react-native-firebase/compare/v21.12.0...v21.12.3)

Updates `@react-native-firebase/crashlytics` from 21.12.0 to 21.12.3
- [Release notes](https://github.com/invertase/react-native-firebase/releases)
- [Changelog](https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md)
- [Commits](https://github.com/invertase/react-native-firebase/compare/v21.12.0...v21.12.3)

Updates `expo` from 52.0.40 to 52.0.41
- [Changelog](https://github.com/expo/expo/blob/main/packages/expo/CHANGELOG.md)
- [Commits](https://github.com/expo/expo/commits/HEAD/packages/expo)

Updates `expo-image` from 2.0.6 to 2.0.7
- [Changelog](https://github.com/expo/expo/blob/main/packages/expo-image/CHANGELOG.md)
- [Commits](https://github.com/expo/expo/commits/HEAD/packages/expo-image)

Updates `expo-sqlite` from 15.1.2 to 15.1.3
- [Changelog](https://github.com/expo/expo/blob/main/packages/expo-sqlite/CHANGELOG.md)
- [Commits](https://github.com/expo/expo/commits/HEAD/packages/expo-sqlite)

Updates `react-native` from 0.77.1 to 0.77.2
- [Release notes](https://github.com/facebook/react-native/releases)
- [Changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react-native/commits/v0.77.2/packages/react-native)

Updates `react-native-ios-utilities` from 5.1.2 to 5.1.3
- [Release notes](https://github.com/dominicstop/react-native-ios-utilities/releases)
- [Commits](https://github.com/dominicstop/react-native-ios-utilities/compare/v5.1.2...v5.1.3)

Updates `react-native-webview` from 13.13.4 to 13.13.5
- [Release notes](https://github.com/react-native-webview/react-native-webview/releases)
- [Changelog](https://github.com/react-native-webview/react-native-webview/blob/master/.releaserc)
- [Commits](https://github.com/react-native-webview/react-native-webview/compare/v13.13.4...v13.13.5)

Updates `drizzle-kit` from 0.30.5 to 0.30.6
- [Release notes](https://github.com/drizzle-team/drizzle-orm/releases)
- [Commits](https://github.com/drizzle-team/drizzle-orm/compare/drizzle-kit@0.30.5...drizzle-kit@0.30.6)

Updates `react-router` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router@7.4.1/packages/react-router)

Updates `satori` from 0.12.1 to 0.12.2
- [Release notes](https://github.com/vercel/satori/releases)
- [Commits](https://github.com/vercel/satori/compare/0.12.1...0.12.2)

Updates `sonner` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/emilkowalski/sonner/releases)
- [Commits](https://github.com/emilkowalski/sonner/compare/v2.0.1...v2.0.2)

Updates `electron-log` from 5.3.2 to 5.3.3
- [Changelog](https://github.com/megahertz/electron-log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/megahertz/electron-log/compare/v5.3.2...v5.3.3)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: "@sentry/vite-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: "@react-native-firebase/analytics"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: "@react-native-firebase/app"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: "@react-native-firebase/app-check"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: "@react-native-firebase/crashlytics"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: expo
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: expo-image
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: expo-sqlite
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: react-native
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: react-native-ios-utilities
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: react-native-webview
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: drizzle-kit
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: react-router
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: satori
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: sonner
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: electron-log
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-30 15:52:32 +08:00