diff --git a/.github/workflows/auth-crowdin-push.yml b/.github/workflows/auth-crowdin-push.yml index 4cefb1d1c6..74c5ef808f 100644 --- a/.github/workflows/auth-crowdin-push.yml +++ b/.github/workflows/auth-crowdin-push.yml @@ -24,8 +24,8 @@ jobs: - name: Crowdin's action uses: crowdin/github-action@v2 with: - base_path: "auth/" - config: "auth/crowdin.yml" + base_path: "mobile/apps/auth/" + config: "mobile/apps/auth/crowdin.yml" upload_sources: true upload_translations: false download_translations: false diff --git a/.github/workflows/auth-crowdin-sync.yml b/.github/workflows/auth-crowdin-sync.yml index 695aea7245..477b62cf44 100644 --- a/.github/workflows/auth-crowdin-sync.yml +++ b/.github/workflows/auth-crowdin-sync.yml @@ -23,8 +23,8 @@ jobs: - name: Crowdin's action uses: crowdin/github-action@v2 with: - base_path: "auth/" - config: "auth/crowdin.yml" + base_path: "mobile/apps/auth/" + config: "mobile/apps/auth/crowdin.yml" upload_sources: true upload_translations: false download_translations: true diff --git a/.github/workflows/auth-internal-release.yml b/.github/workflows/auth-internal-release.yml index 9668e0e336..13f6310cef 100644 --- a/.github/workflows/auth-internal-release.yml +++ b/.github/workflows/auth-internal-release.yml @@ -15,7 +15,7 @@ jobs: defaults: run: - working-directory: auth + working-directory: mobile/apps/auth steps: - name: Checkout code and submodules @@ -55,7 +55,7 @@ jobs: with: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} packageName: io.ente.auth - releaseFiles: auth/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab + releaseFiles: mobile/apps/auth/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab track: internal - name: Notify Discord diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml index e48317d59f..34e5ff8a78 100644 --- a/.github/workflows/auth-lint.yml +++ b/.github/workflows/auth-lint.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: auth + working-directory: mobile/apps/auth steps: - name: Checkout code and submodules uses: actions/checkout@v4 diff --git a/.github/workflows/auth-release.yml b/.github/workflows/auth-release.yml index 97d079a681..d8c9f4e1cc 100644 --- a/.github/workflows/auth-release.yml +++ b/.github/workflows/auth-release.yml @@ -40,7 +40,7 @@ jobs: defaults: run: - working-directory: auth + working-directory: mobile/apps/auth steps: - name: Checkout code and submodules @@ -124,7 +124,7 @@ jobs: - name: Create a draft GitHub release uses: ncipollo/release-action@v1 with: - artifacts: "auth/artifacts/*" + artifacts: "mobile/apps/auth/artifacts/*" draft: true allowUpdates: true updateOnlyUnreleased: true @@ -136,7 +136,7 @@ jobs: with: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} packageName: io.ente.auth - releaseFiles: auth/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab + releaseFiles: mobile/apps/auth/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab track: internal build-windows: @@ -145,7 +145,7 @@ jobs: defaults: run: - working-directory: auth + working-directory: mobile/apps/auth steps: - name: Checkout code and submodules @@ -185,8 +185,8 @@ jobs: trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }} certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }} files: | - ${{ github.workspace }}/auth/artifacts/ente-${{ github.ref_name }}-installer.exe - ${{ github.workspace }}/auth/ente-${{ github.ref_name }}-windows/auth.exe + ${{ github.workspace }}/mobile/apps/auth/artifacts/ente-${{ github.ref_name }}-installer.exe + ${{ github.workspace }}/mobile/apps/auth/ente-${{ github.ref_name }}-windows/auth.exe file-digest: SHA256 timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-digest: SHA256 @@ -201,7 +201,7 @@ jobs: - name: Create a draft GitHub release uses: ncipollo/release-action@v1 with: - artifacts: "auth/artifacts/*" + artifacts: "mobile/apps/auth/artifacts/*" draft: true allowUpdates: true updateOnlyUnreleased: true @@ -211,7 +211,7 @@ jobs: defaults: run: - working-directory: auth + working-directory: mobile/apps/auth steps: - name: Checkout code and submodules @@ -298,7 +298,7 @@ jobs: - name: Create a draft GitHub release uses: ncipollo/release-action@v1 with: - artifacts: "auth/artifacts/*" + artifacts: "mobile/apps/auth/artifacts/*" draft: true allowUpdates: true updateOnlyUnreleased: true diff --git a/.github/workflows/auth-win-sign.yml b/.github/workflows/auth-win-sign.yml index 860cde2ca2..dada811c96 100644 --- a/.github/workflows/auth-win-sign.yml +++ b/.github/workflows/auth-win-sign.yml @@ -17,7 +17,7 @@ jobs: defaults: run: - working-directory: auth + working-directory: mobile/apps/auth steps: - name: Checkout code and submodules @@ -57,8 +57,8 @@ jobs: trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }} certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }} files: | - ${{ github.workspace }}/auth/artifacts/ente-${{ github.ref_name }}-installer.exe - ${{ github.workspace }}/auth/ente-${{ github.ref_name }}-windows/auth.exe + ${{ github.workspace }}/mobile/apps/auth/artifacts/ente-${{ github.ref_name }}-installer.exe + ${{ github.workspace }}/mobile/apps/auth/ente-${{ github.ref_name }}-windows/auth.exe file-digest: SHA256 timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-digest: SHA256 diff --git a/.github/workflows/mobile-crowdin-push.yml b/.github/workflows/mobile-crowdin-push.yml index e8b219d5c7..972a13bd6b 100644 --- a/.github/workflows/mobile-crowdin-push.yml +++ b/.github/workflows/mobile-crowdin-push.yml @@ -5,7 +5,7 @@ on: branches: [main] paths: # Run workflow when mobiles's intl_en.arb is changed - - "mobile/lib/l10n/intl_en.arb" + - "mobile/apps/photos/lib/l10n/intl_en.arb" # Or the workflow itself is changed - ".github/workflows/mobile-crowdin.yml" @@ -24,8 +24,8 @@ jobs: - name: Crowdin's action uses: crowdin/github-action@v2 with: - base_path: "mobile/" - config: "mobile/crowdin.yml" + base_path: "mobile/apps/photos/" + config: "mobile/apps/photos/crowdin.yml" upload_sources: true upload_translations: false download_translations: false diff --git a/.github/workflows/mobile-crowdin-sync.yml b/.github/workflows/mobile-crowdin-sync.yml index f064105331..60b87fbb4b 100644 --- a/.github/workflows/mobile-crowdin-sync.yml +++ b/.github/workflows/mobile-crowdin-sync.yml @@ -1,4 +1,4 @@ -name: "Sync Crowdin translations (mobile)" +name: "Sync Crowdin translations (mobile/photos)" on: schedule: @@ -23,14 +23,14 @@ jobs: - name: Crowdin's action uses: crowdin/github-action@v2 with: - base_path: "mobile/" - config: "mobile/crowdin.yml" + base_path: "mobile/apps/photos/" + config: "mobile/apps/photos/crowdin.yml" upload_sources: true upload_translations: false download_translations: true localization_branch_name: translations/mobile create_pull_request: true - pull_request_title: "[mobile] New translations" + pull_request_title: "[mobile/photos] New translations" pull_request_body: "New translations from [Crowdin](https://crowdin.com/project/ente-photos-app)" pull_request_base_branch_name: "main" project_id: 574741 diff --git a/.github/workflows/mobile-internal-release-rust.yml b/.github/workflows/mobile-internal-release-rust.yml index aa254f2268..28c93d8618 100644 --- a/.github/workflows/mobile-internal-release-rust.yml +++ b/.github/workflows/mobile-internal-release-rust.yml @@ -16,7 +16,7 @@ jobs: defaults: run: - working-directory: mobile + working-directory: mobile/apps/photos steps: - name: Checkout code and submodules @@ -64,7 +64,7 @@ jobs: with: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} packageName: io.ente.photos - releaseFiles: mobile/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab + releaseFiles: mobile/apps/photos/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab track: internal - name: Notify Discord diff --git a/.github/workflows/mobile-internal-release.yml b/.github/workflows/mobile-internal-release.yml index f1d5724f97..1a689d3785 100644 --- a/.github/workflows/mobile-internal-release.yml +++ b/.github/workflows/mobile-internal-release.yml @@ -15,7 +15,7 @@ jobs: defaults: run: - working-directory: mobile + working-directory: mobile/apps/photos steps: - name: Checkout code and submodules @@ -55,7 +55,7 @@ jobs: with: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} packageName: io.ente.photos - releaseFiles: mobile/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab + releaseFiles: mobile/apps/photos/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab track: internal - name: Notify Discord diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml index f404c5a65a..f0944416b5 100644 --- a/.github/workflows/mobile-lint.yml +++ b/.github/workflows/mobile-lint.yml @@ -4,7 +4,7 @@ on: # Run on every pull request (open or push to it) that changes mobile/ pull_request: paths: - - "mobile/**" + - "mobile/apps/photos/**" - ".github/workflows/mobile-lint.yml" env: @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: mobile + working-directory: mobile/apps/photos steps: - name: Checkout code and submodules uses: actions/checkout@v4 diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml index e15cd937e9..d0466f3b49 100644 --- a/.github/workflows/mobile-release.yml +++ b/.github/workflows/mobile-release.yml @@ -20,7 +20,7 @@ jobs: defaults: run: - working-directory: mobile + working-directory: mobile/apps/photos steps: - name: Checkout code and submodules @@ -62,5 +62,5 @@ jobs: - name: Create a draft GitHub release uses: ncipollo/release-action@v1 with: - artifacts: "mobile/build/app/outputs/flutter-apk/ente-${{ github.ref_name }}.apk,mobile/build/app/outputs/flutter-apk/sha256sum" + artifacts: "mobile/apps/photos/build/app/outputs/flutter-apk/ente-${{ github.ref_name }}.apk,mobile/apps/photos/build/app/outputs/flutter-apk/sha256sum" draft: true diff --git a/.gitmodules b/.gitmodules index 115f28e530..44b02538e6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,9 +3,9 @@ url = https://github.com/ente-io/sentry-dart.git branch = sentry_flutter_ente [submodule "auth/flutter"] - path = auth/flutter + path = mobile/apps/auth/flutter url = https://github.com/flutter/flutter.git branch = stable [submodule "auth/assets/simple-icons"] - path = auth/assets/simple-icons + path = mobile/apps/auth/assets/simple-icons url = https://github.com/simple-icons/simple-icons.git diff --git a/auth/lib/l10n/arb/app_et.arb b/auth/lib/l10n/arb/app_et.arb deleted file mode 100644 index 9a53d6796f..0000000000 --- a/auth/lib/l10n/arb/app_et.arb +++ /dev/null @@ -1,4 +0,0 @@ -{ - "loggingOut": "Väljalogimine...", - "useRecoveryKey": "Kasuta taastevõtit" -} \ No newline at end of file diff --git a/auth/.fvmrc b/mobile/apps/auth/.fvmrc similarity index 100% rename from auth/.fvmrc rename to mobile/apps/auth/.fvmrc diff --git a/auth/.gitignore b/mobile/apps/auth/.gitignore similarity index 100% rename from auth/.gitignore rename to mobile/apps/auth/.gitignore diff --git a/auth/.metadata b/mobile/apps/auth/.metadata similarity index 100% rename from auth/.metadata rename to mobile/apps/auth/.metadata diff --git a/auth/README.md b/mobile/apps/auth/README.md similarity index 100% rename from auth/README.md rename to mobile/apps/auth/README.md diff --git a/auth/analysis_options.yaml b/mobile/apps/auth/analysis_options.yaml similarity index 100% rename from auth/analysis_options.yaml rename to mobile/apps/auth/analysis_options.yaml diff --git a/auth/android/.gitignore b/mobile/apps/auth/android/.gitignore similarity index 100% rename from auth/android/.gitignore rename to mobile/apps/auth/android/.gitignore diff --git a/auth/android/app/build.gradle b/mobile/apps/auth/android/app/build.gradle similarity index 100% rename from auth/android/app/build.gradle rename to mobile/apps/auth/android/app/build.gradle diff --git a/auth/android/app/src/debug/AndroidManifest.xml b/mobile/apps/auth/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from auth/android/app/src/debug/AndroidManifest.xml rename to mobile/apps/auth/android/app/src/debug/AndroidManifest.xml diff --git a/auth/android/app/src/development/ic_launcher-playstore.png b/mobile/apps/auth/android/app/src/development/ic_launcher-playstore.png similarity index 100% rename from auth/android/app/src/development/ic_launcher-playstore.png rename to mobile/apps/auth/android/app/src/development/ic_launcher-playstore.png diff --git a/auth/android/app/src/development/res/drawable/ic_launcher_foreground.xml b/mobile/apps/auth/android/app/src/development/res/drawable/ic_launcher_foreground.xml similarity index 100% rename from auth/android/app/src/development/res/drawable/ic_launcher_foreground.xml rename to mobile/apps/auth/android/app/src/development/res/drawable/ic_launcher_foreground.xml diff --git a/auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml b/mobile/apps/auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml rename to mobile/apps/auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml b/mobile/apps/auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to mobile/apps/auth/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/auth/android/app/src/development/res/mipmap-hdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/development/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-hdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-hdpi/ic_launcher.png diff --git a/auth/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png diff --git a/auth/android/app/src/development/res/mipmap-mdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/development/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-mdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-mdpi/ic_launcher.png diff --git a/auth/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png diff --git a/auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png diff --git a/auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png diff --git a/auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/auth/android/app/src/development/res/values/ic_launcher_background.xml b/mobile/apps/auth/android/app/src/development/res/values/ic_launcher_background.xml similarity index 100% rename from auth/android/app/src/development/res/values/ic_launcher_background.xml rename to mobile/apps/auth/android/app/src/development/res/values/ic_launcher_background.xml diff --git a/auth/android/app/src/main/AndroidManifest.xml b/mobile/apps/auth/android/app/src/main/AndroidManifest.xml similarity index 100% rename from auth/android/app/src/main/AndroidManifest.xml rename to mobile/apps/auth/android/app/src/main/AndroidManifest.xml diff --git a/auth/android/app/src/main/kotlin/io/ente/authenticator/MainActivity.kt b/mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/MainActivity.kt similarity index 100% rename from auth/android/app/src/main/kotlin/io/ente/authenticator/MainActivity.kt rename to mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/MainActivity.kt diff --git a/auth/android/app/src/main/play/listings/en-US/full-description.txt b/mobile/apps/auth/android/app/src/main/play/listings/en-US/full-description.txt similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/full-description.txt rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/full-description.txt diff --git a/auth/android/app/src/main/play/listings/en-US/graphics/icon/icon.png b/mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/icon/icon.png similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/graphics/icon/icon.png rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/icon/icon.png diff --git a/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png b/mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png diff --git a/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png b/mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png diff --git a/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png b/mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png diff --git a/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png b/mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png diff --git a/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png b/mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png diff --git a/auth/android/app/src/main/play/listings/en-US/short-description.txt b/mobile/apps/auth/android/app/src/main/play/listings/en-US/short-description.txt similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/short-description.txt rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/short-description.txt diff --git a/auth/android/app/src/main/play/listings/en-US/title.txt b/mobile/apps/auth/android/app/src/main/play/listings/en-US/title.txt similarity index 100% rename from auth/android/app/src/main/play/listings/en-US/title.txt rename to mobile/apps/auth/android/app/src/main/play/listings/en-US/title.txt diff --git a/auth/android/app/src/main/res/drawable-hdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-hdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-hdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-hdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_background.png b/mobile/apps/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-hdpi/ic_launcher_background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_background.png diff --git a/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/mobile/apps/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png similarity index 100% rename from auth/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png rename to mobile/apps/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png diff --git a/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png b/mobile/apps/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png similarity index 100% rename from auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png rename to mobile/apps/auth/android/app/src/main/res/drawable-hdpi/ic_launcher_monochrome.png diff --git a/auth/android/app/src/main/res/drawable-hdpi/splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-hdpi/splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-hdpi/splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-hdpi/splash.png diff --git a/auth/android/app/src/main/res/drawable-mdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-mdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-mdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-mdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_background.png b/mobile/apps/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-mdpi/ic_launcher_background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_background.png diff --git a/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/mobile/apps/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png similarity index 100% rename from auth/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png rename to mobile/apps/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png diff --git a/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png b/mobile/apps/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png similarity index 100% rename from auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png rename to mobile/apps/auth/android/app/src/main/res/drawable-mdpi/ic_launcher_monochrome.png diff --git a/auth/android/app/src/main/res/drawable-mdpi/splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-mdpi/splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-mdpi/splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-mdpi/splash.png diff --git a/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night-hdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night-mdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-night-v21/background.png b/mobile/apps/auth/android/app/src/main/res/drawable-night-v21/background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night-v21/background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night-v21/background.png diff --git a/auth/android/app/src/main/res/drawable-night-v21/launch_background.xml b/mobile/apps/auth/android/app/src/main/res/drawable-night-v21/launch_background.xml similarity index 100% rename from auth/android/app/src/main/res/drawable-night-v21/launch_background.xml rename to mobile/apps/auth/android/app/src/main/res/drawable-night-v21/launch_background.xml diff --git a/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night-xhdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-night/background.png b/mobile/apps/auth/android/app/src/main/res/drawable-night/background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-night/background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-night/background.png diff --git a/auth/android/app/src/main/res/drawable-night/launch_background.xml b/mobile/apps/auth/android/app/src/main/res/drawable-night/launch_background.xml similarity index 100% rename from auth/android/app/src/main/res/drawable-night/launch_background.xml rename to mobile/apps/auth/android/app/src/main/res/drawable-night/launch_background.xml diff --git a/auth/android/app/src/main/res/drawable-v21/background.png b/mobile/apps/auth/android/app/src/main/res/drawable-v21/background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-v21/background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-v21/background.png diff --git a/auth/android/app/src/main/res/drawable-v21/launch_background.xml b/mobile/apps/auth/android/app/src/main/res/drawable-v21/launch_background.xml similarity index 100% rename from auth/android/app/src/main/res/drawable-v21/launch_background.xml rename to mobile/apps/auth/android/app/src/main/res/drawable-v21/launch_background.xml diff --git a/auth/android/app/src/main/res/drawable-xhdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xhdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_background.png b/mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_background.png diff --git a/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png diff --git a/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png b/mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/ic_launcher_monochrome.png diff --git a/auth/android/app/src/main/res/drawable-xhdpi/splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xhdpi/splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xhdpi/splash.png diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxhdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_background.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_background.png diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/ic_launcher_monochrome.png diff --git a/auth/android/app/src/main/res/drawable-xxhdpi/splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxhdpi/splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxhdpi/splash.png diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/android12splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/android12splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxxhdpi/android12splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/android12splash.png diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_background.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_background.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_background.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_background.png diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_monochrome.png diff --git a/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png b/mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png similarity index 100% rename from auth/android/app/src/main/res/drawable-xxxhdpi/splash.png rename to mobile/apps/auth/android/app/src/main/res/drawable-xxxhdpi/splash.png diff --git a/auth/android/app/src/main/res/drawable/background.png b/mobile/apps/auth/android/app/src/main/res/drawable/background.png similarity index 100% rename from auth/android/app/src/main/res/drawable/background.png rename to mobile/apps/auth/android/app/src/main/res/drawable/background.png diff --git a/auth/android/app/src/main/res/drawable/launch_background.xml b/mobile/apps/auth/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from auth/android/app/src/main/res/drawable/launch_background.xml rename to mobile/apps/auth/android/app/src/main/res/drawable/launch_background.xml diff --git a/auth/android/app/src/main/res/drawable/notification_icon.png b/mobile/apps/auth/android/app/src/main/res/drawable/notification_icon.png similarity index 100% rename from auth/android/app/src/main/res/drawable/notification_icon.png rename to mobile/apps/auth/android/app/src/main/res/drawable/notification_icon.png diff --git a/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml b/mobile/apps/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml similarity index 100% rename from auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml rename to mobile/apps/auth/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml diff --git a/auth/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/mobile/apps/auth/android/app/src/main/res/mipmap-hdpi/launcher_icon.png similarity index 100% rename from auth/android/app/src/main/res/mipmap-hdpi/launcher_icon.png rename to mobile/apps/auth/android/app/src/main/res/mipmap-hdpi/launcher_icon.png diff --git a/auth/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/mobile/apps/auth/android/app/src/main/res/mipmap-mdpi/launcher_icon.png similarity index 100% rename from auth/android/app/src/main/res/mipmap-mdpi/launcher_icon.png rename to mobile/apps/auth/android/app/src/main/res/mipmap-mdpi/launcher_icon.png diff --git a/auth/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/mobile/apps/auth/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png similarity index 100% rename from auth/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png rename to mobile/apps/auth/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png diff --git a/auth/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/mobile/apps/auth/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png similarity index 100% rename from auth/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png rename to mobile/apps/auth/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png diff --git a/auth/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/mobile/apps/auth/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png similarity index 100% rename from auth/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png rename to mobile/apps/auth/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png diff --git a/auth/android/app/src/main/res/values-night-v31/styles.xml b/mobile/apps/auth/android/app/src/main/res/values-night-v31/styles.xml similarity index 100% rename from auth/android/app/src/main/res/values-night-v31/styles.xml rename to mobile/apps/auth/android/app/src/main/res/values-night-v31/styles.xml diff --git a/auth/android/app/src/main/res/values-night/styles.xml b/mobile/apps/auth/android/app/src/main/res/values-night/styles.xml similarity index 100% rename from auth/android/app/src/main/res/values-night/styles.xml rename to mobile/apps/auth/android/app/src/main/res/values-night/styles.xml diff --git a/auth/android/app/src/main/res/values-v31/styles.xml b/mobile/apps/auth/android/app/src/main/res/values-v31/styles.xml similarity index 100% rename from auth/android/app/src/main/res/values-v31/styles.xml rename to mobile/apps/auth/android/app/src/main/res/values-v31/styles.xml diff --git a/auth/android/app/src/main/res/values/colors.xml b/mobile/apps/auth/android/app/src/main/res/values/colors.xml similarity index 100% rename from auth/android/app/src/main/res/values/colors.xml rename to mobile/apps/auth/android/app/src/main/res/values/colors.xml diff --git a/auth/android/app/src/main/res/values/styles.xml b/mobile/apps/auth/android/app/src/main/res/values/styles.xml similarity index 100% rename from auth/android/app/src/main/res/values/styles.xml rename to mobile/apps/auth/android/app/src/main/res/values/styles.xml diff --git a/auth/android/app/src/profile/AndroidManifest.xml b/mobile/apps/auth/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from auth/android/app/src/profile/AndroidManifest.xml rename to mobile/apps/auth/android/app/src/profile/AndroidManifest.xml diff --git a/auth/android/app/src/staging/ic_launcher-playstore.png b/mobile/apps/auth/android/app/src/staging/ic_launcher-playstore.png similarity index 100% rename from auth/android/app/src/staging/ic_launcher-playstore.png rename to mobile/apps/auth/android/app/src/staging/ic_launcher-playstore.png diff --git a/auth/android/app/src/staging/res/drawable/ic_launcher_foreground.xml b/mobile/apps/auth/android/app/src/staging/res/drawable/ic_launcher_foreground.xml similarity index 100% rename from auth/android/app/src/staging/res/drawable/ic_launcher_foreground.xml rename to mobile/apps/auth/android/app/src/staging/res/drawable/ic_launcher_foreground.xml diff --git a/auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml b/mobile/apps/auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml rename to mobile/apps/auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml b/mobile/apps/auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to mobile/apps/auth/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png diff --git a/auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png diff --git a/auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png diff --git a/auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png diff --git a/auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png diff --git a/auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png diff --git a/auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png b/mobile/apps/auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png rename to mobile/apps/auth/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/auth/android/app/src/staging/res/values/ic_launcher_background.xml b/mobile/apps/auth/android/app/src/staging/res/values/ic_launcher_background.xml similarity index 100% rename from auth/android/app/src/staging/res/values/ic_launcher_background.xml rename to mobile/apps/auth/android/app/src/staging/res/values/ic_launcher_background.xml diff --git a/auth/android/build.gradle b/mobile/apps/auth/android/build.gradle similarity index 100% rename from auth/android/build.gradle rename to mobile/apps/auth/android/build.gradle diff --git a/auth/android/gradle.properties b/mobile/apps/auth/android/gradle.properties similarity index 100% rename from auth/android/gradle.properties rename to mobile/apps/auth/android/gradle.properties diff --git a/auth/android/gradle/wrapper/gradle-wrapper.properties b/mobile/apps/auth/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from auth/android/gradle/wrapper/gradle-wrapper.properties rename to mobile/apps/auth/android/gradle/wrapper/gradle-wrapper.properties diff --git a/auth/android/settings.gradle b/mobile/apps/auth/android/settings.gradle similarity index 100% rename from auth/android/settings.gradle rename to mobile/apps/auth/android/settings.gradle diff --git a/auth/architecture/README.md b/mobile/apps/auth/architecture/README.md similarity index 100% rename from auth/architecture/README.md rename to mobile/apps/auth/architecture/README.md diff --git a/auth/architecture/assets/authentication.svg b/mobile/apps/auth/architecture/assets/authentication.svg similarity index 100% rename from auth/architecture/assets/authentication.svg rename to mobile/apps/auth/architecture/assets/authentication.svg diff --git a/auth/architecture/assets/e2ee.svg b/mobile/apps/auth/architecture/assets/e2ee.svg similarity index 100% rename from auth/architecture/assets/e2ee.svg rename to mobile/apps/auth/architecture/assets/e2ee.svg diff --git a/auth/architecture/assets/key-derivation.svg b/mobile/apps/auth/architecture/assets/key-derivation.svg similarity index 100% rename from auth/architecture/assets/key-derivation.svg rename to mobile/apps/auth/architecture/assets/key-derivation.svg diff --git a/auth/architecture/assets/recovery.svg b/mobile/apps/auth/architecture/assets/recovery.svg similarity index 100% rename from auth/architecture/assets/recovery.svg rename to mobile/apps/auth/architecture/assets/recovery.svg diff --git a/auth/architecture/assets/token-encryption.svg b/mobile/apps/auth/architecture/assets/token-encryption.svg similarity index 100% rename from auth/architecture/assets/token-encryption.svg rename to mobile/apps/auth/architecture/assets/token-encryption.svg diff --git a/auth/assets/2.0x/broken_heart.png b/mobile/apps/auth/assets/2.0x/broken_heart.png similarity index 100% rename from auth/assets/2.0x/broken_heart.png rename to mobile/apps/auth/assets/2.0x/broken_heart.png diff --git a/auth/assets/2.0x/calender_banner_dark.png b/mobile/apps/auth/assets/2.0x/calender_banner_dark.png similarity index 100% rename from auth/assets/2.0x/calender_banner_dark.png rename to mobile/apps/auth/assets/2.0x/calender_banner_dark.png diff --git a/auth/assets/2.0x/calender_banner_light.png b/mobile/apps/auth/assets/2.0x/calender_banner_light.png similarity index 100% rename from auth/assets/2.0x/calender_banner_light.png rename to mobile/apps/auth/assets/2.0x/calender_banner_light.png diff --git a/auth/assets/2.0x/discount.png b/mobile/apps/auth/assets/2.0x/discount.png similarity index 100% rename from auth/assets/2.0x/discount.png rename to mobile/apps/auth/assets/2.0x/discount.png diff --git a/auth/assets/2.0x/ente_5gb.png b/mobile/apps/auth/assets/2.0x/ente_5gb.png similarity index 100% rename from auth/assets/2.0x/ente_5gb.png rename to mobile/apps/auth/assets/2.0x/ente_5gb.png diff --git a/auth/assets/2.0x/loading_photos_background.png b/mobile/apps/auth/assets/2.0x/loading_photos_background.png similarity index 100% rename from auth/assets/2.0x/loading_photos_background.png rename to mobile/apps/auth/assets/2.0x/loading_photos_background.png diff --git a/auth/assets/2.0x/loading_photos_background_dark.png b/mobile/apps/auth/assets/2.0x/loading_photos_background_dark.png similarity index 100% rename from auth/assets/2.0x/loading_photos_background_dark.png rename to mobile/apps/auth/assets/2.0x/loading_photos_background_dark.png diff --git a/auth/assets/2.0x/rate_us.png b/mobile/apps/auth/assets/2.0x/rate_us.png similarity index 100% rename from auth/assets/2.0x/rate_us.png rename to mobile/apps/auth/assets/2.0x/rate_us.png diff --git a/auth/assets/2.0x/sheild-front-gradient.png b/mobile/apps/auth/assets/2.0x/sheild-front-gradient.png similarity index 100% rename from auth/assets/2.0x/sheild-front-gradient.png rename to mobile/apps/auth/assets/2.0x/sheild-front-gradient.png diff --git a/auth/assets/2.0x/star_us.png b/mobile/apps/auth/assets/2.0x/star_us.png similarity index 100% rename from auth/assets/2.0x/star_us.png rename to mobile/apps/auth/assets/2.0x/star_us.png diff --git a/auth/assets/2.0x/wallet-front-gradient.png b/mobile/apps/auth/assets/2.0x/wallet-front-gradient.png similarity index 100% rename from auth/assets/2.0x/wallet-front-gradient.png rename to mobile/apps/auth/assets/2.0x/wallet-front-gradient.png diff --git a/auth/assets/3.0x/broken_heart.png b/mobile/apps/auth/assets/3.0x/broken_heart.png similarity index 100% rename from auth/assets/3.0x/broken_heart.png rename to mobile/apps/auth/assets/3.0x/broken_heart.png diff --git a/auth/assets/3.0x/calender_banner_dark.png b/mobile/apps/auth/assets/3.0x/calender_banner_dark.png similarity index 100% rename from auth/assets/3.0x/calender_banner_dark.png rename to mobile/apps/auth/assets/3.0x/calender_banner_dark.png diff --git a/auth/assets/3.0x/calender_banner_light.png b/mobile/apps/auth/assets/3.0x/calender_banner_light.png similarity index 100% rename from auth/assets/3.0x/calender_banner_light.png rename to mobile/apps/auth/assets/3.0x/calender_banner_light.png diff --git a/auth/assets/3.0x/discount.png b/mobile/apps/auth/assets/3.0x/discount.png similarity index 100% rename from auth/assets/3.0x/discount.png rename to mobile/apps/auth/assets/3.0x/discount.png diff --git a/auth/assets/3.0x/ente_5gb.png b/mobile/apps/auth/assets/3.0x/ente_5gb.png similarity index 100% rename from auth/assets/3.0x/ente_5gb.png rename to mobile/apps/auth/assets/3.0x/ente_5gb.png diff --git a/auth/assets/3.0x/loading_photos_background.png b/mobile/apps/auth/assets/3.0x/loading_photos_background.png similarity index 100% rename from auth/assets/3.0x/loading_photos_background.png rename to mobile/apps/auth/assets/3.0x/loading_photos_background.png diff --git a/auth/assets/3.0x/loading_photos_background_dark.png b/mobile/apps/auth/assets/3.0x/loading_photos_background_dark.png similarity index 100% rename from auth/assets/3.0x/loading_photos_background_dark.png rename to mobile/apps/auth/assets/3.0x/loading_photos_background_dark.png diff --git a/auth/assets/3.0x/rate_us.png b/mobile/apps/auth/assets/3.0x/rate_us.png similarity index 100% rename from auth/assets/3.0x/rate_us.png rename to mobile/apps/auth/assets/3.0x/rate_us.png diff --git a/auth/assets/3.0x/sheild-front-gradient.png b/mobile/apps/auth/assets/3.0x/sheild-front-gradient.png similarity index 100% rename from auth/assets/3.0x/sheild-front-gradient.png rename to mobile/apps/auth/assets/3.0x/sheild-front-gradient.png diff --git a/auth/assets/3.0x/star_us.png b/mobile/apps/auth/assets/3.0x/star_us.png similarity index 100% rename from auth/assets/3.0x/star_us.png rename to mobile/apps/auth/assets/3.0x/star_us.png diff --git a/auth/assets/3.0x/wallet-front-gradient.png b/mobile/apps/auth/assets/3.0x/wallet-front-gradient.png similarity index 100% rename from auth/assets/3.0x/wallet-front-gradient.png rename to mobile/apps/auth/assets/3.0x/wallet-front-gradient.png diff --git a/auth/assets/broken_heart.png b/mobile/apps/auth/assets/broken_heart.png similarity index 100% rename from auth/assets/broken_heart.png rename to mobile/apps/auth/assets/broken_heart.png diff --git a/auth/assets/build/.last_build_id b/mobile/apps/auth/assets/build/.last_build_id similarity index 100% rename from auth/assets/build/.last_build_id rename to mobile/apps/auth/assets/build/.last_build_id diff --git a/auth/assets/calender_banner_dark.png b/mobile/apps/auth/assets/calender_banner_dark.png similarity index 100% rename from auth/assets/calender_banner_dark.png rename to mobile/apps/auth/assets/calender_banner_dark.png diff --git a/auth/assets/calender_banner_light.png b/mobile/apps/auth/assets/calender_banner_light.png similarity index 100% rename from auth/assets/calender_banner_light.png rename to mobile/apps/auth/assets/calender_banner_light.png diff --git a/auth/assets/custom-icons/_data/custom-icons.json b/mobile/apps/auth/assets/custom-icons/_data/custom-icons.json similarity index 98% rename from auth/assets/custom-icons/_data/custom-icons.json rename to mobile/apps/auth/assets/custom-icons/_data/custom-icons.json index 9bfacf845d..589db8113c 100644 --- a/auth/assets/custom-icons/_data/custom-icons.json +++ b/mobile/apps/auth/assets/custom-icons/_data/custom-icons.json @@ -1038,6 +1038,30 @@ { "title": "Proton" }, + { + "title": "Proton Calendar", + "slug": "proton_calendar" + }, + { + "title": "Proton Drive", + "slug": "proton_drive" + }, + { + "title": "Proton Mail", + "slug": "proton_mail" + }, + { + "title": "Proton Pass", + "slug": "proton_pass" + }, + { + "title": "Proton VPN", + "slug": "proton_vpn" + }, + { + "title": "Proton Wallet", + "slug": "proton_wallet" + }, { "title": "Proxmox" }, diff --git a/auth/assets/custom-icons/icons/1x_bet.svg b/mobile/apps/auth/assets/custom-icons/icons/1x_bet.svg similarity index 100% rename from auth/assets/custom-icons/icons/1x_bet.svg rename to mobile/apps/auth/assets/custom-icons/icons/1x_bet.svg diff --git a/auth/assets/custom-icons/icons/23andme.svg b/mobile/apps/auth/assets/custom-icons/icons/23andme.svg similarity index 100% rename from auth/assets/custom-icons/icons/23andme.svg rename to mobile/apps/auth/assets/custom-icons/icons/23andme.svg diff --git a/auth/assets/custom-icons/icons/3commas.svg b/mobile/apps/auth/assets/custom-icons/icons/3commas.svg similarity index 100% rename from auth/assets/custom-icons/icons/3commas.svg rename to mobile/apps/auth/assets/custom-icons/icons/3commas.svg diff --git a/auth/assets/custom-icons/icons/addy_io.svg b/mobile/apps/auth/assets/custom-icons/icons/addy_io.svg similarity index 100% rename from auth/assets/custom-icons/icons/addy_io.svg rename to mobile/apps/auth/assets/custom-icons/icons/addy_io.svg diff --git a/auth/assets/custom-icons/icons/airtable.svg b/mobile/apps/auth/assets/custom-icons/icons/airtable.svg similarity index 100% rename from auth/assets/custom-icons/icons/airtable.svg rename to mobile/apps/auth/assets/custom-icons/icons/airtable.svg diff --git a/auth/assets/custom-icons/icons/airtm.svg b/mobile/apps/auth/assets/custom-icons/icons/airtm.svg similarity index 100% rename from auth/assets/custom-icons/icons/airtm.svg rename to mobile/apps/auth/assets/custom-icons/icons/airtm.svg diff --git a/auth/assets/custom-icons/icons/aj_bell.svg b/mobile/apps/auth/assets/custom-icons/icons/aj_bell.svg similarity index 100% rename from auth/assets/custom-icons/icons/aj_bell.svg rename to mobile/apps/auth/assets/custom-icons/icons/aj_bell.svg diff --git a/auth/assets/custom-icons/icons/aliyun.svg b/mobile/apps/auth/assets/custom-icons/icons/aliyun.svg similarity index 100% rename from auth/assets/custom-icons/icons/aliyun.svg rename to mobile/apps/auth/assets/custom-icons/icons/aliyun.svg diff --git a/auth/assets/custom-icons/icons/amazon.svg b/mobile/apps/auth/assets/custom-icons/icons/amazon.svg similarity index 100% rename from auth/assets/custom-icons/icons/amazon.svg rename to mobile/apps/auth/assets/custom-icons/icons/amazon.svg diff --git a/auth/assets/custom-icons/icons/ankama.svg b/mobile/apps/auth/assets/custom-icons/icons/ankama.svg similarity index 100% rename from auth/assets/custom-icons/icons/ankama.svg rename to mobile/apps/auth/assets/custom-icons/icons/ankama.svg diff --git a/auth/assets/custom-icons/icons/ankara_university.svg b/mobile/apps/auth/assets/custom-icons/icons/ankara_university.svg similarity index 100% rename from auth/assets/custom-icons/icons/ankara_university.svg rename to mobile/apps/auth/assets/custom-icons/icons/ankara_university.svg diff --git a/auth/assets/custom-icons/icons/anycoindirect.svg b/mobile/apps/auth/assets/custom-icons/icons/anycoindirect.svg similarity index 100% rename from auth/assets/custom-icons/icons/anycoindirect.svg rename to mobile/apps/auth/assets/custom-icons/icons/anycoindirect.svg diff --git a/auth/assets/custom-icons/icons/ar24.svg b/mobile/apps/auth/assets/custom-icons/icons/ar24.svg similarity index 100% rename from auth/assets/custom-icons/icons/ar24.svg rename to mobile/apps/auth/assets/custom-icons/icons/ar24.svg diff --git a/auth/assets/custom-icons/icons/aruba.svg b/mobile/apps/auth/assets/custom-icons/icons/aruba.svg similarity index 100% rename from auth/assets/custom-icons/icons/aruba.svg rename to mobile/apps/auth/assets/custom-icons/icons/aruba.svg diff --git a/auth/assets/custom-icons/icons/ascendex.svg b/mobile/apps/auth/assets/custom-icons/icons/ascendex.svg similarity index 100% rename from auth/assets/custom-icons/icons/ascendex.svg rename to mobile/apps/auth/assets/custom-icons/icons/ascendex.svg diff --git a/auth/assets/custom-icons/icons/aternos.svg b/mobile/apps/auth/assets/custom-icons/icons/aternos.svg similarity index 100% rename from auth/assets/custom-icons/icons/aternos.svg rename to mobile/apps/auth/assets/custom-icons/icons/aternos.svg diff --git a/auth/assets/custom-icons/icons/authentik.svg b/mobile/apps/auth/assets/custom-icons/icons/authentik.svg similarity index 100% rename from auth/assets/custom-icons/icons/authentik.svg rename to mobile/apps/auth/assets/custom-icons/icons/authentik.svg diff --git a/auth/assets/custom-icons/icons/azurhosts.svg b/mobile/apps/auth/assets/custom-icons/icons/azurhosts.svg similarity index 100% rename from auth/assets/custom-icons/icons/azurhosts.svg rename to mobile/apps/auth/assets/custom-icons/icons/azurhosts.svg diff --git a/auth/assets/custom-icons/icons/azurware.svg b/mobile/apps/auth/assets/custom-icons/icons/azurware.svg similarity index 100% rename from auth/assets/custom-icons/icons/azurware.svg rename to mobile/apps/auth/assets/custom-icons/icons/azurware.svg diff --git a/auth/assets/custom-icons/icons/badlion.svg b/mobile/apps/auth/assets/custom-icons/icons/badlion.svg similarity index 100% rename from auth/assets/custom-icons/icons/badlion.svg rename to mobile/apps/auth/assets/custom-icons/icons/badlion.svg diff --git a/auth/assets/custom-icons/icons/baidu_cloud.svg b/mobile/apps/auth/assets/custom-icons/icons/baidu_cloud.svg similarity index 100% rename from auth/assets/custom-icons/icons/baidu_cloud.svg rename to mobile/apps/auth/assets/custom-icons/icons/baidu_cloud.svg diff --git a/auth/assets/custom-icons/icons/band.svg b/mobile/apps/auth/assets/custom-icons/icons/band.svg similarity index 100% rename from auth/assets/custom-icons/icons/band.svg rename to mobile/apps/auth/assets/custom-icons/icons/band.svg diff --git a/auth/assets/custom-icons/icons/battlenet.svg b/mobile/apps/auth/assets/custom-icons/icons/battlenet.svg similarity index 100% rename from auth/assets/custom-icons/icons/battlenet.svg rename to mobile/apps/auth/assets/custom-icons/icons/battlenet.svg diff --git a/auth/assets/custom-icons/icons/bbs_nga.svg b/mobile/apps/auth/assets/custom-icons/icons/bbs_nga.svg similarity index 100% rename from auth/assets/custom-icons/icons/bbs_nga.svg rename to mobile/apps/auth/assets/custom-icons/icons/bbs_nga.svg diff --git a/auth/assets/custom-icons/icons/belo.svg b/mobile/apps/auth/assets/custom-icons/icons/belo.svg similarity index 100% rename from auth/assets/custom-icons/icons/belo.svg rename to mobile/apps/auth/assets/custom-icons/icons/belo.svg diff --git a/auth/assets/custom-icons/icons/bethesda.svg b/mobile/apps/auth/assets/custom-icons/icons/bethesda.svg similarity index 100% rename from auth/assets/custom-icons/icons/bethesda.svg rename to mobile/apps/auth/assets/custom-icons/icons/bethesda.svg diff --git a/auth/assets/custom-icons/icons/binance_exchange.svg b/mobile/apps/auth/assets/custom-icons/icons/binance_exchange.svg similarity index 100% rename from auth/assets/custom-icons/icons/binance_exchange.svg rename to mobile/apps/auth/assets/custom-icons/icons/binance_exchange.svg diff --git a/auth/assets/custom-icons/icons/binance_tr.svg b/mobile/apps/auth/assets/custom-icons/icons/binance_tr.svg similarity index 100% rename from auth/assets/custom-icons/icons/binance_tr.svg rename to mobile/apps/auth/assets/custom-icons/icons/binance_tr.svg diff --git a/auth/assets/custom-icons/icons/binance_us.svg b/mobile/apps/auth/assets/custom-icons/icons/binance_us.svg similarity index 100% rename from auth/assets/custom-icons/icons/binance_us.svg rename to mobile/apps/auth/assets/custom-icons/icons/binance_us.svg diff --git a/auth/assets/custom-icons/icons/bingx.svg b/mobile/apps/auth/assets/custom-icons/icons/bingx.svg similarity index 100% rename from auth/assets/custom-icons/icons/bingx.svg rename to mobile/apps/auth/assets/custom-icons/icons/bingx.svg diff --git a/auth/assets/custom-icons/icons/bitazza.svg b/mobile/apps/auth/assets/custom-icons/icons/bitazza.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitazza.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitazza.svg diff --git a/auth/assets/custom-icons/icons/bitfinex.svg b/mobile/apps/auth/assets/custom-icons/icons/bitfinex.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitfinex.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitfinex.svg diff --git a/auth/assets/custom-icons/icons/bitget.svg b/mobile/apps/auth/assets/custom-icons/icons/bitget.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitget.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitget.svg diff --git a/auth/assets/custom-icons/icons/bitget_wallet.svg b/mobile/apps/auth/assets/custom-icons/icons/bitget_wallet.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitget_wallet.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitget_wallet.svg diff --git a/auth/assets/custom-icons/icons/bitkub.svg b/mobile/apps/auth/assets/custom-icons/icons/bitkub.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitkub.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitkub.svg diff --git a/auth/assets/custom-icons/icons/bitmart.svg b/mobile/apps/auth/assets/custom-icons/icons/bitmart.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitmart.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitmart.svg diff --git a/auth/assets/custom-icons/icons/bitmex.svg b/mobile/apps/auth/assets/custom-icons/icons/bitmex.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitmex.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitmex.svg diff --git a/auth/assets/custom-icons/icons/bitoasis.svg b/mobile/apps/auth/assets/custom-icons/icons/bitoasis.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitoasis.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitoasis.svg diff --git a/auth/assets/custom-icons/icons/bitskins.svg b/mobile/apps/auth/assets/custom-icons/icons/bitskins.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitskins.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitskins.svg diff --git a/auth/assets/custom-icons/icons/bitstamp.svg b/mobile/apps/auth/assets/custom-icons/icons/bitstamp.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitstamp.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitstamp.svg diff --git a/auth/assets/custom-icons/icons/bitvavo.svg b/mobile/apps/auth/assets/custom-icons/icons/bitvavo.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitvavo.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitvavo.svg diff --git a/auth/assets/custom-icons/icons/bitwarden.svg b/mobile/apps/auth/assets/custom-icons/icons/bitwarden.svg similarity index 100% rename from auth/assets/custom-icons/icons/bitwarden.svg rename to mobile/apps/auth/assets/custom-icons/icons/bitwarden.svg diff --git a/auth/assets/custom-icons/icons/blockchain.svg b/mobile/apps/auth/assets/custom-icons/icons/blockchain.svg similarity index 100% rename from auth/assets/custom-icons/icons/blockchain.svg rename to mobile/apps/auth/assets/custom-icons/icons/blockchain.svg diff --git a/auth/assets/custom-icons/icons/bloom_host.svg b/mobile/apps/auth/assets/custom-icons/icons/bloom_host.svg similarity index 100% rename from auth/assets/custom-icons/icons/bloom_host.svg rename to mobile/apps/auth/assets/custom-icons/icons/bloom_host.svg diff --git a/auth/assets/custom-icons/icons/blue_sky.svg b/mobile/apps/auth/assets/custom-icons/icons/blue_sky.svg similarity index 100% rename from auth/assets/custom-icons/icons/blue_sky.svg rename to mobile/apps/auth/assets/custom-icons/icons/blue_sky.svg diff --git a/auth/assets/custom-icons/icons/bonify.svg b/mobile/apps/auth/assets/custom-icons/icons/bonify.svg similarity index 100% rename from auth/assets/custom-icons/icons/bonify.svg rename to mobile/apps/auth/assets/custom-icons/icons/bonify.svg diff --git a/auth/assets/custom-icons/icons/booking.svg b/mobile/apps/auth/assets/custom-icons/icons/booking.svg similarity index 100% rename from auth/assets/custom-icons/icons/booking.svg rename to mobile/apps/auth/assets/custom-icons/icons/booking.svg diff --git a/auth/assets/custom-icons/icons/borg_base.svg b/mobile/apps/auth/assets/custom-icons/icons/borg_base.svg similarity index 100% rename from auth/assets/custom-icons/icons/borg_base.svg rename to mobile/apps/auth/assets/custom-icons/icons/borg_base.svg diff --git a/auth/assets/custom-icons/icons/brave_creators.svg b/mobile/apps/auth/assets/custom-icons/icons/brave_creators.svg similarity index 100% rename from auth/assets/custom-icons/icons/brave_creators.svg rename to mobile/apps/auth/assets/custom-icons/icons/brave_creators.svg diff --git a/auth/assets/custom-icons/icons/bugzilla.svg b/mobile/apps/auth/assets/custom-icons/icons/bugzilla.svg similarity index 100% rename from auth/assets/custom-icons/icons/bugzilla.svg rename to mobile/apps/auth/assets/custom-icons/icons/bugzilla.svg diff --git a/auth/assets/custom-icons/icons/bundesagentur_fur_arbeit.svg b/mobile/apps/auth/assets/custom-icons/icons/bundesagentur_fur_arbeit.svg similarity index 100% rename from auth/assets/custom-icons/icons/bundesagentur_fur_arbeit.svg rename to mobile/apps/auth/assets/custom-icons/icons/bundesagentur_fur_arbeit.svg diff --git a/auth/assets/custom-icons/icons/butterflymx.svg b/mobile/apps/auth/assets/custom-icons/icons/butterflymx.svg similarity index 100% rename from auth/assets/custom-icons/icons/butterflymx.svg rename to mobile/apps/auth/assets/custom-icons/icons/butterflymx.svg diff --git a/auth/assets/custom-icons/icons/bybit.svg b/mobile/apps/auth/assets/custom-icons/icons/bybit.svg similarity index 100% rename from auth/assets/custom-icons/icons/bybit.svg rename to mobile/apps/auth/assets/custom-icons/icons/bybit.svg diff --git a/auth/assets/custom-icons/icons/caixa.svg b/mobile/apps/auth/assets/custom-icons/icons/caixa.svg similarity index 100% rename from auth/assets/custom-icons/icons/caixa.svg rename to mobile/apps/auth/assets/custom-icons/icons/caixa.svg diff --git a/auth/assets/custom-icons/icons/canada_flag.svg b/mobile/apps/auth/assets/custom-icons/icons/canada_flag.svg similarity index 100% rename from auth/assets/custom-icons/icons/canada_flag.svg rename to mobile/apps/auth/assets/custom-icons/icons/canada_flag.svg diff --git a/auth/assets/custom-icons/icons/canva.svg b/mobile/apps/auth/assets/custom-icons/icons/canva.svg similarity index 100% rename from auth/assets/custom-icons/icons/canva.svg rename to mobile/apps/auth/assets/custom-icons/icons/canva.svg diff --git a/auth/assets/custom-icons/icons/capacities.svg b/mobile/apps/auth/assets/custom-icons/icons/capacities.svg similarity index 100% rename from auth/assets/custom-icons/icons/capacities.svg rename to mobile/apps/auth/assets/custom-icons/icons/capacities.svg diff --git a/auth/assets/custom-icons/icons/carta.svg b/mobile/apps/auth/assets/custom-icons/icons/carta.svg similarity index 100% rename from auth/assets/custom-icons/icons/carta.svg rename to mobile/apps/auth/assets/custom-icons/icons/carta.svg diff --git a/auth/assets/custom-icons/icons/cern.svg b/mobile/apps/auth/assets/custom-icons/icons/cern.svg similarity index 100% rename from auth/assets/custom-icons/icons/cern.svg rename to mobile/apps/auth/assets/custom-icons/icons/cern.svg diff --git a/auth/assets/custom-icons/icons/changenow.svg b/mobile/apps/auth/assets/custom-icons/icons/changenow.svg similarity index 100% rename from auth/assets/custom-icons/icons/changenow.svg rename to mobile/apps/auth/assets/custom-icons/icons/changenow.svg diff --git a/auth/assets/custom-icons/icons/cih.svg b/mobile/apps/auth/assets/custom-icons/icons/cih.svg similarity index 100% rename from auth/assets/custom-icons/icons/cih.svg rename to mobile/apps/auth/assets/custom-icons/icons/cih.svg diff --git a/auth/assets/custom-icons/icons/cloudamqp.svg b/mobile/apps/auth/assets/custom-icons/icons/cloudamqp.svg similarity index 100% rename from auth/assets/custom-icons/icons/cloudamqp.svg rename to mobile/apps/auth/assets/custom-icons/icons/cloudamqp.svg diff --git a/auth/assets/custom-icons/icons/cloudflare.svg b/mobile/apps/auth/assets/custom-icons/icons/cloudflare.svg similarity index 100% rename from auth/assets/custom-icons/icons/cloudflare.svg rename to mobile/apps/auth/assets/custom-icons/icons/cloudflare.svg diff --git a/auth/assets/custom-icons/icons/cloudns.svg b/mobile/apps/auth/assets/custom-icons/icons/cloudns.svg similarity index 100% rename from auth/assets/custom-icons/icons/cloudns.svg rename to mobile/apps/auth/assets/custom-icons/icons/cloudns.svg diff --git a/auth/assets/custom-icons/icons/coinbase.svg b/mobile/apps/auth/assets/custom-icons/icons/coinbase.svg similarity index 100% rename from auth/assets/custom-icons/icons/coinbase.svg rename to mobile/apps/auth/assets/custom-icons/icons/coinbase.svg diff --git a/auth/assets/custom-icons/icons/coindcx.svg b/mobile/apps/auth/assets/custom-icons/icons/coindcx.svg similarity index 100% rename from auth/assets/custom-icons/icons/coindcx.svg rename to mobile/apps/auth/assets/custom-icons/icons/coindcx.svg diff --git a/auth/assets/custom-icons/icons/coinspot.svg b/mobile/apps/auth/assets/custom-icons/icons/coinspot.svg similarity index 100% rename from auth/assets/custom-icons/icons/coinspot.svg rename to mobile/apps/auth/assets/custom-icons/icons/coinspot.svg diff --git a/auth/assets/custom-icons/icons/configcat.svg b/mobile/apps/auth/assets/custom-icons/icons/configcat.svg similarity index 100% rename from auth/assets/custom-icons/icons/configcat.svg rename to mobile/apps/auth/assets/custom-icons/icons/configcat.svg diff --git a/auth/assets/custom-icons/icons/controld.svg b/mobile/apps/auth/assets/custom-icons/icons/controld.svg similarity index 100% rename from auth/assets/custom-icons/icons/controld.svg rename to mobile/apps/auth/assets/custom-icons/icons/controld.svg diff --git a/auth/assets/custom-icons/icons/cronometer.svg b/mobile/apps/auth/assets/custom-icons/icons/cronometer.svg similarity index 100% rename from auth/assets/custom-icons/icons/cronometer.svg rename to mobile/apps/auth/assets/custom-icons/icons/cronometer.svg diff --git a/auth/assets/custom-icons/icons/crowdpear.svg b/mobile/apps/auth/assets/custom-icons/icons/crowdpear.svg similarity index 100% rename from auth/assets/custom-icons/icons/crowdpear.svg rename to mobile/apps/auth/assets/custom-icons/icons/crowdpear.svg diff --git a/auth/assets/custom-icons/icons/cryptee.svg b/mobile/apps/auth/assets/custom-icons/icons/cryptee.svg similarity index 100% rename from auth/assets/custom-icons/icons/cryptee.svg rename to mobile/apps/auth/assets/custom-icons/icons/cryptee.svg diff --git a/auth/assets/custom-icons/icons/crypto.svg b/mobile/apps/auth/assets/custom-icons/icons/crypto.svg similarity index 100% rename from auth/assets/custom-icons/icons/crypto.svg rename to mobile/apps/auth/assets/custom-icons/icons/crypto.svg diff --git a/auth/assets/custom-icons/icons/csam.svg b/mobile/apps/auth/assets/custom-icons/icons/csam.svg similarity index 100% rename from auth/assets/custom-icons/icons/csam.svg rename to mobile/apps/auth/assets/custom-icons/icons/csam.svg diff --git a/auth/assets/custom-icons/icons/csfloat.svg b/mobile/apps/auth/assets/custom-icons/icons/csfloat.svg similarity index 100% rename from auth/assets/custom-icons/icons/csfloat.svg rename to mobile/apps/auth/assets/custom-icons/icons/csfloat.svg diff --git a/auth/assets/custom-icons/icons/csgoroll.svg b/mobile/apps/auth/assets/custom-icons/icons/csgoroll.svg similarity index 100% rename from auth/assets/custom-icons/icons/csgoroll.svg rename to mobile/apps/auth/assets/custom-icons/icons/csgoroll.svg diff --git a/auth/assets/custom-icons/icons/cssbuy.svg b/mobile/apps/auth/assets/custom-icons/icons/cssbuy.svg similarity index 100% rename from auth/assets/custom-icons/icons/cssbuy.svg rename to mobile/apps/auth/assets/custom-icons/icons/cssbuy.svg diff --git a/auth/assets/custom-icons/icons/cwallet.svg b/mobile/apps/auth/assets/custom-icons/icons/cwallet.svg similarity index 100% rename from auth/assets/custom-icons/icons/cwallet.svg rename to mobile/apps/auth/assets/custom-icons/icons/cwallet.svg diff --git a/auth/assets/custom-icons/icons/dcs.svg b/mobile/apps/auth/assets/custom-icons/icons/dcs.svg similarity index 100% rename from auth/assets/custom-icons/icons/dcs.svg rename to mobile/apps/auth/assets/custom-icons/icons/dcs.svg diff --git a/auth/assets/custom-icons/icons/degiro.svg b/mobile/apps/auth/assets/custom-icons/icons/degiro.svg similarity index 100% rename from auth/assets/custom-icons/icons/degiro.svg rename to mobile/apps/auth/assets/custom-icons/icons/degiro.svg diff --git a/auth/assets/custom-icons/icons/deloitte.svg b/mobile/apps/auth/assets/custom-icons/icons/deloitte.svg similarity index 100% rename from auth/assets/custom-icons/icons/deloitte.svg rename to mobile/apps/auth/assets/custom-icons/icons/deloitte.svg diff --git a/auth/assets/custom-icons/icons/deriv.svg b/mobile/apps/auth/assets/custom-icons/icons/deriv.svg similarity index 100% rename from auth/assets/custom-icons/icons/deriv.svg rename to mobile/apps/auth/assets/custom-icons/icons/deriv.svg diff --git a/auth/assets/custom-icons/icons/digifinex.svg b/mobile/apps/auth/assets/custom-icons/icons/digifinex.svg similarity index 100% rename from auth/assets/custom-icons/icons/digifinex.svg rename to mobile/apps/auth/assets/custom-icons/icons/digifinex.svg diff --git a/auth/assets/custom-icons/icons/directadmin.svg b/mobile/apps/auth/assets/custom-icons/icons/directadmin.svg similarity index 100% rename from auth/assets/custom-icons/icons/directadmin.svg rename to mobile/apps/auth/assets/custom-icons/icons/directadmin.svg diff --git a/auth/assets/custom-icons/icons/discourse.svg b/mobile/apps/auth/assets/custom-icons/icons/discourse.svg similarity index 100% rename from auth/assets/custom-icons/icons/discourse.svg rename to mobile/apps/auth/assets/custom-icons/icons/discourse.svg diff --git a/auth/assets/custom-icons/icons/dmarket.svg b/mobile/apps/auth/assets/custom-icons/icons/dmarket.svg similarity index 100% rename from auth/assets/custom-icons/icons/dmarket.svg rename to mobile/apps/auth/assets/custom-icons/icons/dmarket.svg diff --git a/auth/assets/custom-icons/icons/docuseal.svg b/mobile/apps/auth/assets/custom-icons/icons/docuseal.svg similarity index 100% rename from auth/assets/custom-icons/icons/docuseal.svg rename to mobile/apps/auth/assets/custom-icons/icons/docuseal.svg diff --git a/auth/assets/custom-icons/icons/doppler.svg b/mobile/apps/auth/assets/custom-icons/icons/doppler.svg similarity index 100% rename from auth/assets/custom-icons/icons/doppler.svg rename to mobile/apps/auth/assets/custom-icons/icons/doppler.svg diff --git a/auth/assets/custom-icons/icons/dreamhost_panel.svg b/mobile/apps/auth/assets/custom-icons/icons/dreamhost_panel.svg similarity index 100% rename from auth/assets/custom-icons/icons/dreamhost_panel.svg rename to mobile/apps/auth/assets/custom-icons/icons/dreamhost_panel.svg diff --git a/auth/assets/custom-icons/icons/dropbox.svg b/mobile/apps/auth/assets/custom-icons/icons/dropbox.svg similarity index 100% rename from auth/assets/custom-icons/icons/dropbox.svg rename to mobile/apps/auth/assets/custom-icons/icons/dropbox.svg diff --git a/auth/assets/custom-icons/icons/dusnet.svg b/mobile/apps/auth/assets/custom-icons/icons/dusnet.svg similarity index 100% rename from auth/assets/custom-icons/icons/dusnet.svg rename to mobile/apps/auth/assets/custom-icons/icons/dusnet.svg diff --git a/auth/assets/custom-icons/icons/ebay.svg b/mobile/apps/auth/assets/custom-icons/icons/ebay.svg similarity index 100% rename from auth/assets/custom-icons/icons/ebay.svg rename to mobile/apps/auth/assets/custom-icons/icons/ebay.svg diff --git a/auth/assets/custom-icons/icons/ecitizen_kenya.svg b/mobile/apps/auth/assets/custom-icons/icons/ecitizen_kenya.svg similarity index 100% rename from auth/assets/custom-icons/icons/ecitizen_kenya.svg rename to mobile/apps/auth/assets/custom-icons/icons/ecitizen_kenya.svg diff --git a/auth/assets/custom-icons/icons/ecloud.svg b/mobile/apps/auth/assets/custom-icons/icons/ecloud.svg similarity index 100% rename from auth/assets/custom-icons/icons/ecloud.svg rename to mobile/apps/auth/assets/custom-icons/icons/ecloud.svg diff --git a/auth/assets/custom-icons/icons/eneba.svg b/mobile/apps/auth/assets/custom-icons/icons/eneba.svg similarity index 100% rename from auth/assets/custom-icons/icons/eneba.svg rename to mobile/apps/auth/assets/custom-icons/icons/eneba.svg diff --git a/auth/assets/custom-icons/icons/enom.svg b/mobile/apps/auth/assets/custom-icons/icons/enom.svg similarity index 100% rename from auth/assets/custom-icons/icons/enom.svg rename to mobile/apps/auth/assets/custom-icons/icons/enom.svg diff --git a/auth/assets/custom-icons/icons/ente.svg b/mobile/apps/auth/assets/custom-icons/icons/ente.svg similarity index 100% rename from auth/assets/custom-icons/icons/ente.svg rename to mobile/apps/auth/assets/custom-icons/icons/ente.svg diff --git a/auth/assets/custom-icons/icons/epic_games.svg b/mobile/apps/auth/assets/custom-icons/icons/epic_games.svg similarity index 100% rename from auth/assets/custom-icons/icons/epic_games.svg rename to mobile/apps/auth/assets/custom-icons/icons/epic_games.svg diff --git a/auth/assets/custom-icons/icons/esketit.svg b/mobile/apps/auth/assets/custom-icons/icons/esketit.svg similarity index 100% rename from auth/assets/custom-icons/icons/esketit.svg rename to mobile/apps/auth/assets/custom-icons/icons/esketit.svg diff --git a/auth/assets/custom-icons/icons/estateguru.svg b/mobile/apps/auth/assets/custom-icons/icons/estateguru.svg similarity index 100% rename from auth/assets/custom-icons/icons/estateguru.svg rename to mobile/apps/auth/assets/custom-icons/icons/estateguru.svg diff --git a/auth/assets/custom-icons/icons/eve_online.svg b/mobile/apps/auth/assets/custom-icons/icons/eve_online.svg similarity index 100% rename from auth/assets/custom-icons/icons/eve_online.svg rename to mobile/apps/auth/assets/custom-icons/icons/eve_online.svg diff --git a/auth/assets/custom-icons/icons/fanatical.svg b/mobile/apps/auth/assets/custom-icons/icons/fanatical.svg similarity index 100% rename from auth/assets/custom-icons/icons/fanatical.svg rename to mobile/apps/auth/assets/custom-icons/icons/fanatical.svg diff --git a/auth/assets/custom-icons/icons/fastmail.svg b/mobile/apps/auth/assets/custom-icons/icons/fastmail.svg similarity index 100% rename from auth/assets/custom-icons/icons/fastmail.svg rename to mobile/apps/auth/assets/custom-icons/icons/fastmail.svg diff --git a/auth/assets/custom-icons/icons/federal_student_aid.svg b/mobile/apps/auth/assets/custom-icons/icons/federal_student_aid.svg similarity index 100% rename from auth/assets/custom-icons/icons/federal_student_aid.svg rename to mobile/apps/auth/assets/custom-icons/icons/federal_student_aid.svg diff --git a/auth/assets/custom-icons/icons/fidelity.svg b/mobile/apps/auth/assets/custom-icons/icons/fidelity.svg similarity index 100% rename from auth/assets/custom-icons/icons/fidelity.svg rename to mobile/apps/auth/assets/custom-icons/icons/fidelity.svg diff --git a/auth/assets/custom-icons/icons/filen.svg b/mobile/apps/auth/assets/custom-icons/icons/filen.svg similarity index 100% rename from auth/assets/custom-icons/icons/filen.svg rename to mobile/apps/auth/assets/custom-icons/icons/filen.svg diff --git a/auth/assets/custom-icons/icons/finanzfluss.svg b/mobile/apps/auth/assets/custom-icons/icons/finanzfluss.svg similarity index 100% rename from auth/assets/custom-icons/icons/finanzfluss.svg rename to mobile/apps/auth/assets/custom-icons/icons/finanzfluss.svg diff --git a/auth/assets/custom-icons/icons/finary.svg b/mobile/apps/auth/assets/custom-icons/icons/finary.svg similarity index 100% rename from auth/assets/custom-icons/icons/finary.svg rename to mobile/apps/auth/assets/custom-icons/icons/finary.svg diff --git a/auth/assets/custom-icons/icons/fortrabbit.svg b/mobile/apps/auth/assets/custom-icons/icons/fortrabbit.svg similarity index 100% rename from auth/assets/custom-icons/icons/fortrabbit.svg rename to mobile/apps/auth/assets/custom-icons/icons/fortrabbit.svg diff --git a/auth/assets/custom-icons/icons/forusall.svg b/mobile/apps/auth/assets/custom-icons/icons/forusall.svg similarity index 100% rename from auth/assets/custom-icons/icons/forusall.svg rename to mobile/apps/auth/assets/custom-icons/icons/forusall.svg diff --git a/auth/assets/custom-icons/icons/freetaxusa.svg b/mobile/apps/auth/assets/custom-icons/icons/freetaxusa.svg similarity index 100% rename from auth/assets/custom-icons/icons/freetaxusa.svg rename to mobile/apps/auth/assets/custom-icons/icons/freetaxusa.svg diff --git a/auth/assets/custom-icons/icons/fzj.svg b/mobile/apps/auth/assets/custom-icons/icons/fzj.svg similarity index 100% rename from auth/assets/custom-icons/icons/fzj.svg rename to mobile/apps/auth/assets/custom-icons/icons/fzj.svg diff --git a/auth/assets/custom-icons/icons/g2a.svg b/mobile/apps/auth/assets/custom-icons/icons/g2a.svg similarity index 100% rename from auth/assets/custom-icons/icons/g2a.svg rename to mobile/apps/auth/assets/custom-icons/icons/g2a.svg diff --git a/auth/assets/custom-icons/icons/gateio.svg b/mobile/apps/auth/assets/custom-icons/icons/gateio.svg similarity index 100% rename from auth/assets/custom-icons/icons/gateio.svg rename to mobile/apps/auth/assets/custom-icons/icons/gateio.svg diff --git a/auth/assets/custom-icons/icons/gerid.svg b/mobile/apps/auth/assets/custom-icons/icons/gerid.svg similarity index 100% rename from auth/assets/custom-icons/icons/gerid.svg rename to mobile/apps/auth/assets/custom-icons/icons/gerid.svg diff --git a/auth/assets/custom-icons/icons/github.svg b/mobile/apps/auth/assets/custom-icons/icons/github.svg similarity index 100% rename from auth/assets/custom-icons/icons/github.svg rename to mobile/apps/auth/assets/custom-icons/icons/github.svg diff --git a/auth/assets/custom-icons/icons/gitlab.svg b/mobile/apps/auth/assets/custom-icons/icons/gitlab.svg similarity index 100% rename from auth/assets/custom-icons/icons/gitlab.svg rename to mobile/apps/auth/assets/custom-icons/icons/gitlab.svg diff --git a/auth/assets/custom-icons/icons/gmx.svg b/mobile/apps/auth/assets/custom-icons/icons/gmx.svg similarity index 100% rename from auth/assets/custom-icons/icons/gmx.svg rename to mobile/apps/auth/assets/custom-icons/icons/gmx.svg diff --git a/auth/assets/custom-icons/icons/gommehd.svg b/mobile/apps/auth/assets/custom-icons/icons/gommehd.svg similarity index 100% rename from auth/assets/custom-icons/icons/gommehd.svg rename to mobile/apps/auth/assets/custom-icons/icons/gommehd.svg diff --git a/auth/assets/custom-icons/icons/google.svg b/mobile/apps/auth/assets/custom-icons/icons/google.svg similarity index 100% rename from auth/assets/custom-icons/icons/google.svg rename to mobile/apps/auth/assets/custom-icons/icons/google.svg diff --git a/auth/assets/custom-icons/icons/gosuslugi.svg b/mobile/apps/auth/assets/custom-icons/icons/gosuslugi.svg similarity index 100% rename from auth/assets/custom-icons/icons/gosuslugi.svg rename to mobile/apps/auth/assets/custom-icons/icons/gosuslugi.svg diff --git a/auth/assets/custom-icons/icons/gov_uk.svg b/mobile/apps/auth/assets/custom-icons/icons/gov_uk.svg similarity index 100% rename from auth/assets/custom-icons/icons/gov_uk.svg rename to mobile/apps/auth/assets/custom-icons/icons/gov_uk.svg diff --git a/auth/assets/custom-icons/icons/guideline.svg b/mobile/apps/auth/assets/custom-icons/icons/guideline.svg similarity index 100% rename from auth/assets/custom-icons/icons/guideline.svg rename to mobile/apps/auth/assets/custom-icons/icons/guideline.svg diff --git a/auth/assets/custom-icons/icons/gusto.svg b/mobile/apps/auth/assets/custom-icons/icons/gusto.svg similarity index 100% rename from auth/assets/custom-icons/icons/gusto.svg rename to mobile/apps/auth/assets/custom-icons/icons/gusto.svg diff --git a/auth/assets/custom-icons/icons/habbo.svg b/mobile/apps/auth/assets/custom-icons/icons/habbo.svg similarity index 100% rename from auth/assets/custom-icons/icons/habbo.svg rename to mobile/apps/auth/assets/custom-icons/icons/habbo.svg diff --git a/auth/assets/custom-icons/icons/healthchecks.svg b/mobile/apps/auth/assets/custom-icons/icons/healthchecks.svg similarity index 100% rename from auth/assets/custom-icons/icons/healthchecks.svg rename to mobile/apps/auth/assets/custom-icons/icons/healthchecks.svg diff --git a/auth/assets/custom-icons/icons/hivelocity.svg b/mobile/apps/auth/assets/custom-icons/icons/hivelocity.svg similarity index 100% rename from auth/assets/custom-icons/icons/hivelocity.svg rename to mobile/apps/auth/assets/custom-icons/icons/hivelocity.svg diff --git a/auth/assets/custom-icons/icons/htx.svg b/mobile/apps/auth/assets/custom-icons/icons/htx.svg similarity index 100% rename from auth/assets/custom-icons/icons/htx.svg rename to mobile/apps/auth/assets/custom-icons/icons/htx.svg diff --git a/auth/assets/custom-icons/icons/huggingface.svg b/mobile/apps/auth/assets/custom-icons/icons/huggingface.svg similarity index 100% rename from auth/assets/custom-icons/icons/huggingface.svg rename to mobile/apps/auth/assets/custom-icons/icons/huggingface.svg diff --git a/auth/assets/custom-icons/icons/ibkr.svg b/mobile/apps/auth/assets/custom-icons/icons/ibkr.svg similarity index 100% rename from auth/assets/custom-icons/icons/ibkr.svg rename to mobile/apps/auth/assets/custom-icons/icons/ibkr.svg diff --git a/auth/assets/custom-icons/icons/ice_drive.svg b/mobile/apps/auth/assets/custom-icons/icons/ice_drive.svg similarity index 100% rename from auth/assets/custom-icons/icons/ice_drive.svg rename to mobile/apps/auth/assets/custom-icons/icons/ice_drive.svg diff --git a/auth/assets/custom-icons/icons/iconomi.svg b/mobile/apps/auth/assets/custom-icons/icons/iconomi.svg similarity index 100% rename from auth/assets/custom-icons/icons/iconomi.svg rename to mobile/apps/auth/assets/custom-icons/icons/iconomi.svg diff --git a/auth/assets/custom-icons/icons/id_me.svg b/mobile/apps/auth/assets/custom-icons/icons/id_me.svg similarity index 100% rename from auth/assets/custom-icons/icons/id_me.svg rename to mobile/apps/auth/assets/custom-icons/icons/id_me.svg diff --git a/auth/assets/custom-icons/icons/immo_scout_24.svg b/mobile/apps/auth/assets/custom-icons/icons/immo_scout_24.svg similarity index 100% rename from auth/assets/custom-icons/icons/immo_scout_24.svg rename to mobile/apps/auth/assets/custom-icons/icons/immo_scout_24.svg diff --git a/auth/assets/custom-icons/icons/infomaniak.svg b/mobile/apps/auth/assets/custom-icons/icons/infomaniak.svg similarity index 100% rename from auth/assets/custom-icons/icons/infomaniak.svg rename to mobile/apps/auth/assets/custom-icons/icons/infomaniak.svg diff --git a/auth/assets/custom-icons/icons/ing.svg b/mobile/apps/auth/assets/custom-icons/icons/ing.svg similarity index 100% rename from auth/assets/custom-icons/icons/ing.svg rename to mobile/apps/auth/assets/custom-icons/icons/ing.svg diff --git a/auth/assets/custom-icons/icons/instagram.svg b/mobile/apps/auth/assets/custom-icons/icons/instagram.svg similarity index 100% rename from auth/assets/custom-icons/icons/instagram.svg rename to mobile/apps/auth/assets/custom-icons/icons/instagram.svg diff --git a/auth/assets/custom-icons/icons/instant_gaming.svg b/mobile/apps/auth/assets/custom-icons/icons/instant_gaming.svg similarity index 100% rename from auth/assets/custom-icons/icons/instant_gaming.svg rename to mobile/apps/auth/assets/custom-icons/icons/instant_gaming.svg diff --git a/auth/assets/custom-icons/icons/inwx.svg b/mobile/apps/auth/assets/custom-icons/icons/inwx.svg similarity index 100% rename from auth/assets/custom-icons/icons/inwx.svg rename to mobile/apps/auth/assets/custom-icons/icons/inwx.svg diff --git a/auth/assets/custom-icons/icons/itch_io.svg b/mobile/apps/auth/assets/custom-icons/icons/itch_io.svg similarity index 100% rename from auth/assets/custom-icons/icons/itch_io.svg rename to mobile/apps/auth/assets/custom-icons/icons/itch_io.svg diff --git a/auth/assets/custom-icons/icons/ivpn.svg b/mobile/apps/auth/assets/custom-icons/icons/ivpn.svg similarity index 100% rename from auth/assets/custom-icons/icons/ivpn.svg rename to mobile/apps/auth/assets/custom-icons/icons/ivpn.svg diff --git a/auth/assets/custom-icons/icons/jagex.svg b/mobile/apps/auth/assets/custom-icons/icons/jagex.svg similarity index 100% rename from auth/assets/custom-icons/icons/jagex.svg rename to mobile/apps/auth/assets/custom-icons/icons/jagex.svg diff --git a/auth/assets/custom-icons/icons/jianguoyun.svg b/mobile/apps/auth/assets/custom-icons/icons/jianguoyun.svg similarity index 100% rename from auth/assets/custom-icons/icons/jianguoyun.svg rename to mobile/apps/auth/assets/custom-icons/icons/jianguoyun.svg diff --git a/auth/assets/custom-icons/icons/kagi.svg b/mobile/apps/auth/assets/custom-icons/icons/kagi.svg similarity index 100% rename from auth/assets/custom-icons/icons/kagi.svg rename to mobile/apps/auth/assets/custom-icons/icons/kagi.svg diff --git a/auth/assets/custom-icons/icons/keygen.svg b/mobile/apps/auth/assets/custom-icons/icons/keygen.svg similarity index 100% rename from auth/assets/custom-icons/icons/keygen.svg rename to mobile/apps/auth/assets/custom-icons/icons/keygen.svg diff --git a/auth/assets/custom-icons/icons/kick.svg b/mobile/apps/auth/assets/custom-icons/icons/kick.svg similarity index 100% rename from auth/assets/custom-icons/icons/kick.svg rename to mobile/apps/auth/assets/custom-icons/icons/kick.svg diff --git a/auth/assets/custom-icons/icons/kite.svg b/mobile/apps/auth/assets/custom-icons/icons/kite.svg similarity index 100% rename from auth/assets/custom-icons/icons/kite.svg rename to mobile/apps/auth/assets/custom-icons/icons/kite.svg diff --git a/auth/assets/custom-icons/icons/knownhost.svg b/mobile/apps/auth/assets/custom-icons/icons/knownhost.svg similarity index 100% rename from auth/assets/custom-icons/icons/knownhost.svg rename to mobile/apps/auth/assets/custom-icons/icons/knownhost.svg diff --git a/auth/assets/custom-icons/icons/ko_fi.svg b/mobile/apps/auth/assets/custom-icons/icons/ko_fi.svg similarity index 100% rename from auth/assets/custom-icons/icons/ko_fi.svg rename to mobile/apps/auth/assets/custom-icons/icons/ko_fi.svg diff --git a/auth/assets/custom-icons/icons/koofr.svg b/mobile/apps/auth/assets/custom-icons/icons/koofr.svg similarity index 100% rename from auth/assets/custom-icons/icons/koofr.svg rename to mobile/apps/auth/assets/custom-icons/icons/koofr.svg diff --git a/auth/assets/custom-icons/icons/kotas.svg b/mobile/apps/auth/assets/custom-icons/icons/kotas.svg similarity index 100% rename from auth/assets/custom-icons/icons/kotas.svg rename to mobile/apps/auth/assets/custom-icons/icons/kotas.svg diff --git a/auth/assets/custom-icons/icons/kpn.svg b/mobile/apps/auth/assets/custom-icons/icons/kpn.svg similarity index 100% rename from auth/assets/custom-icons/icons/kpn.svg rename to mobile/apps/auth/assets/custom-icons/icons/kpn.svg diff --git a/auth/assets/custom-icons/icons/kraken.svg b/mobile/apps/auth/assets/custom-icons/icons/kraken.svg similarity index 100% rename from auth/assets/custom-icons/icons/kraken.svg rename to mobile/apps/auth/assets/custom-icons/icons/kraken.svg diff --git a/auth/assets/custom-icons/icons/kronos.svg b/mobile/apps/auth/assets/custom-icons/icons/kronos.svg similarity index 100% rename from auth/assets/custom-icons/icons/kronos.svg rename to mobile/apps/auth/assets/custom-icons/icons/kronos.svg diff --git a/auth/assets/custom-icons/icons/kucoin.svg b/mobile/apps/auth/assets/custom-icons/icons/kucoin.svg similarity index 100% rename from auth/assets/custom-icons/icons/kucoin.svg rename to mobile/apps/auth/assets/custom-icons/icons/kucoin.svg diff --git a/auth/assets/custom-icons/icons/labymod.svg b/mobile/apps/auth/assets/custom-icons/icons/labymod.svg similarity index 100% rename from auth/assets/custom-icons/icons/labymod.svg rename to mobile/apps/auth/assets/custom-icons/icons/labymod.svg diff --git a/auth/assets/custom-icons/icons/laposte.svg b/mobile/apps/auth/assets/custom-icons/icons/laposte.svg similarity index 100% rename from auth/assets/custom-icons/icons/laposte.svg rename to mobile/apps/auth/assets/custom-icons/icons/laposte.svg diff --git a/auth/assets/custom-icons/icons/lark.svg b/mobile/apps/auth/assets/custom-icons/icons/lark.svg similarity index 100% rename from auth/assets/custom-icons/icons/lark.svg rename to mobile/apps/auth/assets/custom-icons/icons/lark.svg diff --git a/auth/assets/custom-icons/icons/launchdarkly.svg b/mobile/apps/auth/assets/custom-icons/icons/launchdarkly.svg similarity index 100% rename from auth/assets/custom-icons/icons/launchdarkly.svg rename to mobile/apps/auth/assets/custom-icons/icons/launchdarkly.svg diff --git a/auth/assets/custom-icons/icons/letterboxd.svg b/mobile/apps/auth/assets/custom-icons/icons/letterboxd.svg similarity index 100% rename from auth/assets/custom-icons/icons/letterboxd.svg rename to mobile/apps/auth/assets/custom-icons/icons/letterboxd.svg diff --git a/auth/assets/custom-icons/icons/linkedin.svg b/mobile/apps/auth/assets/custom-icons/icons/linkedin.svg similarity index 100% rename from auth/assets/custom-icons/icons/linkedin.svg rename to mobile/apps/auth/assets/custom-icons/icons/linkedin.svg diff --git a/auth/assets/custom-icons/icons/linux_do.svg b/mobile/apps/auth/assets/custom-icons/icons/linux_do.svg similarity index 100% rename from auth/assets/custom-icons/icons/linux_do.svg rename to mobile/apps/auth/assets/custom-icons/icons/linux_do.svg diff --git a/auth/assets/custom-icons/icons/local_wp.svg b/mobile/apps/auth/assets/custom-icons/icons/local_wp.svg similarity index 100% rename from auth/assets/custom-icons/icons/local_wp.svg rename to mobile/apps/auth/assets/custom-icons/icons/local_wp.svg diff --git a/auth/assets/custom-icons/icons/login_gov.svg b/mobile/apps/auth/assets/custom-icons/icons/login_gov.svg similarity index 100% rename from auth/assets/custom-icons/icons/login_gov.svg rename to mobile/apps/auth/assets/custom-icons/icons/login_gov.svg diff --git a/auth/assets/custom-icons/icons/luma.svg b/mobile/apps/auth/assets/custom-icons/icons/luma.svg similarity index 100% rename from auth/assets/custom-icons/icons/luma.svg rename to mobile/apps/auth/assets/custom-icons/icons/luma.svg diff --git a/auth/assets/custom-icons/icons/marketplacedottf.svg b/mobile/apps/auth/assets/custom-icons/icons/marketplacedottf.svg similarity index 100% rename from auth/assets/custom-icons/icons/marketplacedottf.svg rename to mobile/apps/auth/assets/custom-icons/icons/marketplacedottf.svg diff --git a/auth/assets/custom-icons/icons/mastodon.svg b/mobile/apps/auth/assets/custom-icons/icons/mastodon.svg similarity index 100% rename from auth/assets/custom-icons/icons/mastodon.svg rename to mobile/apps/auth/assets/custom-icons/icons/mastodon.svg diff --git a/auth/assets/custom-icons/icons/matlab.svg b/mobile/apps/auth/assets/custom-icons/icons/matlab.svg similarity index 100% rename from auth/assets/custom-icons/icons/matlab.svg rename to mobile/apps/auth/assets/custom-icons/icons/matlab.svg diff --git a/auth/assets/custom-icons/icons/mbin.svg b/mobile/apps/auth/assets/custom-icons/icons/mbin.svg similarity index 100% rename from auth/assets/custom-icons/icons/mbin.svg rename to mobile/apps/auth/assets/custom-icons/icons/mbin.svg diff --git a/auth/assets/custom-icons/icons/memed.svg b/mobile/apps/auth/assets/custom-icons/icons/memed.svg similarity index 100% rename from auth/assets/custom-icons/icons/memed.svg rename to mobile/apps/auth/assets/custom-icons/icons/memed.svg diff --git a/auth/assets/custom-icons/icons/mercado_libre.svg b/mobile/apps/auth/assets/custom-icons/icons/mercado_libre.svg similarity index 100% rename from auth/assets/custom-icons/icons/mercado_libre.svg rename to mobile/apps/auth/assets/custom-icons/icons/mercado_libre.svg diff --git a/auth/assets/custom-icons/icons/mexc.svg b/mobile/apps/auth/assets/custom-icons/icons/mexc.svg similarity index 100% rename from auth/assets/custom-icons/icons/mexc.svg rename to mobile/apps/auth/assets/custom-icons/icons/mexc.svg diff --git a/auth/assets/custom-icons/icons/microsoft.svg b/mobile/apps/auth/assets/custom-icons/icons/microsoft.svg similarity index 100% rename from auth/assets/custom-icons/icons/microsoft.svg rename to mobile/apps/auth/assets/custom-icons/icons/microsoft.svg diff --git a/auth/assets/custom-icons/icons/microsoft365.svg b/mobile/apps/auth/assets/custom-icons/icons/microsoft365.svg similarity index 100% rename from auth/assets/custom-icons/icons/microsoft365.svg rename to mobile/apps/auth/assets/custom-icons/icons/microsoft365.svg diff --git a/auth/assets/custom-icons/icons/migros.svg b/mobile/apps/auth/assets/custom-icons/icons/migros.svg similarity index 100% rename from auth/assets/custom-icons/icons/migros.svg rename to mobile/apps/auth/assets/custom-icons/icons/migros.svg diff --git a/auth/assets/custom-icons/icons/mintos.svg b/mobile/apps/auth/assets/custom-icons/icons/mintos.svg similarity index 100% rename from auth/assets/custom-icons/icons/mintos.svg rename to mobile/apps/auth/assets/custom-icons/icons/mintos.svg diff --git a/auth/assets/custom-icons/icons/mistral.svg b/mobile/apps/auth/assets/custom-icons/icons/mistral.svg similarity index 100% rename from auth/assets/custom-icons/icons/mistral.svg rename to mobile/apps/auth/assets/custom-icons/icons/mistral.svg diff --git a/auth/assets/custom-icons/icons/mozilla.svg b/mobile/apps/auth/assets/custom-icons/icons/mozilla.svg similarity index 100% rename from auth/assets/custom-icons/icons/mozilla.svg rename to mobile/apps/auth/assets/custom-icons/icons/mozilla.svg diff --git a/auth/assets/custom-icons/icons/myfritz.svg b/mobile/apps/auth/assets/custom-icons/icons/myfritz.svg similarity index 100% rename from auth/assets/custom-icons/icons/myfritz.svg rename to mobile/apps/auth/assets/custom-icons/icons/myfritz.svg diff --git a/auth/assets/custom-icons/icons/name_com.svg b/mobile/apps/auth/assets/custom-icons/icons/name_com.svg similarity index 100% rename from auth/assets/custom-icons/icons/name_com.svg rename to mobile/apps/auth/assets/custom-icons/icons/name_com.svg diff --git a/auth/assets/custom-icons/icons/nekohosting.svg b/mobile/apps/auth/assets/custom-icons/icons/nekohosting.svg similarity index 100% rename from auth/assets/custom-icons/icons/nekohosting.svg rename to mobile/apps/auth/assets/custom-icons/icons/nekohosting.svg diff --git a/auth/assets/custom-icons/icons/nekohosting_gp.svg b/mobile/apps/auth/assets/custom-icons/icons/nekohosting_gp.svg similarity index 100% rename from auth/assets/custom-icons/icons/nekohosting_gp.svg rename to mobile/apps/auth/assets/custom-icons/icons/nekohosting_gp.svg diff --git a/auth/assets/custom-icons/icons/nelnet.svg b/mobile/apps/auth/assets/custom-icons/icons/nelnet.svg similarity index 100% rename from auth/assets/custom-icons/icons/nelnet.svg rename to mobile/apps/auth/assets/custom-icons/icons/nelnet.svg diff --git a/auth/assets/custom-icons/icons/netease_mail.svg b/mobile/apps/auth/assets/custom-icons/icons/netease_mail.svg similarity index 100% rename from auth/assets/custom-icons/icons/netease_mail.svg rename to mobile/apps/auth/assets/custom-icons/icons/netease_mail.svg diff --git a/auth/assets/custom-icons/icons/newgrounds.svg b/mobile/apps/auth/assets/custom-icons/icons/newgrounds.svg similarity index 100% rename from auth/assets/custom-icons/icons/newgrounds.svg rename to mobile/apps/auth/assets/custom-icons/icons/newgrounds.svg diff --git a/auth/assets/custom-icons/icons/newton.svg b/mobile/apps/auth/assets/custom-icons/icons/newton.svg similarity index 100% rename from auth/assets/custom-icons/icons/newton.svg rename to mobile/apps/auth/assets/custom-icons/icons/newton.svg diff --git a/auth/assets/custom-icons/icons/nextcloud.svg b/mobile/apps/auth/assets/custom-icons/icons/nextcloud.svg similarity index 100% rename from auth/assets/custom-icons/icons/nextcloud.svg rename to mobile/apps/auth/assets/custom-icons/icons/nextcloud.svg diff --git a/auth/assets/custom-icons/icons/nextdns.svg b/mobile/apps/auth/assets/custom-icons/icons/nextdns.svg similarity index 100% rename from auth/assets/custom-icons/icons/nextdns.svg rename to mobile/apps/auth/assets/custom-icons/icons/nextdns.svg diff --git a/auth/assets/custom-icons/icons/ngrok.svg b/mobile/apps/auth/assets/custom-icons/icons/ngrok.svg similarity index 100% rename from auth/assets/custom-icons/icons/ngrok.svg rename to mobile/apps/auth/assets/custom-icons/icons/ngrok.svg diff --git a/auth/assets/custom-icons/icons/nintendo.svg b/mobile/apps/auth/assets/custom-icons/icons/nintendo.svg similarity index 100% rename from auth/assets/custom-icons/icons/nintendo.svg rename to mobile/apps/auth/assets/custom-icons/icons/nintendo.svg diff --git a/auth/assets/custom-icons/icons/njalla.svg b/mobile/apps/auth/assets/custom-icons/icons/njalla.svg similarity index 100% rename from auth/assets/custom-icons/icons/njalla.svg rename to mobile/apps/auth/assets/custom-icons/icons/njalla.svg diff --git a/auth/assets/custom-icons/icons/noip.svg b/mobile/apps/auth/assets/custom-icons/icons/noip.svg similarity index 100% rename from auth/assets/custom-icons/icons/noip.svg rename to mobile/apps/auth/assets/custom-icons/icons/noip.svg diff --git a/auth/assets/custom-icons/icons/nordaccount.svg b/mobile/apps/auth/assets/custom-icons/icons/nordaccount.svg similarity index 100% rename from auth/assets/custom-icons/icons/nordaccount.svg rename to mobile/apps/auth/assets/custom-icons/icons/nordaccount.svg diff --git a/auth/assets/custom-icons/icons/notesnook.svg b/mobile/apps/auth/assets/custom-icons/icons/notesnook.svg similarity index 100% rename from auth/assets/custom-icons/icons/notesnook.svg rename to mobile/apps/auth/assets/custom-icons/icons/notesnook.svg diff --git a/auth/assets/custom-icons/icons/notion.svg b/mobile/apps/auth/assets/custom-icons/icons/notion.svg similarity index 100% rename from auth/assets/custom-icons/icons/notion.svg rename to mobile/apps/auth/assets/custom-icons/icons/notion.svg diff --git a/auth/assets/custom-icons/icons/nucommunity.svg b/mobile/apps/auth/assets/custom-icons/icons/nucommunity.svg similarity index 100% rename from auth/assets/custom-icons/icons/nucommunity.svg rename to mobile/apps/auth/assets/custom-icons/icons/nucommunity.svg diff --git a/auth/assets/custom-icons/icons/nvidia.svg b/mobile/apps/auth/assets/custom-icons/icons/nvidia.svg similarity index 100% rename from auth/assets/custom-icons/icons/nvidia.svg rename to mobile/apps/auth/assets/custom-icons/icons/nvidia.svg diff --git a/auth/assets/custom-icons/icons/odido.svg b/mobile/apps/auth/assets/custom-icons/icons/odido.svg similarity index 100% rename from auth/assets/custom-icons/icons/odido.svg rename to mobile/apps/auth/assets/custom-icons/icons/odido.svg diff --git a/auth/assets/custom-icons/icons/okx.svg b/mobile/apps/auth/assets/custom-icons/icons/okx.svg similarity index 100% rename from auth/assets/custom-icons/icons/okx.svg rename to mobile/apps/auth/assets/custom-icons/icons/okx.svg diff --git a/auth/assets/custom-icons/icons/open_observe.svg b/mobile/apps/auth/assets/custom-icons/icons/open_observe.svg similarity index 100% rename from auth/assets/custom-icons/icons/open_observe.svg rename to mobile/apps/auth/assets/custom-icons/icons/open_observe.svg diff --git a/auth/assets/custom-icons/icons/oracle_cloud.svg b/mobile/apps/auth/assets/custom-icons/icons/oracle_cloud.svg similarity index 100% rename from auth/assets/custom-icons/icons/oracle_cloud.svg rename to mobile/apps/auth/assets/custom-icons/icons/oracle_cloud.svg diff --git a/auth/assets/custom-icons/icons/parqet.svg b/mobile/apps/auth/assets/custom-icons/icons/parqet.svg similarity index 100% rename from auth/assets/custom-icons/icons/parqet.svg rename to mobile/apps/auth/assets/custom-icons/icons/parqet.svg diff --git a/auth/assets/custom-icons/icons/parsec.svg b/mobile/apps/auth/assets/custom-icons/icons/parsec.svg similarity index 100% rename from auth/assets/custom-icons/icons/parsec.svg rename to mobile/apps/auth/assets/custom-icons/icons/parsec.svg diff --git a/auth/assets/custom-icons/icons/patient_access.svg b/mobile/apps/auth/assets/custom-icons/icons/patient_access.svg similarity index 100% rename from auth/assets/custom-icons/icons/patient_access.svg rename to mobile/apps/auth/assets/custom-icons/icons/patient_access.svg diff --git a/auth/assets/custom-icons/icons/paypal.svg b/mobile/apps/auth/assets/custom-icons/icons/paypal.svg similarity index 100% rename from auth/assets/custom-icons/icons/paypal.svg rename to mobile/apps/auth/assets/custom-icons/icons/paypal.svg diff --git a/auth/assets/custom-icons/icons/pbtech.svg b/mobile/apps/auth/assets/custom-icons/icons/pbtech.svg similarity index 100% rename from auth/assets/custom-icons/icons/pbtech.svg rename to mobile/apps/auth/assets/custom-icons/icons/pbtech.svg diff --git a/auth/assets/custom-icons/icons/pcloud.svg b/mobile/apps/auth/assets/custom-icons/icons/pcloud.svg similarity index 100% rename from auth/assets/custom-icons/icons/pcloud.svg rename to mobile/apps/auth/assets/custom-icons/icons/pcloud.svg diff --git a/auth/assets/custom-icons/icons/pebble_host.svg b/mobile/apps/auth/assets/custom-icons/icons/pebble_host.svg similarity index 100% rename from auth/assets/custom-icons/icons/pebble_host.svg rename to mobile/apps/auth/assets/custom-icons/icons/pebble_host.svg diff --git a/auth/assets/custom-icons/icons/peerberry.svg b/mobile/apps/auth/assets/custom-icons/icons/peerberry.svg similarity index 100% rename from auth/assets/custom-icons/icons/peerberry.svg rename to mobile/apps/auth/assets/custom-icons/icons/peerberry.svg diff --git a/auth/assets/custom-icons/icons/pingvinshare.svg b/mobile/apps/auth/assets/custom-icons/icons/pingvinshare.svg similarity index 100% rename from auth/assets/custom-icons/icons/pingvinshare.svg rename to mobile/apps/auth/assets/custom-icons/icons/pingvinshare.svg diff --git a/auth/assets/custom-icons/icons/pionex.svg b/mobile/apps/auth/assets/custom-icons/icons/pionex.svg similarity index 100% rename from auth/assets/custom-icons/icons/pionex.svg rename to mobile/apps/auth/assets/custom-icons/icons/pionex.svg diff --git a/auth/assets/custom-icons/icons/plutus.svg b/mobile/apps/auth/assets/custom-icons/icons/plutus.svg similarity index 100% rename from auth/assets/custom-icons/icons/plutus.svg rename to mobile/apps/auth/assets/custom-icons/icons/plutus.svg diff --git a/auth/assets/custom-icons/icons/poloniex.svg b/mobile/apps/auth/assets/custom-icons/icons/poloniex.svg similarity index 100% rename from auth/assets/custom-icons/icons/poloniex.svg rename to mobile/apps/auth/assets/custom-icons/icons/poloniex.svg diff --git a/auth/assets/custom-icons/icons/porkbun.svg b/mobile/apps/auth/assets/custom-icons/icons/porkbun.svg similarity index 100% rename from auth/assets/custom-icons/icons/porkbun.svg rename to mobile/apps/auth/assets/custom-icons/icons/porkbun.svg diff --git a/auth/assets/custom-icons/icons/postmarkapp.svg b/mobile/apps/auth/assets/custom-icons/icons/postmarkapp.svg similarity index 100% rename from auth/assets/custom-icons/icons/postmarkapp.svg rename to mobile/apps/auth/assets/custom-icons/icons/postmarkapp.svg diff --git a/auth/assets/custom-icons/icons/postnl.svg b/mobile/apps/auth/assets/custom-icons/icons/postnl.svg similarity index 100% rename from auth/assets/custom-icons/icons/postnl.svg rename to mobile/apps/auth/assets/custom-icons/icons/postnl.svg diff --git a/auth/assets/custom-icons/icons/postscanmail.svg b/mobile/apps/auth/assets/custom-icons/icons/postscanmail.svg similarity index 100% rename from auth/assets/custom-icons/icons/postscanmail.svg rename to mobile/apps/auth/assets/custom-icons/icons/postscanmail.svg diff --git a/auth/assets/custom-icons/icons/prey_project.svg b/mobile/apps/auth/assets/custom-icons/icons/prey_project.svg similarity index 100% rename from auth/assets/custom-icons/icons/prey_project.svg rename to mobile/apps/auth/assets/custom-icons/icons/prey_project.svg diff --git a/auth/assets/custom-icons/icons/privacy.svg b/mobile/apps/auth/assets/custom-icons/icons/privacy.svg similarity index 100% rename from auth/assets/custom-icons/icons/privacy.svg rename to mobile/apps/auth/assets/custom-icons/icons/privacy.svg diff --git a/auth/assets/custom-icons/icons/privacyguides.svg b/mobile/apps/auth/assets/custom-icons/icons/privacyguides.svg similarity index 100% rename from auth/assets/custom-icons/icons/privacyguides.svg rename to mobile/apps/auth/assets/custom-icons/icons/privacyguides.svg diff --git a/auth/assets/custom-icons/icons/proton.svg b/mobile/apps/auth/assets/custom-icons/icons/proton.svg similarity index 100% rename from auth/assets/custom-icons/icons/proton.svg rename to mobile/apps/auth/assets/custom-icons/icons/proton.svg diff --git a/mobile/apps/auth/assets/custom-icons/icons/proton_calendar.svg b/mobile/apps/auth/assets/custom-icons/icons/proton_calendar.svg new file mode 100644 index 0000000000..08c9c8a4ca --- /dev/null +++ b/mobile/apps/auth/assets/custom-icons/icons/proton_calendar.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/apps/auth/assets/custom-icons/icons/proton_drive.svg b/mobile/apps/auth/assets/custom-icons/icons/proton_drive.svg new file mode 100644 index 0000000000..130c520feb --- /dev/null +++ b/mobile/apps/auth/assets/custom-icons/icons/proton_drive.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/apps/auth/assets/custom-icons/icons/proton_mail.svg b/mobile/apps/auth/assets/custom-icons/icons/proton_mail.svg new file mode 100644 index 0000000000..9c62d2ede9 --- /dev/null +++ b/mobile/apps/auth/assets/custom-icons/icons/proton_mail.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/apps/auth/assets/custom-icons/icons/proton_pass.svg b/mobile/apps/auth/assets/custom-icons/icons/proton_pass.svg new file mode 100644 index 0000000000..73db71e92b --- /dev/null +++ b/mobile/apps/auth/assets/custom-icons/icons/proton_pass.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/apps/auth/assets/custom-icons/icons/proton_vpn.svg b/mobile/apps/auth/assets/custom-icons/icons/proton_vpn.svg new file mode 100644 index 0000000000..d26f0d64b6 --- /dev/null +++ b/mobile/apps/auth/assets/custom-icons/icons/proton_vpn.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/apps/auth/assets/custom-icons/icons/proton_wallet.svg b/mobile/apps/auth/assets/custom-icons/icons/proton_wallet.svg new file mode 100644 index 0000000000..e279e248c5 --- /dev/null +++ b/mobile/apps/auth/assets/custom-icons/icons/proton_wallet.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/auth/assets/custom-icons/icons/proxmox.svg b/mobile/apps/auth/assets/custom-icons/icons/proxmox.svg similarity index 100% rename from auth/assets/custom-icons/icons/proxmox.svg rename to mobile/apps/auth/assets/custom-icons/icons/proxmox.svg diff --git a/auth/assets/custom-icons/icons/pushover.svg b/mobile/apps/auth/assets/custom-icons/icons/pushover.svg similarity index 100% rename from auth/assets/custom-icons/icons/pushover.svg rename to mobile/apps/auth/assets/custom-icons/icons/pushover.svg diff --git a/auth/assets/custom-icons/icons/qiniuyun.svg b/mobile/apps/auth/assets/custom-icons/icons/qiniuyun.svg similarity index 100% rename from auth/assets/custom-icons/icons/qiniuyun.svg rename to mobile/apps/auth/assets/custom-icons/icons/qiniuyun.svg diff --git a/auth/assets/custom-icons/icons/r10.svg b/mobile/apps/auth/assets/custom-icons/icons/r10.svg similarity index 100% rename from auth/assets/custom-icons/icons/r10.svg rename to mobile/apps/auth/assets/custom-icons/icons/r10.svg diff --git a/auth/assets/custom-icons/icons/raindrop_io.svg b/mobile/apps/auth/assets/custom-icons/icons/raindrop_io.svg similarity index 100% rename from auth/assets/custom-icons/icons/raindrop_io.svg rename to mobile/apps/auth/assets/custom-icons/icons/raindrop_io.svg diff --git a/auth/assets/custom-icons/icons/randstad.svg b/mobile/apps/auth/assets/custom-icons/icons/randstad.svg similarity index 100% rename from auth/assets/custom-icons/icons/randstad.svg rename to mobile/apps/auth/assets/custom-icons/icons/randstad.svg diff --git a/auth/assets/custom-icons/icons/real_debrid.svg b/mobile/apps/auth/assets/custom-icons/icons/real_debrid.svg similarity index 100% rename from auth/assets/custom-icons/icons/real_debrid.svg rename to mobile/apps/auth/assets/custom-icons/icons/real_debrid.svg diff --git a/auth/assets/custom-icons/icons/realme.svg b/mobile/apps/auth/assets/custom-icons/icons/realme.svg similarity index 100% rename from auth/assets/custom-icons/icons/realme.svg rename to mobile/apps/auth/assets/custom-icons/icons/realme.svg diff --git a/auth/assets/custom-icons/icons/realvnc.svg b/mobile/apps/auth/assets/custom-icons/icons/realvnc.svg similarity index 100% rename from auth/assets/custom-icons/icons/realvnc.svg rename to mobile/apps/auth/assets/custom-icons/icons/realvnc.svg diff --git a/auth/assets/custom-icons/icons/redotpay.svg b/mobile/apps/auth/assets/custom-icons/icons/redotpay.svg similarity index 100% rename from auth/assets/custom-icons/icons/redotpay.svg rename to mobile/apps/auth/assets/custom-icons/icons/redotpay.svg diff --git a/auth/assets/custom-icons/icons/registro_br.svg b/mobile/apps/auth/assets/custom-icons/icons/registro_br.svg similarity index 100% rename from auth/assets/custom-icons/icons/registro_br.svg rename to mobile/apps/auth/assets/custom-icons/icons/registro_br.svg diff --git a/auth/assets/custom-icons/icons/remarkable.svg b/mobile/apps/auth/assets/custom-icons/icons/remarkable.svg similarity index 100% rename from auth/assets/custom-icons/icons/remarkable.svg rename to mobile/apps/auth/assets/custom-icons/icons/remarkable.svg diff --git a/auth/assets/custom-icons/icons/render.svg b/mobile/apps/auth/assets/custom-icons/icons/render.svg similarity index 100% rename from auth/assets/custom-icons/icons/render.svg rename to mobile/apps/auth/assets/custom-icons/icons/render.svg diff --git a/auth/assets/custom-icons/icons/restream.svg b/mobile/apps/auth/assets/custom-icons/icons/restream.svg similarity index 100% rename from auth/assets/custom-icons/icons/restream.svg rename to mobile/apps/auth/assets/custom-icons/icons/restream.svg diff --git a/auth/assets/custom-icons/icons/revolt.svg b/mobile/apps/auth/assets/custom-icons/icons/revolt.svg similarity index 100% rename from auth/assets/custom-icons/icons/revolt.svg rename to mobile/apps/auth/assets/custom-icons/icons/revolt.svg diff --git a/auth/assets/custom-icons/icons/ripplematch.svg b/mobile/apps/auth/assets/custom-icons/icons/ripplematch.svg similarity index 100% rename from auth/assets/custom-icons/icons/ripplematch.svg rename to mobile/apps/auth/assets/custom-icons/icons/ripplematch.svg diff --git a/auth/assets/custom-icons/icons/rockstar_games.svg b/mobile/apps/auth/assets/custom-icons/icons/rockstar_games.svg similarity index 100% rename from auth/assets/custom-icons/icons/rockstar_games.svg rename to mobile/apps/auth/assets/custom-icons/icons/rockstar_games.svg diff --git a/auth/assets/custom-icons/icons/runemate.svg b/mobile/apps/auth/assets/custom-icons/icons/runemate.svg similarity index 100% rename from auth/assets/custom-icons/icons/runemate.svg rename to mobile/apps/auth/assets/custom-icons/icons/runemate.svg diff --git a/auth/assets/custom-icons/icons/runescape_wiki.svg b/mobile/apps/auth/assets/custom-icons/icons/runescape_wiki.svg similarity index 100% rename from auth/assets/custom-icons/icons/runescape_wiki.svg rename to mobile/apps/auth/assets/custom-icons/icons/runescape_wiki.svg diff --git a/auth/assets/custom-icons/icons/rust_language_forum.svg b/mobile/apps/auth/assets/custom-icons/icons/rust_language_forum.svg similarity index 100% rename from auth/assets/custom-icons/icons/rust_language_forum.svg rename to mobile/apps/auth/assets/custom-icons/icons/rust_language_forum.svg diff --git a/auth/assets/custom-icons/icons/samsung.svg b/mobile/apps/auth/assets/custom-icons/icons/samsung.svg similarity index 100% rename from auth/assets/custom-icons/icons/samsung.svg rename to mobile/apps/auth/assets/custom-icons/icons/samsung.svg diff --git a/auth/assets/custom-icons/icons/seafile.svg b/mobile/apps/auth/assets/custom-icons/icons/seafile.svg similarity index 100% rename from auth/assets/custom-icons/icons/seafile.svg rename to mobile/apps/auth/assets/custom-icons/icons/seafile.svg diff --git a/auth/assets/custom-icons/icons/sei.svg b/mobile/apps/auth/assets/custom-icons/icons/sei.svg similarity index 100% rename from auth/assets/custom-icons/icons/sei.svg rename to mobile/apps/auth/assets/custom-icons/icons/sei.svg diff --git a/auth/assets/custom-icons/icons/sendgrid.svg b/mobile/apps/auth/assets/custom-icons/icons/sendgrid.svg similarity index 100% rename from auth/assets/custom-icons/icons/sendgrid.svg rename to mobile/apps/auth/assets/custom-icons/icons/sendgrid.svg diff --git a/auth/assets/custom-icons/icons/service-bw.svg b/mobile/apps/auth/assets/custom-icons/icons/service-bw.svg similarity index 100% rename from auth/assets/custom-icons/icons/service-bw.svg rename to mobile/apps/auth/assets/custom-icons/icons/service-bw.svg diff --git a/auth/assets/custom-icons/icons/shakepay.svg b/mobile/apps/auth/assets/custom-icons/icons/shakepay.svg similarity index 100% rename from auth/assets/custom-icons/icons/shakepay.svg rename to mobile/apps/auth/assets/custom-icons/icons/shakepay.svg diff --git a/auth/assets/custom-icons/icons/simplelogin.svg b/mobile/apps/auth/assets/custom-icons/icons/simplelogin.svg similarity index 100% rename from auth/assets/custom-icons/icons/simplelogin.svg rename to mobile/apps/auth/assets/custom-icons/icons/simplelogin.svg diff --git a/auth/assets/custom-icons/icons/simplicity.svg b/mobile/apps/auth/assets/custom-icons/icons/simplicity.svg similarity index 100% rename from auth/assets/custom-icons/icons/simplicity.svg rename to mobile/apps/auth/assets/custom-icons/icons/simplicity.svg diff --git a/auth/assets/custom-icons/icons/sipgate.svg b/mobile/apps/auth/assets/custom-icons/icons/sipgate.svg similarity index 100% rename from auth/assets/custom-icons/icons/sipgate.svg rename to mobile/apps/auth/assets/custom-icons/icons/sipgate.svg diff --git a/auth/assets/custom-icons/icons/skiff.svg b/mobile/apps/auth/assets/custom-icons/icons/skiff.svg similarity index 100% rename from auth/assets/custom-icons/icons/skiff.svg rename to mobile/apps/auth/assets/custom-icons/icons/skiff.svg diff --git a/auth/assets/custom-icons/icons/skinport.svg b/mobile/apps/auth/assets/custom-icons/icons/skinport.svg similarity index 100% rename from auth/assets/custom-icons/icons/skinport.svg rename to mobile/apps/auth/assets/custom-icons/icons/skinport.svg diff --git a/auth/assets/custom-icons/icons/sms_pool_net.svg b/mobile/apps/auth/assets/custom-icons/icons/sms_pool_net.svg similarity index 100% rename from auth/assets/custom-icons/icons/sms_pool_net.svg rename to mobile/apps/auth/assets/custom-icons/icons/sms_pool_net.svg diff --git a/auth/assets/custom-icons/icons/smtp2go.svg b/mobile/apps/auth/assets/custom-icons/icons/smtp2go.svg similarity index 100% rename from auth/assets/custom-icons/icons/smtp2go.svg rename to mobile/apps/auth/assets/custom-icons/icons/smtp2go.svg diff --git a/auth/assets/custom-icons/icons/snapchat.svg b/mobile/apps/auth/assets/custom-icons/icons/snapchat.svg similarity index 100% rename from auth/assets/custom-icons/icons/snapchat.svg rename to mobile/apps/auth/assets/custom-icons/icons/snapchat.svg diff --git a/auth/assets/custom-icons/icons/spacehey.svg b/mobile/apps/auth/assets/custom-icons/icons/spacehey.svg similarity index 100% rename from auth/assets/custom-icons/icons/spacehey.svg rename to mobile/apps/auth/assets/custom-icons/icons/spacehey.svg diff --git a/auth/assets/custom-icons/icons/standardnotes.svg b/mobile/apps/auth/assets/custom-icons/icons/standardnotes.svg similarity index 100% rename from auth/assets/custom-icons/icons/standardnotes.svg rename to mobile/apps/auth/assets/custom-icons/icons/standardnotes.svg diff --git a/auth/assets/custom-icons/icons/starbreeze.svg b/mobile/apps/auth/assets/custom-icons/icons/starbreeze.svg similarity index 100% rename from auth/assets/custom-icons/icons/starbreeze.svg rename to mobile/apps/auth/assets/custom-icons/icons/starbreeze.svg diff --git a/auth/assets/custom-icons/icons/strato.svg b/mobile/apps/auth/assets/custom-icons/icons/strato.svg similarity index 100% rename from auth/assets/custom-icons/icons/strato.svg rename to mobile/apps/auth/assets/custom-icons/icons/strato.svg diff --git a/auth/assets/custom-icons/icons/surfshark.svg b/mobile/apps/auth/assets/custom-icons/icons/surfshark.svg similarity index 100% rename from auth/assets/custom-icons/icons/surfshark.svg rename to mobile/apps/auth/assets/custom-icons/icons/surfshark.svg diff --git a/auth/assets/custom-icons/icons/synology_dsm.svg b/mobile/apps/auth/assets/custom-icons/icons/synology_dsm.svg similarity index 100% rename from auth/assets/custom-icons/icons/synology_dsm.svg rename to mobile/apps/auth/assets/custom-icons/icons/synology_dsm.svg diff --git a/auth/assets/custom-icons/icons/t-mobile.svg b/mobile/apps/auth/assets/custom-icons/icons/t-mobile.svg similarity index 100% rename from auth/assets/custom-icons/icons/t-mobile.svg rename to mobile/apps/auth/assets/custom-icons/icons/t-mobile.svg diff --git a/auth/assets/custom-icons/icons/tcpshield.svg b/mobile/apps/auth/assets/custom-icons/icons/tcpshield.svg similarity index 100% rename from auth/assets/custom-icons/icons/tcpshield.svg rename to mobile/apps/auth/assets/custom-icons/icons/tcpshield.svg diff --git a/auth/assets/custom-icons/icons/tebex.svg b/mobile/apps/auth/assets/custom-icons/icons/tebex.svg similarity index 100% rename from auth/assets/custom-icons/icons/tebex.svg rename to mobile/apps/auth/assets/custom-icons/icons/tebex.svg diff --git a/auth/assets/custom-icons/icons/techlore.svg b/mobile/apps/auth/assets/custom-icons/icons/techlore.svg similarity index 100% rename from auth/assets/custom-icons/icons/techlore.svg rename to mobile/apps/auth/assets/custom-icons/icons/techlore.svg diff --git a/auth/assets/custom-icons/icons/teleport.svg b/mobile/apps/auth/assets/custom-icons/icons/teleport.svg similarity index 100% rename from auth/assets/custom-icons/icons/teleport.svg rename to mobile/apps/auth/assets/custom-icons/icons/teleport.svg diff --git a/auth/assets/custom-icons/icons/tencent_cloud.svg b/mobile/apps/auth/assets/custom-icons/icons/tencent_cloud.svg similarity index 100% rename from auth/assets/custom-icons/icons/tencent_cloud.svg rename to mobile/apps/auth/assets/custom-icons/icons/tencent_cloud.svg diff --git a/auth/assets/custom-icons/icons/terabit.svg b/mobile/apps/auth/assets/custom-icons/icons/terabit.svg similarity index 100% rename from auth/assets/custom-icons/icons/terabit.svg rename to mobile/apps/auth/assets/custom-icons/icons/terabit.svg diff --git a/auth/assets/custom-icons/icons/termius.svg b/mobile/apps/auth/assets/custom-icons/icons/termius.svg similarity index 100% rename from auth/assets/custom-icons/icons/termius.svg rename to mobile/apps/auth/assets/custom-icons/icons/termius.svg diff --git a/auth/assets/custom-icons/icons/tianyiyun.svg b/mobile/apps/auth/assets/custom-icons/icons/tianyiyun.svg similarity index 100% rename from auth/assets/custom-icons/icons/tianyiyun.svg rename to mobile/apps/auth/assets/custom-icons/icons/tianyiyun.svg diff --git a/auth/assets/custom-icons/icons/tiktok.svg b/mobile/apps/auth/assets/custom-icons/icons/tiktok.svg similarity index 100% rename from auth/assets/custom-icons/icons/tiktok.svg rename to mobile/apps/auth/assets/custom-icons/icons/tiktok.svg diff --git a/auth/assets/custom-icons/icons/titan.svg b/mobile/apps/auth/assets/custom-icons/icons/titan.svg similarity index 100% rename from auth/assets/custom-icons/icons/titan.svg rename to mobile/apps/auth/assets/custom-icons/icons/titan.svg diff --git a/auth/assets/custom-icons/icons/torguard.svg b/mobile/apps/auth/assets/custom-icons/icons/torguard.svg similarity index 100% rename from auth/assets/custom-icons/icons/torguard.svg rename to mobile/apps/auth/assets/custom-icons/icons/torguard.svg diff --git a/auth/assets/custom-icons/icons/toshl_finance.svg b/mobile/apps/auth/assets/custom-icons/icons/toshl_finance.svg similarity index 100% rename from auth/assets/custom-icons/icons/toshl_finance.svg rename to mobile/apps/auth/assets/custom-icons/icons/toshl_finance.svg diff --git a/auth/assets/custom-icons/icons/trading212.svg b/mobile/apps/auth/assets/custom-icons/icons/trading212.svg similarity index 100% rename from auth/assets/custom-icons/icons/trading212.svg rename to mobile/apps/auth/assets/custom-icons/icons/trading212.svg diff --git a/auth/assets/custom-icons/icons/tradingview.svg b/mobile/apps/auth/assets/custom-icons/icons/tradingview.svg similarity index 100% rename from auth/assets/custom-icons/icons/tradingview.svg rename to mobile/apps/auth/assets/custom-icons/icons/tradingview.svg diff --git a/auth/assets/custom-icons/icons/transip.svg b/mobile/apps/auth/assets/custom-icons/icons/transip.svg similarity index 100% rename from auth/assets/custom-icons/icons/transip.svg rename to mobile/apps/auth/assets/custom-icons/icons/transip.svg diff --git a/auth/assets/custom-icons/icons/tresorit.svg b/mobile/apps/auth/assets/custom-icons/icons/tresorit.svg similarity index 100% rename from auth/assets/custom-icons/icons/tresorit.svg rename to mobile/apps/auth/assets/custom-icons/icons/tresorit.svg diff --git a/auth/assets/custom-icons/icons/troweprice.svg b/mobile/apps/auth/assets/custom-icons/icons/troweprice.svg similarity index 100% rename from auth/assets/custom-icons/icons/troweprice.svg rename to mobile/apps/auth/assets/custom-icons/icons/troweprice.svg diff --git a/auth/assets/custom-icons/icons/tweakers.svg b/mobile/apps/auth/assets/custom-icons/icons/tweakers.svg similarity index 100% rename from auth/assets/custom-icons/icons/tweakers.svg rename to mobile/apps/auth/assets/custom-icons/icons/tweakers.svg diff --git a/auth/assets/custom-icons/icons/twingate.svg b/mobile/apps/auth/assets/custom-icons/icons/twingate.svg similarity index 100% rename from auth/assets/custom-icons/icons/twingate.svg rename to mobile/apps/auth/assets/custom-icons/icons/twingate.svg diff --git a/auth/assets/custom-icons/icons/twitch.svg b/mobile/apps/auth/assets/custom-icons/icons/twitch.svg similarity index 100% rename from auth/assets/custom-icons/icons/twitch.svg rename to mobile/apps/auth/assets/custom-icons/icons/twitch.svg diff --git a/auth/assets/custom-icons/icons/ubiquiti.svg b/mobile/apps/auth/assets/custom-icons/icons/ubiquiti.svg similarity index 100% rename from auth/assets/custom-icons/icons/ubiquiti.svg rename to mobile/apps/auth/assets/custom-icons/icons/ubiquiti.svg diff --git a/auth/assets/custom-icons/icons/ubisoft.svg b/mobile/apps/auth/assets/custom-icons/icons/ubisoft.svg similarity index 100% rename from auth/assets/custom-icons/icons/ubisoft.svg rename to mobile/apps/auth/assets/custom-icons/icons/ubisoft.svg diff --git a/auth/assets/custom-icons/icons/ubuntu_one.svg b/mobile/apps/auth/assets/custom-icons/icons/ubuntu_one.svg similarity index 100% rename from auth/assets/custom-icons/icons/ubuntu_one.svg rename to mobile/apps/auth/assets/custom-icons/icons/ubuntu_one.svg diff --git a/auth/assets/custom-icons/icons/unity.svg b/mobile/apps/auth/assets/custom-icons/icons/unity.svg similarity index 100% rename from auth/assets/custom-icons/icons/unity.svg rename to mobile/apps/auth/assets/custom-icons/icons/unity.svg diff --git a/auth/assets/custom-icons/icons/uollet.svg b/mobile/apps/auth/assets/custom-icons/icons/uollet.svg similarity index 100% rename from auth/assets/custom-icons/icons/uollet.svg rename to mobile/apps/auth/assets/custom-icons/icons/uollet.svg diff --git a/auth/assets/custom-icons/icons/uphold.svg b/mobile/apps/auth/assets/custom-icons/icons/uphold.svg similarity index 100% rename from auth/assets/custom-icons/icons/uphold.svg rename to mobile/apps/auth/assets/custom-icons/icons/uphold.svg diff --git a/auth/assets/custom-icons/icons/upstox.svg b/mobile/apps/auth/assets/custom-icons/icons/upstox.svg similarity index 100% rename from auth/assets/custom-icons/icons/upstox.svg rename to mobile/apps/auth/assets/custom-icons/icons/upstox.svg diff --git a/auth/assets/custom-icons/icons/us_mobile.svg b/mobile/apps/auth/assets/custom-icons/icons/us_mobile.svg similarity index 100% rename from auth/assets/custom-icons/icons/us_mobile.svg rename to mobile/apps/auth/assets/custom-icons/icons/us_mobile.svg diff --git a/auth/assets/custom-icons/icons/vikunja.svg b/mobile/apps/auth/assets/custom-icons/icons/vikunja.svg similarity index 100% rename from auth/assets/custom-icons/icons/vikunja.svg rename to mobile/apps/auth/assets/custom-icons/icons/vikunja.svg diff --git a/auth/assets/custom-icons/icons/volcengine.svg b/mobile/apps/auth/assets/custom-icons/icons/volcengine.svg similarity index 100% rename from auth/assets/custom-icons/icons/volcengine.svg rename to mobile/apps/auth/assets/custom-icons/icons/volcengine.svg diff --git a/auth/assets/custom-icons/icons/wargamingnet.svg b/mobile/apps/auth/assets/custom-icons/icons/wargamingnet.svg similarity index 100% rename from auth/assets/custom-icons/icons/wargamingnet.svg rename to mobile/apps/auth/assets/custom-icons/icons/wargamingnet.svg diff --git a/auth/assets/custom-icons/icons/warner_bros.svg b/mobile/apps/auth/assets/custom-icons/icons/warner_bros.svg similarity index 100% rename from auth/assets/custom-icons/icons/warner_bros.svg rename to mobile/apps/auth/assets/custom-icons/icons/warner_bros.svg diff --git a/auth/assets/custom-icons/icons/wca.svg b/mobile/apps/auth/assets/custom-icons/icons/wca.svg similarity index 100% rename from auth/assets/custom-icons/icons/wca.svg rename to mobile/apps/auth/assets/custom-icons/icons/wca.svg diff --git a/auth/assets/custom-icons/icons/wealthfront.svg b/mobile/apps/auth/assets/custom-icons/icons/wealthfront.svg similarity index 100% rename from auth/assets/custom-icons/icons/wealthfront.svg rename to mobile/apps/auth/assets/custom-icons/icons/wealthfront.svg diff --git a/auth/assets/custom-icons/icons/wealthsimple.svg b/mobile/apps/auth/assets/custom-icons/icons/wealthsimple.svg similarity index 100% rename from auth/assets/custom-icons/icons/wealthsimple.svg rename to mobile/apps/auth/assets/custom-icons/icons/wealthsimple.svg diff --git a/auth/assets/custom-icons/icons/web_de.svg b/mobile/apps/auth/assets/custom-icons/icons/web_de.svg similarity index 100% rename from auth/assets/custom-icons/icons/web_de.svg rename to mobile/apps/auth/assets/custom-icons/icons/web_de.svg diff --git a/auth/assets/custom-icons/icons/whmcs.svg b/mobile/apps/auth/assets/custom-icons/icons/whmcs.svg similarity index 100% rename from auth/assets/custom-icons/icons/whmcs.svg rename to mobile/apps/auth/assets/custom-icons/icons/whmcs.svg diff --git a/auth/assets/custom-icons/icons/windscribe.svg b/mobile/apps/auth/assets/custom-icons/icons/windscribe.svg similarity index 100% rename from auth/assets/custom-icons/icons/windscribe.svg rename to mobile/apps/auth/assets/custom-icons/icons/windscribe.svg diff --git a/auth/assets/custom-icons/icons/wise.svg b/mobile/apps/auth/assets/custom-icons/icons/wise.svg similarity index 100% rename from auth/assets/custom-icons/icons/wise.svg rename to mobile/apps/auth/assets/custom-icons/icons/wise.svg diff --git a/auth/assets/custom-icons/icons/wolvesville.svg b/mobile/apps/auth/assets/custom-icons/icons/wolvesville.svg similarity index 100% rename from auth/assets/custom-icons/icons/wolvesville.svg rename to mobile/apps/auth/assets/custom-icons/icons/wolvesville.svg diff --git a/auth/assets/custom-icons/icons/workflowy.svg b/mobile/apps/auth/assets/custom-icons/icons/workflowy.svg similarity index 100% rename from auth/assets/custom-icons/icons/workflowy.svg rename to mobile/apps/auth/assets/custom-icons/icons/workflowy.svg diff --git a/auth/assets/custom-icons/icons/workos.svg b/mobile/apps/auth/assets/custom-icons/icons/workos.svg similarity index 100% rename from auth/assets/custom-icons/icons/workos.svg rename to mobile/apps/auth/assets/custom-icons/icons/workos.svg diff --git a/auth/assets/custom-icons/icons/wyze.svg b/mobile/apps/auth/assets/custom-icons/icons/wyze.svg similarity index 100% rename from auth/assets/custom-icons/icons/wyze.svg rename to mobile/apps/auth/assets/custom-icons/icons/wyze.svg diff --git a/auth/assets/custom-icons/icons/xai.svg b/mobile/apps/auth/assets/custom-icons/icons/xai.svg similarity index 100% rename from auth/assets/custom-icons/icons/xai.svg rename to mobile/apps/auth/assets/custom-icons/icons/xai.svg diff --git a/auth/assets/custom-icons/icons/xbox.svg b/mobile/apps/auth/assets/custom-icons/icons/xbox.svg similarity index 100% rename from auth/assets/custom-icons/icons/xbox.svg rename to mobile/apps/auth/assets/custom-icons/icons/xbox.svg diff --git a/auth/assets/custom-icons/icons/yahoo.svg b/mobile/apps/auth/assets/custom-icons/icons/yahoo.svg similarity index 100% rename from auth/assets/custom-icons/icons/yahoo.svg rename to mobile/apps/auth/assets/custom-icons/icons/yahoo.svg diff --git a/auth/assets/custom-icons/icons/yandex.svg b/mobile/apps/auth/assets/custom-icons/icons/yandex.svg similarity index 100% rename from auth/assets/custom-icons/icons/yandex.svg rename to mobile/apps/auth/assets/custom-icons/icons/yandex.svg diff --git a/auth/assets/custom-icons/icons/ynab.svg b/mobile/apps/auth/assets/custom-icons/icons/ynab.svg similarity index 100% rename from auth/assets/custom-icons/icons/ynab.svg rename to mobile/apps/auth/assets/custom-icons/icons/ynab.svg diff --git a/auth/assets/custom-icons/icons/zitadel.svg b/mobile/apps/auth/assets/custom-icons/icons/zitadel.svg similarity index 100% rename from auth/assets/custom-icons/icons/zitadel.svg rename to mobile/apps/auth/assets/custom-icons/icons/zitadel.svg diff --git a/auth/assets/custom-icons/icons/zoom.svg b/mobile/apps/auth/assets/custom-icons/icons/zoom.svg similarity index 100% rename from auth/assets/custom-icons/icons/zoom.svg rename to mobile/apps/auth/assets/custom-icons/icons/zoom.svg diff --git a/auth/assets/discount.png b/mobile/apps/auth/assets/discount.png similarity index 100% rename from auth/assets/discount.png rename to mobile/apps/auth/assets/discount.png diff --git a/auth/assets/ente_5gb.png b/mobile/apps/auth/assets/ente_5gb.png similarity index 100% rename from auth/assets/ente_5gb.png rename to mobile/apps/auth/assets/ente_5gb.png diff --git a/auth/assets/fonts/Inter-Bold.ttf b/mobile/apps/auth/assets/fonts/Inter-Bold.ttf similarity index 100% rename from auth/assets/fonts/Inter-Bold.ttf rename to mobile/apps/auth/assets/fonts/Inter-Bold.ttf diff --git a/auth/assets/fonts/Inter-Light.ttf b/mobile/apps/auth/assets/fonts/Inter-Light.ttf similarity index 100% rename from auth/assets/fonts/Inter-Light.ttf rename to mobile/apps/auth/assets/fonts/Inter-Light.ttf diff --git a/auth/assets/fonts/Inter-Medium.ttf b/mobile/apps/auth/assets/fonts/Inter-Medium.ttf similarity index 100% rename from auth/assets/fonts/Inter-Medium.ttf rename to mobile/apps/auth/assets/fonts/Inter-Medium.ttf diff --git a/auth/assets/fonts/Inter-Regular.ttf b/mobile/apps/auth/assets/fonts/Inter-Regular.ttf similarity index 100% rename from auth/assets/fonts/Inter-Regular.ttf rename to mobile/apps/auth/assets/fonts/Inter-Regular.ttf diff --git a/auth/assets/fonts/Inter-SemiBold.ttf b/mobile/apps/auth/assets/fonts/Inter-SemiBold.ttf similarity index 100% rename from auth/assets/fonts/Inter-SemiBold.ttf rename to mobile/apps/auth/assets/fonts/Inter-SemiBold.ttf diff --git a/auth/assets/fonts/Montserrat-Bold.ttf b/mobile/apps/auth/assets/fonts/Montserrat-Bold.ttf similarity index 100% rename from auth/assets/fonts/Montserrat-Bold.ttf rename to mobile/apps/auth/assets/fonts/Montserrat-Bold.ttf diff --git a/auth/assets/generation-icons/icon-light-adaptive-bg.png b/mobile/apps/auth/assets/generation-icons/icon-light-adaptive-bg.png similarity index 100% rename from auth/assets/generation-icons/icon-light-adaptive-bg.png rename to mobile/apps/auth/assets/generation-icons/icon-light-adaptive-bg.png diff --git a/auth/assets/generation-icons/icon-light-adaptive-fg.png b/mobile/apps/auth/assets/generation-icons/icon-light-adaptive-fg.png similarity index 100% rename from auth/assets/generation-icons/icon-light-adaptive-fg.png rename to mobile/apps/auth/assets/generation-icons/icon-light-adaptive-fg.png diff --git a/auth/assets/generation-icons/icon-light.png b/mobile/apps/auth/assets/generation-icons/icon-light.png similarity index 100% rename from auth/assets/generation-icons/icon-light.png rename to mobile/apps/auth/assets/generation-icons/icon-light.png diff --git a/auth/assets/generation-icons/icon-monochrome.png b/mobile/apps/auth/assets/generation-icons/icon-monochrome.png similarity index 100% rename from auth/assets/generation-icons/icon-monochrome.png rename to mobile/apps/auth/assets/generation-icons/icon-monochrome.png diff --git a/auth/assets/icons/auth-icon.ico b/mobile/apps/auth/assets/icons/auth-icon.ico similarity index 100% rename from auth/assets/icons/auth-icon.ico rename to mobile/apps/auth/assets/icons/auth-icon.ico diff --git a/auth/assets/icons/auth-icon.png b/mobile/apps/auth/assets/icons/auth-icon.png similarity index 100% rename from auth/assets/icons/auth-icon.png rename to mobile/apps/auth/assets/icons/auth-icon.png diff --git a/auth/assets/loading_photos_background.png b/mobile/apps/auth/assets/loading_photos_background.png similarity index 100% rename from auth/assets/loading_photos_background.png rename to mobile/apps/auth/assets/loading_photos_background.png diff --git a/auth/assets/loading_photos_background_dark.png b/mobile/apps/auth/assets/loading_photos_background_dark.png similarity index 100% rename from auth/assets/loading_photos_background_dark.png rename to mobile/apps/auth/assets/loading_photos_background_dark.png diff --git a/auth/assets/rate_us.png b/mobile/apps/auth/assets/rate_us.png similarity index 100% rename from auth/assets/rate_us.png rename to mobile/apps/auth/assets/rate_us.png diff --git a/auth/assets/sheild-front-gradient.png b/mobile/apps/auth/assets/sheild-front-gradient.png similarity index 100% rename from auth/assets/sheild-front-gradient.png rename to mobile/apps/auth/assets/sheild-front-gradient.png diff --git a/auth/assets/simple-icons b/mobile/apps/auth/assets/simple-icons similarity index 100% rename from auth/assets/simple-icons rename to mobile/apps/auth/assets/simple-icons diff --git a/auth/assets/splash/splash-icon-fg-12.png b/mobile/apps/auth/assets/splash/splash-icon-fg-12.png similarity index 100% rename from auth/assets/splash/splash-icon-fg-12.png rename to mobile/apps/auth/assets/splash/splash-icon-fg-12.png diff --git a/auth/assets/splash/splash-icon-fg.png b/mobile/apps/auth/assets/splash/splash-icon-fg.png similarity index 100% rename from auth/assets/splash/splash-icon-fg.png rename to mobile/apps/auth/assets/splash/splash-icon-fg.png diff --git a/auth/assets/star_us.png b/mobile/apps/auth/assets/star_us.png similarity index 100% rename from auth/assets/star_us.png rename to mobile/apps/auth/assets/star_us.png diff --git a/auth/assets/svg/button-tint.svg b/mobile/apps/auth/assets/svg/button-tint.svg similarity index 100% rename from auth/assets/svg/button-tint.svg rename to mobile/apps/auth/assets/svg/button-tint.svg diff --git a/auth/assets/svg/pin-active.svg b/mobile/apps/auth/assets/svg/pin-active.svg similarity index 100% rename from auth/assets/svg/pin-active.svg rename to mobile/apps/auth/assets/svg/pin-active.svg diff --git a/auth/assets/svg/pin-card.svg b/mobile/apps/auth/assets/svg/pin-card.svg similarity index 100% rename from auth/assets/svg/pin-card.svg rename to mobile/apps/auth/assets/svg/pin-card.svg diff --git a/auth/assets/svg/pin-inactive.svg b/mobile/apps/auth/assets/svg/pin-inactive.svg similarity index 100% rename from auth/assets/svg/pin-inactive.svg rename to mobile/apps/auth/assets/svg/pin-inactive.svg diff --git a/auth/assets/wallet-front-gradient.png b/mobile/apps/auth/assets/wallet-front-gradient.png similarity index 100% rename from auth/assets/wallet-front-gradient.png rename to mobile/apps/auth/assets/wallet-front-gradient.png diff --git a/auth/coverage/lcov.info b/mobile/apps/auth/coverage/lcov.info similarity index 100% rename from auth/coverage/lcov.info rename to mobile/apps/auth/coverage/lcov.info diff --git a/auth/crowdin.yml b/mobile/apps/auth/crowdin.yml similarity index 100% rename from auth/crowdin.yml rename to mobile/apps/auth/crowdin.yml diff --git a/auth/devtools_options.yaml b/mobile/apps/auth/devtools_options.yaml similarity index 100% rename from auth/devtools_options.yaml rename to mobile/apps/auth/devtools_options.yaml diff --git a/auth/distribute_options.yaml b/mobile/apps/auth/distribute_options.yaml similarity index 100% rename from auth/distribute_options.yaml rename to mobile/apps/auth/distribute_options.yaml diff --git a/auth/docs/README.md b/mobile/apps/auth/docs/README.md similarity index 100% rename from auth/docs/README.md rename to mobile/apps/auth/docs/README.md diff --git a/auth/docs/adding-icons.md b/mobile/apps/auth/docs/adding-icons.md similarity index 100% rename from auth/docs/adding-icons.md rename to mobile/apps/auth/docs/adding-icons.md diff --git a/auth/docs/localization.md b/mobile/apps/auth/docs/localization.md similarity index 100% rename from auth/docs/localization.md rename to mobile/apps/auth/docs/localization.md diff --git a/auth/docs/release.md b/mobile/apps/auth/docs/release.md similarity index 100% rename from auth/docs/release.md rename to mobile/apps/auth/docs/release.md diff --git a/auth/docs/vscode/extensions.json b/mobile/apps/auth/docs/vscode/extensions.json similarity index 100% rename from auth/docs/vscode/extensions.json rename to mobile/apps/auth/docs/vscode/extensions.json diff --git a/auth/docs/vscode/launch.json b/mobile/apps/auth/docs/vscode/launch.json similarity index 100% rename from auth/docs/vscode/launch.json rename to mobile/apps/auth/docs/vscode/launch.json diff --git a/auth/fastlane/metadata/android/en-US/changelogs/23.txt b/mobile/apps/auth/fastlane/metadata/android/en-US/changelogs/23.txt similarity index 100% rename from auth/fastlane/metadata/android/en-US/changelogs/23.txt rename to mobile/apps/auth/fastlane/metadata/android/en-US/changelogs/23.txt diff --git a/auth/fastlane/metadata/android/en-US/changelogs/39.txt b/mobile/apps/auth/fastlane/metadata/android/en-US/changelogs/39.txt similarity index 100% rename from auth/fastlane/metadata/android/en-US/changelogs/39.txt rename to mobile/apps/auth/fastlane/metadata/android/en-US/changelogs/39.txt diff --git a/auth/fastlane/metadata/android/en-US/full_description.txt b/mobile/apps/auth/fastlane/metadata/android/en-US/full_description.txt similarity index 100% rename from auth/fastlane/metadata/android/en-US/full_description.txt rename to mobile/apps/auth/fastlane/metadata/android/en-US/full_description.txt diff --git a/auth/fastlane/metadata/android/en-US/images/icon.png b/mobile/apps/auth/fastlane/metadata/android/en-US/images/icon.png similarity index 100% rename from auth/fastlane/metadata/android/en-US/images/icon.png rename to mobile/apps/auth/fastlane/metadata/android/en-US/images/icon.png diff --git a/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png b/mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png similarity index 100% rename from auth/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png rename to mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png diff --git a/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png b/mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png similarity index 100% rename from auth/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png rename to mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png diff --git a/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png b/mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png similarity index 100% rename from auth/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png rename to mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png diff --git a/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png b/mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png similarity index 100% rename from auth/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png rename to mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png diff --git a/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png b/mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png similarity index 100% rename from auth/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png rename to mobile/apps/auth/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png diff --git a/auth/fastlane/metadata/android/en-US/short_description.txt b/mobile/apps/auth/fastlane/metadata/android/en-US/short_description.txt similarity index 100% rename from auth/fastlane/metadata/android/en-US/short_description.txt rename to mobile/apps/auth/fastlane/metadata/android/en-US/short_description.txt diff --git a/auth/fastlane/metadata/android/en-US/title.txt b/mobile/apps/auth/fastlane/metadata/android/en-US/title.txt similarity index 100% rename from auth/fastlane/metadata/android/en-US/title.txt rename to mobile/apps/auth/fastlane/metadata/android/en-US/title.txt diff --git a/auth/fdroid_flutter_icons.yaml b/mobile/apps/auth/fdroid_flutter_icons.yaml similarity index 100% rename from auth/fdroid_flutter_icons.yaml rename to mobile/apps/auth/fdroid_flutter_icons.yaml diff --git a/auth/flutter b/mobile/apps/auth/flutter similarity index 100% rename from auth/flutter rename to mobile/apps/auth/flutter diff --git a/auth/fonts/Inter-Bold.ttf b/mobile/apps/auth/fonts/Inter-Bold.ttf similarity index 100% rename from auth/fonts/Inter-Bold.ttf rename to mobile/apps/auth/fonts/Inter-Bold.ttf diff --git a/auth/fonts/Inter-Light.ttf b/mobile/apps/auth/fonts/Inter-Light.ttf similarity index 100% rename from auth/fonts/Inter-Light.ttf rename to mobile/apps/auth/fonts/Inter-Light.ttf diff --git a/auth/fonts/Inter-Medium.ttf b/mobile/apps/auth/fonts/Inter-Medium.ttf similarity index 100% rename from auth/fonts/Inter-Medium.ttf rename to mobile/apps/auth/fonts/Inter-Medium.ttf diff --git a/auth/fonts/Inter-Regular.ttf b/mobile/apps/auth/fonts/Inter-Regular.ttf similarity index 100% rename from auth/fonts/Inter-Regular.ttf rename to mobile/apps/auth/fonts/Inter-Regular.ttf diff --git a/auth/fonts/Inter-SemiBold.ttf b/mobile/apps/auth/fonts/Inter-SemiBold.ttf similarity index 100% rename from auth/fonts/Inter-SemiBold.ttf rename to mobile/apps/auth/fonts/Inter-SemiBold.ttf diff --git a/auth/fonts/Montserrat-Bold.ttf b/mobile/apps/auth/fonts/Montserrat-Bold.ttf similarity index 100% rename from auth/fonts/Montserrat-Bold.ttf rename to mobile/apps/auth/fonts/Montserrat-Bold.ttf diff --git a/auth/ios/.gitignore b/mobile/apps/auth/ios/.gitignore similarity index 100% rename from auth/ios/.gitignore rename to mobile/apps/auth/ios/.gitignore diff --git a/auth/ios/Flutter/AppFrameworkInfo.plist b/mobile/apps/auth/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from auth/ios/Flutter/AppFrameworkInfo.plist rename to mobile/apps/auth/ios/Flutter/AppFrameworkInfo.plist diff --git a/auth/ios/Flutter/Debug.xcconfig b/mobile/apps/auth/ios/Flutter/Debug.xcconfig similarity index 100% rename from auth/ios/Flutter/Debug.xcconfig rename to mobile/apps/auth/ios/Flutter/Debug.xcconfig diff --git a/auth/ios/Flutter/Release.xcconfig b/mobile/apps/auth/ios/Flutter/Release.xcconfig similarity index 100% rename from auth/ios/Flutter/Release.xcconfig rename to mobile/apps/auth/ios/Flutter/Release.xcconfig diff --git a/auth/ios/Podfile b/mobile/apps/auth/ios/Podfile similarity index 100% rename from auth/ios/Podfile rename to mobile/apps/auth/ios/Podfile diff --git a/auth/ios/Podfile.lock b/mobile/apps/auth/ios/Podfile.lock similarity index 100% rename from auth/ios/Podfile.lock rename to mobile/apps/auth/ios/Podfile.lock diff --git a/auth/ios/Runner.xcodeproj/project.pbxproj b/mobile/apps/auth/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from auth/ios/Runner.xcodeproj/project.pbxproj rename to mobile/apps/auth/ios/Runner.xcodeproj/project.pbxproj diff --git a/auth/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/mobile/apps/auth/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from auth/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to mobile/apps/auth/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/mobile/apps/auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to mobile/apps/auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/mobile/apps/auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to mobile/apps/auth/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/auth/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/mobile/apps/auth/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from auth/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to mobile/apps/auth/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/auth/ios/Runner.xcworkspace/contents.xcworkspacedata b/mobile/apps/auth/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from auth/ios/Runner.xcworkspace/contents.xcworkspacedata rename to mobile/apps/auth/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/auth/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/mobile/apps/auth/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from auth/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to mobile/apps/auth/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/auth/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/mobile/apps/auth/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from auth/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to mobile/apps/auth/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/auth/ios/Runner/AppDelegate.swift b/mobile/apps/auth/ios/Runner/AppDelegate.swift similarity index 100% rename from auth/ios/Runner/AppDelegate.swift rename to mobile/apps/auth/ios/Runner/AppDelegate.swift diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Dark mode-1024@1x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Dark mode-1024@1x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Dark mode-1024@1x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Dark mode-1024@1x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png diff --git a/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Tinted icon-1024@1x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Tinted icon-1024@1x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Tinted icon-1024@1x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/AppIcon.appiconset/Tinted icon-1024@1x.png diff --git a/auth/ios/Runner/Assets.xcassets/Contents.json b/mobile/apps/auth/ios/Runner/Assets.xcassets/Contents.json similarity index 100% rename from auth/ios/Runner/Assets.xcassets/Contents.json rename to mobile/apps/auth/ios/Runner/Assets.xcassets/Contents.json diff --git a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json diff --git a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png diff --git a/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to mobile/apps/auth/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/auth/ios/Runner/Base.lproj/LaunchScreen.storyboard b/mobile/apps/auth/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from auth/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to mobile/apps/auth/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/auth/ios/Runner/Base.lproj/Main.storyboard b/mobile/apps/auth/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from auth/ios/Runner/Base.lproj/Main.storyboard rename to mobile/apps/auth/ios/Runner/Base.lproj/Main.storyboard diff --git a/auth/ios/Runner/Info.plist b/mobile/apps/auth/ios/Runner/Info.plist similarity index 100% rename from auth/ios/Runner/Info.plist rename to mobile/apps/auth/ios/Runner/Info.plist diff --git a/auth/ios/Runner/Runner-Bridging-Header.h b/mobile/apps/auth/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from auth/ios/Runner/Runner-Bridging-Header.h rename to mobile/apps/auth/ios/Runner/Runner-Bridging-Header.h diff --git a/auth/ios/ci_scripts/ci_post_clone.sh b/mobile/apps/auth/ios/ci_scripts/ci_post_clone.sh similarity index 100% rename from auth/ios/ci_scripts/ci_post_clone.sh rename to mobile/apps/auth/ios/ci_scripts/ci_post_clone.sh diff --git a/auth/l10n.yaml b/mobile/apps/auth/l10n.yaml similarity index 100% rename from auth/l10n.yaml rename to mobile/apps/auth/l10n.yaml diff --git a/auth/lib/app/app.dart b/mobile/apps/auth/lib/app/app.dart similarity index 100% rename from auth/lib/app/app.dart rename to mobile/apps/auth/lib/app/app.dart diff --git a/auth/lib/app/view/app.dart b/mobile/apps/auth/lib/app/view/app.dart similarity index 100% rename from auth/lib/app/view/app.dart rename to mobile/apps/auth/lib/app/view/app.dart diff --git a/auth/lib/bootstrap.dart b/mobile/apps/auth/lib/bootstrap.dart similarity index 100% rename from auth/lib/bootstrap.dart rename to mobile/apps/auth/lib/bootstrap.dart diff --git a/auth/lib/core/configuration.dart b/mobile/apps/auth/lib/core/configuration.dart similarity index 100% rename from auth/lib/core/configuration.dart rename to mobile/apps/auth/lib/core/configuration.dart diff --git a/auth/lib/core/constants.dart b/mobile/apps/auth/lib/core/constants.dart similarity index 100% rename from auth/lib/core/constants.dart rename to mobile/apps/auth/lib/core/constants.dart diff --git a/auth/lib/core/errors.dart b/mobile/apps/auth/lib/core/errors.dart similarity index 100% rename from auth/lib/core/errors.dart rename to mobile/apps/auth/lib/core/errors.dart diff --git a/auth/lib/core/event_bus.dart b/mobile/apps/auth/lib/core/event_bus.dart similarity index 100% rename from auth/lib/core/event_bus.dart rename to mobile/apps/auth/lib/core/event_bus.dart diff --git a/auth/lib/core/logging/super_logging.dart b/mobile/apps/auth/lib/core/logging/super_logging.dart similarity index 100% rename from auth/lib/core/logging/super_logging.dart rename to mobile/apps/auth/lib/core/logging/super_logging.dart diff --git a/auth/lib/core/logging/tunneled_transport.dart b/mobile/apps/auth/lib/core/logging/tunneled_transport.dart similarity index 100% rename from auth/lib/core/logging/tunneled_transport.dart rename to mobile/apps/auth/lib/core/logging/tunneled_transport.dart diff --git a/auth/lib/core/network.dart b/mobile/apps/auth/lib/core/network.dart similarity index 100% rename from auth/lib/core/network.dart rename to mobile/apps/auth/lib/core/network.dart diff --git a/auth/lib/ente_theme_data.dart b/mobile/apps/auth/lib/ente_theme_data.dart similarity index 100% rename from auth/lib/ente_theme_data.dart rename to mobile/apps/auth/lib/ente_theme_data.dart diff --git a/auth/lib/events/codes_updated_event.dart b/mobile/apps/auth/lib/events/codes_updated_event.dart similarity index 100% rename from auth/lib/events/codes_updated_event.dart rename to mobile/apps/auth/lib/events/codes_updated_event.dart diff --git a/auth/lib/events/endpoint_updated_event.dart b/mobile/apps/auth/lib/events/endpoint_updated_event.dart similarity index 100% rename from auth/lib/events/endpoint_updated_event.dart rename to mobile/apps/auth/lib/events/endpoint_updated_event.dart diff --git a/auth/lib/events/event.dart b/mobile/apps/auth/lib/events/event.dart similarity index 100% rename from auth/lib/events/event.dart rename to mobile/apps/auth/lib/events/event.dart diff --git a/auth/lib/events/icons_changed_event.dart b/mobile/apps/auth/lib/events/icons_changed_event.dart similarity index 100% rename from auth/lib/events/icons_changed_event.dart rename to mobile/apps/auth/lib/events/icons_changed_event.dart diff --git a/auth/lib/events/notification_event.dart b/mobile/apps/auth/lib/events/notification_event.dart similarity index 100% rename from auth/lib/events/notification_event.dart rename to mobile/apps/auth/lib/events/notification_event.dart diff --git a/auth/lib/events/signed_in_event.dart b/mobile/apps/auth/lib/events/signed_in_event.dart similarity index 100% rename from auth/lib/events/signed_in_event.dart rename to mobile/apps/auth/lib/events/signed_in_event.dart diff --git a/auth/lib/events/signed_out_event.dart b/mobile/apps/auth/lib/events/signed_out_event.dart similarity index 100% rename from auth/lib/events/signed_out_event.dart rename to mobile/apps/auth/lib/events/signed_out_event.dart diff --git a/auth/lib/events/trigger_logout_event.dart b/mobile/apps/auth/lib/events/trigger_logout_event.dart similarity index 100% rename from auth/lib/events/trigger_logout_event.dart rename to mobile/apps/auth/lib/events/trigger_logout_event.dart diff --git a/auth/lib/events/user_details_changed_event.dart b/mobile/apps/auth/lib/events/user_details_changed_event.dart similarity index 100% rename from auth/lib/events/user_details_changed_event.dart rename to mobile/apps/auth/lib/events/user_details_changed_event.dart diff --git a/auth/lib/gateway/authenticator.dart b/mobile/apps/auth/lib/gateway/authenticator.dart similarity index 100% rename from auth/lib/gateway/authenticator.dart rename to mobile/apps/auth/lib/gateway/authenticator.dart diff --git a/auth/lib/l10n/arb/app_ar.arb b/mobile/apps/auth/lib/l10n/arb/app_ar.arb similarity index 100% rename from auth/lib/l10n/arb/app_ar.arb rename to mobile/apps/auth/lib/l10n/arb/app_ar.arb diff --git a/auth/lib/l10n/arb/app_be.arb b/mobile/apps/auth/lib/l10n/arb/app_be.arb similarity index 100% rename from auth/lib/l10n/arb/app_be.arb rename to mobile/apps/auth/lib/l10n/arb/app_be.arb diff --git a/auth/lib/l10n/arb/app_bg.arb b/mobile/apps/auth/lib/l10n/arb/app_bg.arb similarity index 100% rename from auth/lib/l10n/arb/app_bg.arb rename to mobile/apps/auth/lib/l10n/arb/app_bg.arb diff --git a/auth/lib/l10n/arb/app_ca.arb b/mobile/apps/auth/lib/l10n/arb/app_ca.arb similarity index 100% rename from auth/lib/l10n/arb/app_ca.arb rename to mobile/apps/auth/lib/l10n/arb/app_ca.arb diff --git a/auth/lib/l10n/arb/app_cs.arb b/mobile/apps/auth/lib/l10n/arb/app_cs.arb similarity index 100% rename from auth/lib/l10n/arb/app_cs.arb rename to mobile/apps/auth/lib/l10n/arb/app_cs.arb diff --git a/auth/lib/l10n/arb/app_da.arb b/mobile/apps/auth/lib/l10n/arb/app_da.arb similarity index 100% rename from auth/lib/l10n/arb/app_da.arb rename to mobile/apps/auth/lib/l10n/arb/app_da.arb diff --git a/auth/lib/l10n/arb/app_de.arb b/mobile/apps/auth/lib/l10n/arb/app_de.arb similarity index 100% rename from auth/lib/l10n/arb/app_de.arb rename to mobile/apps/auth/lib/l10n/arb/app_de.arb diff --git a/auth/lib/l10n/arb/app_el.arb b/mobile/apps/auth/lib/l10n/arb/app_el.arb similarity index 100% rename from auth/lib/l10n/arb/app_el.arb rename to mobile/apps/auth/lib/l10n/arb/app_el.arb diff --git a/auth/lib/l10n/arb/app_en.arb b/mobile/apps/auth/lib/l10n/arb/app_en.arb similarity index 100% rename from auth/lib/l10n/arb/app_en.arb rename to mobile/apps/auth/lib/l10n/arb/app_en.arb diff --git a/auth/lib/l10n/arb/app_es.arb b/mobile/apps/auth/lib/l10n/arb/app_es.arb similarity index 100% rename from auth/lib/l10n/arb/app_es.arb rename to mobile/apps/auth/lib/l10n/arb/app_es.arb diff --git a/mobile/apps/auth/lib/l10n/arb/app_et.arb b/mobile/apps/auth/lib/l10n/arb/app_et.arb new file mode 100644 index 0000000000..57294fe402 --- /dev/null +++ b/mobile/apps/auth/lib/l10n/arb/app_et.arb @@ -0,0 +1,206 @@ +{ + "account": "Kasutajakonto", + "unlock": "Ava", + "recoveryKey": "Taastevõti", + "counterAppBarTitle": "Loendur", + "@counterAppBarTitle": { + "description": "Text shown in the AppBar of the Counter Page" + }, + "onBoardingBody": "Sinu kaheastmelise autentimise koodide turvaline varundus", + "onBoardingGetStarted": "Alusta", + "setupFirstAccount": "Lisa oma esimene kasutajakonto", + "importScanQrCode": "Skanneeri QR-koodi", + "qrCode": "QR-kood", + "importAccountPageTitle": "Sisesta kasutajakonto üksikasjad", + "secretCanNotBeEmpty": "Saladus ei tohi jääda tühjaks", + "bothIssuerAndAccountCanNotBeEmpty": "Nii kasutajakonto kui väljaandja ei tohi tühjaks jääda", + "incorrectDetails": "Viga üksikasjades", + "pleaseVerifyDetails": "Palun kontrolli andmeid ja proovi uuesti", + "codeIssuerHint": "Väljaandja", + "codeSecretKeyHint": "Salajane võti", + "secret": "Saladus", + "all": "Kõik", + "notes": "Märkmed", + "notesLengthLimit": "Märkmete pikkus võib olla kuni {count} tähemärki", + "@notesLengthLimit": { + "description": "Text to indicate the maximum number of characters allowed for notes", + "placeholders": { + "count": { + "description": "The maximum number of characters allowed for notes", + "type": "int", + "example": "100" + } + } + }, + "codeTagHint": "Silt", + "accountKeyType": "Võtme tüüp", + "sessionExpired": "Sessioon on aegunud", + "@sessionExpired": { + "description": "Title of the dialog when the users current session is invalid/expired" + }, + "pleaseLoginAgain": "Palun logi uuesti sisse", + "loggingOut": "Väljalogimine...", + "saveAction": "Salvesta", + "trash": "Prügikast", + "viewLogsAction": "Vaata logisid", + "preparingLogsTitle": "Valmistan logisid ette...", + "emailLogsTitle": "Logide saatmine e-postiga", + "emailLogsMessage": "Palun saada logid e-posti aadressile {email}", + "@emailLogsMessage": { + "placeholders": { + "email": { + "type": "String" + } + } + }, + "copyEmailAction": "Kopeeri e-posti aadress", + "exportLogsAction": "Ekspordi logid", + "reportABug": "Teata veast", + "contactSupport": "Võtke ühendust klienditoega", + "blog": "Blogi", + "verifyPassword": "Korda salasõna", + "pleaseWait": "Palun oota...", + "generatingEncryptionKeysTitle": "Loon krüptovõtmeid...", + "recreatePassword": "Loo salasõna uuesti", + "useRecoveryKey": "Kasuta taastevõtit", + "incorrectPasswordTitle": "Vale salasõna", + "welcomeBack": "Tere tulemast tagasi!", + "emailAlreadyRegistered": "E-posti aadress on juba registreeritud.", + "emailNotRegistered": "E-posti aadress pole registreeritud.", + "changeEmail": "Muuda e-posti aadressi", + "changePassword": "Muuda salasõna", + "data": "Andmed", + "passwordForDecryptingExport": "Salasõna eksporditud andmete dekrüptimiseks", + "passwordEmptyError": "Salasõna väli ei saa olla tühi", + "ok": "Sobib", + "cancel": "Katkesta", + "yes": "Jah", + "no": "Ei", + "email": "E-post", + "support": "Kasutajatugi", + "settings": "Seadistused", + "copied": "Kopeeritud", + "pleaseTryAgain": "Palun proovi uuesti", + "existingUser": "Olemasolev kasutaja", + "newUser": "Uus kasutaja Ente jaoks", + "delete": "Kustuta", + "enterYourPasswordHint": "Sisesta oma salasõna", + "forgotPassword": "Unustasin salasõna", + "oops": "Vaat kus lops!", + "faq": "KKK", + "somethingWentWrongMessage": "Midagi läks valesti, palun proovi uuesti", + "scan": "Skanneeri", + "scanACode": "Skanneeri QR-koodi", + "verify": "Kinnita", + "verifyEmail": "Kinnita e-posti aadress", + "enterCodeHint": "Sisesta oma autentimisrakendusest\n6-numbriline kood", + "lostDeviceTitle": "Kas kaotasid oma seadme?", + "recoverAccount": "Taasta oma kasutajakonto", + "enterRecoveryKeyHint": "Sisesta oma taastevõti", + "recover": "Taasta", + "invalidQRCode": "Vigane QR-kood", + "noRecoveryKeyTitle": "Sul pole taastevõtit?", + "enterEmailHint": "Sisesta oma e-posti aadress", + "enterNewEmailHint": "Sisesta oma uus e-posti aadress", + "invalidEmailTitle": "Vigane e-posti aadress", + "invalidEmailMessage": "Palun sisesta korrektne e-posti aadress.", + "deleteAccount": "Kustuta kasutajakonto", + "deleteAccountQuery": "Meil on kahju, et soovid lahkuda. Kas sul tekkis mõni viga või probleem?", + "yesSendFeedbackAction": "Jah, saadan tagasisidet", + "noDeleteAccountAction": "Ei, kustuta kasutajakonto", + "initiateAccountDeleteTitle": "Kasutajakonto kustutamiseks palun tuvasta end", + "sendEmail": "Saada e-kiri", + "createNewAccount": "Loo uus kasutajakonto", + "weakStrength": "Nõrk", + "strongStrength": "Tugev", + "moderateStrength": "Keskmine", + "confirmPassword": "Korda salasõna", + "close": "Sulge", + "oopsSomethingWentWrong": "Vaat kus lops! Midagi läks valesti.", + "selectLanguage": "Vali keel", + "language": "Keel", + "security": "Turvalisus", + "lockscreen": "Lukustusvaade", + "search": "Otsi", + "noResult": "Tulemusi pole", + "addCode": "Lisa kood", + "scanAQrCode": "Skanneeri QR-koodi", + "enterDetailsManually": "Sisesta üksikasjad käsitsi", + "edit": "Muuda", + "share": "Jaga", + "shareCodes": "Jaga koodi", + "restore": "Taasta", + "copiedToClipboard": "Kopeeritud lõikelauale", + "copiedNextToClipboard": "Järgmine kood on kopeeritud lõikelauale", + "error": "Viga", + "recoveryKeyCopiedToClipboard": "Taastevõti on kopeeritud lõikelauale", + "recoveryKeyOnForgotPassword": "Kui unustad oma salasõna, siis see krüptovõti on ainus võimalus sinu andmete taastamiseks.", + "saveKey": "Salvesta võti", + "save": "Salvesta", + "send": "Saada", + "back": "Tagasi", + "passwordStrength": "Salasõna tugevus: {passwordStrengthValue}", + "@passwordStrength": { + "description": "Text to indicate the password strength", + "placeholders": { + "passwordStrengthValue": { + "description": "The strength of the password as a string", + "type": "String", + "example": "Weak or Moderate or Strong" + } + }, + "message": "Password Strength: {passwordStrengthText}" + }, + "password": "Salasõna", + "privacyPolicyTitle": "Privaatsusreeglid", + "termsOfServicesTitle": "Kasutustingimused", + "encryption": "Krüptimine", + "setPasswordTitle": "Sisesta salasõna", + "changePasswordTitle": "Muuda salasõna", + "resetPasswordTitle": "Lähtesta salasõna", + "encryptionKeys": "Krüptovõtmed", + "passwordChangedSuccessfully": "Salasõna muutmine õnnestus", + "howItWorks": "Kuidas see töötab", + "ackPasswordLostWarning": "Ma saan aru, et salasõna kaotamisel kaotan ka ligipääsu oma andmetele - minu andmed on ju läbivalt krüptitud.", + "loginTerms": "Sisselogdes nõustun kasutustingimustega ja privaatsusreeglitega", + "logInLabel": "Logi sisse", + "logout": "Logi välja", + "areYouSureYouWantToLogout": "Kas oled kindel, et soovid välja logida?", + "yesLogout": "Jah, logi välja", + "theme": "Kujundus", + "lightTheme": "Hele kujundus", + "darkTheme": "Tume kujundus", + "systemTheme": "Süsteemi kujundus", + "verifyingRecoveryKey": "Kontrollin taastevõtit...", + "recoveryKeyVerified": "Taastevõti on kontrollitud", + "recreatePasswordTitle": "Loo salasõna uuesti", + "tryAgain": "Proovi uuesti", + "privacy": "Privaatsus", + "terms": "Kasutustingimused", + "checkForUpdates": "Kontrolli uuendusi", + "checkStatus": "Kontrolli olekut", + "downloadUpdate": "Laadi alla", + "criticalUpdateAvailable": "Saadaval on kriitiline uuendus", + "updateAvailable": "Saadaval on uuendus", + "update": "Uuenda", + "checking": "Kontrollin...", + "youAreOnTheLatestVersion": "Kasutad viimast versiooni", + "warning": "Hoiatus", + "exportWarningDesc": "Eksporditud failis on privaatsed andmed. Palun hoia seda turvaliselt.", + "iUnderStand": "Sain aru", + "@iUnderStand": { + "description": "Text for the button to confirm the user understands the warning" + }, + "enterPassword": "Sisesta salasõna", + "createNewTag": "Lisa uus silt", + "tag": "Silt", + "create": "Loo", + "editTag": "Muuda silti", + "deleteTagTitle": "Kas kustutame sildi?", + "deleteTagMessage": "Kas sa oled kindel, et soovid selle sildi kustutada? Seda tegevust ei saa tagasi pöörata.", + "updateNotAvailable": "Uuendust pole saadaval", + "reEnterPassword": "Sisesta salasõna uuesti", + "setNewPassword": "Sisesta uus salasõna", + "enterPin": "Sisesta PIN-kood", + "setNewPin": "Määra uus PIN-kood" +} \ No newline at end of file diff --git a/auth/lib/l10n/arb/app_fa.arb b/mobile/apps/auth/lib/l10n/arb/app_fa.arb similarity index 100% rename from auth/lib/l10n/arb/app_fa.arb rename to mobile/apps/auth/lib/l10n/arb/app_fa.arb diff --git a/auth/lib/l10n/arb/app_fi.arb b/mobile/apps/auth/lib/l10n/arb/app_fi.arb similarity index 100% rename from auth/lib/l10n/arb/app_fi.arb rename to mobile/apps/auth/lib/l10n/arb/app_fi.arb diff --git a/auth/lib/l10n/arb/app_fr.arb b/mobile/apps/auth/lib/l10n/arb/app_fr.arb similarity index 100% rename from auth/lib/l10n/arb/app_fr.arb rename to mobile/apps/auth/lib/l10n/arb/app_fr.arb diff --git a/auth/lib/l10n/arb/app_gu.arb b/mobile/apps/auth/lib/l10n/arb/app_gu.arb similarity index 100% rename from auth/lib/l10n/arb/app_gu.arb rename to mobile/apps/auth/lib/l10n/arb/app_gu.arb diff --git a/auth/lib/l10n/arb/app_he.arb b/mobile/apps/auth/lib/l10n/arb/app_he.arb similarity index 100% rename from auth/lib/l10n/arb/app_he.arb rename to mobile/apps/auth/lib/l10n/arb/app_he.arb diff --git a/auth/lib/l10n/arb/app_hi.arb b/mobile/apps/auth/lib/l10n/arb/app_hi.arb similarity index 100% rename from auth/lib/l10n/arb/app_hi.arb rename to mobile/apps/auth/lib/l10n/arb/app_hi.arb diff --git a/auth/lib/l10n/arb/app_hu.arb b/mobile/apps/auth/lib/l10n/arb/app_hu.arb similarity index 98% rename from auth/lib/l10n/arb/app_hu.arb rename to mobile/apps/auth/lib/l10n/arb/app_hu.arb index 68f8c804da..7494047857 100644 --- a/auth/lib/l10n/arb/app_hu.arb +++ b/mobile/apps/auth/lib/l10n/arb/app_hu.arb @@ -18,7 +18,7 @@ "incorrectDetails": "Helytelen adatok", "pleaseVerifyDetails": "Kérjük, ellenőrizd az adataid, majd próbáld meg újra", "codeIssuerHint": "Kibocsátó", - "codeSecretKeyHint": "Titkos (Secret) kulcs", + "codeSecretKeyHint": "Titkos kulcs", "secret": "Titkos kód", "all": "Minden", "notes": "Megjegyzések", @@ -223,7 +223,7 @@ "saveOrSendDescription": "El szeretné menteni ezt a tárhelyére (alapértelmezés szerint a Letöltések mappába), vagy elküldi más alkalmazásoknak?", "saveOnlyDescription": "El szeretné menteni ezt a tárhelyére (alapértelmezés szerint a Letöltések mappába)?", "back": "Vissza", - "createAccount": "Jelszó erőssége:", + "createAccount": "Felhasználó létrehozás", "passwordStrength": "Jelszó erőssége: {passwordStrengthValue}", "@passwordStrength": { "description": "Text to indicate the password strength", @@ -381,7 +381,7 @@ "deleteCodeAuthMessage": "Hitelesítés a kód törléséhez", "showQRAuthMessage": "Hitelesítés a QR kód megjelenítéséhez", "confirmAccountDeleteTitle": "Fiók törlésének megerősítése", - "confirmAccountDeleteMessage": "", + "confirmAccountDeleteMessage": "Ez a fiók össze van kapcsolva más Ente-alkalmazásokkal, ha használ ilyet.\n\nA feltöltött adataid törlését ütemezzük az összes Ente alkalmazásban, és a fiókod véglegesen törlésre kerül.", "androidBiometricHint": "Személyazonosság ellenőrzése", "@androidBiometricHint": { "description": "Hint message advising the user how to authenticate with biometrics. It is used on Android side. Maximum 60 characters." @@ -515,5 +515,9 @@ "loginWithAuthAccount": "Jelentkezzen be Auth fiókjával", "freeStorageOffer": "10% kedvezmény on ente photos", "freeStorageOfferDescription": "Használja az \"AUTH\" kódot, hogy 10% kedvezményt kapjon az első évben", - "type": "Típus" + "advanced": "Haladó", + "algorithm": "Algoritmus", + "type": "Típus", + "period": "Időszak", + "digits": "Számjegyek" } \ No newline at end of file diff --git a/auth/lib/l10n/arb/app_id.arb b/mobile/apps/auth/lib/l10n/arb/app_id.arb similarity index 100% rename from auth/lib/l10n/arb/app_id.arb rename to mobile/apps/auth/lib/l10n/arb/app_id.arb diff --git a/auth/lib/l10n/arb/app_it.arb b/mobile/apps/auth/lib/l10n/arb/app_it.arb similarity index 100% rename from auth/lib/l10n/arb/app_it.arb rename to mobile/apps/auth/lib/l10n/arb/app_it.arb diff --git a/auth/lib/l10n/arb/app_ja.arb b/mobile/apps/auth/lib/l10n/arb/app_ja.arb similarity index 100% rename from auth/lib/l10n/arb/app_ja.arb rename to mobile/apps/auth/lib/l10n/arb/app_ja.arb diff --git a/auth/lib/l10n/arb/app_ka.arb b/mobile/apps/auth/lib/l10n/arb/app_ka.arb similarity index 100% rename from auth/lib/l10n/arb/app_ka.arb rename to mobile/apps/auth/lib/l10n/arb/app_ka.arb diff --git a/auth/lib/l10n/arb/app_km.arb b/mobile/apps/auth/lib/l10n/arb/app_km.arb similarity index 100% rename from auth/lib/l10n/arb/app_km.arb rename to mobile/apps/auth/lib/l10n/arb/app_km.arb diff --git a/auth/lib/l10n/arb/app_ko.arb b/mobile/apps/auth/lib/l10n/arb/app_ko.arb similarity index 100% rename from auth/lib/l10n/arb/app_ko.arb rename to mobile/apps/auth/lib/l10n/arb/app_ko.arb diff --git a/auth/lib/l10n/arb/app_ku.arb b/mobile/apps/auth/lib/l10n/arb/app_ku.arb similarity index 100% rename from auth/lib/l10n/arb/app_ku.arb rename to mobile/apps/auth/lib/l10n/arb/app_ku.arb diff --git a/auth/lib/l10n/arb/app_lt.arb b/mobile/apps/auth/lib/l10n/arb/app_lt.arb similarity index 100% rename from auth/lib/l10n/arb/app_lt.arb rename to mobile/apps/auth/lib/l10n/arb/app_lt.arb diff --git a/auth/lib/l10n/arb/app_lv.arb b/mobile/apps/auth/lib/l10n/arb/app_lv.arb similarity index 100% rename from auth/lib/l10n/arb/app_lv.arb rename to mobile/apps/auth/lib/l10n/arb/app_lv.arb diff --git a/auth/lib/l10n/arb/app_ml.arb b/mobile/apps/auth/lib/l10n/arb/app_ml.arb similarity index 100% rename from auth/lib/l10n/arb/app_ml.arb rename to mobile/apps/auth/lib/l10n/arb/app_ml.arb diff --git a/auth/lib/l10n/arb/app_nl.arb b/mobile/apps/auth/lib/l10n/arb/app_nl.arb similarity index 100% rename from auth/lib/l10n/arb/app_nl.arb rename to mobile/apps/auth/lib/l10n/arb/app_nl.arb diff --git a/auth/lib/l10n/arb/app_or.arb b/mobile/apps/auth/lib/l10n/arb/app_or.arb similarity index 100% rename from auth/lib/l10n/arb/app_or.arb rename to mobile/apps/auth/lib/l10n/arb/app_or.arb diff --git a/auth/lib/l10n/arb/app_pl.arb b/mobile/apps/auth/lib/l10n/arb/app_pl.arb similarity index 100% rename from auth/lib/l10n/arb/app_pl.arb rename to mobile/apps/auth/lib/l10n/arb/app_pl.arb diff --git a/auth/lib/l10n/arb/app_pt.arb b/mobile/apps/auth/lib/l10n/arb/app_pt.arb similarity index 100% rename from auth/lib/l10n/arb/app_pt.arb rename to mobile/apps/auth/lib/l10n/arb/app_pt.arb diff --git a/auth/lib/l10n/arb/app_ro.arb b/mobile/apps/auth/lib/l10n/arb/app_ro.arb similarity index 100% rename from auth/lib/l10n/arb/app_ro.arb rename to mobile/apps/auth/lib/l10n/arb/app_ro.arb diff --git a/auth/lib/l10n/arb/app_ru.arb b/mobile/apps/auth/lib/l10n/arb/app_ru.arb similarity index 98% rename from auth/lib/l10n/arb/app_ru.arb rename to mobile/apps/auth/lib/l10n/arb/app_ru.arb index 0c4d01fe25..d28c0cc888 100644 --- a/auth/lib/l10n/arb/app_ru.arb +++ b/mobile/apps/auth/lib/l10n/arb/app_ru.arb @@ -173,6 +173,7 @@ "invalidQRCode": "Неверный QR-код", "noRecoveryKeyTitle": "Нет ключа восстановления?", "enterEmailHint": "Введите адрес электронной почты", + "enterNewEmailHint": "Введите ваш новый адрес электронной почты", "invalidEmailTitle": "Неверный адрес электронной почты", "invalidEmailMessage": "Пожалуйста, введите действительный адрес электронной почты.", "deleteAccount": "Удалить аккаунт", @@ -334,10 +335,10 @@ } } }, - "manualSort": "Ручная", + "manualSort": "Пользовательская", "editOrder": "Изменить порядок", - "mostFrequentlyUsed": "Частота использования", - "mostRecentlyUsed": "Недавно использованные", + "mostFrequentlyUsed": "Часто используемые", + "mostRecentlyUsed": "Недавно используемые", "activeSessions": "Активные сеансы", "somethingWentWrongPleaseTryAgain": "Что-то пошло не так. Попробуйте еще раз", "thisWillLogYouOutOfThisDevice": "Вы выйдете из этого устройства!", @@ -513,5 +514,10 @@ "free5GB": "5Гб бесплатного пространства на ente Фото", "loginWithAuthAccount": "Войти с помощью учетной записи Auth", "freeStorageOffer": "Скидка 10% на ente фото", - "freeStorageOfferDescription": "Используйте код \"AUTH\", чтобы получить скидку 10% в первый год" + "freeStorageOfferDescription": "Используйте код \"AUTH\", чтобы получить скидку 10% в первый год", + "advanced": "Расширенные", + "algorithm": "Алгоритм", + "type": "Тип", + "period": "Период", + "digits": "Цифр" } \ No newline at end of file diff --git a/auth/lib/l10n/arb/app_sk.arb b/mobile/apps/auth/lib/l10n/arb/app_sk.arb similarity index 100% rename from auth/lib/l10n/arb/app_sk.arb rename to mobile/apps/auth/lib/l10n/arb/app_sk.arb diff --git a/auth/lib/l10n/arb/app_sl.arb b/mobile/apps/auth/lib/l10n/arb/app_sl.arb similarity index 100% rename from auth/lib/l10n/arb/app_sl.arb rename to mobile/apps/auth/lib/l10n/arb/app_sl.arb diff --git a/auth/lib/l10n/arb/app_sr.arb b/mobile/apps/auth/lib/l10n/arb/app_sr.arb similarity index 100% rename from auth/lib/l10n/arb/app_sr.arb rename to mobile/apps/auth/lib/l10n/arb/app_sr.arb diff --git a/auth/lib/l10n/arb/app_sv.arb b/mobile/apps/auth/lib/l10n/arb/app_sv.arb similarity index 100% rename from auth/lib/l10n/arb/app_sv.arb rename to mobile/apps/auth/lib/l10n/arb/app_sv.arb diff --git a/auth/lib/l10n/arb/app_ta.arb b/mobile/apps/auth/lib/l10n/arb/app_ta.arb similarity index 100% rename from auth/lib/l10n/arb/app_ta.arb rename to mobile/apps/auth/lib/l10n/arb/app_ta.arb diff --git a/auth/lib/l10n/arb/app_te.arb b/mobile/apps/auth/lib/l10n/arb/app_te.arb similarity index 100% rename from auth/lib/l10n/arb/app_te.arb rename to mobile/apps/auth/lib/l10n/arb/app_te.arb diff --git a/auth/lib/l10n/arb/app_th.arb b/mobile/apps/auth/lib/l10n/arb/app_th.arb similarity index 100% rename from auth/lib/l10n/arb/app_th.arb rename to mobile/apps/auth/lib/l10n/arb/app_th.arb diff --git a/auth/lib/l10n/arb/app_ti.arb b/mobile/apps/auth/lib/l10n/arb/app_ti.arb similarity index 100% rename from auth/lib/l10n/arb/app_ti.arb rename to mobile/apps/auth/lib/l10n/arb/app_ti.arb diff --git a/auth/lib/l10n/arb/app_tr.arb b/mobile/apps/auth/lib/l10n/arb/app_tr.arb similarity index 100% rename from auth/lib/l10n/arb/app_tr.arb rename to mobile/apps/auth/lib/l10n/arb/app_tr.arb diff --git a/auth/lib/l10n/arb/app_uk.arb b/mobile/apps/auth/lib/l10n/arb/app_uk.arb similarity index 100% rename from auth/lib/l10n/arb/app_uk.arb rename to mobile/apps/auth/lib/l10n/arb/app_uk.arb diff --git a/auth/lib/l10n/arb/app_vi.arb b/mobile/apps/auth/lib/l10n/arb/app_vi.arb similarity index 100% rename from auth/lib/l10n/arb/app_vi.arb rename to mobile/apps/auth/lib/l10n/arb/app_vi.arb diff --git a/auth/lib/l10n/arb/app_zh.arb b/mobile/apps/auth/lib/l10n/arb/app_zh.arb similarity index 100% rename from auth/lib/l10n/arb/app_zh.arb rename to mobile/apps/auth/lib/l10n/arb/app_zh.arb diff --git a/auth/lib/l10n/arb/app_zh_CN.arb b/mobile/apps/auth/lib/l10n/arb/app_zh_CN.arb similarity index 100% rename from auth/lib/l10n/arb/app_zh_CN.arb rename to mobile/apps/auth/lib/l10n/arb/app_zh_CN.arb diff --git a/auth/lib/l10n/arb/app_zh_TW.arb b/mobile/apps/auth/lib/l10n/arb/app_zh_TW.arb similarity index 100% rename from auth/lib/l10n/arb/app_zh_TW.arb rename to mobile/apps/auth/lib/l10n/arb/app_zh_TW.arb diff --git a/auth/lib/l10n/l10n.dart b/mobile/apps/auth/lib/l10n/l10n.dart similarity index 100% rename from auth/lib/l10n/l10n.dart rename to mobile/apps/auth/lib/l10n/l10n.dart diff --git a/auth/lib/locale.dart b/mobile/apps/auth/lib/locale.dart similarity index 100% rename from auth/lib/locale.dart rename to mobile/apps/auth/lib/locale.dart diff --git a/auth/lib/main.dart b/mobile/apps/auth/lib/main.dart similarity index 100% rename from auth/lib/main.dart rename to mobile/apps/auth/lib/main.dart diff --git a/auth/lib/main_development.dart b/mobile/apps/auth/lib/main_development.dart similarity index 100% rename from auth/lib/main_development.dart rename to mobile/apps/auth/lib/main_development.dart diff --git a/auth/lib/main_production.dart b/mobile/apps/auth/lib/main_production.dart similarity index 100% rename from auth/lib/main_production.dart rename to mobile/apps/auth/lib/main_production.dart diff --git a/auth/lib/main_staging.dart b/mobile/apps/auth/lib/main_staging.dart similarity index 100% rename from auth/lib/main_staging.dart rename to mobile/apps/auth/lib/main_staging.dart diff --git a/auth/lib/models/account/two_factor.dart b/mobile/apps/auth/lib/models/account/two_factor.dart similarity index 100% rename from auth/lib/models/account/two_factor.dart rename to mobile/apps/auth/lib/models/account/two_factor.dart diff --git a/auth/lib/models/all_icon_data.dart b/mobile/apps/auth/lib/models/all_icon_data.dart similarity index 100% rename from auth/lib/models/all_icon_data.dart rename to mobile/apps/auth/lib/models/all_icon_data.dart diff --git a/auth/lib/models/api/user/srp.dart b/mobile/apps/auth/lib/models/api/user/srp.dart similarity index 100% rename from auth/lib/models/api/user/srp.dart rename to mobile/apps/auth/lib/models/api/user/srp.dart diff --git a/auth/lib/models/authenticator/auth_entity.dart b/mobile/apps/auth/lib/models/authenticator/auth_entity.dart similarity index 100% rename from auth/lib/models/authenticator/auth_entity.dart rename to mobile/apps/auth/lib/models/authenticator/auth_entity.dart diff --git a/auth/lib/models/authenticator/auth_key.dart b/mobile/apps/auth/lib/models/authenticator/auth_key.dart similarity index 100% rename from auth/lib/models/authenticator/auth_key.dart rename to mobile/apps/auth/lib/models/authenticator/auth_key.dart diff --git a/auth/lib/models/authenticator/entity_result.dart b/mobile/apps/auth/lib/models/authenticator/entity_result.dart similarity index 100% rename from auth/lib/models/authenticator/entity_result.dart rename to mobile/apps/auth/lib/models/authenticator/entity_result.dart diff --git a/auth/lib/models/authenticator/local_auth_entity.dart b/mobile/apps/auth/lib/models/authenticator/local_auth_entity.dart similarity index 100% rename from auth/lib/models/authenticator/local_auth_entity.dart rename to mobile/apps/auth/lib/models/authenticator/local_auth_entity.dart diff --git a/auth/lib/models/billing_plan.dart b/mobile/apps/auth/lib/models/billing_plan.dart similarity index 100% rename from auth/lib/models/billing_plan.dart rename to mobile/apps/auth/lib/models/billing_plan.dart diff --git a/auth/lib/models/code.dart b/mobile/apps/auth/lib/models/code.dart similarity index 100% rename from auth/lib/models/code.dart rename to mobile/apps/auth/lib/models/code.dart diff --git a/auth/lib/models/code_display.dart b/mobile/apps/auth/lib/models/code_display.dart similarity index 100% rename from auth/lib/models/code_display.dart rename to mobile/apps/auth/lib/models/code_display.dart diff --git a/auth/lib/models/delete_account.dart b/mobile/apps/auth/lib/models/delete_account.dart similarity index 100% rename from auth/lib/models/delete_account.dart rename to mobile/apps/auth/lib/models/delete_account.dart diff --git a/auth/lib/models/execution_states.dart b/mobile/apps/auth/lib/models/execution_states.dart similarity index 100% rename from auth/lib/models/execution_states.dart rename to mobile/apps/auth/lib/models/execution_states.dart diff --git a/auth/lib/models/export/ente.dart b/mobile/apps/auth/lib/models/export/ente.dart similarity index 100% rename from auth/lib/models/export/ente.dart rename to mobile/apps/auth/lib/models/export/ente.dart diff --git a/auth/lib/models/key_attributes.dart b/mobile/apps/auth/lib/models/key_attributes.dart similarity index 100% rename from auth/lib/models/key_attributes.dart rename to mobile/apps/auth/lib/models/key_attributes.dart diff --git a/auth/lib/models/key_gen_result.dart b/mobile/apps/auth/lib/models/key_gen_result.dart similarity index 100% rename from auth/lib/models/key_gen_result.dart rename to mobile/apps/auth/lib/models/key_gen_result.dart diff --git a/auth/lib/models/private_key_attributes.dart b/mobile/apps/auth/lib/models/private_key_attributes.dart similarity index 100% rename from auth/lib/models/private_key_attributes.dart rename to mobile/apps/auth/lib/models/private_key_attributes.dart diff --git a/auth/lib/models/protos/googleauth.pb.dart b/mobile/apps/auth/lib/models/protos/googleauth.pb.dart similarity index 100% rename from auth/lib/models/protos/googleauth.pb.dart rename to mobile/apps/auth/lib/models/protos/googleauth.pb.dart diff --git a/auth/lib/models/protos/googleauth.pbenum.dart b/mobile/apps/auth/lib/models/protos/googleauth.pbenum.dart similarity index 100% rename from auth/lib/models/protos/googleauth.pbenum.dart rename to mobile/apps/auth/lib/models/protos/googleauth.pbenum.dart diff --git a/auth/lib/models/protos/googleauth.pbjson.dart b/mobile/apps/auth/lib/models/protos/googleauth.pbjson.dart similarity index 100% rename from auth/lib/models/protos/googleauth.pbjson.dart rename to mobile/apps/auth/lib/models/protos/googleauth.pbjson.dart diff --git a/auth/lib/models/protos/googleauth.pbserver.dart b/mobile/apps/auth/lib/models/protos/googleauth.pbserver.dart similarity index 100% rename from auth/lib/models/protos/googleauth.pbserver.dart rename to mobile/apps/auth/lib/models/protos/googleauth.pbserver.dart diff --git a/auth/lib/models/sessions.dart b/mobile/apps/auth/lib/models/sessions.dart similarity index 100% rename from auth/lib/models/sessions.dart rename to mobile/apps/auth/lib/models/sessions.dart diff --git a/auth/lib/models/set_keys_request.dart b/mobile/apps/auth/lib/models/set_keys_request.dart similarity index 100% rename from auth/lib/models/set_keys_request.dart rename to mobile/apps/auth/lib/models/set_keys_request.dart diff --git a/auth/lib/models/set_recovery_key_request.dart b/mobile/apps/auth/lib/models/set_recovery_key_request.dart similarity index 100% rename from auth/lib/models/set_recovery_key_request.dart rename to mobile/apps/auth/lib/models/set_recovery_key_request.dart diff --git a/auth/lib/models/subscription.dart b/mobile/apps/auth/lib/models/subscription.dart similarity index 100% rename from auth/lib/models/subscription.dart rename to mobile/apps/auth/lib/models/subscription.dart diff --git a/auth/lib/models/typedefs.dart b/mobile/apps/auth/lib/models/typedefs.dart similarity index 100% rename from auth/lib/models/typedefs.dart rename to mobile/apps/auth/lib/models/typedefs.dart diff --git a/auth/lib/models/upload_url.dart b/mobile/apps/auth/lib/models/upload_url.dart similarity index 100% rename from auth/lib/models/upload_url.dart rename to mobile/apps/auth/lib/models/upload_url.dart diff --git a/auth/lib/models/user_details.dart b/mobile/apps/auth/lib/models/user_details.dart similarity index 100% rename from auth/lib/models/user_details.dart rename to mobile/apps/auth/lib/models/user_details.dart diff --git a/auth/lib/onboarding/model/tag_enums.dart b/mobile/apps/auth/lib/onboarding/model/tag_enums.dart similarity index 100% rename from auth/lib/onboarding/model/tag_enums.dart rename to mobile/apps/auth/lib/onboarding/model/tag_enums.dart diff --git a/auth/lib/onboarding/view/common/add_chip.dart b/mobile/apps/auth/lib/onboarding/view/common/add_chip.dart similarity index 100% rename from auth/lib/onboarding/view/common/add_chip.dart rename to mobile/apps/auth/lib/onboarding/view/common/add_chip.dart diff --git a/auth/lib/onboarding/view/common/add_tag.dart b/mobile/apps/auth/lib/onboarding/view/common/add_tag.dart similarity index 100% rename from auth/lib/onboarding/view/common/add_tag.dart rename to mobile/apps/auth/lib/onboarding/view/common/add_tag.dart diff --git a/auth/lib/onboarding/view/common/edit_tag.dart b/mobile/apps/auth/lib/onboarding/view/common/edit_tag.dart similarity index 100% rename from auth/lib/onboarding/view/common/edit_tag.dart rename to mobile/apps/auth/lib/onboarding/view/common/edit_tag.dart diff --git a/auth/lib/onboarding/view/common/field_label.dart b/mobile/apps/auth/lib/onboarding/view/common/field_label.dart similarity index 100% rename from auth/lib/onboarding/view/common/field_label.dart rename to mobile/apps/auth/lib/onboarding/view/common/field_label.dart diff --git a/auth/lib/onboarding/view/common/tag_chip.dart b/mobile/apps/auth/lib/onboarding/view/common/tag_chip.dart similarity index 100% rename from auth/lib/onboarding/view/common/tag_chip.dart rename to mobile/apps/auth/lib/onboarding/view/common/tag_chip.dart diff --git a/auth/lib/onboarding/view/onboarding_page.dart b/mobile/apps/auth/lib/onboarding/view/onboarding_page.dart similarity index 100% rename from auth/lib/onboarding/view/onboarding_page.dart rename to mobile/apps/auth/lib/onboarding/view/onboarding_page.dart diff --git a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart b/mobile/apps/auth/lib/onboarding/view/setup_enter_secret_key_page.dart similarity index 100% rename from auth/lib/onboarding/view/setup_enter_secret_key_page.dart rename to mobile/apps/auth/lib/onboarding/view/setup_enter_secret_key_page.dart diff --git a/auth/lib/onboarding/view/view_qr_page.dart b/mobile/apps/auth/lib/onboarding/view/view_qr_page.dart similarity index 100% rename from auth/lib/onboarding/view/view_qr_page.dart rename to mobile/apps/auth/lib/onboarding/view/view_qr_page.dart diff --git a/auth/lib/services/authenticator_service.dart b/mobile/apps/auth/lib/services/authenticator_service.dart similarity index 100% rename from auth/lib/services/authenticator_service.dart rename to mobile/apps/auth/lib/services/authenticator_service.dart diff --git a/auth/lib/services/billing_service.dart b/mobile/apps/auth/lib/services/billing_service.dart similarity index 100% rename from auth/lib/services/billing_service.dart rename to mobile/apps/auth/lib/services/billing_service.dart diff --git a/auth/lib/services/deduplication_service.dart b/mobile/apps/auth/lib/services/deduplication_service.dart similarity index 100% rename from auth/lib/services/deduplication_service.dart rename to mobile/apps/auth/lib/services/deduplication_service.dart diff --git a/auth/lib/services/local_authentication_service.dart b/mobile/apps/auth/lib/services/local_authentication_service.dart similarity index 100% rename from auth/lib/services/local_authentication_service.dart rename to mobile/apps/auth/lib/services/local_authentication_service.dart diff --git a/auth/lib/services/notification_service.dart b/mobile/apps/auth/lib/services/notification_service.dart similarity index 100% rename from auth/lib/services/notification_service.dart rename to mobile/apps/auth/lib/services/notification_service.dart diff --git a/auth/lib/services/passkey_service.dart b/mobile/apps/auth/lib/services/passkey_service.dart similarity index 100% rename from auth/lib/services/passkey_service.dart rename to mobile/apps/auth/lib/services/passkey_service.dart diff --git a/auth/lib/services/preference_service.dart b/mobile/apps/auth/lib/services/preference_service.dart similarity index 100% rename from auth/lib/services/preference_service.dart rename to mobile/apps/auth/lib/services/preference_service.dart diff --git a/auth/lib/services/update_service.dart b/mobile/apps/auth/lib/services/update_service.dart similarity index 100% rename from auth/lib/services/update_service.dart rename to mobile/apps/auth/lib/services/update_service.dart diff --git a/auth/lib/services/user_service.dart b/mobile/apps/auth/lib/services/user_service.dart similarity index 100% rename from auth/lib/services/user_service.dart rename to mobile/apps/auth/lib/services/user_service.dart diff --git a/auth/lib/services/window_listener_service.dart b/mobile/apps/auth/lib/services/window_listener_service.dart similarity index 100% rename from auth/lib/services/window_listener_service.dart rename to mobile/apps/auth/lib/services/window_listener_service.dart diff --git a/auth/lib/store/authenticator_db.dart b/mobile/apps/auth/lib/store/authenticator_db.dart similarity index 100% rename from auth/lib/store/authenticator_db.dart rename to mobile/apps/auth/lib/store/authenticator_db.dart diff --git a/auth/lib/store/code_display_store.dart b/mobile/apps/auth/lib/store/code_display_store.dart similarity index 100% rename from auth/lib/store/code_display_store.dart rename to mobile/apps/auth/lib/store/code_display_store.dart diff --git a/auth/lib/store/code_store.dart b/mobile/apps/auth/lib/store/code_store.dart similarity index 100% rename from auth/lib/store/code_store.dart rename to mobile/apps/auth/lib/store/code_store.dart diff --git a/auth/lib/store/offline_authenticator_db.dart b/mobile/apps/auth/lib/store/offline_authenticator_db.dart similarity index 100% rename from auth/lib/store/offline_authenticator_db.dart rename to mobile/apps/auth/lib/store/offline_authenticator_db.dart diff --git a/auth/lib/theme/colors.dart b/mobile/apps/auth/lib/theme/colors.dart similarity index 100% rename from auth/lib/theme/colors.dart rename to mobile/apps/auth/lib/theme/colors.dart diff --git a/auth/lib/theme/effects.dart b/mobile/apps/auth/lib/theme/effects.dart similarity index 100% rename from auth/lib/theme/effects.dart rename to mobile/apps/auth/lib/theme/effects.dart diff --git a/auth/lib/theme/ente_theme.dart b/mobile/apps/auth/lib/theme/ente_theme.dart similarity index 100% rename from auth/lib/theme/ente_theme.dart rename to mobile/apps/auth/lib/theme/ente_theme.dart diff --git a/auth/lib/theme/text_style.dart b/mobile/apps/auth/lib/theme/text_style.dart similarity index 100% rename from auth/lib/theme/text_style.dart rename to mobile/apps/auth/lib/theme/text_style.dart diff --git a/auth/lib/ui/account/change_email_dialog.dart b/mobile/apps/auth/lib/ui/account/change_email_dialog.dart similarity index 100% rename from auth/lib/ui/account/change_email_dialog.dart rename to mobile/apps/auth/lib/ui/account/change_email_dialog.dart diff --git a/auth/lib/ui/account/delete_account_page.dart b/mobile/apps/auth/lib/ui/account/delete_account_page.dart similarity index 100% rename from auth/lib/ui/account/delete_account_page.dart rename to mobile/apps/auth/lib/ui/account/delete_account_page.dart diff --git a/auth/lib/ui/account/email_entry_page.dart b/mobile/apps/auth/lib/ui/account/email_entry_page.dart similarity index 100% rename from auth/lib/ui/account/email_entry_page.dart rename to mobile/apps/auth/lib/ui/account/email_entry_page.dart diff --git a/auth/lib/ui/account/login_page.dart b/mobile/apps/auth/lib/ui/account/login_page.dart similarity index 100% rename from auth/lib/ui/account/login_page.dart rename to mobile/apps/auth/lib/ui/account/login_page.dart diff --git a/auth/lib/ui/account/login_pwd_verification_page.dart b/mobile/apps/auth/lib/ui/account/login_pwd_verification_page.dart similarity index 100% rename from auth/lib/ui/account/login_pwd_verification_page.dart rename to mobile/apps/auth/lib/ui/account/login_pwd_verification_page.dart diff --git a/auth/lib/ui/account/logout_dialog.dart b/mobile/apps/auth/lib/ui/account/logout_dialog.dart similarity index 100% rename from auth/lib/ui/account/logout_dialog.dart rename to mobile/apps/auth/lib/ui/account/logout_dialog.dart diff --git a/auth/lib/ui/account/ott_verification_page.dart b/mobile/apps/auth/lib/ui/account/ott_verification_page.dart similarity index 100% rename from auth/lib/ui/account/ott_verification_page.dart rename to mobile/apps/auth/lib/ui/account/ott_verification_page.dart diff --git a/auth/lib/ui/account/password_entry_page.dart b/mobile/apps/auth/lib/ui/account/password_entry_page.dart similarity index 100% rename from auth/lib/ui/account/password_entry_page.dart rename to mobile/apps/auth/lib/ui/account/password_entry_page.dart diff --git a/auth/lib/ui/account/password_reentry_page.dart b/mobile/apps/auth/lib/ui/account/password_reentry_page.dart similarity index 100% rename from auth/lib/ui/account/password_reentry_page.dart rename to mobile/apps/auth/lib/ui/account/password_reentry_page.dart diff --git a/auth/lib/ui/account/recovery_key_page.dart b/mobile/apps/auth/lib/ui/account/recovery_key_page.dart similarity index 100% rename from auth/lib/ui/account/recovery_key_page.dart rename to mobile/apps/auth/lib/ui/account/recovery_key_page.dart diff --git a/auth/lib/ui/account/recovery_page.dart b/mobile/apps/auth/lib/ui/account/recovery_page.dart similarity index 100% rename from auth/lib/ui/account/recovery_page.dart rename to mobile/apps/auth/lib/ui/account/recovery_page.dart diff --git a/auth/lib/ui/account/request_pwd_verification_page.dart b/mobile/apps/auth/lib/ui/account/request_pwd_verification_page.dart similarity index 100% rename from auth/lib/ui/account/request_pwd_verification_page.dart rename to mobile/apps/auth/lib/ui/account/request_pwd_verification_page.dart diff --git a/auth/lib/ui/account/sessions_page.dart b/mobile/apps/auth/lib/ui/account/sessions_page.dart similarity index 100% rename from auth/lib/ui/account/sessions_page.dart rename to mobile/apps/auth/lib/ui/account/sessions_page.dart diff --git a/auth/lib/ui/algorithm_selector_widget.dart b/mobile/apps/auth/lib/ui/algorithm_selector_widget.dart similarity index 100% rename from auth/lib/ui/algorithm_selector_widget.dart rename to mobile/apps/auth/lib/ui/algorithm_selector_widget.dart diff --git a/auth/lib/ui/code_error_widget.dart b/mobile/apps/auth/lib/ui/code_error_widget.dart similarity index 100% rename from auth/lib/ui/code_error_widget.dart rename to mobile/apps/auth/lib/ui/code_error_widget.dart diff --git a/auth/lib/ui/code_timer_progress.dart b/mobile/apps/auth/lib/ui/code_timer_progress.dart similarity index 100% rename from auth/lib/ui/code_timer_progress.dart rename to mobile/apps/auth/lib/ui/code_timer_progress.dart diff --git a/auth/lib/ui/code_widget.dart b/mobile/apps/auth/lib/ui/code_widget.dart similarity index 100% rename from auth/lib/ui/code_widget.dart rename to mobile/apps/auth/lib/ui/code_widget.dart diff --git a/auth/lib/ui/common/dialogs.dart b/mobile/apps/auth/lib/ui/common/dialogs.dart similarity index 100% rename from auth/lib/ui/common/dialogs.dart rename to mobile/apps/auth/lib/ui/common/dialogs.dart diff --git a/auth/lib/ui/common/divider_with_padding.dart b/mobile/apps/auth/lib/ui/common/divider_with_padding.dart similarity index 100% rename from auth/lib/ui/common/divider_with_padding.dart rename to mobile/apps/auth/lib/ui/common/divider_with_padding.dart diff --git a/auth/lib/ui/common/dynamic_fab.dart b/mobile/apps/auth/lib/ui/common/dynamic_fab.dart similarity index 100% rename from auth/lib/ui/common/dynamic_fab.dart rename to mobile/apps/auth/lib/ui/common/dynamic_fab.dart diff --git a/auth/lib/ui/common/gradient_button.dart b/mobile/apps/auth/lib/ui/common/gradient_button.dart similarity index 100% rename from auth/lib/ui/common/gradient_button.dart rename to mobile/apps/auth/lib/ui/common/gradient_button.dart diff --git a/auth/lib/ui/common/loading_widget.dart b/mobile/apps/auth/lib/ui/common/loading_widget.dart similarity index 100% rename from auth/lib/ui/common/loading_widget.dart rename to mobile/apps/auth/lib/ui/common/loading_widget.dart diff --git a/auth/lib/ui/common/progress_dialog.dart b/mobile/apps/auth/lib/ui/common/progress_dialog.dart similarity index 100% rename from auth/lib/ui/common/progress_dialog.dart rename to mobile/apps/auth/lib/ui/common/progress_dialog.dart diff --git a/auth/lib/ui/common/report_bug.dart b/mobile/apps/auth/lib/ui/common/report_bug.dart similarity index 100% rename from auth/lib/ui/common/report_bug.dart rename to mobile/apps/auth/lib/ui/common/report_bug.dart diff --git a/auth/lib/ui/common/web_page.dart b/mobile/apps/auth/lib/ui/common/web_page.dart similarity index 100% rename from auth/lib/ui/common/web_page.dart rename to mobile/apps/auth/lib/ui/common/web_page.dart diff --git a/auth/lib/ui/components/action_sheet_widget.dart b/mobile/apps/auth/lib/ui/components/action_sheet_widget.dart similarity index 100% rename from auth/lib/ui/components/action_sheet_widget.dart rename to mobile/apps/auth/lib/ui/components/action_sheet_widget.dart diff --git a/auth/lib/ui/components/actions_bar_widget.dart b/mobile/apps/auth/lib/ui/components/actions_bar_widget.dart similarity index 100% rename from auth/lib/ui/components/actions_bar_widget.dart rename to mobile/apps/auth/lib/ui/components/actions_bar_widget.dart diff --git a/auth/lib/ui/components/banner_widget.dart b/mobile/apps/auth/lib/ui/components/banner_widget.dart similarity index 100% rename from auth/lib/ui/components/banner_widget.dart rename to mobile/apps/auth/lib/ui/components/banner_widget.dart diff --git a/auth/lib/ui/components/bottom_action_bar_widget.dart b/mobile/apps/auth/lib/ui/components/bottom_action_bar_widget.dart similarity index 100% rename from auth/lib/ui/components/bottom_action_bar_widget.dart rename to mobile/apps/auth/lib/ui/components/bottom_action_bar_widget.dart diff --git a/auth/lib/ui/components/buttons/button_widget.dart b/mobile/apps/auth/lib/ui/components/buttons/button_widget.dart similarity index 100% rename from auth/lib/ui/components/buttons/button_widget.dart rename to mobile/apps/auth/lib/ui/components/buttons/button_widget.dart diff --git a/auth/lib/ui/components/buttons/icon_button_widget.dart b/mobile/apps/auth/lib/ui/components/buttons/icon_button_widget.dart similarity index 100% rename from auth/lib/ui/components/buttons/icon_button_widget.dart rename to mobile/apps/auth/lib/ui/components/buttons/icon_button_widget.dart diff --git a/auth/lib/ui/components/captioned_text_widget.dart b/mobile/apps/auth/lib/ui/components/captioned_text_widget.dart similarity index 100% rename from auth/lib/ui/components/captioned_text_widget.dart rename to mobile/apps/auth/lib/ui/components/captioned_text_widget.dart diff --git a/auth/lib/ui/components/code_selection_actions_widget.dart b/mobile/apps/auth/lib/ui/components/code_selection_actions_widget.dart similarity index 100% rename from auth/lib/ui/components/code_selection_actions_widget.dart rename to mobile/apps/auth/lib/ui/components/code_selection_actions_widget.dart diff --git a/auth/lib/ui/components/components_constants.dart b/mobile/apps/auth/lib/ui/components/components_constants.dart similarity index 100% rename from auth/lib/ui/components/components_constants.dart rename to mobile/apps/auth/lib/ui/components/components_constants.dart diff --git a/auth/lib/ui/components/custom_icon_widget.dart b/mobile/apps/auth/lib/ui/components/custom_icon_widget.dart similarity index 100% rename from auth/lib/ui/components/custom_icon_widget.dart rename to mobile/apps/auth/lib/ui/components/custom_icon_widget.dart diff --git a/auth/lib/ui/components/dialog_widget.dart b/mobile/apps/auth/lib/ui/components/dialog_widget.dart similarity index 100% rename from auth/lib/ui/components/dialog_widget.dart rename to mobile/apps/auth/lib/ui/components/dialog_widget.dart diff --git a/auth/lib/ui/components/divider_widget.dart b/mobile/apps/auth/lib/ui/components/divider_widget.dart similarity index 100% rename from auth/lib/ui/components/divider_widget.dart rename to mobile/apps/auth/lib/ui/components/divider_widget.dart diff --git a/auth/lib/ui/components/expandable_menu_item_widget.dart b/mobile/apps/auth/lib/ui/components/expandable_menu_item_widget.dart similarity index 100% rename from auth/lib/ui/components/expandable_menu_item_widget.dart rename to mobile/apps/auth/lib/ui/components/expandable_menu_item_widget.dart diff --git a/auth/lib/ui/components/menu_item_child_widgets.dart b/mobile/apps/auth/lib/ui/components/menu_item_child_widgets.dart similarity index 100% rename from auth/lib/ui/components/menu_item_child_widgets.dart rename to mobile/apps/auth/lib/ui/components/menu_item_child_widgets.dart diff --git a/auth/lib/ui/components/menu_item_widget.dart b/mobile/apps/auth/lib/ui/components/menu_item_widget.dart similarity index 100% rename from auth/lib/ui/components/menu_item_widget.dart rename to mobile/apps/auth/lib/ui/components/menu_item_widget.dart diff --git a/auth/lib/ui/components/menu_section_description_widget.dart b/mobile/apps/auth/lib/ui/components/menu_section_description_widget.dart similarity index 100% rename from auth/lib/ui/components/menu_section_description_widget.dart rename to mobile/apps/auth/lib/ui/components/menu_section_description_widget.dart diff --git a/auth/lib/ui/components/models/button_result.dart b/mobile/apps/auth/lib/ui/components/models/button_result.dart similarity index 100% rename from auth/lib/ui/components/models/button_result.dart rename to mobile/apps/auth/lib/ui/components/models/button_result.dart diff --git a/auth/lib/ui/components/models/button_type.dart b/mobile/apps/auth/lib/ui/components/models/button_type.dart similarity index 100% rename from auth/lib/ui/components/models/button_type.dart rename to mobile/apps/auth/lib/ui/components/models/button_type.dart diff --git a/auth/lib/ui/components/models/custom_button_style.dart b/mobile/apps/auth/lib/ui/components/models/custom_button_style.dart similarity index 100% rename from auth/lib/ui/components/models/custom_button_style.dart rename to mobile/apps/auth/lib/ui/components/models/custom_button_style.dart diff --git a/auth/lib/ui/components/notification_warning_widget.dart b/mobile/apps/auth/lib/ui/components/notification_warning_widget.dart similarity index 100% rename from auth/lib/ui/components/notification_warning_widget.dart rename to mobile/apps/auth/lib/ui/components/notification_warning_widget.dart diff --git a/auth/lib/ui/components/selection_action_button.dart b/mobile/apps/auth/lib/ui/components/selection_action_button.dart similarity index 100% rename from auth/lib/ui/components/selection_action_button.dart rename to mobile/apps/auth/lib/ui/components/selection_action_button.dart diff --git a/auth/lib/ui/components/separators.dart b/mobile/apps/auth/lib/ui/components/separators.dart similarity index 100% rename from auth/lib/ui/components/separators.dart rename to mobile/apps/auth/lib/ui/components/separators.dart diff --git a/auth/lib/ui/components/text_input_widget.dart b/mobile/apps/auth/lib/ui/components/text_input_widget.dart similarity index 100% rename from auth/lib/ui/components/text_input_widget.dart rename to mobile/apps/auth/lib/ui/components/text_input_widget.dart diff --git a/auth/lib/ui/components/title_bar_title_widget.dart b/mobile/apps/auth/lib/ui/components/title_bar_title_widget.dart similarity index 100% rename from auth/lib/ui/components/title_bar_title_widget.dart rename to mobile/apps/auth/lib/ui/components/title_bar_title_widget.dart diff --git a/auth/lib/ui/components/title_bar_widget.dart b/mobile/apps/auth/lib/ui/components/title_bar_widget.dart similarity index 100% rename from auth/lib/ui/components/title_bar_widget.dart rename to mobile/apps/auth/lib/ui/components/title_bar_widget.dart diff --git a/auth/lib/ui/components/toggle_switch_widget.dart b/mobile/apps/auth/lib/ui/components/toggle_switch_widget.dart similarity index 100% rename from auth/lib/ui/components/toggle_switch_widget.dart rename to mobile/apps/auth/lib/ui/components/toggle_switch_widget.dart diff --git a/auth/lib/ui/custom_icon_page.dart b/mobile/apps/auth/lib/ui/custom_icon_page.dart similarity index 100% rename from auth/lib/ui/custom_icon_page.dart rename to mobile/apps/auth/lib/ui/custom_icon_page.dart diff --git a/auth/lib/ui/home/coach_mark_widget.dart b/mobile/apps/auth/lib/ui/home/coach_mark_widget.dart similarity index 100% rename from auth/lib/ui/home/coach_mark_widget.dart rename to mobile/apps/auth/lib/ui/home/coach_mark_widget.dart diff --git a/auth/lib/ui/home/home_empty_state.dart b/mobile/apps/auth/lib/ui/home/home_empty_state.dart similarity index 100% rename from auth/lib/ui/home/home_empty_state.dart rename to mobile/apps/auth/lib/ui/home/home_empty_state.dart diff --git a/auth/lib/ui/home/speed_dial_label_widget.dart b/mobile/apps/auth/lib/ui/home/speed_dial_label_widget.dart similarity index 100% rename from auth/lib/ui/home/speed_dial_label_widget.dart rename to mobile/apps/auth/lib/ui/home/speed_dial_label_widget.dart diff --git a/auth/lib/ui/home_page.dart b/mobile/apps/auth/lib/ui/home_page.dart similarity index 100% rename from auth/lib/ui/home_page.dart rename to mobile/apps/auth/lib/ui/home_page.dart diff --git a/auth/lib/ui/lifecycle_event_handler.dart b/mobile/apps/auth/lib/ui/lifecycle_event_handler.dart similarity index 100% rename from auth/lib/ui/lifecycle_event_handler.dart rename to mobile/apps/auth/lib/ui/lifecycle_event_handler.dart diff --git a/auth/lib/ui/linear_progress_widget.dart b/mobile/apps/auth/lib/ui/linear_progress_widget.dart similarity index 100% rename from auth/lib/ui/linear_progress_widget.dart rename to mobile/apps/auth/lib/ui/linear_progress_widget.dart diff --git a/auth/lib/ui/passkey_page.dart b/mobile/apps/auth/lib/ui/passkey_page.dart similarity index 100% rename from auth/lib/ui/passkey_page.dart rename to mobile/apps/auth/lib/ui/passkey_page.dart diff --git a/auth/lib/ui/reorder_codes_page.dart b/mobile/apps/auth/lib/ui/reorder_codes_page.dart similarity index 100% rename from auth/lib/ui/reorder_codes_page.dart rename to mobile/apps/auth/lib/ui/reorder_codes_page.dart diff --git a/auth/lib/ui/scanner_gauth_page.dart b/mobile/apps/auth/lib/ui/scanner_gauth_page.dart similarity index 100% rename from auth/lib/ui/scanner_gauth_page.dart rename to mobile/apps/auth/lib/ui/scanner_gauth_page.dart diff --git a/auth/lib/ui/scanner_page.dart b/mobile/apps/auth/lib/ui/scanner_page.dart similarity index 100% rename from auth/lib/ui/scanner_page.dart rename to mobile/apps/auth/lib/ui/scanner_page.dart diff --git a/auth/lib/ui/settings/about_section_widget.dart b/mobile/apps/auth/lib/ui/settings/about_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/about_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/about_section_widget.dart diff --git a/auth/lib/ui/settings/account_section_widget.dart b/mobile/apps/auth/lib/ui/settings/account_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/account_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/account_section_widget.dart diff --git a/auth/lib/ui/settings/app_update_dialog.dart b/mobile/apps/auth/lib/ui/settings/app_update_dialog.dart similarity index 100% rename from auth/lib/ui/settings/app_update_dialog.dart rename to mobile/apps/auth/lib/ui/settings/app_update_dialog.dart diff --git a/auth/lib/ui/settings/app_version_widget.dart b/mobile/apps/auth/lib/ui/settings/app_version_widget.dart similarity index 100% rename from auth/lib/ui/settings/app_version_widget.dart rename to mobile/apps/auth/lib/ui/settings/app_version_widget.dart diff --git a/auth/lib/ui/settings/common_settings.dart b/mobile/apps/auth/lib/ui/settings/common_settings.dart similarity index 100% rename from auth/lib/ui/settings/common_settings.dart rename to mobile/apps/auth/lib/ui/settings/common_settings.dart diff --git a/auth/lib/ui/settings/data/data_section_widget.dart b/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/data/data_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart diff --git a/auth/lib/ui/settings/data/duplicate_code_page.dart b/mobile/apps/auth/lib/ui/settings/data/duplicate_code_page.dart similarity index 100% rename from auth/lib/ui/settings/data/duplicate_code_page.dart rename to mobile/apps/auth/lib/ui/settings/data/duplicate_code_page.dart diff --git a/auth/lib/ui/settings/data/export_widget.dart b/mobile/apps/auth/lib/ui/settings/data/export_widget.dart similarity index 100% rename from auth/lib/ui/settings/data/export_widget.dart rename to mobile/apps/auth/lib/ui/settings/data/export_widget.dart diff --git a/auth/lib/ui/settings/data/html_export.dart b/mobile/apps/auth/lib/ui/settings/data/html_export.dart similarity index 100% rename from auth/lib/ui/settings/data/html_export.dart rename to mobile/apps/auth/lib/ui/settings/data/html_export.dart diff --git a/auth/lib/ui/settings/data/import/aegis_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/aegis_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/aegis_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/aegis_import.dart diff --git a/auth/lib/ui/settings/data/import/bitwarden_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/bitwarden_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/bitwarden_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/bitwarden_import.dart diff --git a/auth/lib/ui/settings/data/import/encrypted_ente_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/encrypted_ente_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/encrypted_ente_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/encrypted_ente_import.dart diff --git a/auth/lib/ui/settings/data/import/google_auth_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/google_auth_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/google_auth_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/google_auth_import.dart diff --git a/auth/lib/ui/settings/data/import/import_service.dart b/mobile/apps/auth/lib/ui/settings/data/import/import_service.dart similarity index 100% rename from auth/lib/ui/settings/data/import/import_service.dart rename to mobile/apps/auth/lib/ui/settings/data/import/import_service.dart diff --git a/auth/lib/ui/settings/data/import/import_success.dart b/mobile/apps/auth/lib/ui/settings/data/import/import_success.dart similarity index 100% rename from auth/lib/ui/settings/data/import/import_success.dart rename to mobile/apps/auth/lib/ui/settings/data/import/import_success.dart diff --git a/auth/lib/ui/settings/data/import/lastpass_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/lastpass_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/lastpass_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/lastpass_import.dart diff --git a/auth/lib/ui/settings/data/import/plain_text_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/plain_text_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/plain_text_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/plain_text_import.dart diff --git a/auth/lib/ui/settings/data/import/raivo_plain_text_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/raivo_plain_text_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/raivo_plain_text_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/raivo_plain_text_import.dart diff --git a/auth/lib/ui/settings/data/import/two_fas_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/two_fas_import.dart similarity index 100% rename from auth/lib/ui/settings/data/import/two_fas_import.dart rename to mobile/apps/auth/lib/ui/settings/data/import/two_fas_import.dart diff --git a/auth/lib/ui/settings/data/import_page.dart b/mobile/apps/auth/lib/ui/settings/data/import_page.dart similarity index 100% rename from auth/lib/ui/settings/data/import_page.dart rename to mobile/apps/auth/lib/ui/settings/data/import_page.dart diff --git a/auth/lib/ui/settings/developer_settings_page.dart b/mobile/apps/auth/lib/ui/settings/developer_settings_page.dart similarity index 100% rename from auth/lib/ui/settings/developer_settings_page.dart rename to mobile/apps/auth/lib/ui/settings/developer_settings_page.dart diff --git a/auth/lib/ui/settings/developer_settings_widget.dart b/mobile/apps/auth/lib/ui/settings/developer_settings_widget.dart similarity index 100% rename from auth/lib/ui/settings/developer_settings_widget.dart rename to mobile/apps/auth/lib/ui/settings/developer_settings_widget.dart diff --git a/auth/lib/ui/settings/general_section_widget.dart b/mobile/apps/auth/lib/ui/settings/general_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/general_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/general_section_widget.dart diff --git a/auth/lib/ui/settings/language_picker.dart b/mobile/apps/auth/lib/ui/settings/language_picker.dart similarity index 100% rename from auth/lib/ui/settings/language_picker.dart rename to mobile/apps/auth/lib/ui/settings/language_picker.dart diff --git a/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_options.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/lock_screen_options.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_options.dart diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_password.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_password.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/lock_screen_password.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_password.dart diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_pin.dart b/mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_pin.dart similarity index 100% rename from auth/lib/ui/settings/lock_screen/lock_screen_pin.dart rename to mobile/apps/auth/lib/ui/settings/lock_screen/lock_screen_pin.dart diff --git a/auth/lib/ui/settings/notification_banner_widget.dart b/mobile/apps/auth/lib/ui/settings/notification_banner_widget.dart similarity index 100% rename from auth/lib/ui/settings/notification_banner_widget.dart rename to mobile/apps/auth/lib/ui/settings/notification_banner_widget.dart diff --git a/auth/lib/ui/settings/security_section_widget.dart b/mobile/apps/auth/lib/ui/settings/security_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/security_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/security_section_widget.dart diff --git a/auth/lib/ui/settings/settings_section_title.dart b/mobile/apps/auth/lib/ui/settings/settings_section_title.dart similarity index 100% rename from auth/lib/ui/settings/settings_section_title.dart rename to mobile/apps/auth/lib/ui/settings/settings_section_title.dart diff --git a/auth/lib/ui/settings/social_section_widget.dart b/mobile/apps/auth/lib/ui/settings/social_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/social_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/social_section_widget.dart diff --git a/auth/lib/ui/settings/support_section_widget.dart b/mobile/apps/auth/lib/ui/settings/support_section_widget.dart similarity index 100% rename from auth/lib/ui/settings/support_section_widget.dart rename to mobile/apps/auth/lib/ui/settings/support_section_widget.dart diff --git a/auth/lib/ui/settings/theme_switch_widget.dart b/mobile/apps/auth/lib/ui/settings/theme_switch_widget.dart similarity index 100% rename from auth/lib/ui/settings/theme_switch_widget.dart rename to mobile/apps/auth/lib/ui/settings/theme_switch_widget.dart diff --git a/auth/lib/ui/settings/title_bar_widget.dart b/mobile/apps/auth/lib/ui/settings/title_bar_widget.dart similarity index 100% rename from auth/lib/ui/settings/title_bar_widget.dart rename to mobile/apps/auth/lib/ui/settings/title_bar_widget.dart diff --git a/auth/lib/ui/settings_page.dart b/mobile/apps/auth/lib/ui/settings_page.dart similarity index 100% rename from auth/lib/ui/settings_page.dart rename to mobile/apps/auth/lib/ui/settings_page.dart diff --git a/auth/lib/ui/share/code_share.dart b/mobile/apps/auth/lib/ui/share/code_share.dart similarity index 100% rename from auth/lib/ui/share/code_share.dart rename to mobile/apps/auth/lib/ui/share/code_share.dart diff --git a/auth/lib/ui/sort_option_menu.dart b/mobile/apps/auth/lib/ui/sort_option_menu.dart similarity index 100% rename from auth/lib/ui/sort_option_menu.dart rename to mobile/apps/auth/lib/ui/sort_option_menu.dart diff --git a/auth/lib/ui/tools/app_lock.dart b/mobile/apps/auth/lib/ui/tools/app_lock.dart similarity index 100% rename from auth/lib/ui/tools/app_lock.dart rename to mobile/apps/auth/lib/ui/tools/app_lock.dart diff --git a/auth/lib/ui/tools/debug/log_file_viewer.dart b/mobile/apps/auth/lib/ui/tools/debug/log_file_viewer.dart similarity index 100% rename from auth/lib/ui/tools/debug/log_file_viewer.dart rename to mobile/apps/auth/lib/ui/tools/debug/log_file_viewer.dart diff --git a/auth/lib/ui/tools/debug/raw_codes_viewer.dart b/mobile/apps/auth/lib/ui/tools/debug/raw_codes_viewer.dart similarity index 100% rename from auth/lib/ui/tools/debug/raw_codes_viewer.dart rename to mobile/apps/auth/lib/ui/tools/debug/raw_codes_viewer.dart diff --git a/auth/lib/ui/tools/lock_screen.dart b/mobile/apps/auth/lib/ui/tools/lock_screen.dart similarity index 100% rename from auth/lib/ui/tools/lock_screen.dart rename to mobile/apps/auth/lib/ui/tools/lock_screen.dart diff --git a/auth/lib/ui/topt_selector_widget.dart b/mobile/apps/auth/lib/ui/topt_selector_widget.dart similarity index 100% rename from auth/lib/ui/topt_selector_widget.dart rename to mobile/apps/auth/lib/ui/topt_selector_widget.dart diff --git a/auth/lib/ui/two_factor_authentication_page.dart b/mobile/apps/auth/lib/ui/two_factor_authentication_page.dart similarity index 100% rename from auth/lib/ui/two_factor_authentication_page.dart rename to mobile/apps/auth/lib/ui/two_factor_authentication_page.dart diff --git a/auth/lib/ui/two_factor_recovery_page.dart b/mobile/apps/auth/lib/ui/two_factor_recovery_page.dart similarity index 100% rename from auth/lib/ui/two_factor_recovery_page.dart rename to mobile/apps/auth/lib/ui/two_factor_recovery_page.dart diff --git a/auth/lib/ui/utils/icon_utils.dart b/mobile/apps/auth/lib/ui/utils/icon_utils.dart similarity index 100% rename from auth/lib/ui/utils/icon_utils.dart rename to mobile/apps/auth/lib/ui/utils/icon_utils.dart diff --git a/auth/lib/utils/auth_util.dart b/mobile/apps/auth/lib/utils/auth_util.dart similarity index 100% rename from auth/lib/utils/auth_util.dart rename to mobile/apps/auth/lib/utils/auth_util.dart diff --git a/auth/lib/utils/date_time_util.dart b/mobile/apps/auth/lib/utils/date_time_util.dart similarity index 100% rename from auth/lib/utils/date_time_util.dart rename to mobile/apps/auth/lib/utils/date_time_util.dart diff --git a/auth/lib/utils/debouncer.dart b/mobile/apps/auth/lib/utils/debouncer.dart similarity index 100% rename from auth/lib/utils/debouncer.dart rename to mobile/apps/auth/lib/utils/debouncer.dart diff --git a/auth/lib/utils/dialog_util.dart b/mobile/apps/auth/lib/utils/dialog_util.dart similarity index 100% rename from auth/lib/utils/dialog_util.dart rename to mobile/apps/auth/lib/utils/dialog_util.dart diff --git a/auth/lib/utils/directory_utils.dart b/mobile/apps/auth/lib/utils/directory_utils.dart similarity index 100% rename from auth/lib/utils/directory_utils.dart rename to mobile/apps/auth/lib/utils/directory_utils.dart diff --git a/auth/lib/utils/email_util.dart b/mobile/apps/auth/lib/utils/email_util.dart similarity index 100% rename from auth/lib/utils/email_util.dart rename to mobile/apps/auth/lib/utils/email_util.dart diff --git a/auth/lib/utils/lock_screen_settings.dart b/mobile/apps/auth/lib/utils/lock_screen_settings.dart similarity index 100% rename from auth/lib/utils/lock_screen_settings.dart rename to mobile/apps/auth/lib/utils/lock_screen_settings.dart diff --git a/auth/lib/utils/navigation_util.dart b/mobile/apps/auth/lib/utils/navigation_util.dart similarity index 100% rename from auth/lib/utils/navigation_util.dart rename to mobile/apps/auth/lib/utils/navigation_util.dart diff --git a/auth/lib/utils/package_info_util.dart b/mobile/apps/auth/lib/utils/package_info_util.dart similarity index 100% rename from auth/lib/utils/package_info_util.dart rename to mobile/apps/auth/lib/utils/package_info_util.dart diff --git a/auth/lib/utils/platform_util.dart b/mobile/apps/auth/lib/utils/platform_util.dart similarity index 100% rename from auth/lib/utils/platform_util.dart rename to mobile/apps/auth/lib/utils/platform_util.dart diff --git a/auth/lib/utils/share_utils.dart b/mobile/apps/auth/lib/utils/share_utils.dart similarity index 100% rename from auth/lib/utils/share_utils.dart rename to mobile/apps/auth/lib/utils/share_utils.dart diff --git a/auth/lib/utils/toast_util.dart b/mobile/apps/auth/lib/utils/toast_util.dart similarity index 100% rename from auth/lib/utils/toast_util.dart rename to mobile/apps/auth/lib/utils/toast_util.dart diff --git a/auth/lib/utils/totp_util.dart b/mobile/apps/auth/lib/utils/totp_util.dart similarity index 100% rename from auth/lib/utils/totp_util.dart rename to mobile/apps/auth/lib/utils/totp_util.dart diff --git a/auth/lib/utils/window_protocol_handler.dart b/mobile/apps/auth/lib/utils/window_protocol_handler.dart similarity index 100% rename from auth/lib/utils/window_protocol_handler.dart rename to mobile/apps/auth/lib/utils/window_protocol_handler.dart diff --git a/auth/linux/.gitignore b/mobile/apps/auth/linux/.gitignore similarity index 100% rename from auth/linux/.gitignore rename to mobile/apps/auth/linux/.gitignore diff --git a/auth/linux/CMakeLists.txt b/mobile/apps/auth/linux/CMakeLists.txt similarity index 100% rename from auth/linux/CMakeLists.txt rename to mobile/apps/auth/linux/CMakeLists.txt diff --git a/auth/linux/flutter/CMakeLists.txt b/mobile/apps/auth/linux/flutter/CMakeLists.txt similarity index 100% rename from auth/linux/flutter/CMakeLists.txt rename to mobile/apps/auth/linux/flutter/CMakeLists.txt diff --git a/auth/linux/flutter/generated_plugin_registrant.cc b/mobile/apps/auth/linux/flutter/generated_plugin_registrant.cc similarity index 100% rename from auth/linux/flutter/generated_plugin_registrant.cc rename to mobile/apps/auth/linux/flutter/generated_plugin_registrant.cc diff --git a/auth/linux/flutter/generated_plugin_registrant.h b/mobile/apps/auth/linux/flutter/generated_plugin_registrant.h similarity index 100% rename from auth/linux/flutter/generated_plugin_registrant.h rename to mobile/apps/auth/linux/flutter/generated_plugin_registrant.h diff --git a/auth/linux/flutter/generated_plugins.cmake b/mobile/apps/auth/linux/flutter/generated_plugins.cmake similarity index 100% rename from auth/linux/flutter/generated_plugins.cmake rename to mobile/apps/auth/linux/flutter/generated_plugins.cmake diff --git a/auth/linux/main.cc b/mobile/apps/auth/linux/main.cc similarity index 100% rename from auth/linux/main.cc rename to mobile/apps/auth/linux/main.cc diff --git a/auth/linux/my_application.cc b/mobile/apps/auth/linux/my_application.cc similarity index 100% rename from auth/linux/my_application.cc rename to mobile/apps/auth/linux/my_application.cc diff --git a/auth/linux/my_application.h b/mobile/apps/auth/linux/my_application.h similarity index 100% rename from auth/linux/my_application.h rename to mobile/apps/auth/linux/my_application.h diff --git a/auth/linux/packaging/appimage/make_config.yaml b/mobile/apps/auth/linux/packaging/appimage/make_config.yaml similarity index 100% rename from auth/linux/packaging/appimage/make_config.yaml rename to mobile/apps/auth/linux/packaging/appimage/make_config.yaml diff --git a/auth/linux/packaging/deb/make_config.yaml b/mobile/apps/auth/linux/packaging/deb/make_config.yaml similarity index 100% rename from auth/linux/packaging/deb/make_config.yaml rename to mobile/apps/auth/linux/packaging/deb/make_config.yaml diff --git a/auth/linux/packaging/enteauth.appdata.xml b/mobile/apps/auth/linux/packaging/enteauth.appdata.xml similarity index 100% rename from auth/linux/packaging/enteauth.appdata.xml rename to mobile/apps/auth/linux/packaging/enteauth.appdata.xml diff --git a/auth/linux/packaging/pacman/make_config.yaml b/mobile/apps/auth/linux/packaging/pacman/make_config.yaml similarity index 100% rename from auth/linux/packaging/pacman/make_config.yaml rename to mobile/apps/auth/linux/packaging/pacman/make_config.yaml diff --git a/auth/linux/packaging/rpm/make_config.yaml b/mobile/apps/auth/linux/packaging/rpm/make_config.yaml similarity index 100% rename from auth/linux/packaging/rpm/make_config.yaml rename to mobile/apps/auth/linux/packaging/rpm/make_config.yaml diff --git a/auth/macos/.gitignore b/mobile/apps/auth/macos/.gitignore similarity index 100% rename from auth/macos/.gitignore rename to mobile/apps/auth/macos/.gitignore diff --git a/auth/macos/Flutter/Flutter-Debug.xcconfig b/mobile/apps/auth/macos/Flutter/Flutter-Debug.xcconfig similarity index 100% rename from auth/macos/Flutter/Flutter-Debug.xcconfig rename to mobile/apps/auth/macos/Flutter/Flutter-Debug.xcconfig diff --git a/auth/macos/Flutter/Flutter-Release.xcconfig b/mobile/apps/auth/macos/Flutter/Flutter-Release.xcconfig similarity index 100% rename from auth/macos/Flutter/Flutter-Release.xcconfig rename to mobile/apps/auth/macos/Flutter/Flutter-Release.xcconfig diff --git a/auth/macos/Flutter/GeneratedPluginRegistrant.swift b/mobile/apps/auth/macos/Flutter/GeneratedPluginRegistrant.swift similarity index 100% rename from auth/macos/Flutter/GeneratedPluginRegistrant.swift rename to mobile/apps/auth/macos/Flutter/GeneratedPluginRegistrant.swift diff --git a/auth/macos/Podfile b/mobile/apps/auth/macos/Podfile similarity index 100% rename from auth/macos/Podfile rename to mobile/apps/auth/macos/Podfile diff --git a/auth/macos/Podfile.lock b/mobile/apps/auth/macos/Podfile.lock similarity index 100% rename from auth/macos/Podfile.lock rename to mobile/apps/auth/macos/Podfile.lock diff --git a/auth/macos/Runner.xcodeproj/project.pbxproj b/mobile/apps/auth/macos/Runner.xcodeproj/project.pbxproj similarity index 100% rename from auth/macos/Runner.xcodeproj/project.pbxproj rename to mobile/apps/auth/macos/Runner.xcodeproj/project.pbxproj diff --git a/auth/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/mobile/apps/auth/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from auth/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to mobile/apps/auth/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/auth/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/mobile/apps/auth/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from auth/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to mobile/apps/auth/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/auth/macos/Runner.xcworkspace/contents.xcworkspacedata b/mobile/apps/auth/macos/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from auth/macos/Runner.xcworkspace/contents.xcworkspacedata rename to mobile/apps/auth/macos/Runner.xcworkspace/contents.xcworkspacedata diff --git a/auth/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/mobile/apps/auth/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from auth/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to mobile/apps/auth/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/auth/macos/Runner/AppDelegate.swift b/mobile/apps/auth/macos/Runner/AppDelegate.swift similarity index 100% rename from auth/macos/Runner/AppDelegate.swift rename to mobile/apps/auth/macos/Runner/AppDelegate.swift diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/128-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/128-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/128-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/128-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/16-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/16-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/16-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/16-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/256-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/256-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/256-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/256-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/32-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/32-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/32-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/32-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/512-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/512-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/512-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/512-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/64-mac.png b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/64-mac.png similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/64-mac.png rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/64-mac.png diff --git a/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to mobile/apps/auth/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/auth/macos/Runner/Base.lproj/MainMenu.xib b/mobile/apps/auth/macos/Runner/Base.lproj/MainMenu.xib similarity index 100% rename from auth/macos/Runner/Base.lproj/MainMenu.xib rename to mobile/apps/auth/macos/Runner/Base.lproj/MainMenu.xib diff --git a/auth/macos/Runner/Configs/AppInfo.xcconfig b/mobile/apps/auth/macos/Runner/Configs/AppInfo.xcconfig similarity index 100% rename from auth/macos/Runner/Configs/AppInfo.xcconfig rename to mobile/apps/auth/macos/Runner/Configs/AppInfo.xcconfig diff --git a/auth/macos/Runner/Configs/Debug.xcconfig b/mobile/apps/auth/macos/Runner/Configs/Debug.xcconfig similarity index 100% rename from auth/macos/Runner/Configs/Debug.xcconfig rename to mobile/apps/auth/macos/Runner/Configs/Debug.xcconfig diff --git a/auth/macos/Runner/Configs/Release.xcconfig b/mobile/apps/auth/macos/Runner/Configs/Release.xcconfig similarity index 100% rename from auth/macos/Runner/Configs/Release.xcconfig rename to mobile/apps/auth/macos/Runner/Configs/Release.xcconfig diff --git a/auth/macos/Runner/Configs/Warnings.xcconfig b/mobile/apps/auth/macos/Runner/Configs/Warnings.xcconfig similarity index 100% rename from auth/macos/Runner/Configs/Warnings.xcconfig rename to mobile/apps/auth/macos/Runner/Configs/Warnings.xcconfig diff --git a/auth/macos/Runner/DebugProfile.entitlements b/mobile/apps/auth/macos/Runner/DebugProfile.entitlements similarity index 100% rename from auth/macos/Runner/DebugProfile.entitlements rename to mobile/apps/auth/macos/Runner/DebugProfile.entitlements diff --git a/auth/macos/Runner/Info.plist b/mobile/apps/auth/macos/Runner/Info.plist similarity index 100% rename from auth/macos/Runner/Info.plist rename to mobile/apps/auth/macos/Runner/Info.plist diff --git a/auth/macos/Runner/MainFlutterWindow.swift b/mobile/apps/auth/macos/Runner/MainFlutterWindow.swift similarity index 100% rename from auth/macos/Runner/MainFlutterWindow.swift rename to mobile/apps/auth/macos/Runner/MainFlutterWindow.swift diff --git a/auth/macos/Runner/Release.entitlements b/mobile/apps/auth/macos/Runner/Release.entitlements similarity index 100% rename from auth/macos/Runner/Release.entitlements rename to mobile/apps/auth/macos/Runner/Release.entitlements diff --git a/auth/macos/build/.last_build_id b/mobile/apps/auth/macos/build/.last_build_id similarity index 100% rename from auth/macos/build/.last_build_id rename to mobile/apps/auth/macos/build/.last_build_id diff --git a/auth/macos/packaging/dmg/make_config.yaml b/mobile/apps/auth/macos/packaging/dmg/make_config.yaml similarity index 100% rename from auth/macos/packaging/dmg/make_config.yaml rename to mobile/apps/auth/macos/packaging/dmg/make_config.yaml diff --git a/auth/migration-guides/README.md b/mobile/apps/auth/migration-guides/README.md similarity index 100% rename from auth/migration-guides/README.md rename to mobile/apps/auth/migration-guides/README.md diff --git a/auth/migration-guides/authy.md b/mobile/apps/auth/migration-guides/authy.md similarity index 100% rename from auth/migration-guides/authy.md rename to mobile/apps/auth/migration-guides/authy.md diff --git a/auth/migration-guides/encrypted_export.md b/mobile/apps/auth/migration-guides/encrypted_export.md similarity index 100% rename from auth/migration-guides/encrypted_export.md rename to mobile/apps/auth/migration-guides/encrypted_export.md diff --git a/auth/protos/googleauth.proto b/mobile/apps/auth/protos/googleauth.proto similarity index 100% rename from auth/protos/googleauth.proto rename to mobile/apps/auth/protos/googleauth.proto diff --git a/auth/pubspec.lock b/mobile/apps/auth/pubspec.lock similarity index 100% rename from auth/pubspec.lock rename to mobile/apps/auth/pubspec.lock diff --git a/auth/pubspec.yaml b/mobile/apps/auth/pubspec.yaml similarity index 100% rename from auth/pubspec.yaml rename to mobile/apps/auth/pubspec.yaml diff --git a/auth/screenshots/screenshots.png b/mobile/apps/auth/screenshots/screenshots.png similarity index 100% rename from auth/screenshots/screenshots.png rename to mobile/apps/auth/screenshots/screenshots.png diff --git a/auth/scripts/release_tag.sh b/mobile/apps/auth/scripts/release_tag.sh similarity index 100% rename from auth/scripts/release_tag.sh rename to mobile/apps/auth/scripts/release_tag.sh diff --git a/auth/test/helpers/helpers.dart b/mobile/apps/auth/test/helpers/helpers.dart similarity index 100% rename from auth/test/helpers/helpers.dart rename to mobile/apps/auth/test/helpers/helpers.dart diff --git a/auth/test/helpers/pump_app.dart b/mobile/apps/auth/test/helpers/pump_app.dart similarity index 100% rename from auth/test/helpers/pump_app.dart rename to mobile/apps/auth/test/helpers/pump_app.dart diff --git a/auth/test/models/code_test.dart b/mobile/apps/auth/test/models/code_test.dart similarity index 100% rename from auth/test/models/code_test.dart rename to mobile/apps/auth/test/models/code_test.dart diff --git a/auth/web/favicon.png b/mobile/apps/auth/web/favicon.png similarity index 100% rename from auth/web/favicon.png rename to mobile/apps/auth/web/favicon.png diff --git a/auth/web/icons/Icon-192.png b/mobile/apps/auth/web/icons/Icon-192.png similarity index 100% rename from auth/web/icons/Icon-192.png rename to mobile/apps/auth/web/icons/Icon-192.png diff --git a/auth/web/icons/Icon-512.png b/mobile/apps/auth/web/icons/Icon-512.png similarity index 100% rename from auth/web/icons/Icon-512.png rename to mobile/apps/auth/web/icons/Icon-512.png diff --git a/auth/web/icons/favicon.png b/mobile/apps/auth/web/icons/favicon.png similarity index 100% rename from auth/web/icons/favicon.png rename to mobile/apps/auth/web/icons/favicon.png diff --git a/auth/web/index.html b/mobile/apps/auth/web/index.html similarity index 100% rename from auth/web/index.html rename to mobile/apps/auth/web/index.html diff --git a/auth/web/manifest.json b/mobile/apps/auth/web/manifest.json similarity index 100% rename from auth/web/manifest.json rename to mobile/apps/auth/web/manifest.json diff --git a/auth/web/splash/img/dark-1x.png b/mobile/apps/auth/web/splash/img/dark-1x.png similarity index 100% rename from auth/web/splash/img/dark-1x.png rename to mobile/apps/auth/web/splash/img/dark-1x.png diff --git a/auth/web/splash/img/dark-2x.png b/mobile/apps/auth/web/splash/img/dark-2x.png similarity index 100% rename from auth/web/splash/img/dark-2x.png rename to mobile/apps/auth/web/splash/img/dark-2x.png diff --git a/auth/web/splash/img/dark-3x.png b/mobile/apps/auth/web/splash/img/dark-3x.png similarity index 100% rename from auth/web/splash/img/dark-3x.png rename to mobile/apps/auth/web/splash/img/dark-3x.png diff --git a/auth/web/splash/img/dark-4x.png b/mobile/apps/auth/web/splash/img/dark-4x.png similarity index 100% rename from auth/web/splash/img/dark-4x.png rename to mobile/apps/auth/web/splash/img/dark-4x.png diff --git a/auth/web/splash/img/light-1x.png b/mobile/apps/auth/web/splash/img/light-1x.png similarity index 100% rename from auth/web/splash/img/light-1x.png rename to mobile/apps/auth/web/splash/img/light-1x.png diff --git a/auth/web/splash/img/light-2x.png b/mobile/apps/auth/web/splash/img/light-2x.png similarity index 100% rename from auth/web/splash/img/light-2x.png rename to mobile/apps/auth/web/splash/img/light-2x.png diff --git a/auth/web/splash/img/light-3x.png b/mobile/apps/auth/web/splash/img/light-3x.png similarity index 100% rename from auth/web/splash/img/light-3x.png rename to mobile/apps/auth/web/splash/img/light-3x.png diff --git a/auth/web/splash/img/light-4x.png b/mobile/apps/auth/web/splash/img/light-4x.png similarity index 100% rename from auth/web/splash/img/light-4x.png rename to mobile/apps/auth/web/splash/img/light-4x.png diff --git a/auth/web/splash/splash.js b/mobile/apps/auth/web/splash/splash.js similarity index 100% rename from auth/web/splash/splash.js rename to mobile/apps/auth/web/splash/splash.js diff --git a/auth/web/splash/style.css b/mobile/apps/auth/web/splash/style.css similarity index 100% rename from auth/web/splash/style.css rename to mobile/apps/auth/web/splash/style.css diff --git a/auth/windows/.gitignore b/mobile/apps/auth/windows/.gitignore similarity index 100% rename from auth/windows/.gitignore rename to mobile/apps/auth/windows/.gitignore diff --git a/auth/windows/CMakeLists.txt b/mobile/apps/auth/windows/CMakeLists.txt similarity index 100% rename from auth/windows/CMakeLists.txt rename to mobile/apps/auth/windows/CMakeLists.txt diff --git a/auth/windows/flutter/CMakeLists.txt b/mobile/apps/auth/windows/flutter/CMakeLists.txt similarity index 100% rename from auth/windows/flutter/CMakeLists.txt rename to mobile/apps/auth/windows/flutter/CMakeLists.txt diff --git a/auth/windows/flutter/generated_plugin_registrant.cc b/mobile/apps/auth/windows/flutter/generated_plugin_registrant.cc similarity index 100% rename from auth/windows/flutter/generated_plugin_registrant.cc rename to mobile/apps/auth/windows/flutter/generated_plugin_registrant.cc diff --git a/auth/windows/flutter/generated_plugin_registrant.h b/mobile/apps/auth/windows/flutter/generated_plugin_registrant.h similarity index 100% rename from auth/windows/flutter/generated_plugin_registrant.h rename to mobile/apps/auth/windows/flutter/generated_plugin_registrant.h diff --git a/auth/windows/flutter/generated_plugins.cmake b/mobile/apps/auth/windows/flutter/generated_plugins.cmake similarity index 100% rename from auth/windows/flutter/generated_plugins.cmake rename to mobile/apps/auth/windows/flutter/generated_plugins.cmake diff --git a/auth/windows/packaging/exe/inno_setup.iss b/mobile/apps/auth/windows/packaging/exe/inno_setup.iss similarity index 100% rename from auth/windows/packaging/exe/inno_setup.iss rename to mobile/apps/auth/windows/packaging/exe/inno_setup.iss diff --git a/auth/windows/packaging/exe/make_config.yaml b/mobile/apps/auth/windows/packaging/exe/make_config.yaml similarity index 100% rename from auth/windows/packaging/exe/make_config.yaml rename to mobile/apps/auth/windows/packaging/exe/make_config.yaml diff --git a/auth/windows/runner/CMakeLists.txt b/mobile/apps/auth/windows/runner/CMakeLists.txt similarity index 100% rename from auth/windows/runner/CMakeLists.txt rename to mobile/apps/auth/windows/runner/CMakeLists.txt diff --git a/auth/windows/runner/Runner.rc b/mobile/apps/auth/windows/runner/Runner.rc similarity index 100% rename from auth/windows/runner/Runner.rc rename to mobile/apps/auth/windows/runner/Runner.rc diff --git a/auth/windows/runner/flutter_window.cpp b/mobile/apps/auth/windows/runner/flutter_window.cpp similarity index 100% rename from auth/windows/runner/flutter_window.cpp rename to mobile/apps/auth/windows/runner/flutter_window.cpp diff --git a/auth/windows/runner/flutter_window.h b/mobile/apps/auth/windows/runner/flutter_window.h similarity index 100% rename from auth/windows/runner/flutter_window.h rename to mobile/apps/auth/windows/runner/flutter_window.h diff --git a/auth/windows/runner/main.cpp b/mobile/apps/auth/windows/runner/main.cpp similarity index 100% rename from auth/windows/runner/main.cpp rename to mobile/apps/auth/windows/runner/main.cpp diff --git a/auth/windows/runner/resource.h b/mobile/apps/auth/windows/runner/resource.h similarity index 100% rename from auth/windows/runner/resource.h rename to mobile/apps/auth/windows/runner/resource.h diff --git a/auth/windows/runner/resources/app_icon.ico b/mobile/apps/auth/windows/runner/resources/app_icon.ico similarity index 100% rename from auth/windows/runner/resources/app_icon.ico rename to mobile/apps/auth/windows/runner/resources/app_icon.ico diff --git a/auth/windows/runner/runner.exe.manifest b/mobile/apps/auth/windows/runner/runner.exe.manifest similarity index 100% rename from auth/windows/runner/runner.exe.manifest rename to mobile/apps/auth/windows/runner/runner.exe.manifest diff --git a/auth/windows/runner/utils.cpp b/mobile/apps/auth/windows/runner/utils.cpp similarity index 100% rename from auth/windows/runner/utils.cpp rename to mobile/apps/auth/windows/runner/utils.cpp diff --git a/auth/windows/runner/utils.h b/mobile/apps/auth/windows/runner/utils.h similarity index 100% rename from auth/windows/runner/utils.h rename to mobile/apps/auth/windows/runner/utils.h diff --git a/auth/windows/runner/win32_window.cpp b/mobile/apps/auth/windows/runner/win32_window.cpp similarity index 100% rename from auth/windows/runner/win32_window.cpp rename to mobile/apps/auth/windows/runner/win32_window.cpp diff --git a/auth/windows/runner/win32_window.h b/mobile/apps/auth/windows/runner/win32_window.h similarity index 100% rename from auth/windows/runner/win32_window.h rename to mobile/apps/auth/windows/runner/win32_window.h diff --git a/mobile/.gitattributes b/mobile/apps/photos/.gitattributes similarity index 100% rename from mobile/.gitattributes rename to mobile/apps/photos/.gitattributes diff --git a/mobile/.gitignore b/mobile/apps/photos/.gitignore similarity index 100% rename from mobile/.gitignore rename to mobile/apps/photos/.gitignore diff --git a/mobile/.gradle/6.5.1/fileHashes/fileHashes.lock b/mobile/apps/photos/.gradle/6.5.1/fileHashes/fileHashes.lock similarity index 100% rename from mobile/.gradle/6.5.1/fileHashes/fileHashes.lock rename to mobile/apps/photos/.gradle/6.5.1/fileHashes/fileHashes.lock diff --git a/mobile/.gradle/6.5.1/gc.properties b/mobile/apps/photos/.gradle/6.5.1/gc.properties similarity index 100% rename from mobile/.gradle/6.5.1/gc.properties rename to mobile/apps/photos/.gradle/6.5.1/gc.properties diff --git a/mobile/.gradle/checksums/checksums.lock b/mobile/apps/photos/.gradle/checksums/checksums.lock similarity index 100% rename from mobile/.gradle/checksums/checksums.lock rename to mobile/apps/photos/.gradle/checksums/checksums.lock diff --git a/mobile/.gradle/vcs-1/gc.properties b/mobile/apps/photos/.gradle/vcs-1/gc.properties similarity index 100% rename from mobile/.gradle/vcs-1/gc.properties rename to mobile/apps/photos/.gradle/vcs-1/gc.properties diff --git a/mobile/.metadata b/mobile/apps/photos/.metadata similarity index 100% rename from mobile/.metadata rename to mobile/apps/photos/.metadata diff --git a/mobile/CHANGELOG.md b/mobile/apps/photos/CHANGELOG.md similarity index 100% rename from mobile/CHANGELOG.md rename to mobile/apps/photos/CHANGELOG.md diff --git a/mobile/Gemfile b/mobile/apps/photos/Gemfile similarity index 100% rename from mobile/Gemfile rename to mobile/apps/photos/Gemfile diff --git a/mobile/Gemfile.lock b/mobile/apps/photos/Gemfile.lock similarity index 100% rename from mobile/Gemfile.lock rename to mobile/apps/photos/Gemfile.lock diff --git a/mobile/README.md b/mobile/apps/photos/README.md similarity index 100% rename from mobile/README.md rename to mobile/apps/photos/README.md diff --git a/mobile/analysis_options.yaml b/mobile/apps/photos/analysis_options.yaml similarity index 100% rename from mobile/analysis_options.yaml rename to mobile/apps/photos/analysis_options.yaml diff --git a/mobile/android/.gitignore b/mobile/apps/photos/android/.gitignore similarity index 100% rename from mobile/android/.gitignore rename to mobile/apps/photos/android/.gitignore diff --git a/mobile/android/.project b/mobile/apps/photos/android/.project similarity index 100% rename from mobile/android/.project rename to mobile/apps/photos/android/.project diff --git a/mobile/android/app/.classpath b/mobile/apps/photos/android/app/.classpath similarity index 100% rename from mobile/android/app/.classpath rename to mobile/apps/photos/android/app/.classpath diff --git a/mobile/android/app/.project b/mobile/apps/photos/android/app/.project similarity index 100% rename from mobile/android/app/.project rename to mobile/apps/photos/android/app/.project diff --git a/mobile/android/app/build.gradle b/mobile/apps/photos/android/app/build.gradle similarity index 100% rename from mobile/android/app/build.gradle rename to mobile/apps/photos/android/app/build.gradle diff --git a/mobile/android/app/proguard-rules.pro b/mobile/apps/photos/android/app/proguard-rules.pro similarity index 100% rename from mobile/android/app/proguard-rules.pro rename to mobile/apps/photos/android/app/proguard-rules.pro diff --git a/mobile/android/app/src/debug/AndroidManifest.xml b/mobile/apps/photos/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/debug/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/debug/AndroidManifest.xml diff --git a/mobile/android/app/src/debug/res/values/strings.xml b/mobile/apps/photos/android/app/src/debug/res/values/strings.xml similarity index 100% rename from mobile/android/app/src/debug/res/values/strings.xml rename to mobile/apps/photos/android/app/src/debug/res/values/strings.xml diff --git a/mobile/android/app/src/dev/AndroidManifest.xml b/mobile/apps/photos/android/app/src/dev/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/dev/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/dev/AndroidManifest.xml diff --git a/mobile/android/app/src/dev/res/mipmap-hdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/dev/res/mipmap-hdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/dev/res/mipmap-hdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/dev/res/mipmap-hdpi/launcher_icon.png diff --git a/mobile/android/app/src/dev/res/mipmap-mdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/dev/res/mipmap-mdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/dev/res/mipmap-mdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/dev/res/mipmap-mdpi/launcher_icon.png diff --git a/mobile/android/app/src/dev/res/mipmap-xhdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/dev/res/mipmap-xhdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/dev/res/mipmap-xhdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/dev/res/mipmap-xhdpi/launcher_icon.png diff --git a/mobile/android/app/src/dev/res/mipmap-xxhdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/dev/res/mipmap-xxhdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/dev/res/mipmap-xxhdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/dev/res/mipmap-xxhdpi/launcher_icon.png diff --git a/mobile/android/app/src/dev/res/mipmap-xxxhdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/dev/res/mipmap-xxxhdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/dev/res/mipmap-xxxhdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/dev/res/mipmap-xxxhdpi/launcher_icon.png diff --git a/mobile/android/app/src/dev/res/values/strings.xml b/mobile/apps/photos/android/app/src/dev/res/values/strings.xml similarity index 100% rename from mobile/android/app/src/dev/res/values/strings.xml rename to mobile/apps/photos/android/app/src/dev/res/values/strings.xml diff --git a/mobile/android/app/src/fdroid/AndroidManifest.xml b/mobile/apps/photos/android/app/src/fdroid/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/fdroid/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/fdroid/AndroidManifest.xml diff --git a/mobile/android/app/src/independent/AndroidManifest.xml b/mobile/apps/photos/android/app/src/independent/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/independent/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/independent/AndroidManifest.xml diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/apps/photos/android/app/src/main/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/main/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/main/AndroidManifest.xml diff --git a/mobile/android/app/src/main/kotlin/io/ente/photos/EnteAlbumsWidgetProvider.kt b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/EnteAlbumsWidgetProvider.kt similarity index 100% rename from mobile/android/app/src/main/kotlin/io/ente/photos/EnteAlbumsWidgetProvider.kt rename to mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/EnteAlbumsWidgetProvider.kt diff --git a/mobile/android/app/src/main/kotlin/io/ente/photos/EnteMemoryWidgetProvider.kt b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/EnteMemoryWidgetProvider.kt similarity index 100% rename from mobile/android/app/src/main/kotlin/io/ente/photos/EnteMemoryWidgetProvider.kt rename to mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/EnteMemoryWidgetProvider.kt diff --git a/mobile/android/app/src/main/kotlin/io/ente/photos/EntePeopleWidgetProvider.kt b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/EntePeopleWidgetProvider.kt similarity index 100% rename from mobile/android/app/src/main/kotlin/io/ente/photos/EntePeopleWidgetProvider.kt rename to mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/EntePeopleWidgetProvider.kt diff --git a/mobile/android/app/src/main/kotlin/io/ente/photos/MainActivity.kt b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/MainActivity.kt similarity index 100% rename from mobile/android/app/src/main/kotlin/io/ente/photos/MainActivity.kt rename to mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/MainActivity.kt diff --git a/mobile/android/app/src/main/play/listings/de/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/de/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/de/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/de/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/de/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/de/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/de/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/de/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/de/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/de/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/de/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/de/title.txt diff --git a/mobile/android/app/src/main/play/listings/en-US/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/en-US/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/icon/icon.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/icon/icon.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/icon/icon.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/icon/icon.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/1.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/2.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/3.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/4.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/5.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/6.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/6.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/6.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/6.png diff --git a/mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/7.png b/mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/7.png similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/7.png rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/graphics/phone-screenshots/7.png diff --git a/mobile/android/app/src/main/play/listings/en-US/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/en-US/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/en-US/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/en-US/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/en-US/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/en-US/title.txt diff --git a/mobile/android/app/src/main/play/listings/es/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/es/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/es/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/es/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/es/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/es/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/es/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/es/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/es/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/es/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/es/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/es/title.txt diff --git a/mobile/android/app/src/main/play/listings/fr/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/fr/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/fr/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/fr/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/fr/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/fr/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/fr/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/fr/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/fr/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/fr/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/fr/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/fr/title.txt diff --git a/mobile/android/app/src/main/play/listings/he/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/he/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/he/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/he/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/he/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/he/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/he/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/he/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/he/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/he/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/he/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/he/title.txt diff --git a/mobile/android/app/src/main/play/listings/it/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/it/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/it/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/it/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/it/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/it/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/it/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/it/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/it/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/it/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/it/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/it/title.txt diff --git a/mobile/android/app/src/main/play/listings/nl/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/nl/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/nl/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/nl/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/nl/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/nl/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/nl/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/nl/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/nl/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/nl/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/nl/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/nl/title.txt diff --git a/mobile/android/app/src/main/play/listings/pl/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/pl/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/pl/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/pl/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/pl/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/pl/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/pl/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/pl/title.txt diff --git a/mobile/android/app/src/main/play/listings/pt/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/pt/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/pt/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/pt/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/pt/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/pt/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/pt/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/pt/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/pt/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/pt/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/pt/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/pt/title.txt diff --git a/mobile/android/app/src/main/play/listings/ru/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/ru/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/ru/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/ru/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/ru/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/ru/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/ru/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/ru/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/ru/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/ru/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/ru/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/ru/title.txt diff --git a/mobile/android/app/src/main/play/listings/zh/full-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/zh/full-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/zh/full-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/zh/full-description.txt diff --git a/mobile/android/app/src/main/play/listings/zh/short-description.txt b/mobile/apps/photos/android/app/src/main/play/listings/zh/short-description.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/zh/short-description.txt rename to mobile/apps/photos/android/app/src/main/play/listings/zh/short-description.txt diff --git a/mobile/android/app/src/main/play/listings/zh/title.txt b/mobile/apps/photos/android/app/src/main/play/listings/zh/title.txt similarity index 100% rename from mobile/android/app/src/main/play/listings/zh/title.txt rename to mobile/apps/photos/android/app/src/main/play/listings/zh/title.txt diff --git a/mobile/android/app/src/main/res/drawable-hdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/ic_albums_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_albums_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/ic_albums_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_albums_widget.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/ic_memories_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_memories_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/ic_memories_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_memories_widget.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/ic_monochrome_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_monochrome_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/ic_monochrome_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_monochrome_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/ic_og_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_og_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/ic_og_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_og_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/ic_people_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_people_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/ic_people_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/ic_people_widget.png diff --git a/mobile/android/app/src/main/res/drawable-hdpi/splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-hdpi/splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-hdpi/splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-hdpi/splash.png diff --git a/mobile/android/app/src/main/res/drawable-ldpi/ic_home_widget_default.png b/mobile/apps/photos/android/app/src/main/res/drawable-ldpi/ic_home_widget_default.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-ldpi/ic_home_widget_default.png rename to mobile/apps/photos/android/app/src/main/res/drawable-ldpi/ic_home_widget_default.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/ic_albums_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_albums_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/ic_albums_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_albums_widget.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/ic_memories_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_memories_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/ic_memories_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_memories_widget.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/ic_monochrome_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_monochrome_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/ic_monochrome_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_monochrome_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/ic_og_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_og_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/ic_og_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_og_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/ic_people_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_people_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/ic_people_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/ic_people_widget.png diff --git a/mobile/android/app/src/main/res/drawable-mdpi/splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-mdpi/splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-mdpi/splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-mdpi/splash.png diff --git a/mobile/android/app/src/main/res/drawable-night-hdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-night-hdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-hdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night-hdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-night-mdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-night-mdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-mdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night-mdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-night-v21/background.png b/mobile/apps/photos/android/app/src/main/res/drawable-night-v21/background.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-v21/background.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night-v21/background.png diff --git a/mobile/android/app/src/main/res/drawable-night-v21/launch_background.xml b/mobile/apps/photos/android/app/src/main/res/drawable-night-v21/launch_background.xml similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-v21/launch_background.xml rename to mobile/apps/photos/android/app/src/main/res/drawable-night-v21/launch_background.xml diff --git a/mobile/android/app/src/main/res/drawable-night-xhdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-night-xhdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-xhdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night-xhdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-night/background.png b/mobile/apps/photos/android/app/src/main/res/drawable-night/background.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-night/background.png rename to mobile/apps/photos/android/app/src/main/res/drawable-night/background.png diff --git a/mobile/android/app/src/main/res/drawable-night/launch_background.xml b/mobile/apps/photos/android/app/src/main/res/drawable-night/launch_background.xml similarity index 100% rename from mobile/android/app/src/main/res/drawable-night/launch_background.xml rename to mobile/apps/photos/android/app/src/main/res/drawable-night/launch_background.xml diff --git a/mobile/android/app/src/main/res/drawable-v21/background.png b/mobile/apps/photos/android/app/src/main/res/drawable-v21/background.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-v21/background.png rename to mobile/apps/photos/android/app/src/main/res/drawable-v21/background.png diff --git a/mobile/android/app/src/main/res/drawable-v21/launch_background.xml b/mobile/apps/photos/android/app/src/main/res/drawable-v21/launch_background.xml similarity index 100% rename from mobile/android/app/src/main/res/drawable-v21/launch_background.xml rename to mobile/apps/photos/android/app/src/main/res/drawable-v21/launch_background.xml diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/ic_albums_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_albums_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/ic_albums_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_albums_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/ic_memories_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_memories_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/ic_memories_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_memories_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/ic_monochrome_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_monochrome_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/ic_monochrome_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_monochrome_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/ic_og_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_og_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/ic_og_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_og_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/ic_people_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_people_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/ic_people_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/ic_people_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xhdpi/splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xhdpi/splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xhdpi/splash.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/ic_albums_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_albums_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/ic_albums_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_albums_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/ic_memories_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_memories_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/ic_memories_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_memories_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/ic_monochrome_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_monochrome_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/ic_monochrome_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_monochrome_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/ic_og_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_og_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/ic_og_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_og_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/ic_people_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_people_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/ic_people_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/ic_people_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xxhdpi/splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxhdpi/splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxhdpi/splash.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/android12splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/android12splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/android12splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/android12splash.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/ic_albums_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_albums_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/ic_albums_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_albums_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/ic_memories_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_memories_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/ic_memories_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_memories_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/ic_monochrome_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_monochrome_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/ic_monochrome_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_monochrome_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/ic_og_launcher_foreground.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_og_launcher_foreground.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/ic_og_launcher_foreground.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_og_launcher_foreground.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/ic_people_widget.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_people_widget.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/ic_people_widget.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/ic_people_widget.png diff --git a/mobile/android/app/src/main/res/drawable-xxxhdpi/splash.png b/mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/splash.png similarity index 100% rename from mobile/android/app/src/main/res/drawable-xxxhdpi/splash.png rename to mobile/apps/photos/android/app/src/main/res/drawable-xxxhdpi/splash.png diff --git a/mobile/android/app/src/main/res/drawable/albums_widget_preview.png b/mobile/apps/photos/android/app/src/main/res/drawable/albums_widget_preview.png similarity index 100% rename from mobile/android/app/src/main/res/drawable/albums_widget_preview.png rename to mobile/apps/photos/android/app/src/main/res/drawable/albums_widget_preview.png diff --git a/mobile/android/app/src/main/res/drawable/background.png b/mobile/apps/photos/android/app/src/main/res/drawable/background.png similarity index 100% rename from mobile/android/app/src/main/res/drawable/background.png rename to mobile/apps/photos/android/app/src/main/res/drawable/background.png diff --git a/mobile/android/app/src/main/res/drawable/launch_background.xml b/mobile/apps/photos/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from mobile/android/app/src/main/res/drawable/launch_background.xml rename to mobile/apps/photos/android/app/src/main/res/drawable/launch_background.xml diff --git a/mobile/android/app/src/main/res/drawable/memory_widget_preview.png b/mobile/apps/photos/android/app/src/main/res/drawable/memory_widget_preview.png similarity index 100% rename from mobile/android/app/src/main/res/drawable/memory_widget_preview.png rename to mobile/apps/photos/android/app/src/main/res/drawable/memory_widget_preview.png diff --git a/mobile/android/app/src/main/res/drawable/notification_icon.png b/mobile/apps/photos/android/app/src/main/res/drawable/notification_icon.png similarity index 100% rename from mobile/android/app/src/main/res/drawable/notification_icon.png rename to mobile/apps/photos/android/app/src/main/res/drawable/notification_icon.png diff --git a/mobile/android/app/src/main/res/drawable/people_widget_preview.png b/mobile/apps/photos/android/app/src/main/res/drawable/people_widget_preview.png similarity index 100% rename from mobile/android/app/src/main/res/drawable/people_widget_preview.png rename to mobile/apps/photos/android/app/src/main/res/drawable/people_widget_preview.png diff --git a/mobile/android/app/src/main/res/drawable/widget_background.xml b/mobile/apps/photos/android/app/src/main/res/drawable/widget_background.xml similarity index 100% rename from mobile/android/app/src/main/res/drawable/widget_background.xml rename to mobile/apps/photos/android/app/src/main/res/drawable/widget_background.xml diff --git a/mobile/android/app/src/main/res/layout/albums_widget_layout.xml b/mobile/apps/photos/android/app/src/main/res/layout/albums_widget_layout.xml similarity index 100% rename from mobile/android/app/src/main/res/layout/albums_widget_layout.xml rename to mobile/apps/photos/android/app/src/main/res/layout/albums_widget_layout.xml diff --git a/mobile/android/app/src/main/res/layout/gradient_overlay.xml b/mobile/apps/photos/android/app/src/main/res/layout/gradient_overlay.xml similarity index 100% rename from mobile/android/app/src/main/res/layout/gradient_overlay.xml rename to mobile/apps/photos/android/app/src/main/res/layout/gradient_overlay.xml diff --git a/mobile/android/app/src/main/res/layout/memory_widget_layout.xml b/mobile/apps/photos/android/app/src/main/res/layout/memory_widget_layout.xml similarity index 100% rename from mobile/android/app/src/main/res/layout/memory_widget_layout.xml rename to mobile/apps/photos/android/app/src/main/res/layout/memory_widget_layout.xml diff --git a/mobile/android/app/src/main/res/layout/people_widget_layout.xml b/mobile/apps/photos/android/app/src/main/res/layout/people_widget_layout.xml similarity index 100% rename from mobile/android/app/src/main/res/layout/people_widget_layout.xml rename to mobile/apps/photos/android/app/src/main/res/layout/people_widget_layout.xml diff --git a/mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_dark.xml b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_dark.xml similarity index 100% rename from mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_dark.xml rename to mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_dark.xml diff --git a/mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_green.xml b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_green.xml similarity index 100% rename from mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_green.xml rename to mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_green.xml diff --git a/mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_light.xml b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_light.xml similarity index 100% rename from mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_light.xml rename to mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_light.xml diff --git a/mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_og.xml b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_og.xml similarity index 100% rename from mobile/android/app/src/main/res/mipmap-anydpi-v26/icon_og.xml rename to mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/icon_og.xml diff --git a/mobile/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml b/mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml similarity index 100% rename from mobile/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml rename to mobile/apps/photos/android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/icon_dark.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_dark.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/icon_dark.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_dark.png diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/icon_green.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_green.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/icon_green.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_green.png diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/icon_light.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_light.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/icon_light.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_light.png diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/icon_monochrome.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_monochrome.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/icon_monochrome.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_monochrome.png diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/icon_og.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_og.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/icon_og.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/icon_og.png diff --git a/mobile/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-hdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-hdpi/launcher_icon.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/icon_dark.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_dark.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/icon_dark.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_dark.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/icon_green.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_green.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/icon_green.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_green.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/icon_light.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_light.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/icon_light.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_light.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/icon_monochrome.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_monochrome.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/icon_monochrome.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_monochrome.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/icon_og.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_og.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/icon_og.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/icon_og.png diff --git a/mobile/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-mdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-mdpi/launcher_icon.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/icon_dark.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_dark.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/icon_dark.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_dark.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/icon_green.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_green.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/icon_green.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_green.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/icon_light.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_light.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/icon_light.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_light.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/icon_monochrome.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_monochrome.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/icon_monochrome.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_monochrome.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/icon_og.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_og.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/icon_og.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/icon_og.png diff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/icon_dark.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_dark.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/icon_dark.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_dark.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/icon_green.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_green.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/icon_green.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_green.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/icon_light.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_light.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/icon_light.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_light.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/icon_monochrome.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_monochrome.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/icon_monochrome.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_monochrome.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/icon_og.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_og.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/icon_og.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/icon_og.png diff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_dark.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_dark.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_dark.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_dark.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_green.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_green.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_green.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_green.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_light.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_light.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_light.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_light.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_monochrome.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_monochrome.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_monochrome.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_monochrome.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_og.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_og.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/icon_og.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/icon_og.png diff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png similarity index 100% rename from mobile/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png rename to mobile/apps/photos/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png diff --git a/mobile/android/app/src/main/res/values-night-v31/styles.xml b/mobile/apps/photos/android/app/src/main/res/values-night-v31/styles.xml similarity index 100% rename from mobile/android/app/src/main/res/values-night-v31/styles.xml rename to mobile/apps/photos/android/app/src/main/res/values-night-v31/styles.xml diff --git a/mobile/android/app/src/main/res/values-night/colors.xml b/mobile/apps/photos/android/app/src/main/res/values-night/colors.xml similarity index 100% rename from mobile/android/app/src/main/res/values-night/colors.xml rename to mobile/apps/photos/android/app/src/main/res/values-night/colors.xml diff --git a/mobile/android/app/src/main/res/values-night/styles.xml b/mobile/apps/photos/android/app/src/main/res/values-night/styles.xml similarity index 100% rename from mobile/android/app/src/main/res/values-night/styles.xml rename to mobile/apps/photos/android/app/src/main/res/values-night/styles.xml diff --git a/mobile/android/app/src/main/res/values-v31/styles.xml b/mobile/apps/photos/android/app/src/main/res/values-v31/styles.xml similarity index 100% rename from mobile/android/app/src/main/res/values-v31/styles.xml rename to mobile/apps/photos/android/app/src/main/res/values-v31/styles.xml diff --git a/mobile/android/app/src/main/res/values/colors.xml b/mobile/apps/photos/android/app/src/main/res/values/colors.xml similarity index 100% rename from mobile/android/app/src/main/res/values/colors.xml rename to mobile/apps/photos/android/app/src/main/res/values/colors.xml diff --git a/mobile/android/app/src/main/res/values/strings.xml b/mobile/apps/photos/android/app/src/main/res/values/strings.xml similarity index 100% rename from mobile/android/app/src/main/res/values/strings.xml rename to mobile/apps/photos/android/app/src/main/res/values/strings.xml diff --git a/mobile/android/app/src/main/res/values/styles.xml b/mobile/apps/photos/android/app/src/main/res/values/styles.xml similarity index 100% rename from mobile/android/app/src/main/res/values/styles.xml rename to mobile/apps/photos/android/app/src/main/res/values/styles.xml diff --git a/mobile/android/app/src/main/res/xml/albums_widget.xml b/mobile/apps/photos/android/app/src/main/res/xml/albums_widget.xml similarity index 100% rename from mobile/android/app/src/main/res/xml/albums_widget.xml rename to mobile/apps/photos/android/app/src/main/res/xml/albums_widget.xml diff --git a/mobile/android/app/src/main/res/xml/data_extraction_rules.xml b/mobile/apps/photos/android/app/src/main/res/xml/data_extraction_rules.xml similarity index 100% rename from mobile/android/app/src/main/res/xml/data_extraction_rules.xml rename to mobile/apps/photos/android/app/src/main/res/xml/data_extraction_rules.xml diff --git a/mobile/android/app/src/main/res/xml/memory_widget.xml b/mobile/apps/photos/android/app/src/main/res/xml/memory_widget.xml similarity index 100% rename from mobile/android/app/src/main/res/xml/memory_widget.xml rename to mobile/apps/photos/android/app/src/main/res/xml/memory_widget.xml diff --git a/mobile/android/app/src/main/res/xml/network_security_config.xml b/mobile/apps/photos/android/app/src/main/res/xml/network_security_config.xml similarity index 100% rename from mobile/android/app/src/main/res/xml/network_security_config.xml rename to mobile/apps/photos/android/app/src/main/res/xml/network_security_config.xml diff --git a/mobile/android/app/src/main/res/xml/people_widget.xml b/mobile/apps/photos/android/app/src/main/res/xml/people_widget.xml similarity index 100% rename from mobile/android/app/src/main/res/xml/people_widget.xml rename to mobile/apps/photos/android/app/src/main/res/xml/people_widget.xml diff --git a/mobile/android/app/src/playstore/AndroidManifest.xml b/mobile/apps/photos/android/app/src/playstore/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/playstore/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/playstore/AndroidManifest.xml diff --git a/mobile/android/app/src/profile/AndroidManifest.xml b/mobile/apps/photos/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from mobile/android/app/src/profile/AndroidManifest.xml rename to mobile/apps/photos/android/app/src/profile/AndroidManifest.xml diff --git a/mobile/android/build.gradle b/mobile/apps/photos/android/build.gradle similarity index 100% rename from mobile/android/build.gradle rename to mobile/apps/photos/android/build.gradle diff --git a/mobile/android/gradle.properties b/mobile/apps/photos/android/gradle.properties similarity index 100% rename from mobile/android/gradle.properties rename to mobile/apps/photos/android/gradle.properties diff --git a/mobile/android/gradle/wrapper/gradle-wrapper.properties b/mobile/apps/photos/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from mobile/android/gradle/wrapper/gradle-wrapper.properties rename to mobile/apps/photos/android/gradle/wrapper/gradle-wrapper.properties diff --git a/mobile/android/permissions.md b/mobile/apps/photos/android/permissions.md similarity index 100% rename from mobile/android/permissions.md rename to mobile/apps/photos/android/permissions.md diff --git a/mobile/android/settings.gradle b/mobile/apps/photos/android/settings.gradle similarity index 100% rename from mobile/android/settings.gradle rename to mobile/apps/photos/android/settings.gradle diff --git a/mobile/android/settings_aar.gradle b/mobile/apps/photos/android/settings_aar.gradle similarity index 100% rename from mobile/android/settings_aar.gradle rename to mobile/apps/photos/android/settings_aar.gradle diff --git a/mobile/assets/2.0x/active_subscription.png b/mobile/apps/photos/assets/2.0x/active_subscription.png similarity index 100% rename from mobile/assets/2.0x/active_subscription.png rename to mobile/apps/photos/assets/2.0x/active_subscription.png diff --git a/mobile/assets/2.0x/albums-widget-static.png b/mobile/apps/photos/assets/2.0x/albums-widget-static.png similarity index 100% rename from mobile/assets/2.0x/albums-widget-static.png rename to mobile/apps/photos/assets/2.0x/albums-widget-static.png diff --git a/mobile/assets/2.0x/create_new_album.png b/mobile/apps/photos/assets/2.0x/create_new_album.png similarity index 100% rename from mobile/assets/2.0x/create_new_album.png rename to mobile/apps/photos/assets/2.0x/create_new_album.png diff --git a/mobile/assets/2.0x/family_plan_leave.png b/mobile/apps/photos/assets/2.0x/family_plan_leave.png similarity index 100% rename from mobile/assets/2.0x/family_plan_leave.png rename to mobile/apps/photos/assets/2.0x/family_plan_leave.png diff --git a/mobile/assets/2.0x/gallery_locked.png b/mobile/apps/photos/assets/2.0x/gallery_locked.png similarity index 100% rename from mobile/assets/2.0x/gallery_locked.png rename to mobile/apps/photos/assets/2.0x/gallery_locked.png diff --git a/mobile/assets/2.0x/loading_photos_background.png b/mobile/apps/photos/assets/2.0x/loading_photos_background.png similarity index 100% rename from mobile/assets/2.0x/loading_photos_background.png rename to mobile/apps/photos/assets/2.0x/loading_photos_background.png diff --git a/mobile/assets/2.0x/loading_photos_background_dark.png b/mobile/apps/photos/assets/2.0x/loading_photos_background_dark.png similarity index 100% rename from mobile/assets/2.0x/loading_photos_background_dark.png rename to mobile/apps/photos/assets/2.0x/loading_photos_background_dark.png diff --git a/mobile/assets/2.0x/lock_screen_background.png b/mobile/apps/photos/assets/2.0x/lock_screen_background.png similarity index 100% rename from mobile/assets/2.0x/lock_screen_background.png rename to mobile/apps/photos/assets/2.0x/lock_screen_background.png diff --git a/mobile/assets/2.0x/map_world.png b/mobile/apps/photos/assets/2.0x/map_world.png similarity index 100% rename from mobile/assets/2.0x/map_world.png rename to mobile/apps/photos/assets/2.0x/map_world.png diff --git a/mobile/assets/2.0x/memories-widget-static.png b/mobile/apps/photos/assets/2.0x/memories-widget-static.png similarity index 100% rename from mobile/assets/2.0x/memories-widget-static.png rename to mobile/apps/photos/assets/2.0x/memories-widget-static.png diff --git a/mobile/assets/2.0x/new_empty_album.png b/mobile/apps/photos/assets/2.0x/new_empty_album.png similarity index 100% rename from mobile/assets/2.0x/new_empty_album.png rename to mobile/apps/photos/assets/2.0x/new_empty_album.png diff --git a/mobile/assets/2.0x/new_empty_album_dark.png b/mobile/apps/photos/assets/2.0x/new_empty_album_dark.png similarity index 100% rename from mobile/assets/2.0x/new_empty_album_dark.png rename to mobile/apps/photos/assets/2.0x/new_empty_album_dark.png diff --git a/mobile/assets/2.0x/onboarding_lock.png b/mobile/apps/photos/assets/2.0x/onboarding_lock.png similarity index 100% rename from mobile/assets/2.0x/onboarding_lock.png rename to mobile/apps/photos/assets/2.0x/onboarding_lock.png diff --git a/mobile/assets/2.0x/onboarding_safe.png b/mobile/apps/photos/assets/2.0x/onboarding_safe.png similarity index 100% rename from mobile/assets/2.0x/onboarding_safe.png rename to mobile/apps/photos/assets/2.0x/onboarding_safe.png diff --git a/mobile/assets/2.0x/onboarding_sync.png b/mobile/apps/photos/assets/2.0x/onboarding_sync.png similarity index 100% rename from mobile/assets/2.0x/onboarding_sync.png rename to mobile/apps/photos/assets/2.0x/onboarding_sync.png diff --git a/mobile/assets/2.0x/people-widget-static.png b/mobile/apps/photos/assets/2.0x/people-widget-static.png similarity index 100% rename from mobile/assets/2.0x/people-widget-static.png rename to mobile/apps/photos/assets/2.0x/people-widget-static.png diff --git a/mobile/assets/2.0x/popular_subscription.png b/mobile/apps/photos/assets/2.0x/popular_subscription.png similarity index 100% rename from mobile/assets/2.0x/popular_subscription.png rename to mobile/apps/photos/assets/2.0x/popular_subscription.png diff --git a/mobile/assets/2.0x/processing-video-failed.png b/mobile/apps/photos/assets/2.0x/processing-video-failed.png similarity index 100% rename from mobile/assets/2.0x/processing-video-failed.png rename to mobile/apps/photos/assets/2.0x/processing-video-failed.png diff --git a/mobile/assets/2.0x/processing-video-success.png b/mobile/apps/photos/assets/2.0x/processing-video-success.png similarity index 100% rename from mobile/assets/2.0x/processing-video-success.png rename to mobile/apps/photos/assets/2.0x/processing-video-success.png diff --git a/mobile/assets/2.0x/processing-video.png b/mobile/apps/photos/assets/2.0x/processing-video.png similarity index 100% rename from mobile/assets/2.0x/processing-video.png rename to mobile/apps/photos/assets/2.0x/processing-video.png diff --git a/mobile/assets/2.0x/storage_card_background.png b/mobile/apps/photos/assets/2.0x/storage_card_background.png similarity index 100% rename from mobile/assets/2.0x/storage_card_background.png rename to mobile/apps/photos/assets/2.0x/storage_card_background.png diff --git a/mobile/assets/2.0x/type_AVI.png b/mobile/apps/photos/assets/2.0x/type_AVI.png similarity index 100% rename from mobile/assets/2.0x/type_AVI.png rename to mobile/apps/photos/assets/2.0x/type_AVI.png diff --git a/mobile/assets/2.0x/type_GIF.png b/mobile/apps/photos/assets/2.0x/type_GIF.png similarity index 100% rename from mobile/assets/2.0x/type_GIF.png rename to mobile/apps/photos/assets/2.0x/type_GIF.png diff --git a/mobile/assets/2.0x/type_HEIC.png b/mobile/apps/photos/assets/2.0x/type_HEIC.png similarity index 100% rename from mobile/assets/2.0x/type_HEIC.png rename to mobile/apps/photos/assets/2.0x/type_HEIC.png diff --git a/mobile/assets/2.0x/type_JPEG.png b/mobile/apps/photos/assets/2.0x/type_JPEG.png similarity index 100% rename from mobile/assets/2.0x/type_JPEG.png rename to mobile/apps/photos/assets/2.0x/type_JPEG.png diff --git a/mobile/assets/2.0x/type_JPG.png b/mobile/apps/photos/assets/2.0x/type_JPG.png similarity index 100% rename from mobile/assets/2.0x/type_JPG.png rename to mobile/apps/photos/assets/2.0x/type_JPG.png diff --git a/mobile/assets/2.0x/type_MKV.png b/mobile/apps/photos/assets/2.0x/type_MKV.png similarity index 100% rename from mobile/assets/2.0x/type_MKV.png rename to mobile/apps/photos/assets/2.0x/type_MKV.png diff --git a/mobile/assets/2.0x/type_MP4.png b/mobile/apps/photos/assets/2.0x/type_MP4.png similarity index 100% rename from mobile/assets/2.0x/type_MP4.png rename to mobile/apps/photos/assets/2.0x/type_MP4.png diff --git a/mobile/assets/2.0x/type_PNG.png b/mobile/apps/photos/assets/2.0x/type_PNG.png similarity index 100% rename from mobile/assets/2.0x/type_PNG.png rename to mobile/apps/photos/assets/2.0x/type_PNG.png diff --git a/mobile/assets/2.0x/type_WEBP.png b/mobile/apps/photos/assets/2.0x/type_WEBP.png similarity index 100% rename from mobile/assets/2.0x/type_WEBP.png rename to mobile/apps/photos/assets/2.0x/type_WEBP.png diff --git a/mobile/assets/2.0x/type_live.png b/mobile/apps/photos/assets/2.0x/type_live.png similarity index 100% rename from mobile/assets/2.0x/type_live.png rename to mobile/apps/photos/assets/2.0x/type_live.png diff --git a/mobile/assets/2.0x/type_photos.png b/mobile/apps/photos/assets/2.0x/type_photos.png similarity index 100% rename from mobile/assets/2.0x/type_photos.png rename to mobile/apps/photos/assets/2.0x/type_photos.png diff --git a/mobile/assets/2.0x/type_unknown.png b/mobile/apps/photos/assets/2.0x/type_unknown.png similarity index 100% rename from mobile/assets/2.0x/type_unknown.png rename to mobile/apps/photos/assets/2.0x/type_unknown.png diff --git a/mobile/assets/2.0x/type_videos.png b/mobile/apps/photos/assets/2.0x/type_videos.png similarity index 100% rename from mobile/assets/2.0x/type_videos.png rename to mobile/apps/photos/assets/2.0x/type_videos.png diff --git a/mobile/assets/2.0x/video-processing-queued.png b/mobile/apps/photos/assets/2.0x/video-processing-queued.png similarity index 100% rename from mobile/assets/2.0x/video-processing-queued.png rename to mobile/apps/photos/assets/2.0x/video-processing-queued.png diff --git a/mobile/assets/3.0x/active_subscription.png b/mobile/apps/photos/assets/3.0x/active_subscription.png similarity index 100% rename from mobile/assets/3.0x/active_subscription.png rename to mobile/apps/photos/assets/3.0x/active_subscription.png diff --git a/mobile/assets/3.0x/albums-widget-static.png b/mobile/apps/photos/assets/3.0x/albums-widget-static.png similarity index 100% rename from mobile/assets/3.0x/albums-widget-static.png rename to mobile/apps/photos/assets/3.0x/albums-widget-static.png diff --git a/mobile/assets/3.0x/create_new_album.png b/mobile/apps/photos/assets/3.0x/create_new_album.png similarity index 100% rename from mobile/assets/3.0x/create_new_album.png rename to mobile/apps/photos/assets/3.0x/create_new_album.png diff --git a/mobile/assets/3.0x/family_plan_leave.png b/mobile/apps/photos/assets/3.0x/family_plan_leave.png similarity index 100% rename from mobile/assets/3.0x/family_plan_leave.png rename to mobile/apps/photos/assets/3.0x/family_plan_leave.png diff --git a/mobile/assets/3.0x/gallery_locked.png b/mobile/apps/photos/assets/3.0x/gallery_locked.png similarity index 100% rename from mobile/assets/3.0x/gallery_locked.png rename to mobile/apps/photos/assets/3.0x/gallery_locked.png diff --git a/mobile/assets/3.0x/loading_photos_background.png b/mobile/apps/photos/assets/3.0x/loading_photos_background.png similarity index 100% rename from mobile/assets/3.0x/loading_photos_background.png rename to mobile/apps/photos/assets/3.0x/loading_photos_background.png diff --git a/mobile/assets/3.0x/loading_photos_background_dark.png b/mobile/apps/photos/assets/3.0x/loading_photos_background_dark.png similarity index 100% rename from mobile/assets/3.0x/loading_photos_background_dark.png rename to mobile/apps/photos/assets/3.0x/loading_photos_background_dark.png diff --git a/mobile/assets/3.0x/lock_screen_background.png b/mobile/apps/photos/assets/3.0x/lock_screen_background.png similarity index 100% rename from mobile/assets/3.0x/lock_screen_background.png rename to mobile/apps/photos/assets/3.0x/lock_screen_background.png diff --git a/mobile/assets/3.0x/map_world.png b/mobile/apps/photos/assets/3.0x/map_world.png similarity index 100% rename from mobile/assets/3.0x/map_world.png rename to mobile/apps/photos/assets/3.0x/map_world.png diff --git a/mobile/assets/3.0x/memories-widget-static.png b/mobile/apps/photos/assets/3.0x/memories-widget-static.png similarity index 100% rename from mobile/assets/3.0x/memories-widget-static.png rename to mobile/apps/photos/assets/3.0x/memories-widget-static.png diff --git a/mobile/assets/3.0x/new_empty_album.png b/mobile/apps/photos/assets/3.0x/new_empty_album.png similarity index 100% rename from mobile/assets/3.0x/new_empty_album.png rename to mobile/apps/photos/assets/3.0x/new_empty_album.png diff --git a/mobile/assets/3.0x/new_empty_album_dark.png b/mobile/apps/photos/assets/3.0x/new_empty_album_dark.png similarity index 100% rename from mobile/assets/3.0x/new_empty_album_dark.png rename to mobile/apps/photos/assets/3.0x/new_empty_album_dark.png diff --git a/mobile/assets/3.0x/onboarding_lock.png b/mobile/apps/photos/assets/3.0x/onboarding_lock.png similarity index 100% rename from mobile/assets/3.0x/onboarding_lock.png rename to mobile/apps/photos/assets/3.0x/onboarding_lock.png diff --git a/mobile/assets/3.0x/onboarding_safe.png b/mobile/apps/photos/assets/3.0x/onboarding_safe.png similarity index 100% rename from mobile/assets/3.0x/onboarding_safe.png rename to mobile/apps/photos/assets/3.0x/onboarding_safe.png diff --git a/mobile/assets/3.0x/onboarding_sync.png b/mobile/apps/photos/assets/3.0x/onboarding_sync.png similarity index 100% rename from mobile/assets/3.0x/onboarding_sync.png rename to mobile/apps/photos/assets/3.0x/onboarding_sync.png diff --git a/mobile/assets/3.0x/people-widget-static.png b/mobile/apps/photos/assets/3.0x/people-widget-static.png similarity index 100% rename from mobile/assets/3.0x/people-widget-static.png rename to mobile/apps/photos/assets/3.0x/people-widget-static.png diff --git a/mobile/assets/3.0x/popular_subscription.png b/mobile/apps/photos/assets/3.0x/popular_subscription.png similarity index 100% rename from mobile/assets/3.0x/popular_subscription.png rename to mobile/apps/photos/assets/3.0x/popular_subscription.png diff --git a/mobile/assets/3.0x/processing-video-failed.png b/mobile/apps/photos/assets/3.0x/processing-video-failed.png similarity index 100% rename from mobile/assets/3.0x/processing-video-failed.png rename to mobile/apps/photos/assets/3.0x/processing-video-failed.png diff --git a/mobile/assets/3.0x/processing-video-success.png b/mobile/apps/photos/assets/3.0x/processing-video-success.png similarity index 100% rename from mobile/assets/3.0x/processing-video-success.png rename to mobile/apps/photos/assets/3.0x/processing-video-success.png diff --git a/mobile/assets/3.0x/processing-video.png b/mobile/apps/photos/assets/3.0x/processing-video.png similarity index 100% rename from mobile/assets/3.0x/processing-video.png rename to mobile/apps/photos/assets/3.0x/processing-video.png diff --git a/mobile/assets/3.0x/storage_card_background.png b/mobile/apps/photos/assets/3.0x/storage_card_background.png similarity index 100% rename from mobile/assets/3.0x/storage_card_background.png rename to mobile/apps/photos/assets/3.0x/storage_card_background.png diff --git a/mobile/assets/3.0x/type_AVI.png b/mobile/apps/photos/assets/3.0x/type_AVI.png similarity index 100% rename from mobile/assets/3.0x/type_AVI.png rename to mobile/apps/photos/assets/3.0x/type_AVI.png diff --git a/mobile/assets/3.0x/type_GIF.png b/mobile/apps/photos/assets/3.0x/type_GIF.png similarity index 100% rename from mobile/assets/3.0x/type_GIF.png rename to mobile/apps/photos/assets/3.0x/type_GIF.png diff --git a/mobile/assets/3.0x/type_HEIC.png b/mobile/apps/photos/assets/3.0x/type_HEIC.png similarity index 100% rename from mobile/assets/3.0x/type_HEIC.png rename to mobile/apps/photos/assets/3.0x/type_HEIC.png diff --git a/mobile/assets/3.0x/type_JPEG.png b/mobile/apps/photos/assets/3.0x/type_JPEG.png similarity index 100% rename from mobile/assets/3.0x/type_JPEG.png rename to mobile/apps/photos/assets/3.0x/type_JPEG.png diff --git a/mobile/assets/3.0x/type_JPG.png b/mobile/apps/photos/assets/3.0x/type_JPG.png similarity index 100% rename from mobile/assets/3.0x/type_JPG.png rename to mobile/apps/photos/assets/3.0x/type_JPG.png diff --git a/mobile/assets/3.0x/type_MKV.png b/mobile/apps/photos/assets/3.0x/type_MKV.png similarity index 100% rename from mobile/assets/3.0x/type_MKV.png rename to mobile/apps/photos/assets/3.0x/type_MKV.png diff --git a/mobile/assets/3.0x/type_MP4.png b/mobile/apps/photos/assets/3.0x/type_MP4.png similarity index 100% rename from mobile/assets/3.0x/type_MP4.png rename to mobile/apps/photos/assets/3.0x/type_MP4.png diff --git a/mobile/assets/3.0x/type_PNG.png b/mobile/apps/photos/assets/3.0x/type_PNG.png similarity index 100% rename from mobile/assets/3.0x/type_PNG.png rename to mobile/apps/photos/assets/3.0x/type_PNG.png diff --git a/mobile/assets/3.0x/type_WEBP.png b/mobile/apps/photos/assets/3.0x/type_WEBP.png similarity index 100% rename from mobile/assets/3.0x/type_WEBP.png rename to mobile/apps/photos/assets/3.0x/type_WEBP.png diff --git a/mobile/assets/3.0x/type_live.png b/mobile/apps/photos/assets/3.0x/type_live.png similarity index 100% rename from mobile/assets/3.0x/type_live.png rename to mobile/apps/photos/assets/3.0x/type_live.png diff --git a/mobile/assets/3.0x/type_photos.png b/mobile/apps/photos/assets/3.0x/type_photos.png similarity index 100% rename from mobile/assets/3.0x/type_photos.png rename to mobile/apps/photos/assets/3.0x/type_photos.png diff --git a/mobile/assets/3.0x/type_unknown.png b/mobile/apps/photos/assets/3.0x/type_unknown.png similarity index 100% rename from mobile/assets/3.0x/type_unknown.png rename to mobile/apps/photos/assets/3.0x/type_unknown.png diff --git a/mobile/assets/3.0x/type_videos.png b/mobile/apps/photos/assets/3.0x/type_videos.png similarity index 100% rename from mobile/assets/3.0x/type_videos.png rename to mobile/apps/photos/assets/3.0x/type_videos.png diff --git a/mobile/assets/3.0x/video-processing-queued.png b/mobile/apps/photos/assets/3.0x/video-processing-queued.png similarity index 100% rename from mobile/assets/3.0x/video-processing-queued.png rename to mobile/apps/photos/assets/3.0x/video-processing-queued.png diff --git a/mobile/assets/active_subscription.png b/mobile/apps/photos/assets/active_subscription.png similarity index 100% rename from mobile/assets/active_subscription.png rename to mobile/apps/photos/assets/active_subscription.png diff --git a/mobile/assets/albums-widget-static.png b/mobile/apps/photos/assets/albums-widget-static.png similarity index 100% rename from mobile/assets/albums-widget-static.png rename to mobile/apps/photos/assets/albums-widget-static.png diff --git a/mobile/assets/create_new_album.png b/mobile/apps/photos/assets/create_new_album.png similarity index 100% rename from mobile/assets/create_new_album.png rename to mobile/apps/photos/assets/create_new_album.png diff --git a/mobile/assets/earth_blurred.png b/mobile/apps/photos/assets/earth_blurred.png similarity index 100% rename from mobile/assets/earth_blurred.png rename to mobile/apps/photos/assets/earth_blurred.png diff --git a/mobile/assets/family_plan_leave.png b/mobile/apps/photos/assets/family_plan_leave.png similarity index 100% rename from mobile/assets/family_plan_leave.png rename to mobile/apps/photos/assets/family_plan_leave.png diff --git a/mobile/assets/gallery_locked.png b/mobile/apps/photos/assets/gallery_locked.png similarity index 100% rename from mobile/assets/gallery_locked.png rename to mobile/apps/photos/assets/gallery_locked.png diff --git a/mobile/assets/icon-light.png b/mobile/apps/photos/assets/icon-light.png similarity index 100% rename from mobile/assets/icon-light.png rename to mobile/apps/photos/assets/icon-light.png diff --git a/mobile/assets/icons/albums-widget-icon.svg b/mobile/apps/photos/assets/icons/albums-widget-icon.svg similarity index 100% rename from mobile/assets/icons/albums-widget-icon.svg rename to mobile/apps/photos/assets/icons/albums-widget-icon.svg diff --git a/mobile/assets/icons/guest_view_icon.svg b/mobile/apps/photos/assets/icons/guest_view_icon.svg similarity index 100% rename from mobile/assets/icons/guest_view_icon.svg rename to mobile/apps/photos/assets/icons/guest_view_icon.svg diff --git a/mobile/assets/icons/legacy-dark.svg b/mobile/apps/photos/assets/icons/legacy-dark.svg similarity index 100% rename from mobile/assets/icons/legacy-dark.svg rename to mobile/apps/photos/assets/icons/legacy-dark.svg diff --git a/mobile/assets/icons/legacy-light.svg b/mobile/apps/photos/assets/icons/legacy-light.svg similarity index 100% rename from mobile/assets/icons/legacy-light.svg rename to mobile/apps/photos/assets/icons/legacy-light.svg diff --git a/mobile/assets/icons/list_view_icon_dark.svg b/mobile/apps/photos/assets/icons/list_view_icon_dark.svg similarity index 100% rename from mobile/assets/icons/list_view_icon_dark.svg rename to mobile/apps/photos/assets/icons/list_view_icon_dark.svg diff --git a/mobile/assets/icons/list_view_icon_light.svg b/mobile/apps/photos/assets/icons/list_view_icon_light.svg similarity index 100% rename from mobile/assets/icons/list_view_icon_light.svg rename to mobile/apps/photos/assets/icons/list_view_icon_light.svg diff --git a/mobile/assets/icons/memories-widget-icon.svg b/mobile/apps/photos/assets/icons/memories-widget-icon.svg similarity index 100% rename from mobile/assets/icons/memories-widget-icon.svg rename to mobile/apps/photos/assets/icons/memories-widget-icon.svg diff --git a/mobile/assets/icons/past-year-memory-icon.svg b/mobile/apps/photos/assets/icons/past-year-memory-icon.svg similarity index 100% rename from mobile/assets/icons/past-year-memory-icon.svg rename to mobile/apps/photos/assets/icons/past-year-memory-icon.svg diff --git a/mobile/assets/icons/people-widget-icon.svg b/mobile/apps/photos/assets/icons/people-widget-icon.svg similarity index 100% rename from mobile/assets/icons/people-widget-icon.svg rename to mobile/apps/photos/assets/icons/people-widget-icon.svg diff --git a/mobile/assets/icons/search_icon_dark.svg b/mobile/apps/photos/assets/icons/search_icon_dark.svg similarity index 100% rename from mobile/assets/icons/search_icon_dark.svg rename to mobile/apps/photos/assets/icons/search_icon_dark.svg diff --git a/mobile/assets/icons/search_icon_light.svg b/mobile/apps/photos/assets/icons/search_icon_light.svg similarity index 100% rename from mobile/assets/icons/search_icon_light.svg rename to mobile/apps/photos/assets/icons/search_icon_light.svg diff --git a/mobile/assets/icons/smart-memory-icon.svg b/mobile/apps/photos/assets/icons/smart-memory-icon.svg similarity index 100% rename from mobile/assets/icons/smart-memory-icon.svg rename to mobile/apps/photos/assets/icons/smart-memory-icon.svg diff --git a/mobile/assets/launcher_icon/icon-dark.png b/mobile/apps/photos/assets/launcher_icon/icon-dark.png similarity index 100% rename from mobile/assets/launcher_icon/icon-dark.png rename to mobile/apps/photos/assets/launcher_icon/icon-dark.png diff --git a/mobile/assets/launcher_icon/icon-dev.png b/mobile/apps/photos/assets/launcher_icon/icon-dev.png similarity index 100% rename from mobile/assets/launcher_icon/icon-dev.png rename to mobile/apps/photos/assets/launcher_icon/icon-dev.png diff --git a/mobile/assets/launcher_icon/icon-foreground.png b/mobile/apps/photos/assets/launcher_icon/icon-foreground.png similarity index 100% rename from mobile/assets/launcher_icon/icon-foreground.png rename to mobile/apps/photos/assets/launcher_icon/icon-foreground.png diff --git a/mobile/assets/launcher_icon/icon-green.png b/mobile/apps/photos/assets/launcher_icon/icon-green.png similarity index 100% rename from mobile/assets/launcher_icon/icon-green.png rename to mobile/apps/photos/assets/launcher_icon/icon-green.png diff --git a/mobile/assets/launcher_icon/icon-light.png b/mobile/apps/photos/assets/launcher_icon/icon-light.png similarity index 100% rename from mobile/assets/launcher_icon/icon-light.png rename to mobile/apps/photos/assets/launcher_icon/icon-light.png diff --git a/mobile/assets/launcher_icon/icon-monochrome-foreground.png b/mobile/apps/photos/assets/launcher_icon/icon-monochrome-foreground.png similarity index 100% rename from mobile/assets/launcher_icon/icon-monochrome-foreground.png rename to mobile/apps/photos/assets/launcher_icon/icon-monochrome-foreground.png diff --git a/mobile/assets/launcher_icon/icon-og-foreground.png b/mobile/apps/photos/assets/launcher_icon/icon-og-foreground.png similarity index 100% rename from mobile/assets/launcher_icon/icon-og-foreground.png rename to mobile/apps/photos/assets/launcher_icon/icon-og-foreground.png diff --git a/mobile/assets/launcher_icon/icon-og.png b/mobile/apps/photos/assets/launcher_icon/icon-og.png similarity index 100% rename from mobile/assets/launcher_icon/icon-og.png rename to mobile/apps/photos/assets/launcher_icon/icon-og.png diff --git a/mobile/assets/loadingGalleryLottie.json b/mobile/apps/photos/assets/loadingGalleryLottie.json similarity index 100% rename from mobile/assets/loadingGalleryLottie.json rename to mobile/apps/photos/assets/loadingGalleryLottie.json diff --git a/mobile/assets/loading_photos_background.png b/mobile/apps/photos/assets/loading_photos_background.png similarity index 100% rename from mobile/assets/loading_photos_background.png rename to mobile/apps/photos/assets/loading_photos_background.png diff --git a/mobile/assets/loading_photos_background_dark.png b/mobile/apps/photos/assets/loading_photos_background_dark.png similarity index 100% rename from mobile/assets/loading_photos_background_dark.png rename to mobile/apps/photos/assets/loading_photos_background_dark.png diff --git a/mobile/assets/lock_screen_background.png b/mobile/apps/photos/assets/lock_screen_background.png similarity index 100% rename from mobile/assets/lock_screen_background.png rename to mobile/apps/photos/assets/lock_screen_background.png diff --git a/mobile/assets/map.png b/mobile/apps/photos/assets/map.png similarity index 100% rename from mobile/assets/map.png rename to mobile/apps/photos/assets/map.png diff --git a/mobile/assets/map_world.png b/mobile/apps/photos/assets/map_world.png similarity index 100% rename from mobile/assets/map_world.png rename to mobile/apps/photos/assets/map_world.png diff --git a/mobile/assets/memories-widget-static.png b/mobile/apps/photos/assets/memories-widget-static.png similarity index 100% rename from mobile/assets/memories-widget-static.png rename to mobile/apps/photos/assets/memories-widget-static.png diff --git a/mobile/assets/new_empty_album.png b/mobile/apps/photos/assets/new_empty_album.png similarity index 100% rename from mobile/assets/new_empty_album.png rename to mobile/apps/photos/assets/new_empty_album.png diff --git a/mobile/assets/new_empty_album_dark.png b/mobile/apps/photos/assets/new_empty_album_dark.png similarity index 100% rename from mobile/assets/new_empty_album_dark.png rename to mobile/apps/photos/assets/new_empty_album_dark.png diff --git a/mobile/assets/onboarding_lock.png b/mobile/apps/photos/assets/onboarding_lock.png similarity index 100% rename from mobile/assets/onboarding_lock.png rename to mobile/apps/photos/assets/onboarding_lock.png diff --git a/mobile/assets/onboarding_safe.png b/mobile/apps/photos/assets/onboarding_safe.png similarity index 100% rename from mobile/assets/onboarding_safe.png rename to mobile/apps/photos/assets/onboarding_safe.png diff --git a/mobile/assets/onboarding_sync.png b/mobile/apps/photos/assets/onboarding_sync.png similarity index 100% rename from mobile/assets/onboarding_sync.png rename to mobile/apps/photos/assets/onboarding_sync.png diff --git a/mobile/assets/people-widget-static.png b/mobile/apps/photos/assets/people-widget-static.png similarity index 100% rename from mobile/assets/people-widget-static.png rename to mobile/apps/photos/assets/people-widget-static.png diff --git a/mobile/assets/popular_subscription.png b/mobile/apps/photos/assets/popular_subscription.png similarity index 100% rename from mobile/assets/popular_subscription.png rename to mobile/apps/photos/assets/popular_subscription.png diff --git a/mobile/assets/preserved_green.png b/mobile/apps/photos/assets/preserved_green.png similarity index 100% rename from mobile/assets/preserved_green.png rename to mobile/apps/photos/assets/preserved_green.png diff --git a/mobile/assets/processing-video-failed.png b/mobile/apps/photos/assets/processing-video-failed.png similarity index 100% rename from mobile/assets/processing-video-failed.png rename to mobile/apps/photos/assets/processing-video-failed.png diff --git a/mobile/assets/processing-video-success.png b/mobile/apps/photos/assets/processing-video-success.png similarity index 100% rename from mobile/assets/processing-video-success.png rename to mobile/apps/photos/assets/processing-video-success.png diff --git a/mobile/assets/processing-video.png b/mobile/apps/photos/assets/processing-video.png similarity index 100% rename from mobile/assets/processing-video.png rename to mobile/apps/photos/assets/processing-video.png diff --git a/mobile/assets/splash-screen-icon.png b/mobile/apps/photos/assets/splash-screen-icon.png similarity index 100% rename from mobile/assets/splash-screen-icon.png rename to mobile/apps/photos/assets/splash-screen-icon.png diff --git a/mobile/assets/storage_card_background.png b/mobile/apps/photos/assets/storage_card_background.png similarity index 100% rename from mobile/assets/storage_card_background.png rename to mobile/apps/photos/assets/storage_card_background.png diff --git a/mobile/assets/type_AVI.png b/mobile/apps/photos/assets/type_AVI.png similarity index 100% rename from mobile/assets/type_AVI.png rename to mobile/apps/photos/assets/type_AVI.png diff --git a/mobile/assets/type_GIF.png b/mobile/apps/photos/assets/type_GIF.png similarity index 100% rename from mobile/assets/type_GIF.png rename to mobile/apps/photos/assets/type_GIF.png diff --git a/mobile/assets/type_HEIC.png b/mobile/apps/photos/assets/type_HEIC.png similarity index 100% rename from mobile/assets/type_HEIC.png rename to mobile/apps/photos/assets/type_HEIC.png diff --git a/mobile/assets/type_JPEG.png b/mobile/apps/photos/assets/type_JPEG.png similarity index 100% rename from mobile/assets/type_JPEG.png rename to mobile/apps/photos/assets/type_JPEG.png diff --git a/mobile/assets/type_JPG.png b/mobile/apps/photos/assets/type_JPG.png similarity index 100% rename from mobile/assets/type_JPG.png rename to mobile/apps/photos/assets/type_JPG.png diff --git a/mobile/assets/type_MKV.png b/mobile/apps/photos/assets/type_MKV.png similarity index 100% rename from mobile/assets/type_MKV.png rename to mobile/apps/photos/assets/type_MKV.png diff --git a/mobile/assets/type_MP4.png b/mobile/apps/photos/assets/type_MP4.png similarity index 100% rename from mobile/assets/type_MP4.png rename to mobile/apps/photos/assets/type_MP4.png diff --git a/mobile/assets/type_PNG.png b/mobile/apps/photos/assets/type_PNG.png similarity index 100% rename from mobile/assets/type_PNG.png rename to mobile/apps/photos/assets/type_PNG.png diff --git a/mobile/assets/type_WEBP.png b/mobile/apps/photos/assets/type_WEBP.png similarity index 100% rename from mobile/assets/type_WEBP.png rename to mobile/apps/photos/assets/type_WEBP.png diff --git a/mobile/assets/type_live.png b/mobile/apps/photos/assets/type_live.png similarity index 100% rename from mobile/assets/type_live.png rename to mobile/apps/photos/assets/type_live.png diff --git a/mobile/assets/type_photos.png b/mobile/apps/photos/assets/type_photos.png similarity index 100% rename from mobile/assets/type_photos.png rename to mobile/apps/photos/assets/type_photos.png diff --git a/mobile/assets/type_unknown.png b/mobile/apps/photos/assets/type_unknown.png similarity index 100% rename from mobile/assets/type_unknown.png rename to mobile/apps/photos/assets/type_unknown.png diff --git a/mobile/assets/type_videos.png b/mobile/apps/photos/assets/type_videos.png similarity index 100% rename from mobile/assets/type_videos.png rename to mobile/apps/photos/assets/type_videos.png diff --git a/mobile/assets/video-editor/video-crop-free-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-free-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-free-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-free-action.svg diff --git a/mobile/assets/video-editor/video-crop-original-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-original-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-original-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-original-action.svg diff --git a/mobile/assets/video-editor/video-crop-ratio_16_9-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-ratio_16_9-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-ratio_16_9-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-ratio_16_9-action.svg diff --git a/mobile/assets/video-editor/video-crop-ratio_1_1-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-ratio_1_1-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-ratio_1_1-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-ratio_1_1-action.svg diff --git a/mobile/assets/video-editor/video-crop-ratio_3_4-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-ratio_3_4-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-ratio_3_4-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-ratio_3_4-action.svg diff --git a/mobile/assets/video-editor/video-crop-ratio_4_3-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-ratio_4_3-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-ratio_4_3-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-ratio_4_3-action.svg diff --git a/mobile/assets/video-editor/video-crop-ratio_9_16-action.svg b/mobile/apps/photos/assets/video-editor/video-crop-ratio_9_16-action.svg similarity index 100% rename from mobile/assets/video-editor/video-crop-ratio_9_16-action.svg rename to mobile/apps/photos/assets/video-editor/video-crop-ratio_9_16-action.svg diff --git a/mobile/assets/video-editor/video-editor-crop-action.svg b/mobile/apps/photos/assets/video-editor/video-editor-crop-action.svg similarity index 100% rename from mobile/assets/video-editor/video-editor-crop-action.svg rename to mobile/apps/photos/assets/video-editor/video-editor-crop-action.svg diff --git a/mobile/assets/video-editor/video-editor-rotate-action.svg b/mobile/apps/photos/assets/video-editor/video-editor-rotate-action.svg similarity index 100% rename from mobile/assets/video-editor/video-editor-rotate-action.svg rename to mobile/apps/photos/assets/video-editor/video-editor-rotate-action.svg diff --git a/mobile/assets/video-editor/video-editor-trim-action.svg b/mobile/apps/photos/assets/video-editor/video-editor-trim-action.svg similarity index 100% rename from mobile/assets/video-editor/video-editor-trim-action.svg rename to mobile/apps/photos/assets/video-editor/video-editor-trim-action.svg diff --git a/mobile/assets/video-processing-queued.png b/mobile/apps/photos/assets/video-processing-queued.png similarity index 100% rename from mobile/assets/video-processing-queued.png rename to mobile/apps/photos/assets/video-processing-queued.png diff --git a/mobile/build-apk.sh b/mobile/apps/photos/build-apk.sh similarity index 100% rename from mobile/build-apk.sh rename to mobile/apps/photos/build-apk.sh diff --git a/mobile/crowdin.yml b/mobile/apps/photos/crowdin.yml similarity index 100% rename from mobile/crowdin.yml rename to mobile/apps/photos/crowdin.yml diff --git a/mobile/devtools_options.yaml b/mobile/apps/photos/devtools_options.yaml similarity index 100% rename from mobile/devtools_options.yaml rename to mobile/apps/photos/devtools_options.yaml diff --git a/mobile/docs/README.md b/mobile/apps/photos/docs/README.md similarity index 100% rename from mobile/docs/README.md rename to mobile/apps/photos/docs/README.md diff --git a/mobile/docs/assets/translations_1.png b/mobile/apps/photos/docs/assets/translations_1.png similarity index 100% rename from mobile/docs/assets/translations_1.png rename to mobile/apps/photos/docs/assets/translations_1.png diff --git a/mobile/docs/assets/translations_2.png b/mobile/apps/photos/docs/assets/translations_2.png similarity index 100% rename from mobile/docs/assets/translations_2.png rename to mobile/apps/photos/docs/assets/translations_2.png diff --git a/mobile/docs/assets/translations_3.png b/mobile/apps/photos/docs/assets/translations_3.png similarity index 100% rename from mobile/docs/assets/translations_3.png rename to mobile/apps/photos/docs/assets/translations_3.png diff --git a/mobile/docs/assets/translations_4.png b/mobile/apps/photos/docs/assets/translations_4.png similarity index 100% rename from mobile/docs/assets/translations_4.png rename to mobile/apps/photos/docs/assets/translations_4.png diff --git a/mobile/docs/dev.md b/mobile/apps/photos/docs/dev.md similarity index 100% rename from mobile/docs/dev.md rename to mobile/apps/photos/docs/dev.md diff --git a/mobile/docs/release.md b/mobile/apps/photos/docs/release.md similarity index 100% rename from mobile/docs/release.md rename to mobile/apps/photos/docs/release.md diff --git a/mobile/docs/translations.md b/mobile/apps/photos/docs/translations.md similarity index 100% rename from mobile/docs/translations.md rename to mobile/apps/photos/docs/translations.md diff --git a/mobile/docs/vscode/launch.json b/mobile/apps/photos/docs/vscode/launch.json similarity index 100% rename from mobile/docs/vscode/launch.json rename to mobile/apps/photos/docs/vscode/launch.json diff --git a/mobile/fastlane/Appfile b/mobile/apps/photos/fastlane/Appfile similarity index 100% rename from mobile/fastlane/Appfile rename to mobile/apps/photos/fastlane/Appfile diff --git a/mobile/fastlane/Fastfile b/mobile/apps/photos/fastlane/Fastfile similarity index 100% rename from mobile/fastlane/Fastfile rename to mobile/apps/photos/fastlane/Fastfile diff --git a/mobile/fastlane/Pluginfile b/mobile/apps/photos/fastlane/Pluginfile similarity index 100% rename from mobile/fastlane/Pluginfile rename to mobile/apps/photos/fastlane/Pluginfile diff --git a/mobile/fastlane/README.md b/mobile/apps/photos/fastlane/README.md similarity index 100% rename from mobile/fastlane/README.md rename to mobile/apps/photos/fastlane/README.md diff --git a/mobile/fastlane/metadata/android/ar/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ar/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ar/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ar/full_description.txt diff --git a/mobile/fastlane/metadata/android/ar/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ar/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ar/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ar/short_description.txt diff --git a/mobile/fastlane/metadata/android/ar/title.txt b/mobile/apps/photos/fastlane/metadata/android/ar/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ar/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ar/title.txt diff --git a/mobile/fastlane/metadata/android/be/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/be/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/be/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/be/full_description.txt diff --git a/mobile/fastlane/metadata/android/be/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/be/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/be/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/be/short_description.txt diff --git a/mobile/fastlane/metadata/android/be/title.txt b/mobile/apps/photos/fastlane/metadata/android/be/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/be/title.txt rename to mobile/apps/photos/fastlane/metadata/android/be/title.txt diff --git a/mobile/fastlane/metadata/android/bg/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/bg/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/bg/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/bg/full_description.txt diff --git a/mobile/fastlane/metadata/android/bg/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/bg/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/bg/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/bg/short_description.txt diff --git a/mobile/fastlane/metadata/android/bg/title.txt b/mobile/apps/photos/fastlane/metadata/android/bg/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/bg/title.txt rename to mobile/apps/photos/fastlane/metadata/android/bg/title.txt diff --git a/mobile/fastlane/metadata/android/ca/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ca/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ca/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ca/full_description.txt diff --git a/mobile/fastlane/metadata/android/ca/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ca/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ca/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ca/short_description.txt diff --git a/mobile/fastlane/metadata/android/ca/title.txt b/mobile/apps/photos/fastlane/metadata/android/ca/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ca/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ca/title.txt diff --git a/mobile/fastlane/metadata/android/cs/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/cs/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/cs/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/cs/full_description.txt diff --git a/mobile/fastlane/metadata/android/cs/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/cs/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/cs/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/cs/short_description.txt diff --git a/mobile/fastlane/metadata/android/cs/title.txt b/mobile/apps/photos/fastlane/metadata/android/cs/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/cs/title.txt rename to mobile/apps/photos/fastlane/metadata/android/cs/title.txt diff --git a/mobile/fastlane/metadata/android/da/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/da/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/da/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/da/full_description.txt diff --git a/mobile/fastlane/metadata/android/da/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/da/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/da/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/da/short_description.txt diff --git a/mobile/fastlane/metadata/android/da/title.txt b/mobile/apps/photos/fastlane/metadata/android/da/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/da/title.txt rename to mobile/apps/photos/fastlane/metadata/android/da/title.txt diff --git a/mobile/fastlane/metadata/android/de/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/de/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/de/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/de/full_description.txt diff --git a/mobile/fastlane/metadata/android/de/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/de/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/de/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/de/short_description.txt diff --git a/mobile/fastlane/metadata/android/de/title.txt b/mobile/apps/photos/fastlane/metadata/android/de/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/de/title.txt rename to mobile/apps/photos/fastlane/metadata/android/de/title.txt diff --git a/mobile/fastlane/metadata/android/el/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/el/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/el/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/el/full_description.txt diff --git a/mobile/fastlane/metadata/android/el/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/el/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/el/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/el/short_description.txt diff --git a/mobile/fastlane/metadata/android/el/title.txt b/mobile/apps/photos/fastlane/metadata/android/el/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/el/title.txt rename to mobile/apps/photos/fastlane/metadata/android/el/title.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/169.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/169.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/169.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/169.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/293.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/293.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/293.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/293.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/317.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/317.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/317.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/317.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/330.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/330.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/330.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/330.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/331.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/331.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/331.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/331.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/333.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/333.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/333.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/333.txt diff --git a/mobile/fastlane/metadata/android/en-US/changelogs/420.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/420.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/changelogs/420.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/changelogs/420.txt diff --git a/mobile/fastlane/metadata/android/en-US/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/full_description.txt diff --git a/mobile/fastlane/metadata/android/en-US/images/icon.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/icon.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/icon.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/icon.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/2.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/3.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/5.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png diff --git a/mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png b/mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png similarity index 100% rename from mobile/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png rename to mobile/apps/photos/fastlane/metadata/android/en-US/images/phoneScreenshots/7.png diff --git a/mobile/fastlane/metadata/android/en-US/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/short_description.txt diff --git a/mobile/fastlane/metadata/android/en-US/title.txt b/mobile/apps/photos/fastlane/metadata/android/en-US/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/en-US/title.txt rename to mobile/apps/photos/fastlane/metadata/android/en-US/title.txt diff --git a/mobile/fastlane/metadata/android/es/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/es/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/es/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/es/full_description.txt diff --git a/mobile/fastlane/metadata/android/es/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/es/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/es/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/es/short_description.txt diff --git a/mobile/fastlane/metadata/android/es/title.txt b/mobile/apps/photos/fastlane/metadata/android/es/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/es/title.txt rename to mobile/apps/photos/fastlane/metadata/android/es/title.txt diff --git a/mobile/fastlane/metadata/android/et/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/et/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/et/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/et/full_description.txt diff --git a/mobile/fastlane/metadata/android/et/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/et/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/et/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/et/short_description.txt diff --git a/mobile/fastlane/metadata/android/et/title.txt b/mobile/apps/photos/fastlane/metadata/android/et/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/et/title.txt rename to mobile/apps/photos/fastlane/metadata/android/et/title.txt diff --git a/mobile/fastlane/metadata/android/eu/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/eu/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/eu/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/eu/full_description.txt diff --git a/mobile/fastlane/metadata/android/eu/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/eu/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/eu/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/eu/short_description.txt diff --git a/mobile/fastlane/metadata/android/eu/title.txt b/mobile/apps/photos/fastlane/metadata/android/eu/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/eu/title.txt rename to mobile/apps/photos/fastlane/metadata/android/eu/title.txt diff --git a/mobile/fastlane/metadata/android/fa/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/fa/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/fa/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/fa/full_description.txt diff --git a/mobile/fastlane/metadata/android/fa/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/fa/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/fa/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/fa/short_description.txt diff --git a/mobile/fastlane/metadata/android/fa/title.txt b/mobile/apps/photos/fastlane/metadata/android/fa/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/fa/title.txt rename to mobile/apps/photos/fastlane/metadata/android/fa/title.txt diff --git a/mobile/fastlane/metadata/android/fr/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/fr/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/fr/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/fr/full_description.txt diff --git a/mobile/fastlane/metadata/android/fr/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/fr/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/fr/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/fr/short_description.txt diff --git a/mobile/fastlane/metadata/android/fr/title.txt b/mobile/apps/photos/fastlane/metadata/android/fr/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/fr/title.txt rename to mobile/apps/photos/fastlane/metadata/android/fr/title.txt diff --git a/mobile/fastlane/metadata/android/gu/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/gu/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/gu/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/gu/full_description.txt diff --git a/mobile/fastlane/metadata/android/gu/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/gu/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/gu/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/gu/short_description.txt diff --git a/mobile/fastlane/metadata/android/gu/title.txt b/mobile/apps/photos/fastlane/metadata/android/gu/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/gu/title.txt rename to mobile/apps/photos/fastlane/metadata/android/gu/title.txt diff --git a/mobile/fastlane/metadata/android/he/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/he/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/he/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/he/full_description.txt diff --git a/mobile/fastlane/metadata/android/he/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/he/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/he/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/he/short_description.txt diff --git a/mobile/fastlane/metadata/android/he/title.txt b/mobile/apps/photos/fastlane/metadata/android/he/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/he/title.txt rename to mobile/apps/photos/fastlane/metadata/android/he/title.txt diff --git a/mobile/fastlane/metadata/android/hi/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/hi/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/hi/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/hi/full_description.txt diff --git a/mobile/fastlane/metadata/android/hi/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/hi/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/hi/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/hi/short_description.txt diff --git a/mobile/fastlane/metadata/android/hi/title.txt b/mobile/apps/photos/fastlane/metadata/android/hi/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/hi/title.txt rename to mobile/apps/photos/fastlane/metadata/android/hi/title.txt diff --git a/mobile/fastlane/metadata/android/hu/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/hu/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/hu/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/hu/full_description.txt diff --git a/mobile/fastlane/metadata/android/hu/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/hu/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/hu/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/hu/short_description.txt diff --git a/mobile/fastlane/metadata/android/hu/title.txt b/mobile/apps/photos/fastlane/metadata/android/hu/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/hu/title.txt rename to mobile/apps/photos/fastlane/metadata/android/hu/title.txt diff --git a/mobile/fastlane/metadata/android/id/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/id/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/id/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/id/full_description.txt diff --git a/mobile/fastlane/metadata/android/id/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/id/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/id/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/id/short_description.txt diff --git a/mobile/fastlane/metadata/android/id/title.txt b/mobile/apps/photos/fastlane/metadata/android/id/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/id/title.txt rename to mobile/apps/photos/fastlane/metadata/android/id/title.txt diff --git a/mobile/fastlane/metadata/android/it/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/it/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/it/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/it/full_description.txt diff --git a/mobile/fastlane/metadata/android/it/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/it/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/it/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/it/short_description.txt diff --git a/mobile/fastlane/metadata/android/it/title.txt b/mobile/apps/photos/fastlane/metadata/android/it/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/it/title.txt rename to mobile/apps/photos/fastlane/metadata/android/it/title.txt diff --git a/mobile/fastlane/metadata/android/ja/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ja/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ja/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ja/full_description.txt diff --git a/mobile/fastlane/metadata/android/ja/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ja/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ja/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ja/short_description.txt diff --git a/mobile/fastlane/metadata/android/ja/title.txt b/mobile/apps/photos/fastlane/metadata/android/ja/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ja/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ja/title.txt diff --git a/mobile/fastlane/metadata/android/km/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/km/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/km/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/km/full_description.txt diff --git a/mobile/fastlane/metadata/android/km/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/km/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/km/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/km/short_description.txt diff --git a/mobile/fastlane/metadata/android/km/title.txt b/mobile/apps/photos/fastlane/metadata/android/km/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/km/title.txt rename to mobile/apps/photos/fastlane/metadata/android/km/title.txt diff --git a/mobile/fastlane/metadata/android/ko/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ko/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ko/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ko/full_description.txt diff --git a/mobile/fastlane/metadata/android/ko/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ko/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ko/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ko/short_description.txt diff --git a/mobile/fastlane/metadata/android/ko/title.txt b/mobile/apps/photos/fastlane/metadata/android/ko/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ko/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ko/title.txt diff --git a/mobile/fastlane/metadata/android/ku/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ku/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ku/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ku/full_description.txt diff --git a/mobile/fastlane/metadata/android/ku/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ku/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ku/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ku/short_description.txt diff --git a/mobile/fastlane/metadata/android/ku/title.txt b/mobile/apps/photos/fastlane/metadata/android/ku/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ku/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ku/title.txt diff --git a/mobile/fastlane/metadata/android/lt/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/lt/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/lt/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/lt/full_description.txt diff --git a/mobile/fastlane/metadata/android/lt/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/lt/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/lt/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/lt/short_description.txt diff --git a/mobile/fastlane/metadata/android/lt/title.txt b/mobile/apps/photos/fastlane/metadata/android/lt/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/lt/title.txt rename to mobile/apps/photos/fastlane/metadata/android/lt/title.txt diff --git a/mobile/fastlane/metadata/android/lv/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/lv/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/lv/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/lv/full_description.txt diff --git a/mobile/fastlane/metadata/android/lv/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/lv/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/lv/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/lv/short_description.txt diff --git a/mobile/fastlane/metadata/android/lv/title.txt b/mobile/apps/photos/fastlane/metadata/android/lv/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/lv/title.txt rename to mobile/apps/photos/fastlane/metadata/android/lv/title.txt diff --git a/mobile/fastlane/metadata/android/ml/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ml/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ml/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ml/full_description.txt diff --git a/mobile/fastlane/metadata/android/ml/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ml/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ml/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ml/short_description.txt diff --git a/mobile/fastlane/metadata/android/ml/title.txt b/mobile/apps/photos/fastlane/metadata/android/ml/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ml/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ml/title.txt diff --git a/mobile/fastlane/metadata/android/nl/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/nl/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/nl/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/nl/full_description.txt diff --git a/mobile/fastlane/metadata/android/nl/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/nl/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/nl/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/nl/short_description.txt diff --git a/mobile/fastlane/metadata/android/nl/title.txt b/mobile/apps/photos/fastlane/metadata/android/nl/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/nl/title.txt rename to mobile/apps/photos/fastlane/metadata/android/nl/title.txt diff --git a/mobile/fastlane/metadata/android/no/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/no/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/no/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/no/full_description.txt diff --git a/mobile/fastlane/metadata/android/no/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/no/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/no/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/no/short_description.txt diff --git a/mobile/fastlane/metadata/android/no/title.txt b/mobile/apps/photos/fastlane/metadata/android/no/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/no/title.txt rename to mobile/apps/photos/fastlane/metadata/android/no/title.txt diff --git a/mobile/fastlane/metadata/android/or/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/or/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/or/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/or/full_description.txt diff --git a/mobile/fastlane/metadata/android/or/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/or/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/or/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/or/short_description.txt diff --git a/mobile/fastlane/metadata/android/or/title.txt b/mobile/apps/photos/fastlane/metadata/android/or/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/or/title.txt rename to mobile/apps/photos/fastlane/metadata/android/or/title.txt diff --git a/mobile/fastlane/metadata/android/pl/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/pl/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pl/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pl/full_description.txt diff --git a/mobile/fastlane/metadata/android/pl/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/pl/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pl/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pl/short_description.txt diff --git a/mobile/fastlane/metadata/android/pl/title.txt b/mobile/apps/photos/fastlane/metadata/android/pl/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/pl/title.txt rename to mobile/apps/photos/fastlane/metadata/android/pl/title.txt diff --git a/mobile/fastlane/metadata/android/pt/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/pt/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pt/full_description.txt diff --git a/mobile/fastlane/metadata/android/pt/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/pt/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pt/short_description.txt diff --git a/mobile/fastlane/metadata/android/pt/title.txt b/mobile/apps/photos/fastlane/metadata/android/pt/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt/title.txt rename to mobile/apps/photos/fastlane/metadata/android/pt/title.txt diff --git a/mobile/fastlane/metadata/android/pt_BR/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/pt_BR/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt_BR/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pt_BR/full_description.txt diff --git a/mobile/fastlane/metadata/android/pt_BR/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/pt_BR/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt_BR/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pt_BR/short_description.txt diff --git a/mobile/fastlane/metadata/android/pt_BR/title.txt b/mobile/apps/photos/fastlane/metadata/android/pt_BR/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt_BR/title.txt rename to mobile/apps/photos/fastlane/metadata/android/pt_BR/title.txt diff --git a/mobile/fastlane/metadata/android/pt_PT/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/pt_PT/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt_PT/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pt_PT/full_description.txt diff --git a/mobile/fastlane/metadata/android/pt_PT/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/pt_PT/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt_PT/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/pt_PT/short_description.txt diff --git a/mobile/fastlane/metadata/android/pt_PT/title.txt b/mobile/apps/photos/fastlane/metadata/android/pt_PT/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/pt_PT/title.txt rename to mobile/apps/photos/fastlane/metadata/android/pt_PT/title.txt diff --git a/mobile/fastlane/metadata/android/ro/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ro/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ro/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ro/full_description.txt diff --git a/mobile/fastlane/metadata/android/ro/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ro/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ro/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ro/short_description.txt diff --git a/mobile/fastlane/metadata/android/ro/title.txt b/mobile/apps/photos/fastlane/metadata/android/ro/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ro/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ro/title.txt diff --git a/mobile/fastlane/metadata/android/ru/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ru/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ru/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ru/full_description.txt diff --git a/mobile/fastlane/metadata/android/ru/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ru/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ru/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ru/short_description.txt diff --git a/mobile/fastlane/metadata/android/ru/title.txt b/mobile/apps/photos/fastlane/metadata/android/ru/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ru/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ru/title.txt diff --git a/mobile/fastlane/metadata/android/sl/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/sl/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/sl/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/sl/full_description.txt diff --git a/mobile/fastlane/metadata/android/sl/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/sl/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/sl/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/sl/short_description.txt diff --git a/mobile/fastlane/metadata/android/sl/title.txt b/mobile/apps/photos/fastlane/metadata/android/sl/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/sl/title.txt rename to mobile/apps/photos/fastlane/metadata/android/sl/title.txt diff --git a/mobile/fastlane/metadata/android/sr/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/sr/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/sr/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/sr/full_description.txt diff --git a/mobile/fastlane/metadata/android/sr/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/sr/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/sr/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/sr/short_description.txt diff --git a/mobile/fastlane/metadata/android/sr/title.txt b/mobile/apps/photos/fastlane/metadata/android/sr/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/sr/title.txt rename to mobile/apps/photos/fastlane/metadata/android/sr/title.txt diff --git a/mobile/fastlane/metadata/android/sv/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/sv/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/sv/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/sv/full_description.txt diff --git a/mobile/fastlane/metadata/android/sv/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/sv/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/sv/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/sv/short_description.txt diff --git a/mobile/fastlane/metadata/android/sv/title.txt b/mobile/apps/photos/fastlane/metadata/android/sv/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/sv/title.txt rename to mobile/apps/photos/fastlane/metadata/android/sv/title.txt diff --git a/mobile/fastlane/metadata/android/ta/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ta/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ta/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ta/full_description.txt diff --git a/mobile/fastlane/metadata/android/ta/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ta/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ta/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ta/short_description.txt diff --git a/mobile/fastlane/metadata/android/ta/title.txt b/mobile/apps/photos/fastlane/metadata/android/ta/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ta/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ta/title.txt diff --git a/mobile/fastlane/metadata/android/te/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/te/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/te/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/te/full_description.txt diff --git a/mobile/fastlane/metadata/android/te/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/te/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/te/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/te/short_description.txt diff --git a/mobile/fastlane/metadata/android/te/title.txt b/mobile/apps/photos/fastlane/metadata/android/te/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/te/title.txt rename to mobile/apps/photos/fastlane/metadata/android/te/title.txt diff --git a/mobile/fastlane/metadata/android/th/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/th/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/th/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/th/full_description.txt diff --git a/mobile/fastlane/metadata/android/th/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/th/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/th/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/th/short_description.txt diff --git a/mobile/fastlane/metadata/android/th/title.txt b/mobile/apps/photos/fastlane/metadata/android/th/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/th/title.txt rename to mobile/apps/photos/fastlane/metadata/android/th/title.txt diff --git a/mobile/fastlane/metadata/android/ti/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/ti/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ti/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ti/full_description.txt diff --git a/mobile/fastlane/metadata/android/ti/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/ti/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/ti/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/ti/short_description.txt diff --git a/mobile/fastlane/metadata/android/ti/title.txt b/mobile/apps/photos/fastlane/metadata/android/ti/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/ti/title.txt rename to mobile/apps/photos/fastlane/metadata/android/ti/title.txt diff --git a/mobile/fastlane/metadata/android/tr/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/tr/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/tr/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/tr/full_description.txt diff --git a/mobile/fastlane/metadata/android/tr/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/tr/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/tr/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/tr/short_description.txt diff --git a/mobile/fastlane/metadata/android/tr/title.txt b/mobile/apps/photos/fastlane/metadata/android/tr/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/tr/title.txt rename to mobile/apps/photos/fastlane/metadata/android/tr/title.txt diff --git a/mobile/fastlane/metadata/android/uk/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/uk/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/uk/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/uk/full_description.txt diff --git a/mobile/fastlane/metadata/android/uk/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/uk/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/uk/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/uk/short_description.txt diff --git a/mobile/fastlane/metadata/android/uk/title.txt b/mobile/apps/photos/fastlane/metadata/android/uk/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/uk/title.txt rename to mobile/apps/photos/fastlane/metadata/android/uk/title.txt diff --git a/mobile/fastlane/metadata/android/vi/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/vi/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/vi/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/vi/full_description.txt diff --git a/mobile/fastlane/metadata/android/vi/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/vi/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/vi/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/vi/short_description.txt diff --git a/mobile/fastlane/metadata/android/vi/title.txt b/mobile/apps/photos/fastlane/metadata/android/vi/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/vi/title.txt rename to mobile/apps/photos/fastlane/metadata/android/vi/title.txt diff --git a/mobile/fastlane/metadata/android/zh/full_description.txt b/mobile/apps/photos/fastlane/metadata/android/zh/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/zh/full_description.txt rename to mobile/apps/photos/fastlane/metadata/android/zh/full_description.txt diff --git a/mobile/fastlane/metadata/android/zh/short_description.txt b/mobile/apps/photos/fastlane/metadata/android/zh/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/android/zh/short_description.txt rename to mobile/apps/photos/fastlane/metadata/android/zh/short_description.txt diff --git a/mobile/fastlane/metadata/android/zh/title.txt b/mobile/apps/photos/fastlane/metadata/android/zh/title.txt similarity index 100% rename from mobile/fastlane/metadata/android/zh/title.txt rename to mobile/apps/photos/fastlane/metadata/android/zh/title.txt diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_129_0.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_129_0.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_129_0.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_129_0.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_3GEN_129_0.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_3GEN_129_0.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_3GEN_129_0.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPAD_PRO_3GEN_129_0.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_55_0.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_55_0.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_55_0.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_55_0.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_65_0.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_65_0.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_65_0.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/0_APP_IPHONE_65_0.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_55_1.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_55_1.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_55_1.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_55_1.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_65_1.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_65_1.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_65_1.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/1_APP_IPHONE_65_1.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_55_2.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_55_2.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_55_2.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_55_2.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_65_2.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_65_2.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_65_2.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/2_APP_IPHONE_65_2.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_55_3.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_55_3.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_55_3.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_55_3.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_65_3.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_65_3.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_65_3.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/3_APP_IPHONE_65_3.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_55_4.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_55_4.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_55_4.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_55_4.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_65_4.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_65_4.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_65_4.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/4_APP_IPHONE_65_4.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_55_5.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_55_5.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_55_5.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_55_5.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_65_5.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_65_5.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_65_5.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/5_APP_IPHONE_65_5.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_55_6.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_55_6.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_55_6.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_55_6.png diff --git a/mobile/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_65_6.png b/mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_65_6.png similarity index 100% rename from mobile/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_65_6.png rename to mobile/apps/photos/fastlane/metadata/ios/Screenshots/en-US/6_APP_IPHONE_65_6.png diff --git a/mobile/fastlane/metadata/ios/ar/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ar/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ar/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ar/description.txt diff --git a/mobile/fastlane/metadata/ios/ar/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ar/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ar/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ar/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ar/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ar/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ar/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ar/name.txt diff --git a/mobile/fastlane/metadata/ios/ar/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ar/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ar/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ar/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/be/description.txt b/mobile/apps/photos/fastlane/metadata/ios/be/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/be/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/be/description.txt diff --git a/mobile/fastlane/metadata/ios/be/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/be/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/be/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/be/keywords.txt diff --git a/mobile/fastlane/metadata/ios/be/name.txt b/mobile/apps/photos/fastlane/metadata/ios/be/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/be/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/be/name.txt diff --git a/mobile/fastlane/metadata/ios/be/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/be/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/be/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/be/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/bg/description.txt b/mobile/apps/photos/fastlane/metadata/ios/bg/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/bg/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/bg/description.txt diff --git a/mobile/fastlane/metadata/ios/bg/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/bg/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/bg/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/bg/keywords.txt diff --git a/mobile/fastlane/metadata/ios/bg/name.txt b/mobile/apps/photos/fastlane/metadata/ios/bg/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/bg/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/bg/name.txt diff --git a/mobile/fastlane/metadata/ios/bg/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/bg/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/bg/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/bg/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ca/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ca/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ca/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ca/description.txt diff --git a/mobile/fastlane/metadata/ios/ca/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ca/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ca/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ca/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ca/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ca/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ca/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ca/name.txt diff --git a/mobile/fastlane/metadata/ios/ca/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ca/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ca/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ca/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/cs/description.txt b/mobile/apps/photos/fastlane/metadata/ios/cs/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/cs/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/cs/description.txt diff --git a/mobile/fastlane/metadata/ios/cs/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/cs/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/cs/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/cs/keywords.txt diff --git a/mobile/fastlane/metadata/ios/cs/name.txt b/mobile/apps/photos/fastlane/metadata/ios/cs/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/cs/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/cs/name.txt diff --git a/mobile/fastlane/metadata/ios/cs/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/cs/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/cs/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/cs/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/da/description.txt b/mobile/apps/photos/fastlane/metadata/ios/da/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/da/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/da/description.txt diff --git a/mobile/fastlane/metadata/ios/da/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/da/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/da/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/da/keywords.txt diff --git a/mobile/fastlane/metadata/ios/da/name.txt b/mobile/apps/photos/fastlane/metadata/ios/da/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/da/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/da/name.txt diff --git a/mobile/fastlane/metadata/ios/da/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/da/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/da/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/da/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/de/description.txt b/mobile/apps/photos/fastlane/metadata/ios/de/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/de/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/de/description.txt diff --git a/mobile/fastlane/metadata/ios/de/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/de/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/de/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/de/keywords.txt diff --git a/mobile/fastlane/metadata/ios/de/name.txt b/mobile/apps/photos/fastlane/metadata/ios/de/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/de/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/de/name.txt diff --git a/mobile/fastlane/metadata/ios/de/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/de/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/de/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/de/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/el/description.txt b/mobile/apps/photos/fastlane/metadata/ios/el/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/el/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/el/description.txt diff --git a/mobile/fastlane/metadata/ios/el/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/el/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/el/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/el/keywords.txt diff --git a/mobile/fastlane/metadata/ios/el/name.txt b/mobile/apps/photos/fastlane/metadata/ios/el/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/el/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/el/name.txt diff --git a/mobile/fastlane/metadata/ios/el/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/el/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/el/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/el/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/en-US/description.txt b/mobile/apps/photos/fastlane/metadata/ios/en-US/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/en-US/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/en-US/description.txt diff --git a/mobile/fastlane/metadata/ios/en-US/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/en-US/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/en-US/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/en-US/keywords.txt diff --git a/mobile/fastlane/metadata/ios/en-US/name.txt b/mobile/apps/photos/fastlane/metadata/ios/en-US/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/en-US/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/en-US/name.txt diff --git a/mobile/fastlane/metadata/ios/en-US/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/en-US/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/en-US/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/en-US/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/es/description.txt b/mobile/apps/photos/fastlane/metadata/ios/es/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/es/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/es/description.txt diff --git a/mobile/fastlane/metadata/ios/es/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/es/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/es/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/es/keywords.txt diff --git a/mobile/fastlane/metadata/ios/es/name.txt b/mobile/apps/photos/fastlane/metadata/ios/es/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/es/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/es/name.txt diff --git a/mobile/fastlane/metadata/ios/es/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/es/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/es/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/es/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/et/description.txt b/mobile/apps/photos/fastlane/metadata/ios/et/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/et/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/et/description.txt diff --git a/mobile/fastlane/metadata/ios/et/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/et/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/et/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/et/keywords.txt diff --git a/mobile/fastlane/metadata/ios/et/name.txt b/mobile/apps/photos/fastlane/metadata/ios/et/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/et/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/et/name.txt diff --git a/mobile/fastlane/metadata/ios/et/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/et/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/et/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/et/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/eu/description.txt b/mobile/apps/photos/fastlane/metadata/ios/eu/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/eu/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/eu/description.txt diff --git a/mobile/fastlane/metadata/ios/eu/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/eu/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/eu/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/eu/keywords.txt diff --git a/mobile/fastlane/metadata/ios/eu/name.txt b/mobile/apps/photos/fastlane/metadata/ios/eu/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/eu/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/eu/name.txt diff --git a/mobile/fastlane/metadata/ios/eu/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/eu/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/eu/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/eu/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/fa/description.txt b/mobile/apps/photos/fastlane/metadata/ios/fa/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fa/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/fa/description.txt diff --git a/mobile/fastlane/metadata/ios/fa/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/fa/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fa/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/fa/keywords.txt diff --git a/mobile/fastlane/metadata/ios/fa/name.txt b/mobile/apps/photos/fastlane/metadata/ios/fa/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fa/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/fa/name.txt diff --git a/mobile/fastlane/metadata/ios/fa/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/fa/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fa/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/fa/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/fr/description.txt b/mobile/apps/photos/fastlane/metadata/ios/fr/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fr/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/fr/description.txt diff --git a/mobile/fastlane/metadata/ios/fr/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/fr/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fr/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/fr/keywords.txt diff --git a/mobile/fastlane/metadata/ios/fr/name.txt b/mobile/apps/photos/fastlane/metadata/ios/fr/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fr/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/fr/name.txt diff --git a/mobile/fastlane/metadata/ios/fr/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/fr/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/fr/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/fr/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/gu/description.txt b/mobile/apps/photos/fastlane/metadata/ios/gu/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/gu/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/gu/description.txt diff --git a/mobile/fastlane/metadata/ios/gu/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/gu/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/gu/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/gu/keywords.txt diff --git a/mobile/fastlane/metadata/ios/gu/name.txt b/mobile/apps/photos/fastlane/metadata/ios/gu/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/gu/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/gu/name.txt diff --git a/mobile/fastlane/metadata/ios/gu/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/gu/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/gu/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/gu/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/he/description.txt b/mobile/apps/photos/fastlane/metadata/ios/he/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/he/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/he/description.txt diff --git a/mobile/fastlane/metadata/ios/he/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/he/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/he/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/he/keywords.txt diff --git a/mobile/fastlane/metadata/ios/he/name.txt b/mobile/apps/photos/fastlane/metadata/ios/he/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/he/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/he/name.txt diff --git a/mobile/fastlane/metadata/ios/he/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/he/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/he/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/he/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/hi/description.txt b/mobile/apps/photos/fastlane/metadata/ios/hi/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hi/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/hi/description.txt diff --git a/mobile/fastlane/metadata/ios/hi/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/hi/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hi/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/hi/keywords.txt diff --git a/mobile/fastlane/metadata/ios/hi/name.txt b/mobile/apps/photos/fastlane/metadata/ios/hi/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hi/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/hi/name.txt diff --git a/mobile/fastlane/metadata/ios/hi/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/hi/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hi/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/hi/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/hu/description.txt b/mobile/apps/photos/fastlane/metadata/ios/hu/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hu/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/hu/description.txt diff --git a/mobile/fastlane/metadata/ios/hu/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/hu/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hu/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/hu/keywords.txt diff --git a/mobile/fastlane/metadata/ios/hu/name.txt b/mobile/apps/photos/fastlane/metadata/ios/hu/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hu/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/hu/name.txt diff --git a/mobile/fastlane/metadata/ios/hu/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/hu/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/hu/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/hu/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/id/description.txt b/mobile/apps/photos/fastlane/metadata/ios/id/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/id/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/id/description.txt diff --git a/mobile/fastlane/metadata/ios/id/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/id/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/id/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/id/keywords.txt diff --git a/mobile/fastlane/metadata/ios/id/name.txt b/mobile/apps/photos/fastlane/metadata/ios/id/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/id/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/id/name.txt diff --git a/mobile/fastlane/metadata/ios/id/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/id/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/id/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/id/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/it/description.txt b/mobile/apps/photos/fastlane/metadata/ios/it/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/it/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/it/description.txt diff --git a/mobile/fastlane/metadata/ios/it/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/it/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/it/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/it/keywords.txt diff --git a/mobile/fastlane/metadata/ios/it/name.txt b/mobile/apps/photos/fastlane/metadata/ios/it/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/it/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/it/name.txt diff --git a/mobile/fastlane/metadata/ios/it/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/it/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/it/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/it/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ja/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ja/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ja/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ja/description.txt diff --git a/mobile/fastlane/metadata/ios/ja/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ja/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ja/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ja/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ja/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ja/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ja/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ja/name.txt diff --git a/mobile/fastlane/metadata/ios/ja/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ja/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ja/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ja/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/km/description.txt b/mobile/apps/photos/fastlane/metadata/ios/km/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/km/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/km/description.txt diff --git a/mobile/fastlane/metadata/ios/km/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/km/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/km/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/km/keywords.txt diff --git a/mobile/fastlane/metadata/ios/km/name.txt b/mobile/apps/photos/fastlane/metadata/ios/km/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/km/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/km/name.txt diff --git a/mobile/fastlane/metadata/ios/km/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/km/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/km/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/km/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ko/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ko/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ko/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ko/description.txt diff --git a/mobile/fastlane/metadata/ios/ko/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ko/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ko/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ko/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ko/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ko/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ko/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ko/name.txt diff --git a/mobile/fastlane/metadata/ios/ko/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ko/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ko/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ko/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ku/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ku/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ku/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ku/description.txt diff --git a/mobile/fastlane/metadata/ios/ku/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ku/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ku/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ku/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ku/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ku/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ku/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ku/name.txt diff --git a/mobile/fastlane/metadata/ios/ku/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ku/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ku/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ku/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/lt/description.txt b/mobile/apps/photos/fastlane/metadata/ios/lt/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lt/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/lt/description.txt diff --git a/mobile/fastlane/metadata/ios/lt/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/lt/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lt/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/lt/keywords.txt diff --git a/mobile/fastlane/metadata/ios/lt/name.txt b/mobile/apps/photos/fastlane/metadata/ios/lt/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lt/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/lt/name.txt diff --git a/mobile/fastlane/metadata/ios/lt/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/lt/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lt/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/lt/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/lv/description.txt b/mobile/apps/photos/fastlane/metadata/ios/lv/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lv/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/lv/description.txt diff --git a/mobile/fastlane/metadata/ios/lv/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/lv/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lv/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/lv/keywords.txt diff --git a/mobile/fastlane/metadata/ios/lv/name.txt b/mobile/apps/photos/fastlane/metadata/ios/lv/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lv/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/lv/name.txt diff --git a/mobile/fastlane/metadata/ios/lv/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/lv/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/lv/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/lv/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ml/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ml/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ml/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ml/description.txt diff --git a/mobile/fastlane/metadata/ios/ml/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ml/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ml/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ml/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ml/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ml/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ml/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ml/name.txt diff --git a/mobile/fastlane/metadata/ios/ml/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ml/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ml/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ml/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/nl/description.txt b/mobile/apps/photos/fastlane/metadata/ios/nl/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/nl/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/nl/description.txt diff --git a/mobile/fastlane/metadata/ios/nl/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/nl/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/nl/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/nl/keywords.txt diff --git a/mobile/fastlane/metadata/ios/nl/name.txt b/mobile/apps/photos/fastlane/metadata/ios/nl/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/nl/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/nl/name.txt diff --git a/mobile/fastlane/metadata/ios/nl/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/nl/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/nl/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/nl/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/no/description.txt b/mobile/apps/photos/fastlane/metadata/ios/no/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/no/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/no/description.txt diff --git a/mobile/fastlane/metadata/ios/no/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/no/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/no/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/no/keywords.txt diff --git a/mobile/fastlane/metadata/ios/no/name.txt b/mobile/apps/photos/fastlane/metadata/ios/no/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/no/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/no/name.txt diff --git a/mobile/fastlane/metadata/ios/no/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/no/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/no/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/no/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/or/description.txt b/mobile/apps/photos/fastlane/metadata/ios/or/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/or/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/or/description.txt diff --git a/mobile/fastlane/metadata/ios/or/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/or/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/or/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/or/keywords.txt diff --git a/mobile/fastlane/metadata/ios/or/name.txt b/mobile/apps/photos/fastlane/metadata/ios/or/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/or/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/or/name.txt diff --git a/mobile/fastlane/metadata/ios/or/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/or/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/or/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/or/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/pl/description.txt b/mobile/apps/photos/fastlane/metadata/ios/pl/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pl/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/pl/description.txt diff --git a/mobile/fastlane/metadata/ios/pl/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/pl/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pl/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/pl/keywords.txt diff --git a/mobile/fastlane/metadata/ios/pl/name.txt b/mobile/apps/photos/fastlane/metadata/ios/pl/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pl/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/pl/name.txt diff --git a/mobile/fastlane/metadata/ios/pl/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/pl/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pl/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/pl/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/pt/description.txt b/mobile/apps/photos/fastlane/metadata/ios/pt/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt/description.txt diff --git a/mobile/fastlane/metadata/ios/pt/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/pt/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt/keywords.txt diff --git a/mobile/fastlane/metadata/ios/pt/name.txt b/mobile/apps/photos/fastlane/metadata/ios/pt/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt/name.txt diff --git a/mobile/fastlane/metadata/ios/pt/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/pt/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/pt_BR/description.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_BR/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_BR/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_BR/description.txt diff --git a/mobile/fastlane/metadata/ios/pt_BR/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_BR/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_BR/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_BR/keywords.txt diff --git a/mobile/fastlane/metadata/ios/pt_BR/name.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_BR/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_BR/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_BR/name.txt diff --git a/mobile/fastlane/metadata/ios/pt_BR/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_BR/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_BR/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_BR/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/pt_PT/description.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_PT/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_PT/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_PT/description.txt diff --git a/mobile/fastlane/metadata/ios/pt_PT/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_PT/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_PT/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_PT/keywords.txt diff --git a/mobile/fastlane/metadata/ios/pt_PT/name.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_PT/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_PT/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_PT/name.txt diff --git a/mobile/fastlane/metadata/ios/pt_PT/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/pt_PT/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/pt_PT/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/pt_PT/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ro/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ro/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ro/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ro/description.txt diff --git a/mobile/fastlane/metadata/ios/ro/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ro/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ro/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ro/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ro/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ro/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ro/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ro/name.txt diff --git a/mobile/fastlane/metadata/ios/ro/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ro/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ro/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ro/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ru/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ru/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ru/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ru/description.txt diff --git a/mobile/fastlane/metadata/ios/ru/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ru/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ru/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ru/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ru/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ru/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ru/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ru/name.txt diff --git a/mobile/fastlane/metadata/ios/ru/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ru/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ru/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ru/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/sl/description.txt b/mobile/apps/photos/fastlane/metadata/ios/sl/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sl/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/sl/description.txt diff --git a/mobile/fastlane/metadata/ios/sl/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/sl/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sl/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/sl/keywords.txt diff --git a/mobile/fastlane/metadata/ios/sl/name.txt b/mobile/apps/photos/fastlane/metadata/ios/sl/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sl/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/sl/name.txt diff --git a/mobile/fastlane/metadata/ios/sl/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/sl/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sl/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/sl/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/sr/description.txt b/mobile/apps/photos/fastlane/metadata/ios/sr/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sr/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/sr/description.txt diff --git a/mobile/fastlane/metadata/ios/sr/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/sr/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sr/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/sr/keywords.txt diff --git a/mobile/fastlane/metadata/ios/sr/name.txt b/mobile/apps/photos/fastlane/metadata/ios/sr/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sr/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/sr/name.txt diff --git a/mobile/fastlane/metadata/ios/sr/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/sr/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sr/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/sr/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/sv/description.txt b/mobile/apps/photos/fastlane/metadata/ios/sv/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sv/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/sv/description.txt diff --git a/mobile/fastlane/metadata/ios/sv/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/sv/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sv/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/sv/keywords.txt diff --git a/mobile/fastlane/metadata/ios/sv/name.txt b/mobile/apps/photos/fastlane/metadata/ios/sv/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sv/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/sv/name.txt diff --git a/mobile/fastlane/metadata/ios/sv/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/sv/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/sv/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/sv/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ta/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ta/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ta/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ta/description.txt diff --git a/mobile/fastlane/metadata/ios/ta/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ta/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ta/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ta/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ta/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ta/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ta/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ta/name.txt diff --git a/mobile/fastlane/metadata/ios/ta/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ta/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ta/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ta/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/te/description.txt b/mobile/apps/photos/fastlane/metadata/ios/te/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/te/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/te/description.txt diff --git a/mobile/fastlane/metadata/ios/te/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/te/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/te/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/te/keywords.txt diff --git a/mobile/fastlane/metadata/ios/te/name.txt b/mobile/apps/photos/fastlane/metadata/ios/te/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/te/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/te/name.txt diff --git a/mobile/fastlane/metadata/ios/te/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/te/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/te/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/te/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/th/description.txt b/mobile/apps/photos/fastlane/metadata/ios/th/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/th/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/th/description.txt diff --git a/mobile/fastlane/metadata/ios/th/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/th/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/th/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/th/keywords.txt diff --git a/mobile/fastlane/metadata/ios/th/name.txt b/mobile/apps/photos/fastlane/metadata/ios/th/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/th/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/th/name.txt diff --git a/mobile/fastlane/metadata/ios/th/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/th/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/th/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/th/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/ti/description.txt b/mobile/apps/photos/fastlane/metadata/ios/ti/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ti/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/ti/description.txt diff --git a/mobile/fastlane/metadata/ios/ti/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/ti/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ti/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/ti/keywords.txt diff --git a/mobile/fastlane/metadata/ios/ti/name.txt b/mobile/apps/photos/fastlane/metadata/ios/ti/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ti/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/ti/name.txt diff --git a/mobile/fastlane/metadata/ios/ti/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/ti/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/ti/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/ti/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/tr/description.txt b/mobile/apps/photos/fastlane/metadata/ios/tr/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/tr/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/tr/description.txt diff --git a/mobile/fastlane/metadata/ios/tr/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/tr/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/tr/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/tr/keywords.txt diff --git a/mobile/fastlane/metadata/ios/tr/name.txt b/mobile/apps/photos/fastlane/metadata/ios/tr/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/tr/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/tr/name.txt diff --git a/mobile/fastlane/metadata/ios/tr/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/tr/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/tr/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/tr/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/uk/description.txt b/mobile/apps/photos/fastlane/metadata/ios/uk/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/uk/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/uk/description.txt diff --git a/mobile/fastlane/metadata/ios/uk/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/uk/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/uk/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/uk/keywords.txt diff --git a/mobile/fastlane/metadata/ios/uk/name.txt b/mobile/apps/photos/fastlane/metadata/ios/uk/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/uk/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/uk/name.txt diff --git a/mobile/fastlane/metadata/ios/uk/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/uk/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/uk/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/uk/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/vi/description.txt b/mobile/apps/photos/fastlane/metadata/ios/vi/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/vi/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/vi/description.txt diff --git a/mobile/fastlane/metadata/ios/vi/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/vi/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/vi/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/vi/keywords.txt diff --git a/mobile/fastlane/metadata/ios/vi/name.txt b/mobile/apps/photos/fastlane/metadata/ios/vi/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/vi/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/vi/name.txt diff --git a/mobile/fastlane/metadata/ios/vi/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/vi/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/vi/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/vi/subtitle.txt diff --git a/mobile/fastlane/metadata/ios/zh/description.txt b/mobile/apps/photos/fastlane/metadata/ios/zh/description.txt similarity index 100% rename from mobile/fastlane/metadata/ios/zh/description.txt rename to mobile/apps/photos/fastlane/metadata/ios/zh/description.txt diff --git a/mobile/fastlane/metadata/ios/zh/keywords.txt b/mobile/apps/photos/fastlane/metadata/ios/zh/keywords.txt similarity index 100% rename from mobile/fastlane/metadata/ios/zh/keywords.txt rename to mobile/apps/photos/fastlane/metadata/ios/zh/keywords.txt diff --git a/mobile/fastlane/metadata/ios/zh/name.txt b/mobile/apps/photos/fastlane/metadata/ios/zh/name.txt similarity index 100% rename from mobile/fastlane/metadata/ios/zh/name.txt rename to mobile/apps/photos/fastlane/metadata/ios/zh/name.txt diff --git a/mobile/fastlane/metadata/ios/zh/subtitle.txt b/mobile/apps/photos/fastlane/metadata/ios/zh/subtitle.txt similarity index 100% rename from mobile/fastlane/metadata/ios/zh/subtitle.txt rename to mobile/apps/photos/fastlane/metadata/ios/zh/subtitle.txt diff --git a/mobile/fastlane/metadata/playstore/ar/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ar/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ar/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ar/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ar/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ar/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ar/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ar/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ar/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ar/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ar/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ar/title.txt diff --git a/mobile/fastlane/metadata/playstore/be/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/be/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/be/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/be/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/be/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/be/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/be/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/be/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/be/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/be/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/be/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/be/title.txt diff --git a/mobile/fastlane/metadata/playstore/bg/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/bg/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/bg/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/bg/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/bg/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/bg/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/bg/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/bg/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/bg/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/bg/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/bg/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/bg/title.txt diff --git a/mobile/fastlane/metadata/playstore/ca/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ca/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ca/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ca/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ca/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ca/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ca/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ca/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ca/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ca/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ca/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ca/title.txt diff --git a/mobile/fastlane/metadata/playstore/cs/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/cs/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/cs/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/cs/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/cs/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/cs/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/cs/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/cs/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/cs/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/cs/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/cs/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/cs/title.txt diff --git a/mobile/fastlane/metadata/playstore/da/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/da/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/da/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/da/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/da/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/da/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/da/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/da/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/da/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/da/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/da/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/da/title.txt diff --git a/mobile/fastlane/metadata/playstore/de/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/de/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/de/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/de/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/de/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/de/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/de/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/de/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/de/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/de/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/de/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/de/title.txt diff --git a/mobile/fastlane/metadata/playstore/el/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/el/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/el/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/el/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/el/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/el/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/el/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/el/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/el/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/el/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/el/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/el/title.txt diff --git a/mobile/fastlane/metadata/playstore/en-US/changelogs/443.txt b/mobile/apps/photos/fastlane/metadata/playstore/en-US/changelogs/443.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/changelogs/443.txt rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/changelogs/443.txt diff --git a/mobile/fastlane/metadata/playstore/en-US/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/en-US/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/en-US/images/featureGraphic.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/featureGraphic.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/featureGraphic.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/featureGraphic.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/icon.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/icon.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/icon.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/icon.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/1_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/1_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/1_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/1_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/2_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/2_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/2_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/2_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/3_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/3_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/3_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/3_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/4_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/4_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/4_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/4_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/5_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/5_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/5_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/5_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/6_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/6_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/6_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/6_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/7_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/7_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/phoneScreenshots/7_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/phoneScreenshots/7_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/sevenInchScreenshots/1_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/sevenInchScreenshots/1_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/sevenInchScreenshots/1_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/sevenInchScreenshots/1_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/images/tenInchScreenshots/1_en-US.png b/mobile/apps/photos/fastlane/metadata/playstore/en-US/images/tenInchScreenshots/1_en-US.png similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/images/tenInchScreenshots/1_en-US.png rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/images/tenInchScreenshots/1_en-US.png diff --git a/mobile/fastlane/metadata/playstore/en-US/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/en-US/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/en-US/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/en-US/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/en-US/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/en-US/title.txt diff --git a/mobile/fastlane/metadata/playstore/es/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/es/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/es/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/es/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/es/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/es/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/es/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/es/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/es/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/es/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/es/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/es/title.txt diff --git a/mobile/fastlane/metadata/playstore/et/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/et/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/et/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/et/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/et/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/et/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/et/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/et/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/et/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/et/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/et/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/et/title.txt diff --git a/mobile/fastlane/metadata/playstore/eu/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/eu/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/eu/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/eu/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/eu/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/eu/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/eu/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/eu/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/eu/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/eu/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/eu/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/eu/title.txt diff --git a/mobile/fastlane/metadata/playstore/fa/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/fa/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/fa/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/fa/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/fa/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/fa/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/fa/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/fa/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/fa/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/fa/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/fa/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/fa/title.txt diff --git a/mobile/fastlane/metadata/playstore/fr/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/fr/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/fr/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/fr/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/fr/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/fr/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/fr/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/fr/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/fr/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/fr/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/fr/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/fr/title.txt diff --git a/mobile/fastlane/metadata/playstore/gu/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/gu/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/gu/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/gu/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/gu/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/gu/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/gu/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/gu/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/gu/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/gu/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/gu/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/gu/title.txt diff --git a/mobile/fastlane/metadata/playstore/he/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/he/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/he/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/he/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/he/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/he/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/he/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/he/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/he/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/he/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/he/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/he/title.txt diff --git a/mobile/fastlane/metadata/playstore/hi/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/hi/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/hi/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/hi/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/hi/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/hi/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/hi/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/hi/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/hi/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/hi/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/hi/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/hi/title.txt diff --git a/mobile/fastlane/metadata/playstore/hu/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/hu/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/hu/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/hu/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/hu/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/hu/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/hu/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/hu/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/hu/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/hu/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/hu/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/hu/title.txt diff --git a/mobile/fastlane/metadata/playstore/id/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/id/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/id/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/id/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/id/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/id/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/id/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/id/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/id/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/id/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/id/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/id/title.txt diff --git a/mobile/fastlane/metadata/playstore/it/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/it/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/it/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/it/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/it/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/it/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/it/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/it/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/it/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/it/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/it/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/it/title.txt diff --git a/mobile/fastlane/metadata/playstore/ja/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ja/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ja/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ja/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ja/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ja/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ja/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ja/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ja/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ja/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ja/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ja/title.txt diff --git a/mobile/fastlane/metadata/playstore/km/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/km/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/km/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/km/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/km/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/km/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/km/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/km/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/km/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/km/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/km/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/km/title.txt diff --git a/mobile/fastlane/metadata/playstore/ko/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ko/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ko/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ko/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ko/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ko/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ko/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ko/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ko/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ko/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ko/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ko/title.txt diff --git a/mobile/fastlane/metadata/playstore/ku/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ku/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ku/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ku/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ku/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ku/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ku/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ku/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ku/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ku/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ku/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ku/title.txt diff --git a/mobile/fastlane/metadata/playstore/lt/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/lt/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/lt/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/lt/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/lt/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/lt/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/lt/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/lt/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/lt/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/lt/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/lt/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/lt/title.txt diff --git a/mobile/fastlane/metadata/playstore/lv/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/lv/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/lv/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/lv/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/lv/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/lv/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/lv/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/lv/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/lv/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/lv/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/lv/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/lv/title.txt diff --git a/mobile/fastlane/metadata/playstore/ml/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ml/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ml/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ml/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ml/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ml/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ml/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ml/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ml/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ml/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ml/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ml/title.txt diff --git a/mobile/fastlane/metadata/playstore/nl/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/nl/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/nl/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/nl/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/nl/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/nl/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/nl/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/nl/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/nl/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/nl/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/nl/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/nl/title.txt diff --git a/mobile/fastlane/metadata/playstore/no/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/no/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/no/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/no/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/no/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/no/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/no/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/no/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/no/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/no/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/no/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/no/title.txt diff --git a/mobile/fastlane/metadata/playstore/or/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/or/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/or/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/or/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/or/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/or/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/or/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/or/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/or/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/or/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/or/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/or/title.txt diff --git a/mobile/fastlane/metadata/playstore/pl/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pl/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pl/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pl/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/pl/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pl/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pl/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pl/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/pl/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/pl/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pl/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pl/title.txt diff --git a/mobile/fastlane/metadata/playstore/pt/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/pt/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/pt/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt/title.txt diff --git a/mobile/fastlane/metadata/playstore/pt_BR/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt_BR/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt_BR/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt_BR/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/pt_BR/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt_BR/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt_BR/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt_BR/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/pt_BR/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt_BR/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt_BR/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt_BR/title.txt diff --git a/mobile/fastlane/metadata/playstore/pt_PT/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt_PT/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt_PT/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt_PT/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/pt_PT/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt_PT/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt_PT/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt_PT/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/pt_PT/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/pt_PT/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/pt_PT/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/pt_PT/title.txt diff --git a/mobile/fastlane/metadata/playstore/ro/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ro/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ro/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ro/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ro/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ro/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ro/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ro/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ro/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ro/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ro/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ro/title.txt diff --git a/mobile/fastlane/metadata/playstore/ru/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ru/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ru/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ru/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ru/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ru/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ru/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ru/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ru/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ru/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ru/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ru/title.txt diff --git a/mobile/fastlane/metadata/playstore/sl/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/sl/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sl/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sl/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/sl/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/sl/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sl/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sl/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/sl/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/sl/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sl/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sl/title.txt diff --git a/mobile/fastlane/metadata/playstore/sr/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/sr/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sr/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sr/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/sr/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/sr/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sr/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sr/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/sr/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/sr/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sr/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sr/title.txt diff --git a/mobile/fastlane/metadata/playstore/sv/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/sv/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sv/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sv/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/sv/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/sv/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sv/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sv/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/sv/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/sv/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/sv/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/sv/title.txt diff --git a/mobile/fastlane/metadata/playstore/ta/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ta/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ta/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ta/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ta/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ta/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ta/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ta/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ta/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ta/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ta/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ta/title.txt diff --git a/mobile/fastlane/metadata/playstore/te/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/te/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/te/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/te/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/te/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/te/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/te/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/te/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/te/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/te/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/te/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/te/title.txt diff --git a/mobile/fastlane/metadata/playstore/th/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/th/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/th/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/th/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/th/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/th/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/th/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/th/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/th/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/th/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/th/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/th/title.txt diff --git a/mobile/fastlane/metadata/playstore/ti/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ti/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ti/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ti/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/ti/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/ti/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ti/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ti/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/ti/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/ti/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/ti/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/ti/title.txt diff --git a/mobile/fastlane/metadata/playstore/tr/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/tr/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/tr/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/tr/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/tr/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/tr/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/tr/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/tr/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/tr/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/tr/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/tr/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/tr/title.txt diff --git a/mobile/fastlane/metadata/playstore/uk/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/uk/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/uk/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/uk/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/uk/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/uk/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/uk/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/uk/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/uk/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/uk/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/uk/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/uk/title.txt diff --git a/mobile/fastlane/metadata/playstore/vi/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/vi/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/vi/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/vi/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/vi/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/vi/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/vi/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/vi/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/vi/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/vi/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/vi/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/vi/title.txt diff --git a/mobile/fastlane/metadata/playstore/zh/full_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/zh/full_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/zh/full_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/zh/full_description.txt diff --git a/mobile/fastlane/metadata/playstore/zh/short_description.txt b/mobile/apps/photos/fastlane/metadata/playstore/zh/short_description.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/zh/short_description.txt rename to mobile/apps/photos/fastlane/metadata/playstore/zh/short_description.txt diff --git a/mobile/fastlane/metadata/playstore/zh/title.txt b/mobile/apps/photos/fastlane/metadata/playstore/zh/title.txt similarity index 100% rename from mobile/fastlane/metadata/playstore/zh/title.txt rename to mobile/apps/photos/fastlane/metadata/playstore/zh/title.txt diff --git a/mobile/fonts/Inter-Bold.ttf b/mobile/apps/photos/fonts/Inter-Bold.ttf similarity index 100% rename from mobile/fonts/Inter-Bold.ttf rename to mobile/apps/photos/fonts/Inter-Bold.ttf diff --git a/mobile/fonts/Inter-Light.ttf b/mobile/apps/photos/fonts/Inter-Light.ttf similarity index 100% rename from mobile/fonts/Inter-Light.ttf rename to mobile/apps/photos/fonts/Inter-Light.ttf diff --git a/mobile/fonts/Inter-Medium.ttf b/mobile/apps/photos/fonts/Inter-Medium.ttf similarity index 100% rename from mobile/fonts/Inter-Medium.ttf rename to mobile/apps/photos/fonts/Inter-Medium.ttf diff --git a/mobile/fonts/Inter-Regular.ttf b/mobile/apps/photos/fonts/Inter-Regular.ttf similarity index 100% rename from mobile/fonts/Inter-Regular.ttf rename to mobile/apps/photos/fonts/Inter-Regular.ttf diff --git a/mobile/fonts/Inter-SemiBold.ttf b/mobile/apps/photos/fonts/Inter-SemiBold.ttf similarity index 100% rename from mobile/fonts/Inter-SemiBold.ttf rename to mobile/apps/photos/fonts/Inter-SemiBold.ttf diff --git a/mobile/fonts/Montserrat-Bold.ttf b/mobile/apps/photos/fonts/Montserrat-Bold.ttf similarity index 100% rename from mobile/fonts/Montserrat-Bold.ttf rename to mobile/apps/photos/fonts/Montserrat-Bold.ttf diff --git a/mobile/hooks/pre-commit b/mobile/apps/photos/hooks/pre-commit similarity index 100% rename from mobile/hooks/pre-commit rename to mobile/apps/photos/hooks/pre-commit diff --git a/mobile/hooks/pre-commit-fdroid b/mobile/apps/photos/hooks/pre-commit-fdroid similarity index 100% rename from mobile/hooks/pre-commit-fdroid rename to mobile/apps/photos/hooks/pre-commit-fdroid diff --git a/mobile/integration_test/app_init_test.dart b/mobile/apps/photos/integration_test/app_init_test.dart similarity index 100% rename from mobile/integration_test/app_init_test.dart rename to mobile/apps/photos/integration_test/app_init_test.dart diff --git a/mobile/integration_test/home_gallery_scroll_test.dart b/mobile/apps/photos/integration_test/home_gallery_scroll_test.dart similarity index 100% rename from mobile/integration_test/home_gallery_scroll_test.dart rename to mobile/apps/photos/integration_test/home_gallery_scroll_test.dart diff --git a/mobile/ios/.gitignore b/mobile/apps/photos/ios/.gitignore similarity index 100% rename from mobile/ios/.gitignore rename to mobile/apps/photos/ios/.gitignore diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/AccentColor.colorset/Contents.json b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/AccentColor.colorset/Contents.json rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/AlbumsWidgetDefault.png b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/AlbumsWidgetDefault.png similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/AlbumsWidgetDefault.png rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/AlbumsWidgetDefault.png diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/Contents.json b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/Contents.json similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/Contents.json rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetDefault.imageset/Contents.json diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/AlbumsWidgetPreview.png b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/AlbumsWidgetPreview.png similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/AlbumsWidgetPreview.png rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/AlbumsWidgetPreview.png diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/Contents.json b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/Contents.json similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/Contents.json rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/AlbumsWidgetPreview.imageset/Contents.json diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/Contents.json b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/Contents.json similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/Contents.json rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/Contents.json diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/IconGreen.appiconset/Contents.json b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/IconGreen.appiconset/Contents.json similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/IconGreen.appiconset/Contents.json rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/IconGreen.appiconset/Contents.json diff --git a/mobile/ios/EnteAlbumWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json b/mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json similarity index 100% rename from mobile/ios/EnteAlbumWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json rename to mobile/apps/photos/ios/EnteAlbumWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json diff --git a/mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift b/mobile/apps/photos/ios/EnteAlbumWidget/EnteAlbumWidget.swift similarity index 100% rename from mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift rename to mobile/apps/photos/ios/EnteAlbumWidget/EnteAlbumWidget.swift diff --git a/mobile/ios/EnteAlbumWidget/EnteAlbumWidgetBundle.swift b/mobile/apps/photos/ios/EnteAlbumWidget/EnteAlbumWidgetBundle.swift similarity index 100% rename from mobile/ios/EnteAlbumWidget/EnteAlbumWidgetBundle.swift rename to mobile/apps/photos/ios/EnteAlbumWidget/EnteAlbumWidgetBundle.swift diff --git a/mobile/ios/EnteAlbumWidget/Info.plist b/mobile/apps/photos/ios/EnteAlbumWidget/Info.plist similarity index 100% rename from mobile/ios/EnteAlbumWidget/Info.plist rename to mobile/apps/photos/ios/EnteAlbumWidget/Info.plist diff --git a/mobile/ios/EnteAlbumWidgetExtension.entitlements b/mobile/apps/photos/ios/EnteAlbumWidgetExtension.entitlements similarity index 100% rename from mobile/ios/EnteAlbumWidgetExtension.entitlements rename to mobile/apps/photos/ios/EnteAlbumWidgetExtension.entitlements diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/AccentColor.colorset/Contents.json b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/AccentColor.colorset/Contents.json rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/Contents.json b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/Contents.json similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/Contents.json rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/Contents.json diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/IconGreen.appiconset/Contents.json b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/IconGreen.appiconset/Contents.json similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/IconGreen.appiconset/Contents.json rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/IconGreen.appiconset/Contents.json diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/Contents.json b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/Contents.json similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/Contents.json rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/Contents.json diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/MemoriesWidgetDefault.png b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/MemoriesWidgetDefault.png similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/MemoriesWidgetDefault.png rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetDefault.imageset/MemoriesWidgetDefault.png diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/Contents.json b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/Contents.json similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/Contents.json rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/Contents.json diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/MemoriesWidgetPreview.png b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/MemoriesWidgetPreview.png similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/MemoriesWidgetPreview.png rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/MemoriesWidgetPreview.imageset/MemoriesWidgetPreview.png diff --git a/mobile/ios/EnteMemoryWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json b/mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json similarity index 100% rename from mobile/ios/EnteMemoryWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json rename to mobile/apps/photos/ios/EnteMemoryWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json diff --git a/mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift b/mobile/apps/photos/ios/EnteMemoryWidget/EnteMemoryWidget.swift similarity index 100% rename from mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift rename to mobile/apps/photos/ios/EnteMemoryWidget/EnteMemoryWidget.swift diff --git a/mobile/ios/EnteMemoryWidget/EnteMemoryWidgetBundle.swift b/mobile/apps/photos/ios/EnteMemoryWidget/EnteMemoryWidgetBundle.swift similarity index 100% rename from mobile/ios/EnteMemoryWidget/EnteMemoryWidgetBundle.swift rename to mobile/apps/photos/ios/EnteMemoryWidget/EnteMemoryWidgetBundle.swift diff --git a/mobile/ios/EnteMemoryWidget/Info.plist b/mobile/apps/photos/ios/EnteMemoryWidget/Info.plist similarity index 100% rename from mobile/ios/EnteMemoryWidget/Info.plist rename to mobile/apps/photos/ios/EnteMemoryWidget/Info.plist diff --git a/mobile/ios/EnteMemoryWidgetExtension.entitlements b/mobile/apps/photos/ios/EnteMemoryWidgetExtension.entitlements similarity index 100% rename from mobile/ios/EnteMemoryWidgetExtension.entitlements rename to mobile/apps/photos/ios/EnteMemoryWidgetExtension.entitlements diff --git a/mobile/ios/EnteMemoryWidgetExtensionDebug.entitlements b/mobile/apps/photos/ios/EnteMemoryWidgetExtensionDebug.entitlements similarity index 100% rename from mobile/ios/EnteMemoryWidgetExtensionDebug.entitlements rename to mobile/apps/photos/ios/EnteMemoryWidgetExtensionDebug.entitlements diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/AccentColor.colorset/Contents.json b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/AccentColor.colorset/Contents.json rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/Contents.json b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/Contents.json similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/Contents.json rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/Contents.json diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/IconGreen.appiconset/Contents.json b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/IconGreen.appiconset/Contents.json similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/IconGreen.appiconset/Contents.json rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/IconGreen.appiconset/Contents.json diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/Contents.json b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/Contents.json similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/Contents.json rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/Contents.json diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/PeopleWidgetDefault.png b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/PeopleWidgetDefault.png similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/PeopleWidgetDefault.png rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetDefault.imageset/PeopleWidgetDefault.png diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/Contents.json b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/Contents.json similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/Contents.json rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/Contents.json diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/PeopleWidgetPreview.png b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/PeopleWidgetPreview.png similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/PeopleWidgetPreview.png rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/PeopleWidgetPreview.imageset/PeopleWidgetPreview.png diff --git a/mobile/ios/EntePeopleWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json b/mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json similarity index 100% rename from mobile/ios/EntePeopleWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json rename to mobile/apps/photos/ios/EntePeopleWidget/Assets.xcassets/WidgetBackground.colorset/Contents.json diff --git a/mobile/ios/EntePeopleWidget/EntePeopleWidget.swift b/mobile/apps/photos/ios/EntePeopleWidget/EntePeopleWidget.swift similarity index 100% rename from mobile/ios/EntePeopleWidget/EntePeopleWidget.swift rename to mobile/apps/photos/ios/EntePeopleWidget/EntePeopleWidget.swift diff --git a/mobile/ios/EntePeopleWidget/EntePeopleWidgetBundle.swift b/mobile/apps/photos/ios/EntePeopleWidget/EntePeopleWidgetBundle.swift similarity index 100% rename from mobile/ios/EntePeopleWidget/EntePeopleWidgetBundle.swift rename to mobile/apps/photos/ios/EntePeopleWidget/EntePeopleWidgetBundle.swift diff --git a/mobile/ios/EntePeopleWidget/Info.plist b/mobile/apps/photos/ios/EntePeopleWidget/Info.plist similarity index 100% rename from mobile/ios/EntePeopleWidget/Info.plist rename to mobile/apps/photos/ios/EntePeopleWidget/Info.plist diff --git a/mobile/ios/EntePeopleWidgetExtension.entitlements b/mobile/apps/photos/ios/EntePeopleWidgetExtension.entitlements similarity index 100% rename from mobile/ios/EntePeopleWidgetExtension.entitlements rename to mobile/apps/photos/ios/EntePeopleWidgetExtension.entitlements diff --git a/mobile/ios/Flutter/AppFrameworkInfo.plist b/mobile/apps/photos/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from mobile/ios/Flutter/AppFrameworkInfo.plist rename to mobile/apps/photos/ios/Flutter/AppFrameworkInfo.plist diff --git a/mobile/ios/Flutter/Debug.xcconfig b/mobile/apps/photos/ios/Flutter/Debug.xcconfig similarity index 100% rename from mobile/ios/Flutter/Debug.xcconfig rename to mobile/apps/photos/ios/Flutter/Debug.xcconfig diff --git a/mobile/ios/Flutter/Release.xcconfig b/mobile/apps/photos/ios/Flutter/Release.xcconfig similarity index 100% rename from mobile/ios/Flutter/Release.xcconfig rename to mobile/apps/photos/ios/Flutter/Release.xcconfig diff --git a/mobile/ios/GoogleService-Info.plist b/mobile/apps/photos/ios/GoogleService-Info.plist similarity index 100% rename from mobile/ios/GoogleService-Info.plist rename to mobile/apps/photos/ios/GoogleService-Info.plist diff --git a/mobile/ios/Podfile b/mobile/apps/photos/ios/Podfile similarity index 100% rename from mobile/ios/Podfile rename to mobile/apps/photos/ios/Podfile diff --git a/mobile/ios/Podfile.lock b/mobile/apps/photos/ios/Podfile.lock similarity index 100% rename from mobile/ios/Podfile.lock rename to mobile/apps/photos/ios/Podfile.lock diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from mobile/ios/Runner.xcodeproj/project.pbxproj rename to mobile/apps/photos/ios/Runner.xcodeproj/project.pbxproj diff --git a/mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/mobile/apps/photos/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to mobile/apps/photos/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/mobile/apps/photos/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to mobile/apps/photos/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/mobile/apps/photos/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to mobile/apps/photos/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/mobile/ios/Runner.xcworkspace/contents.xcworkspacedata b/mobile/apps/photos/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from mobile/ios/Runner.xcworkspace/contents.xcworkspacedata rename to mobile/apps/photos/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/mobile/apps/photos/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to mobile/apps/photos/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/mobile/ios/Runner/AppDelegate.swift b/mobile/apps/photos/ios/Runner/AppDelegate.swift similarity index 100% rename from mobile/ios/Runner/AppDelegate.swift rename to mobile/apps/photos/ios/Runner/AppDelegate.swift diff --git a/mobile/ios/Runner/Assets.xcassets/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkAny.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkAny.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkAny.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkAny.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkDark.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkDark.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkDark.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkDark.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkTinted.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkTinted.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkTinted.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconDark.appiconset/IconDarkTinted.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenAny.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenAny.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenAny.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenAny.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenDark.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenDark.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenDark.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenDark.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenTinted.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenTinted.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenTinted.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconGreen.appiconset/IconGreenTinted.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightAny.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightAny.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightAny.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightAny.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightDark.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightDark.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightDark.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightDark.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightTinted.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightTinted.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightTinted.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconLight.appiconset/IconLightTinted.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGAny.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGAny.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGAny.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGAny.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGDark.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGDark.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGDark.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGDark.png diff --git a/mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGTinted.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGTinted.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGTinted.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/IconOG.appiconset/IconOGTinted.png diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to mobile/apps/photos/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard b/mobile/apps/photos/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to mobile/apps/photos/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/mobile/ios/Runner/Base.lproj/Main.storyboard b/mobile/apps/photos/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from mobile/ios/Runner/Base.lproj/Main.storyboard rename to mobile/apps/photos/ios/Runner/Base.lproj/Main.storyboard diff --git a/mobile/ios/Runner/Info.plist b/mobile/apps/photos/ios/Runner/Info.plist similarity index 100% rename from mobile/ios/Runner/Info.plist rename to mobile/apps/photos/ios/Runner/Info.plist diff --git a/mobile/ios/Runner/Runner-Bridging-Header.h b/mobile/apps/photos/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from mobile/ios/Runner/Runner-Bridging-Header.h rename to mobile/apps/photos/ios/Runner/Runner-Bridging-Header.h diff --git a/mobile/ios/Runner/Runner.entitlements b/mobile/apps/photos/ios/Runner/Runner.entitlements similarity index 100% rename from mobile/ios/Runner/Runner.entitlements rename to mobile/apps/photos/ios/Runner/Runner.entitlements diff --git a/mobile/l10n.yaml b/mobile/apps/photos/l10n.yaml similarity index 100% rename from mobile/l10n.yaml rename to mobile/apps/photos/l10n.yaml diff --git a/mobile/lib/app.dart b/mobile/apps/photos/lib/app.dart similarity index 100% rename from mobile/lib/app.dart rename to mobile/apps/photos/lib/app.dart diff --git a/mobile/lib/core/cache/image_cache.dart b/mobile/apps/photos/lib/core/cache/image_cache.dart similarity index 100% rename from mobile/lib/core/cache/image_cache.dart rename to mobile/apps/photos/lib/core/cache/image_cache.dart diff --git a/mobile/lib/core/cache/lru_map.dart b/mobile/apps/photos/lib/core/cache/lru_map.dart similarity index 100% rename from mobile/lib/core/cache/lru_map.dart rename to mobile/apps/photos/lib/core/cache/lru_map.dart diff --git a/mobile/lib/core/cache/thumbnail_in_memory_cache.dart b/mobile/apps/photos/lib/core/cache/thumbnail_in_memory_cache.dart similarity index 100% rename from mobile/lib/core/cache/thumbnail_in_memory_cache.dart rename to mobile/apps/photos/lib/core/cache/thumbnail_in_memory_cache.dart diff --git a/mobile/lib/core/cache/video_cache_manager.dart b/mobile/apps/photos/lib/core/cache/video_cache_manager.dart similarity index 100% rename from mobile/lib/core/cache/video_cache_manager.dart rename to mobile/apps/photos/lib/core/cache/video_cache_manager.dart diff --git a/mobile/lib/core/configuration.dart b/mobile/apps/photos/lib/core/configuration.dart similarity index 100% rename from mobile/lib/core/configuration.dart rename to mobile/apps/photos/lib/core/configuration.dart diff --git a/mobile/lib/core/constants.dart b/mobile/apps/photos/lib/core/constants.dart similarity index 100% rename from mobile/lib/core/constants.dart rename to mobile/apps/photos/lib/core/constants.dart diff --git a/mobile/lib/core/error-reporting/isolate_logging.dart b/mobile/apps/photos/lib/core/error-reporting/isolate_logging.dart similarity index 100% rename from mobile/lib/core/error-reporting/isolate_logging.dart rename to mobile/apps/photos/lib/core/error-reporting/isolate_logging.dart diff --git a/mobile/lib/core/error-reporting/super_logging.dart b/mobile/apps/photos/lib/core/error-reporting/super_logging.dart similarity index 100% rename from mobile/lib/core/error-reporting/super_logging.dart rename to mobile/apps/photos/lib/core/error-reporting/super_logging.dart diff --git a/mobile/lib/core/error-reporting/tunneled_transport.dart b/mobile/apps/photos/lib/core/error-reporting/tunneled_transport.dart similarity index 100% rename from mobile/lib/core/error-reporting/tunneled_transport.dart rename to mobile/apps/photos/lib/core/error-reporting/tunneled_transport.dart diff --git a/mobile/lib/core/errors.dart b/mobile/apps/photos/lib/core/errors.dart similarity index 100% rename from mobile/lib/core/errors.dart rename to mobile/apps/photos/lib/core/errors.dart diff --git a/mobile/lib/core/event_bus.dart b/mobile/apps/photos/lib/core/event_bus.dart similarity index 100% rename from mobile/lib/core/event_bus.dart rename to mobile/apps/photos/lib/core/event_bus.dart diff --git a/mobile/lib/core/network/ente_interceptor.dart b/mobile/apps/photos/lib/core/network/ente_interceptor.dart similarity index 100% rename from mobile/lib/core/network/ente_interceptor.dart rename to mobile/apps/photos/lib/core/network/ente_interceptor.dart diff --git a/mobile/lib/core/network/network.dart b/mobile/apps/photos/lib/core/network/network.dart similarity index 100% rename from mobile/lib/core/network/network.dart rename to mobile/apps/photos/lib/core/network/network.dart diff --git a/mobile/lib/data/holidays.dart b/mobile/apps/photos/lib/data/holidays.dart similarity index 100% rename from mobile/lib/data/holidays.dart rename to mobile/apps/photos/lib/data/holidays.dart diff --git a/mobile/lib/data/months.dart b/mobile/apps/photos/lib/data/months.dart similarity index 100% rename from mobile/lib/data/months.dart rename to mobile/apps/photos/lib/data/months.dart diff --git a/mobile/lib/data/years.dart b/mobile/apps/photos/lib/data/years.dart similarity index 100% rename from mobile/lib/data/years.dart rename to mobile/apps/photos/lib/data/years.dart diff --git a/mobile/lib/db/collections_db.dart b/mobile/apps/photos/lib/db/collections_db.dart similarity index 100% rename from mobile/lib/db/collections_db.dart rename to mobile/apps/photos/lib/db/collections_db.dart diff --git a/mobile/lib/db/common/base.dart b/mobile/apps/photos/lib/db/common/base.dart similarity index 100% rename from mobile/lib/db/common/base.dart rename to mobile/apps/photos/lib/db/common/base.dart diff --git a/mobile/lib/db/common/conflict_algo.dart b/mobile/apps/photos/lib/db/common/conflict_algo.dart similarity index 100% rename from mobile/lib/db/common/conflict_algo.dart rename to mobile/apps/photos/lib/db/common/conflict_algo.dart diff --git a/mobile/lib/db/device_files_db.dart b/mobile/apps/photos/lib/db/device_files_db.dart similarity index 100% rename from mobile/lib/db/device_files_db.dart rename to mobile/apps/photos/lib/db/device_files_db.dart diff --git a/mobile/lib/db/entities_db.dart b/mobile/apps/photos/lib/db/entities_db.dart similarity index 100% rename from mobile/lib/db/entities_db.dart rename to mobile/apps/photos/lib/db/entities_db.dart diff --git a/mobile/lib/db/file_updation_db.dart b/mobile/apps/photos/lib/db/file_updation_db.dart similarity index 100% rename from mobile/lib/db/file_updation_db.dart rename to mobile/apps/photos/lib/db/file_updation_db.dart diff --git a/mobile/lib/db/files_db.dart b/mobile/apps/photos/lib/db/files_db.dart similarity index 100% rename from mobile/lib/db/files_db.dart rename to mobile/apps/photos/lib/db/files_db.dart diff --git a/mobile/lib/db/ignored_files_db.dart b/mobile/apps/photos/lib/db/ignored_files_db.dart similarity index 100% rename from mobile/lib/db/ignored_files_db.dart rename to mobile/apps/photos/lib/db/ignored_files_db.dart diff --git a/mobile/lib/db/memories_db.dart b/mobile/apps/photos/lib/db/memories_db.dart similarity index 100% rename from mobile/lib/db/memories_db.dart rename to mobile/apps/photos/lib/db/memories_db.dart diff --git a/mobile/lib/db/ml/base.dart b/mobile/apps/photos/lib/db/ml/base.dart similarity index 100% rename from mobile/lib/db/ml/base.dart rename to mobile/apps/photos/lib/db/ml/base.dart diff --git a/mobile/lib/db/ml/db.dart b/mobile/apps/photos/lib/db/ml/db.dart similarity index 100% rename from mobile/lib/db/ml/db.dart rename to mobile/apps/photos/lib/db/ml/db.dart diff --git a/mobile/lib/db/ml/db_model_mappers.dart b/mobile/apps/photos/lib/db/ml/db_model_mappers.dart similarity index 100% rename from mobile/lib/db/ml/db_model_mappers.dart rename to mobile/apps/photos/lib/db/ml/db_model_mappers.dart diff --git a/mobile/lib/db/ml/filedata.dart b/mobile/apps/photos/lib/db/ml/filedata.dart similarity index 100% rename from mobile/lib/db/ml/filedata.dart rename to mobile/apps/photos/lib/db/ml/filedata.dart diff --git a/mobile/lib/db/ml/schema.dart b/mobile/apps/photos/lib/db/ml/schema.dart similarity index 100% rename from mobile/lib/db/ml/schema.dart rename to mobile/apps/photos/lib/db/ml/schema.dart diff --git a/mobile/lib/db/trash_db.dart b/mobile/apps/photos/lib/db/trash_db.dart similarity index 100% rename from mobile/lib/db/trash_db.dart rename to mobile/apps/photos/lib/db/trash_db.dart diff --git a/mobile/lib/db/upload_locks_db.dart b/mobile/apps/photos/lib/db/upload_locks_db.dart similarity index 100% rename from mobile/lib/db/upload_locks_db.dart rename to mobile/apps/photos/lib/db/upload_locks_db.dart diff --git a/mobile/lib/emergency/emergency_page.dart b/mobile/apps/photos/lib/emergency/emergency_page.dart similarity index 100% rename from mobile/lib/emergency/emergency_page.dart rename to mobile/apps/photos/lib/emergency/emergency_page.dart diff --git a/mobile/lib/emergency/emergency_service.dart b/mobile/apps/photos/lib/emergency/emergency_service.dart similarity index 100% rename from mobile/lib/emergency/emergency_service.dart rename to mobile/apps/photos/lib/emergency/emergency_service.dart diff --git a/mobile/lib/emergency/model.dart b/mobile/apps/photos/lib/emergency/model.dart similarity index 100% rename from mobile/lib/emergency/model.dart rename to mobile/apps/photos/lib/emergency/model.dart diff --git a/mobile/lib/emergency/other_contact_page.dart b/mobile/apps/photos/lib/emergency/other_contact_page.dart similarity index 100% rename from mobile/lib/emergency/other_contact_page.dart rename to mobile/apps/photos/lib/emergency/other_contact_page.dart diff --git a/mobile/lib/emergency/recover_others_account.dart b/mobile/apps/photos/lib/emergency/recover_others_account.dart similarity index 100% rename from mobile/lib/emergency/recover_others_account.dart rename to mobile/apps/photos/lib/emergency/recover_others_account.dart diff --git a/mobile/lib/emergency/select_contact_page.dart b/mobile/apps/photos/lib/emergency/select_contact_page.dart similarity index 100% rename from mobile/lib/emergency/select_contact_page.dart rename to mobile/apps/photos/lib/emergency/select_contact_page.dart diff --git a/mobile/lib/ente_theme_data.dart b/mobile/apps/photos/lib/ente_theme_data.dart similarity index 100% rename from mobile/lib/ente_theme_data.dart rename to mobile/apps/photos/lib/ente_theme_data.dart diff --git a/mobile/lib/events/account_configured_event.dart b/mobile/apps/photos/lib/events/account_configured_event.dart similarity index 100% rename from mobile/lib/events/account_configured_event.dart rename to mobile/apps/photos/lib/events/account_configured_event.dart diff --git a/mobile/lib/events/album_sort_order_change_event.dart b/mobile/apps/photos/lib/events/album_sort_order_change_event.dart similarity index 100% rename from mobile/lib/events/album_sort_order_change_event.dart rename to mobile/apps/photos/lib/events/album_sort_order_change_event.dart diff --git a/mobile/lib/events/backup_folders_updated_event.dart b/mobile/apps/photos/lib/events/backup_folders_updated_event.dart similarity index 100% rename from mobile/lib/events/backup_folders_updated_event.dart rename to mobile/apps/photos/lib/events/backup_folders_updated_event.dart diff --git a/mobile/lib/events/backup_updated_event.dart b/mobile/apps/photos/lib/events/backup_updated_event.dart similarity index 100% rename from mobile/lib/events/backup_updated_event.dart rename to mobile/apps/photos/lib/events/backup_updated_event.dart diff --git a/mobile/lib/events/clear_album_selections_event.dart b/mobile/apps/photos/lib/events/clear_album_selections_event.dart similarity index 100% rename from mobile/lib/events/clear_album_selections_event.dart rename to mobile/apps/photos/lib/events/clear_album_selections_event.dart diff --git a/mobile/lib/events/clear_and_unfocus_search_bar_event.dart b/mobile/apps/photos/lib/events/clear_and_unfocus_search_bar_event.dart similarity index 100% rename from mobile/lib/events/clear_and_unfocus_search_bar_event.dart rename to mobile/apps/photos/lib/events/clear_and_unfocus_search_bar_event.dart diff --git a/mobile/lib/events/clear_selections_event.dart b/mobile/apps/photos/lib/events/clear_selections_event.dart similarity index 100% rename from mobile/lib/events/clear_selections_event.dart rename to mobile/apps/photos/lib/events/clear_selections_event.dart diff --git a/mobile/lib/events/collection_meta_event.dart b/mobile/apps/photos/lib/events/collection_meta_event.dart similarity index 100% rename from mobile/lib/events/collection_meta_event.dart rename to mobile/apps/photos/lib/events/collection_meta_event.dart diff --git a/mobile/lib/events/collection_updated_event.dart b/mobile/apps/photos/lib/events/collection_updated_event.dart similarity index 100% rename from mobile/lib/events/collection_updated_event.dart rename to mobile/apps/photos/lib/events/collection_updated_event.dart diff --git a/mobile/lib/events/compute_control_event.dart b/mobile/apps/photos/lib/events/compute_control_event.dart similarity index 100% rename from mobile/lib/events/compute_control_event.dart rename to mobile/apps/photos/lib/events/compute_control_event.dart diff --git a/mobile/lib/events/create_new_album_event.dart b/mobile/apps/photos/lib/events/create_new_album_event.dart similarity index 100% rename from mobile/lib/events/create_new_album_event.dart rename to mobile/apps/photos/lib/events/create_new_album_event.dart diff --git a/mobile/lib/events/details_sheet_event.dart b/mobile/apps/photos/lib/events/details_sheet_event.dart similarity index 100% rename from mobile/lib/events/details_sheet_event.dart rename to mobile/apps/photos/lib/events/details_sheet_event.dart diff --git a/mobile/lib/events/diff_sync_complete_event.dart b/mobile/apps/photos/lib/events/diff_sync_complete_event.dart similarity index 100% rename from mobile/lib/events/diff_sync_complete_event.dart rename to mobile/apps/photos/lib/events/diff_sync_complete_event.dart diff --git a/mobile/lib/events/embedding_updated_event.dart b/mobile/apps/photos/lib/events/embedding_updated_event.dart similarity index 100% rename from mobile/lib/events/embedding_updated_event.dart rename to mobile/apps/photos/lib/events/embedding_updated_event.dart diff --git a/mobile/lib/events/endpoint_updated_event.dart b/mobile/apps/photos/lib/events/endpoint_updated_event.dart similarity index 100% rename from mobile/lib/events/endpoint_updated_event.dart rename to mobile/apps/photos/lib/events/endpoint_updated_event.dart diff --git a/mobile/lib/events/event.dart b/mobile/apps/photos/lib/events/event.dart similarity index 100% rename from mobile/lib/events/event.dart rename to mobile/apps/photos/lib/events/event.dart diff --git a/mobile/lib/events/favorites_service_init_complete_event.dart b/mobile/apps/photos/lib/events/favorites_service_init_complete_event.dart similarity index 100% rename from mobile/lib/events/favorites_service_init_complete_event.dart rename to mobile/apps/photos/lib/events/favorites_service_init_complete_event.dart diff --git a/mobile/lib/events/file_caption_updated_event.dart b/mobile/apps/photos/lib/events/file_caption_updated_event.dart similarity index 100% rename from mobile/lib/events/file_caption_updated_event.dart rename to mobile/apps/photos/lib/events/file_caption_updated_event.dart diff --git a/mobile/lib/events/file_uploaded_event.dart b/mobile/apps/photos/lib/events/file_uploaded_event.dart similarity index 100% rename from mobile/lib/events/file_uploaded_event.dart rename to mobile/apps/photos/lib/events/file_uploaded_event.dart diff --git a/mobile/lib/events/files_updated_event.dart b/mobile/apps/photos/lib/events/files_updated_event.dart similarity index 100% rename from mobile/lib/events/files_updated_event.dart rename to mobile/apps/photos/lib/events/files_updated_event.dart diff --git a/mobile/lib/events/force_reload_home_gallery_event.dart b/mobile/apps/photos/lib/events/force_reload_home_gallery_event.dart similarity index 100% rename from mobile/lib/events/force_reload_home_gallery_event.dart rename to mobile/apps/photos/lib/events/force_reload_home_gallery_event.dart diff --git a/mobile/lib/events/force_reload_trash_page_event.dart b/mobile/apps/photos/lib/events/force_reload_trash_page_event.dart similarity index 100% rename from mobile/lib/events/force_reload_trash_page_event.dart rename to mobile/apps/photos/lib/events/force_reload_trash_page_event.dart diff --git a/mobile/lib/events/guest_view_event.dart b/mobile/apps/photos/lib/events/guest_view_event.dart similarity index 100% rename from mobile/lib/events/guest_view_event.dart rename to mobile/apps/photos/lib/events/guest_view_event.dart diff --git a/mobile/lib/events/hide_shared_items_from_home_gallery_event.dart b/mobile/apps/photos/lib/events/hide_shared_items_from_home_gallery_event.dart similarity index 100% rename from mobile/lib/events/hide_shared_items_from_home_gallery_event.dart rename to mobile/apps/photos/lib/events/hide_shared_items_from_home_gallery_event.dart diff --git a/mobile/lib/events/local_import_progress.dart b/mobile/apps/photos/lib/events/local_import_progress.dart similarity index 100% rename from mobile/lib/events/local_import_progress.dart rename to mobile/apps/photos/lib/events/local_import_progress.dart diff --git a/mobile/lib/events/local_photos_updated_event.dart b/mobile/apps/photos/lib/events/local_photos_updated_event.dart similarity index 100% rename from mobile/lib/events/local_photos_updated_event.dart rename to mobile/apps/photos/lib/events/local_photos_updated_event.dart diff --git a/mobile/lib/events/location_tag_updated_event.dart b/mobile/apps/photos/lib/events/location_tag_updated_event.dart similarity index 100% rename from mobile/lib/events/location_tag_updated_event.dart rename to mobile/apps/photos/lib/events/location_tag_updated_event.dart diff --git a/mobile/lib/events/magic_cache_updated_event.dart b/mobile/apps/photos/lib/events/magic_cache_updated_event.dart similarity index 100% rename from mobile/lib/events/magic_cache_updated_event.dart rename to mobile/apps/photos/lib/events/magic_cache_updated_event.dart diff --git a/mobile/lib/events/magic_sort_change_event.dart b/mobile/apps/photos/lib/events/magic_sort_change_event.dart similarity index 100% rename from mobile/lib/events/magic_sort_change_event.dart rename to mobile/apps/photos/lib/events/magic_sort_change_event.dart diff --git a/mobile/lib/events/memories_changed_event.dart b/mobile/apps/photos/lib/events/memories_changed_event.dart similarity index 100% rename from mobile/lib/events/memories_changed_event.dart rename to mobile/apps/photos/lib/events/memories_changed_event.dart diff --git a/mobile/lib/events/memories_setting_changed.dart b/mobile/apps/photos/lib/events/memories_setting_changed.dart similarity index 100% rename from mobile/lib/events/memories_setting_changed.dart rename to mobile/apps/photos/lib/events/memories_setting_changed.dart diff --git a/mobile/lib/events/memory_seen_event.dart b/mobile/apps/photos/lib/events/memory_seen_event.dart similarity index 100% rename from mobile/lib/events/memory_seen_event.dart rename to mobile/apps/photos/lib/events/memory_seen_event.dart diff --git a/mobile/lib/events/notification_event.dart b/mobile/apps/photos/lib/events/notification_event.dart similarity index 100% rename from mobile/lib/events/notification_event.dart rename to mobile/apps/photos/lib/events/notification_event.dart diff --git a/mobile/lib/events/opened_settings_event.dart b/mobile/apps/photos/lib/events/opened_settings_event.dart similarity index 100% rename from mobile/lib/events/opened_settings_event.dart rename to mobile/apps/photos/lib/events/opened_settings_event.dart diff --git a/mobile/lib/events/pause_video_event.dart b/mobile/apps/photos/lib/events/pause_video_event.dart similarity index 100% rename from mobile/lib/events/pause_video_event.dart rename to mobile/apps/photos/lib/events/pause_video_event.dart diff --git a/mobile/lib/events/people_changed_event.dart b/mobile/apps/photos/lib/events/people_changed_event.dart similarity index 100% rename from mobile/lib/events/people_changed_event.dart rename to mobile/apps/photos/lib/events/people_changed_event.dart diff --git a/mobile/lib/events/permission_granted_event.dart b/mobile/apps/photos/lib/events/permission_granted_event.dart similarity index 100% rename from mobile/lib/events/permission_granted_event.dart rename to mobile/apps/photos/lib/events/permission_granted_event.dart diff --git a/mobile/lib/events/reset_zoom_of_photo_view_event.dart b/mobile/apps/photos/lib/events/reset_zoom_of_photo_view_event.dart similarity index 100% rename from mobile/lib/events/reset_zoom_of_photo_view_event.dart rename to mobile/apps/photos/lib/events/reset_zoom_of_photo_view_event.dart diff --git a/mobile/lib/events/seekbar_triggered_event.dart b/mobile/apps/photos/lib/events/seekbar_triggered_event.dart similarity index 100% rename from mobile/lib/events/seekbar_triggered_event.dart rename to mobile/apps/photos/lib/events/seekbar_triggered_event.dart diff --git a/mobile/lib/events/signed_in_event.dart b/mobile/apps/photos/lib/events/signed_in_event.dart similarity index 100% rename from mobile/lib/events/signed_in_event.dart rename to mobile/apps/photos/lib/events/signed_in_event.dart diff --git a/mobile/lib/events/stream_switched_event.dart b/mobile/apps/photos/lib/events/stream_switched_event.dart similarity index 100% rename from mobile/lib/events/stream_switched_event.dart rename to mobile/apps/photos/lib/events/stream_switched_event.dart diff --git a/mobile/lib/events/subscription_purchased_event.dart b/mobile/apps/photos/lib/events/subscription_purchased_event.dart similarity index 100% rename from mobile/lib/events/subscription_purchased_event.dart rename to mobile/apps/photos/lib/events/subscription_purchased_event.dart diff --git a/mobile/lib/events/sync_status_update_event.dart b/mobile/apps/photos/lib/events/sync_status_update_event.dart similarity index 100% rename from mobile/lib/events/sync_status_update_event.dart rename to mobile/apps/photos/lib/events/sync_status_update_event.dart diff --git a/mobile/lib/events/tab_changed_event.dart b/mobile/apps/photos/lib/events/tab_changed_event.dart similarity index 100% rename from mobile/lib/events/tab_changed_event.dart rename to mobile/apps/photos/lib/events/tab_changed_event.dart diff --git a/mobile/lib/events/trash_updated_event.dart b/mobile/apps/photos/lib/events/trash_updated_event.dart similarity index 100% rename from mobile/lib/events/trash_updated_event.dart rename to mobile/apps/photos/lib/events/trash_updated_event.dart diff --git a/mobile/lib/events/trigger_logout_event.dart b/mobile/apps/photos/lib/events/trigger_logout_event.dart similarity index 100% rename from mobile/lib/events/trigger_logout_event.dart rename to mobile/apps/photos/lib/events/trigger_logout_event.dart diff --git a/mobile/lib/events/two_factor_status_change_event.dart b/mobile/apps/photos/lib/events/two_factor_status_change_event.dart similarity index 100% rename from mobile/lib/events/two_factor_status_change_event.dart rename to mobile/apps/photos/lib/events/two_factor_status_change_event.dart diff --git a/mobile/lib/events/use_media_kit_for_video.dart b/mobile/apps/photos/lib/events/use_media_kit_for_video.dart similarity index 100% rename from mobile/lib/events/use_media_kit_for_video.dart rename to mobile/apps/photos/lib/events/use_media_kit_for_video.dart diff --git a/mobile/lib/events/user_details_changed_event.dart b/mobile/apps/photos/lib/events/user_details_changed_event.dart similarity index 100% rename from mobile/lib/events/user_details_changed_event.dart rename to mobile/apps/photos/lib/events/user_details_changed_event.dart diff --git a/mobile/lib/events/user_logged_out_event.dart b/mobile/apps/photos/lib/events/user_logged_out_event.dart similarity index 100% rename from mobile/lib/events/user_logged_out_event.dart rename to mobile/apps/photos/lib/events/user_logged_out_event.dart diff --git a/mobile/lib/events/video_streaming_changed.dart b/mobile/apps/photos/lib/events/video_streaming_changed.dart similarity index 100% rename from mobile/lib/events/video_streaming_changed.dart rename to mobile/apps/photos/lib/events/video_streaming_changed.dart diff --git a/mobile/lib/extensions/input_formatter.dart b/mobile/apps/photos/lib/extensions/input_formatter.dart similarity index 100% rename from mobile/lib/extensions/input_formatter.dart rename to mobile/apps/photos/lib/extensions/input_formatter.dart diff --git a/mobile/lib/extensions/list.dart b/mobile/apps/photos/lib/extensions/list.dart similarity index 100% rename from mobile/lib/extensions/list.dart rename to mobile/apps/photos/lib/extensions/list.dart diff --git a/mobile/lib/extensions/ml_linalg_extensions.dart b/mobile/apps/photos/lib/extensions/ml_linalg_extensions.dart similarity index 100% rename from mobile/lib/extensions/ml_linalg_extensions.dart rename to mobile/apps/photos/lib/extensions/ml_linalg_extensions.dart diff --git a/mobile/lib/extensions/stop_watch.dart b/mobile/apps/photos/lib/extensions/stop_watch.dart similarity index 100% rename from mobile/lib/extensions/stop_watch.dart rename to mobile/apps/photos/lib/extensions/stop_watch.dart diff --git a/mobile/lib/extensions/user_extension.dart b/mobile/apps/photos/lib/extensions/user_extension.dart similarity index 100% rename from mobile/lib/extensions/user_extension.dart rename to mobile/apps/photos/lib/extensions/user_extension.dart diff --git a/mobile/lib/gateways/cast_gw.dart b/mobile/apps/photos/lib/gateways/cast_gw.dart similarity index 100% rename from mobile/lib/gateways/cast_gw.dart rename to mobile/apps/photos/lib/gateways/cast_gw.dart diff --git a/mobile/lib/gateways/entity_gw.dart b/mobile/apps/photos/lib/gateways/entity_gw.dart similarity index 100% rename from mobile/lib/gateways/entity_gw.dart rename to mobile/apps/photos/lib/gateways/entity_gw.dart diff --git a/mobile/lib/gateways/storage_bonus_gw.dart b/mobile/apps/photos/lib/gateways/storage_bonus_gw.dart similarity index 100% rename from mobile/lib/gateways/storage_bonus_gw.dart rename to mobile/apps/photos/lib/gateways/storage_bonus_gw.dart diff --git a/mobile/lib/generated/intl/messages_all.dart b/mobile/apps/photos/lib/generated/intl/messages_all.dart similarity index 100% rename from mobile/lib/generated/intl/messages_all.dart rename to mobile/apps/photos/lib/generated/intl/messages_all.dart diff --git a/mobile/lib/generated/intl/messages_ar.dart b/mobile/apps/photos/lib/generated/intl/messages_ar.dart similarity index 99% rename from mobile/lib/generated/intl/messages_ar.dart rename to mobile/apps/photos/lib/generated/intl/messages_ar.dart index 1f53f875e9..3e7734f881 100644 --- a/mobile/lib/generated/intl/messages_ar.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_ar.dart @@ -1096,8 +1096,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("مفتاح الاسترداد غير صحيح"), "indexedItems": MessageLookupByLibrary.simpleMessage("العناصر المفهرسة"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "الفهرسة متوقفة مؤقتًا. سيتم استئنافها تلقائيًا عندما يكون الجهاز جاهزًا."), "ineligible": MessageLookupByLibrary.simpleMessage("غير مؤهل"), "info": MessageLookupByLibrary.simpleMessage("معلومات"), "insecureDevice": MessageLookupByLibrary.simpleMessage("جهاز غير آمن"), diff --git a/mobile/lib/generated/intl/messages_be.dart b/mobile/apps/photos/lib/generated/intl/messages_be.dart similarity index 100% rename from mobile/lib/generated/intl/messages_be.dart rename to mobile/apps/photos/lib/generated/intl/messages_be.dart diff --git a/mobile/lib/generated/intl/messages_bg.dart b/mobile/apps/photos/lib/generated/intl/messages_bg.dart similarity index 100% rename from mobile/lib/generated/intl/messages_bg.dart rename to mobile/apps/photos/lib/generated/intl/messages_bg.dart diff --git a/mobile/lib/generated/intl/messages_ca.dart b/mobile/apps/photos/lib/generated/intl/messages_ca.dart similarity index 100% rename from mobile/lib/generated/intl/messages_ca.dart rename to mobile/apps/photos/lib/generated/intl/messages_ca.dart diff --git a/mobile/lib/generated/intl/messages_cs.dart b/mobile/apps/photos/lib/generated/intl/messages_cs.dart similarity index 100% rename from mobile/lib/generated/intl/messages_cs.dart rename to mobile/apps/photos/lib/generated/intl/messages_cs.dart diff --git a/mobile/lib/generated/intl/messages_da.dart b/mobile/apps/photos/lib/generated/intl/messages_da.dart similarity index 100% rename from mobile/lib/generated/intl/messages_da.dart rename to mobile/apps/photos/lib/generated/intl/messages_da.dart diff --git a/mobile/lib/generated/intl/messages_de.dart b/mobile/apps/photos/lib/generated/intl/messages_de.dart similarity index 99% rename from mobile/lib/generated/intl/messages_de.dart rename to mobile/apps/photos/lib/generated/intl/messages_de.dart index 774c8b5e77..0412e5d31a 100644 --- a/mobile/lib/generated/intl/messages_de.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_de.dart @@ -1171,8 +1171,6 @@ class MessageLookup extends MessageLookupByLibrary { "Falscher Wiederherstellungs-Schlüssel"), "indexedItems": MessageLookupByLibrary.simpleMessage("Indizierte Elemente"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Die Indizierung ist unterbrochen. Sie wird automatisch fortgesetzt, wenn das Gerät bereit ist."), "ineligible": MessageLookupByLibrary.simpleMessage("Unzulässig"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_el.dart b/mobile/apps/photos/lib/generated/intl/messages_el.dart similarity index 100% rename from mobile/lib/generated/intl/messages_el.dart rename to mobile/apps/photos/lib/generated/intl/messages_el.dart diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/apps/photos/lib/generated/intl/messages_en.dart similarity index 99% rename from mobile/lib/generated/intl/messages_en.dart rename to mobile/apps/photos/lib/generated/intl/messages_en.dart index 77f9b672a5..f9bdd4c629 100644 --- a/mobile/lib/generated/intl/messages_en.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_en.dart @@ -1148,8 +1148,8 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage("Incorrect recovery key"), "indexedItems": MessageLookupByLibrary.simpleMessage("Indexed items"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Indexing is paused. It will automatically resume when device is ready."), + "indexingPausedStatusDescription": MessageLookupByLibrary.simpleMessage( + "Indexing is paused. It will automatically resume when the device is ready. The device is considered ready when its battery level, battery health, and thermal status are within a healthy range."), "ineligible": MessageLookupByLibrary.simpleMessage("Ineligible"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_es.dart b/mobile/apps/photos/lib/generated/intl/messages_es.dart similarity index 99% rename from mobile/lib/generated/intl/messages_es.dart rename to mobile/apps/photos/lib/generated/intl/messages_es.dart index 50d2340bf9..c05563119e 100644 --- a/mobile/lib/generated/intl/messages_es.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_es.dart @@ -1144,8 +1144,6 @@ class MessageLookup extends MessageLookupByLibrary { "Clave de recuperación incorrecta"), "indexedItems": MessageLookupByLibrary.simpleMessage("Elementos indexados"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "La indexación está pausada. Se reanudará automáticamente cuando el dispositivo esté listo."), "ineligible": MessageLookupByLibrary.simpleMessage("Inelegible"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_et.dart b/mobile/apps/photos/lib/generated/intl/messages_et.dart similarity index 100% rename from mobile/lib/generated/intl/messages_et.dart rename to mobile/apps/photos/lib/generated/intl/messages_et.dart diff --git a/mobile/lib/generated/intl/messages_eu.dart b/mobile/apps/photos/lib/generated/intl/messages_eu.dart similarity index 100% rename from mobile/lib/generated/intl/messages_eu.dart rename to mobile/apps/photos/lib/generated/intl/messages_eu.dart diff --git a/mobile/lib/generated/intl/messages_fa.dart b/mobile/apps/photos/lib/generated/intl/messages_fa.dart similarity index 100% rename from mobile/lib/generated/intl/messages_fa.dart rename to mobile/apps/photos/lib/generated/intl/messages_fa.dart diff --git a/mobile/lib/generated/intl/messages_fr.dart b/mobile/apps/photos/lib/generated/intl/messages_fr.dart similarity index 99% rename from mobile/lib/generated/intl/messages_fr.dart rename to mobile/apps/photos/lib/generated/intl/messages_fr.dart index 5fcc40e6cf..cd80d92698 100644 --- a/mobile/lib/generated/intl/messages_fr.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_fr.dart @@ -1190,8 +1190,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Clé de secours non valide"), "indexedItems": MessageLookupByLibrary.simpleMessage("Éléments indexés"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "L\'indexation est en pause. Elle reprendra automatiquement lorsque l\'appareil sera prêt."), "ineligible": MessageLookupByLibrary.simpleMessage("Non compatible"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_gu.dart b/mobile/apps/photos/lib/generated/intl/messages_gu.dart similarity index 100% rename from mobile/lib/generated/intl/messages_gu.dart rename to mobile/apps/photos/lib/generated/intl/messages_gu.dart diff --git a/mobile/lib/generated/intl/messages_he.dart b/mobile/apps/photos/lib/generated/intl/messages_he.dart similarity index 100% rename from mobile/lib/generated/intl/messages_he.dart rename to mobile/apps/photos/lib/generated/intl/messages_he.dart diff --git a/mobile/lib/generated/intl/messages_hi.dart b/mobile/apps/photos/lib/generated/intl/messages_hi.dart similarity index 100% rename from mobile/lib/generated/intl/messages_hi.dart rename to mobile/apps/photos/lib/generated/intl/messages_hi.dart diff --git a/mobile/lib/generated/intl/messages_hu.dart b/mobile/apps/photos/lib/generated/intl/messages_hu.dart similarity index 100% rename from mobile/lib/generated/intl/messages_hu.dart rename to mobile/apps/photos/lib/generated/intl/messages_hu.dart diff --git a/mobile/lib/generated/intl/messages_id.dart b/mobile/apps/photos/lib/generated/intl/messages_id.dart similarity index 99% rename from mobile/lib/generated/intl/messages_id.dart rename to mobile/apps/photos/lib/generated/intl/messages_id.dart index bfd30d79be..c97e62ced8 100644 --- a/mobile/lib/generated/intl/messages_id.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_id.dart @@ -768,8 +768,6 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage("Kunci pemulihan salah"), "indexedItems": MessageLookupByLibrary.simpleMessage("Item terindeks"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Proses indeks dijeda, dan akan otomatis dilanjutkan saat perangkat siap."), "insecureDevice": MessageLookupByLibrary.simpleMessage("Perangkat tidak aman"), "installManually": diff --git a/mobile/lib/generated/intl/messages_it.dart b/mobile/apps/photos/lib/generated/intl/messages_it.dart similarity index 99% rename from mobile/lib/generated/intl/messages_it.dart rename to mobile/apps/photos/lib/generated/intl/messages_it.dart index a21f77dc1c..a31cf49207 100644 --- a/mobile/lib/generated/intl/messages_it.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_it.dart @@ -1158,8 +1158,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Chiave di recupero errata"), "indexedItems": MessageLookupByLibrary.simpleMessage("Elementi indicizzati"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "L\'indicizzazione è in pausa. Riprenderà automaticamente quando il dispositivo è pronto."), "ineligible": MessageLookupByLibrary.simpleMessage("Non idoneo"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_ja.dart b/mobile/apps/photos/lib/generated/intl/messages_ja.dart similarity index 99% rename from mobile/lib/generated/intl/messages_ja.dart rename to mobile/apps/photos/lib/generated/intl/messages_ja.dart index 01062ecd62..ca801c8176 100644 --- a/mobile/lib/generated/intl/messages_ja.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_ja.dart @@ -948,8 +948,6 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage("リカバリーキーの誤り"), "indexedItems": MessageLookupByLibrary.simpleMessage("処理済みの項目"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "インデックス作成は一時停止されています。デバイスの準備ができたら自動的に再開します。"), "ineligible": MessageLookupByLibrary.simpleMessage("対象外"), "info": MessageLookupByLibrary.simpleMessage("情報"), "insecureDevice": MessageLookupByLibrary.simpleMessage("安全でないデバイス"), diff --git a/mobile/lib/generated/intl/messages_km.dart b/mobile/apps/photos/lib/generated/intl/messages_km.dart similarity index 100% rename from mobile/lib/generated/intl/messages_km.dart rename to mobile/apps/photos/lib/generated/intl/messages_km.dart diff --git a/mobile/lib/generated/intl/messages_ko.dart b/mobile/apps/photos/lib/generated/intl/messages_ko.dart similarity index 100% rename from mobile/lib/generated/intl/messages_ko.dart rename to mobile/apps/photos/lib/generated/intl/messages_ko.dart diff --git a/mobile/lib/generated/intl/messages_ku.dart b/mobile/apps/photos/lib/generated/intl/messages_ku.dart similarity index 100% rename from mobile/lib/generated/intl/messages_ku.dart rename to mobile/apps/photos/lib/generated/intl/messages_ku.dart diff --git a/mobile/lib/generated/intl/messages_lt.dart b/mobile/apps/photos/lib/generated/intl/messages_lt.dart similarity index 99% rename from mobile/lib/generated/intl/messages_lt.dart rename to mobile/apps/photos/lib/generated/intl/messages_lt.dart index 6f493e38c5..501d17c409 100644 --- a/mobile/lib/generated/intl/messages_lt.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_lt.dart @@ -1141,8 +1141,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Neteisingas atkūrimo raktas"), "indexedItems": MessageLookupByLibrary.simpleMessage("Indeksuoti elementai"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Indeksavimas pristabdytas. Jis bus automatiškai tęsiamas, kai įrenginys yra paruoštas."), "ineligible": MessageLookupByLibrary.simpleMessage("Netinkami"), "info": MessageLookupByLibrary.simpleMessage("Informacija"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_lv.dart b/mobile/apps/photos/lib/generated/intl/messages_lv.dart similarity index 100% rename from mobile/lib/generated/intl/messages_lv.dart rename to mobile/apps/photos/lib/generated/intl/messages_lv.dart diff --git a/mobile/lib/generated/intl/messages_ml.dart b/mobile/apps/photos/lib/generated/intl/messages_ml.dart similarity index 100% rename from mobile/lib/generated/intl/messages_ml.dart rename to mobile/apps/photos/lib/generated/intl/messages_ml.dart diff --git a/mobile/lib/generated/intl/messages_nl.dart b/mobile/apps/photos/lib/generated/intl/messages_nl.dart similarity index 99% rename from mobile/lib/generated/intl/messages_nl.dart rename to mobile/apps/photos/lib/generated/intl/messages_nl.dart index 0772f32b0f..906ac331cc 100644 --- a/mobile/lib/generated/intl/messages_nl.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_nl.dart @@ -1141,8 +1141,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Onjuiste herstelsleutel"), "indexedItems": MessageLookupByLibrary.simpleMessage("Geïndexeerde bestanden"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Indexeren is gepauzeerd. Het zal automatisch hervatten wanneer het apparaat klaar is."), "ineligible": MessageLookupByLibrary.simpleMessage("Ongerechtigd"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_no.dart b/mobile/apps/photos/lib/generated/intl/messages_no.dart similarity index 99% rename from mobile/lib/generated/intl/messages_no.dart rename to mobile/apps/photos/lib/generated/intl/messages_no.dart index 145cf32e47..61a71cda4f 100644 --- a/mobile/lib/generated/intl/messages_no.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_no.dart @@ -292,8 +292,6 @@ class MessageLookup extends MessageLookupByLibrary { static String m114(email) => "Vi har sendt en e-post til ${email}"; - static String m115(name) => "Wish \$${name} a happy birthday! 🎉"; - static String m116(count) => "${Intl.plural(count, other: '${count} år siden')}"; @@ -1073,8 +1071,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Feil gjenopprettingsnøkkel"), "indexedItems": MessageLookupByLibrary.simpleMessage("Indekserte elementer"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Indeksering er satt på pause. Den vil automatisk fortsette når enheten er klar."), "ineligible": MessageLookupByLibrary.simpleMessage("Ikke aktuell"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": MessageLookupByLibrary.simpleMessage("Usikker enhet"), @@ -2093,7 +2089,6 @@ class MessageLookup extends MessageLookupByLibrary { "whatsNew": MessageLookupByLibrary.simpleMessage("Det som er nytt"), "whyAddTrustContact": MessageLookupByLibrary.simpleMessage( "Betrodd kontakt kan hjelpe til med å gjenopprette dine data."), - "wishThemAHappyBirthday": m115, "yearShort": MessageLookupByLibrary.simpleMessage("år"), "yearly": MessageLookupByLibrary.simpleMessage("Årlig"), "yearsAgo": m116, diff --git a/mobile/lib/generated/intl/messages_or.dart b/mobile/apps/photos/lib/generated/intl/messages_or.dart similarity index 100% rename from mobile/lib/generated/intl/messages_or.dart rename to mobile/apps/photos/lib/generated/intl/messages_or.dart diff --git a/mobile/lib/generated/intl/messages_pl.dart b/mobile/apps/photos/lib/generated/intl/messages_pl.dart similarity index 99% rename from mobile/lib/generated/intl/messages_pl.dart rename to mobile/apps/photos/lib/generated/intl/messages_pl.dart index 81e1ea1cfb..f7b908a5a9 100644 --- a/mobile/lib/generated/intl/messages_pl.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_pl.dart @@ -1000,8 +1000,6 @@ class MessageLookup extends MessageLookupByLibrary { "Nieprawidłowy klucz odzyskiwania"), "indexedItems": MessageLookupByLibrary.simpleMessage("Zindeksowane elementy"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Wstrzymano indeksowanie. Zostanie ono automatycznie wznowione, gdy urządzenie będzie gotowe."), "info": MessageLookupByLibrary.simpleMessage("Informacje"), "insecureDevice": MessageLookupByLibrary.simpleMessage("Niezabezpieczone urządzenie"), diff --git a/mobile/lib/generated/intl/messages_pt.dart b/mobile/apps/photos/lib/generated/intl/messages_pt.dart similarity index 99% rename from mobile/lib/generated/intl/messages_pt.dart rename to mobile/apps/photos/lib/generated/intl/messages_pt.dart index 9831a7ba65..ff14267b56 100644 --- a/mobile/lib/generated/intl/messages_pt.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_pt.dart @@ -1066,8 +1066,6 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage( "Chave de recuperação incorreta"), "indexedItems": MessageLookupByLibrary.simpleMessage("Itens indexados"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "A indexação está pausada, será retomada automaticamente quando o dispositivo estiver pronto."), "ineligible": MessageLookupByLibrary.simpleMessage("Inelegível"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_pt_BR.dart b/mobile/apps/photos/lib/generated/intl/messages_pt_BR.dart similarity index 99% rename from mobile/lib/generated/intl/messages_pt_BR.dart rename to mobile/apps/photos/lib/generated/intl/messages_pt_BR.dart index 59a7836b17..bbd4765118 100644 --- a/mobile/lib/generated/intl/messages_pt_BR.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_pt_BR.dart @@ -1159,8 +1159,6 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage( "Chave de recuperação incorreta"), "indexedItems": MessageLookupByLibrary.simpleMessage("Itens indexados"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "A indexação parou, ela será retomada automaticamente quando o dispositivo estiver pronto."), "ineligible": MessageLookupByLibrary.simpleMessage("Inelegível"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_pt_PT.dart b/mobile/apps/photos/lib/generated/intl/messages_pt_PT.dart similarity index 99% rename from mobile/lib/generated/intl/messages_pt_PT.dart rename to mobile/apps/photos/lib/generated/intl/messages_pt_PT.dart index 3ae4693e24..34dd1d7283 100644 --- a/mobile/lib/generated/intl/messages_pt_PT.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_pt_PT.dart @@ -1160,8 +1160,6 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage( "Chave de recuperação incorreta"), "indexedItems": MessageLookupByLibrary.simpleMessage("Itens indexados"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "A indexação está pausada, será retomada automaticamente quando o dispositivo estiver pronto."), "ineligible": MessageLookupByLibrary.simpleMessage("Inelegível"), "info": MessageLookupByLibrary.simpleMessage("Info"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_ro.dart b/mobile/apps/photos/lib/generated/intl/messages_ro.dart similarity index 99% rename from mobile/lib/generated/intl/messages_ro.dart rename to mobile/apps/photos/lib/generated/intl/messages_ro.dart index 52aa5e1447..90e2b190db 100644 --- a/mobile/lib/generated/intl/messages_ro.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_ro.dart @@ -1004,8 +1004,6 @@ class MessageLookup extends MessageLookupByLibrary { "Cheie de recuperare incorectă"), "indexedItems": MessageLookupByLibrary.simpleMessage("Elemente indexate"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Indexarea este în pauză. Va relua automat când dispozitivul este pregătit."), "info": MessageLookupByLibrary.simpleMessage("Informații"), "insecureDevice": MessageLookupByLibrary.simpleMessage("Dispozitiv nesigur"), diff --git a/mobile/lib/generated/intl/messages_ru.dart b/mobile/apps/photos/lib/generated/intl/messages_ru.dart similarity index 99% rename from mobile/lib/generated/intl/messages_ru.dart rename to mobile/apps/photos/lib/generated/intl/messages_ru.dart index 1dcfc39b5f..17897c9095 100644 --- a/mobile/lib/generated/intl/messages_ru.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_ru.dart @@ -1126,8 +1126,6 @@ class MessageLookup extends MessageLookupByLibrary { "Неверный ключ восстановления"), "indexedItems": MessageLookupByLibrary.simpleMessage("Проиндексированные элементы"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Индексация приостановлена. Она автоматически возобновится, когда устройство будет готово."), "ineligible": MessageLookupByLibrary.simpleMessage("Неподходящий"), "info": MessageLookupByLibrary.simpleMessage("Информация"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_sl.dart b/mobile/apps/photos/lib/generated/intl/messages_sl.dart similarity index 100% rename from mobile/lib/generated/intl/messages_sl.dart rename to mobile/apps/photos/lib/generated/intl/messages_sl.dart diff --git a/mobile/lib/generated/intl/messages_sr.dart b/mobile/apps/photos/lib/generated/intl/messages_sr.dart similarity index 100% rename from mobile/lib/generated/intl/messages_sr.dart rename to mobile/apps/photos/lib/generated/intl/messages_sr.dart diff --git a/mobile/lib/generated/intl/messages_sv.dart b/mobile/apps/photos/lib/generated/intl/messages_sv.dart similarity index 100% rename from mobile/lib/generated/intl/messages_sv.dart rename to mobile/apps/photos/lib/generated/intl/messages_sv.dart diff --git a/mobile/lib/generated/intl/messages_ta.dart b/mobile/apps/photos/lib/generated/intl/messages_ta.dart similarity index 100% rename from mobile/lib/generated/intl/messages_ta.dart rename to mobile/apps/photos/lib/generated/intl/messages_ta.dart diff --git a/mobile/lib/generated/intl/messages_te.dart b/mobile/apps/photos/lib/generated/intl/messages_te.dart similarity index 100% rename from mobile/lib/generated/intl/messages_te.dart rename to mobile/apps/photos/lib/generated/intl/messages_te.dart diff --git a/mobile/lib/generated/intl/messages_th.dart b/mobile/apps/photos/lib/generated/intl/messages_th.dart similarity index 100% rename from mobile/lib/generated/intl/messages_th.dart rename to mobile/apps/photos/lib/generated/intl/messages_th.dart diff --git a/mobile/lib/generated/intl/messages_ti.dart b/mobile/apps/photos/lib/generated/intl/messages_ti.dart similarity index 100% rename from mobile/lib/generated/intl/messages_ti.dart rename to mobile/apps/photos/lib/generated/intl/messages_ti.dart diff --git a/mobile/lib/generated/intl/messages_tr.dart b/mobile/apps/photos/lib/generated/intl/messages_tr.dart similarity index 99% rename from mobile/lib/generated/intl/messages_tr.dart rename to mobile/apps/photos/lib/generated/intl/messages_tr.dart index 6b9ace83c6..ef68a3c64f 100644 --- a/mobile/lib/generated/intl/messages_tr.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_tr.dart @@ -1117,8 +1117,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Yanlış kurtarma kodu"), "indexedItems": MessageLookupByLibrary.simpleMessage("Dizinlenmiş öğeler"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Dizin oluşturma duraklatıldı. Cihaz hazır olduğunda otomatik olarak devam edecektir."), "ineligible": MessageLookupByLibrary.simpleMessage("Uygun Değil"), "info": MessageLookupByLibrary.simpleMessage("Bilgi"), "insecureDevice": diff --git a/mobile/lib/generated/intl/messages_uk.dart b/mobile/apps/photos/lib/generated/intl/messages_uk.dart similarity index 99% rename from mobile/lib/generated/intl/messages_uk.dart rename to mobile/apps/photos/lib/generated/intl/messages_uk.dart index e306a5aadc..0cd4753343 100644 --- a/mobile/lib/generated/intl/messages_uk.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_uk.dart @@ -982,8 +982,6 @@ class MessageLookup extends MessageLookupByLibrary { MessageLookupByLibrary.simpleMessage("Невірний ключ відновлення"), "indexedItems": MessageLookupByLibrary.simpleMessage("Індексовані елементи"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Індексація припинена. Автоматично продовжуватиметься, коли пристрій буде готовий."), "info": MessageLookupByLibrary.simpleMessage("Інформація"), "insecureDevice": MessageLookupByLibrary.simpleMessage("Незахищений пристрій"), diff --git a/mobile/lib/generated/intl/messages_vi.dart b/mobile/apps/photos/lib/generated/intl/messages_vi.dart similarity index 99% rename from mobile/lib/generated/intl/messages_vi.dart rename to mobile/apps/photos/lib/generated/intl/messages_vi.dart index 154e455eec..68819cd716 100644 --- a/mobile/lib/generated/intl/messages_vi.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_vi.dart @@ -985,8 +985,6 @@ class MessageLookup extends MessageLookupByLibrary { "Khóa khôi phục không chính xác"), "indexedItems": MessageLookupByLibrary.simpleMessage("Các mục đã lập chỉ mục"), - "indexingIsPaused": MessageLookupByLibrary.simpleMessage( - "Chỉ mục đang tạm dừng. Nó sẽ tự động tiếp tục khi thiết bị sẵn sàng."), "info": MessageLookupByLibrary.simpleMessage("Thông tin"), "insecureDevice": MessageLookupByLibrary.simpleMessage("Thiết bị không an toàn"), diff --git a/mobile/lib/generated/intl/messages_zh.dart b/mobile/apps/photos/lib/generated/intl/messages_zh.dart similarity index 99% rename from mobile/lib/generated/intl/messages_zh.dart rename to mobile/apps/photos/lib/generated/intl/messages_zh.dart index 8b697d1e49..dada82528f 100644 --- a/mobile/lib/generated/intl/messages_zh.dart +++ b/mobile/apps/photos/lib/generated/intl/messages_zh.dart @@ -915,8 +915,6 @@ class MessageLookup extends MessageLookupByLibrary { "incorrectRecoveryKeyTitle": MessageLookupByLibrary.simpleMessage("恢复密钥不正确"), "indexedItems": MessageLookupByLibrary.simpleMessage("已索引项目"), - "indexingIsPaused": - MessageLookupByLibrary.simpleMessage("索引已暂停。当设备准备就绪时,它将自动恢复。"), "ineligible": MessageLookupByLibrary.simpleMessage("不合格"), "info": MessageLookupByLibrary.simpleMessage("详情"), "insecureDevice": MessageLookupByLibrary.simpleMessage("设备不安全"), diff --git a/mobile/lib/generated/l10n.dart b/mobile/apps/photos/lib/generated/l10n.dart similarity index 99% rename from mobile/lib/generated/l10n.dart rename to mobile/apps/photos/lib/generated/l10n.dart index 6fb57e9450..5a63f58f68 100644 --- a/mobile/lib/generated/l10n.dart +++ b/mobile/apps/photos/lib/generated/l10n.dart @@ -9376,16 +9376,6 @@ class S { ); } - /// `Indexing is paused. It will automatically resume when device is ready.` - String get indexingIsPaused { - return Intl.message( - 'Indexing is paused. It will automatically resume when device is ready.', - name: 'indexingIsPaused', - desc: '', - args: [], - ); - } - /// `Trim` String get trim { return Intl.message( @@ -12295,6 +12285,16 @@ class S { args: [], ); } + + /// `Indexing is paused. It will automatically resume when the device is ready. The device is considered ready when its battery level, battery health, and thermal status are within a healthy range.` + String get indexingPausedStatusDescription { + return Intl.message( + 'Indexing is paused. It will automatically resume when the device is ready. The device is considered ready when its battery level, battery health, and thermal status are within a healthy range.', + name: 'indexingPausedStatusDescription', + desc: '', + args: [], + ); + } } class AppLocalizationDelegate extends LocalizationsDelegate { diff --git a/mobile/lib/generated/protos/ente/common/box.pb.dart b/mobile/apps/photos/lib/generated/protos/ente/common/box.pb.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/box.pb.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/box.pb.dart diff --git a/mobile/lib/generated/protos/ente/common/box.pbenum.dart b/mobile/apps/photos/lib/generated/protos/ente/common/box.pbenum.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/box.pbenum.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/box.pbenum.dart diff --git a/mobile/lib/generated/protos/ente/common/box.pbjson.dart b/mobile/apps/photos/lib/generated/protos/ente/common/box.pbjson.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/box.pbjson.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/box.pbjson.dart diff --git a/mobile/lib/generated/protos/ente/common/box.pbserver.dart b/mobile/apps/photos/lib/generated/protos/ente/common/box.pbserver.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/box.pbserver.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/box.pbserver.dart diff --git a/mobile/lib/generated/protos/ente/common/point.pb.dart b/mobile/apps/photos/lib/generated/protos/ente/common/point.pb.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/point.pb.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/point.pb.dart diff --git a/mobile/lib/generated/protos/ente/common/point.pbenum.dart b/mobile/apps/photos/lib/generated/protos/ente/common/point.pbenum.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/point.pbenum.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/point.pbenum.dart diff --git a/mobile/lib/generated/protos/ente/common/point.pbjson.dart b/mobile/apps/photos/lib/generated/protos/ente/common/point.pbjson.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/point.pbjson.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/point.pbjson.dart diff --git a/mobile/lib/generated/protos/ente/common/point.pbserver.dart b/mobile/apps/photos/lib/generated/protos/ente/common/point.pbserver.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/point.pbserver.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/point.pbserver.dart diff --git a/mobile/lib/generated/protos/ente/common/vector.pb.dart b/mobile/apps/photos/lib/generated/protos/ente/common/vector.pb.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/vector.pb.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/vector.pb.dart diff --git a/mobile/lib/generated/protos/ente/common/vector.pbenum.dart b/mobile/apps/photos/lib/generated/protos/ente/common/vector.pbenum.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/vector.pbenum.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/vector.pbenum.dart diff --git a/mobile/lib/generated/protos/ente/common/vector.pbjson.dart b/mobile/apps/photos/lib/generated/protos/ente/common/vector.pbjson.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/vector.pbjson.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/vector.pbjson.dart diff --git a/mobile/lib/generated/protos/ente/common/vector.pbserver.dart b/mobile/apps/photos/lib/generated/protos/ente/common/vector.pbserver.dart similarity index 100% rename from mobile/lib/generated/protos/ente/common/vector.pbserver.dart rename to mobile/apps/photos/lib/generated/protos/ente/common/vector.pbserver.dart diff --git a/mobile/lib/generated/protos/ente/ml/face.pb.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/face.pb.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/face.pb.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/face.pb.dart diff --git a/mobile/lib/generated/protos/ente/ml/face.pbenum.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/face.pbenum.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/face.pbenum.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/face.pbenum.dart diff --git a/mobile/lib/generated/protos/ente/ml/face.pbjson.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/face.pbjson.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/face.pbjson.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/face.pbjson.dart diff --git a/mobile/lib/generated/protos/ente/ml/face.pbserver.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/face.pbserver.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/face.pbserver.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/face.pbserver.dart diff --git a/mobile/lib/generated/protos/ente/ml/fileml.pb.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pb.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/fileml.pb.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pb.dart diff --git a/mobile/lib/generated/protos/ente/ml/fileml.pbenum.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pbenum.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/fileml.pbenum.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pbenum.dart diff --git a/mobile/lib/generated/protos/ente/ml/fileml.pbjson.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pbjson.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/fileml.pbjson.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pbjson.dart diff --git a/mobile/lib/generated/protos/ente/ml/fileml.pbserver.dart b/mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pbserver.dart similarity index 100% rename from mobile/lib/generated/protos/ente/ml/fileml.pbserver.dart rename to mobile/apps/photos/lib/generated/protos/ente/ml/fileml.pbserver.dart diff --git a/mobile/lib/l10n/intl_ar.arb b/mobile/apps/photos/lib/l10n/intl_ar.arb similarity index 100% rename from mobile/lib/l10n/intl_ar.arb rename to mobile/apps/photos/lib/l10n/intl_ar.arb diff --git a/mobile/lib/l10n/intl_be.arb b/mobile/apps/photos/lib/l10n/intl_be.arb similarity index 100% rename from mobile/lib/l10n/intl_be.arb rename to mobile/apps/photos/lib/l10n/intl_be.arb diff --git a/mobile/lib/l10n/intl_bg.arb b/mobile/apps/photos/lib/l10n/intl_bg.arb similarity index 100% rename from mobile/lib/l10n/intl_bg.arb rename to mobile/apps/photos/lib/l10n/intl_bg.arb diff --git a/mobile/lib/l10n/intl_ca.arb b/mobile/apps/photos/lib/l10n/intl_ca.arb similarity index 100% rename from mobile/lib/l10n/intl_ca.arb rename to mobile/apps/photos/lib/l10n/intl_ca.arb diff --git a/mobile/lib/l10n/intl_cs.arb b/mobile/apps/photos/lib/l10n/intl_cs.arb similarity index 100% rename from mobile/lib/l10n/intl_cs.arb rename to mobile/apps/photos/lib/l10n/intl_cs.arb diff --git a/mobile/lib/l10n/intl_da.arb b/mobile/apps/photos/lib/l10n/intl_da.arb similarity index 100% rename from mobile/lib/l10n/intl_da.arb rename to mobile/apps/photos/lib/l10n/intl_da.arb diff --git a/mobile/lib/l10n/intl_de.arb b/mobile/apps/photos/lib/l10n/intl_de.arb similarity index 100% rename from mobile/lib/l10n/intl_de.arb rename to mobile/apps/photos/lib/l10n/intl_de.arb diff --git a/mobile/lib/l10n/intl_el.arb b/mobile/apps/photos/lib/l10n/intl_el.arb similarity index 100% rename from mobile/lib/l10n/intl_el.arb rename to mobile/apps/photos/lib/l10n/intl_el.arb diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb similarity index 99% rename from mobile/lib/l10n/intl_en.arb rename to mobile/apps/photos/lib/l10n/intl_en.arb index 121c65bb63..e9cd89b1f7 100644 --- a/mobile/lib/l10n/intl_en.arb +++ b/mobile/apps/photos/lib/l10n/intl_en.arb @@ -1309,7 +1309,6 @@ "faceRecognition": "Face recognition", "foundFaces": "Found faces", "clusteringProgress": "Clustering progress", - "indexingIsPaused": "Indexing is paused. It will automatically resume when device is ready.", "trim": "Trim", "crop": "Crop", "rotate": "Rotate", @@ -1788,5 +1787,6 @@ "cLTitle5": "Birthday Notifications", "cLDesc5": "You will now receive an opt-out notification for all the birthdays your have saved on Ente, along with a collection of their best photos.", "cLTitle6": "Resumable Uploads and Downloads", - "cLDesc6": "No more waiting for uploads/downloads to complete before you can close the app. All uploads and downloads now have the ability to be paused midway, and resume from where you left off." + "cLDesc6": "No more waiting for uploads/downloads to complete before you can close the app. All uploads and downloads now have the ability to be paused midway, and resume from where you left off.", + "indexingPausedStatusDescription": "Indexing is paused. It will automatically resume when the device is ready. The device is considered ready when its battery level, battery health, and thermal status are within a healthy range." } diff --git a/mobile/lib/l10n/intl_es.arb b/mobile/apps/photos/lib/l10n/intl_es.arb similarity index 100% rename from mobile/lib/l10n/intl_es.arb rename to mobile/apps/photos/lib/l10n/intl_es.arb diff --git a/mobile/lib/l10n/intl_et.arb b/mobile/apps/photos/lib/l10n/intl_et.arb similarity index 100% rename from mobile/lib/l10n/intl_et.arb rename to mobile/apps/photos/lib/l10n/intl_et.arb diff --git a/mobile/lib/l10n/intl_eu.arb b/mobile/apps/photos/lib/l10n/intl_eu.arb similarity index 100% rename from mobile/lib/l10n/intl_eu.arb rename to mobile/apps/photos/lib/l10n/intl_eu.arb diff --git a/mobile/lib/l10n/intl_fa.arb b/mobile/apps/photos/lib/l10n/intl_fa.arb similarity index 100% rename from mobile/lib/l10n/intl_fa.arb rename to mobile/apps/photos/lib/l10n/intl_fa.arb diff --git a/mobile/lib/l10n/intl_fr.arb b/mobile/apps/photos/lib/l10n/intl_fr.arb similarity index 100% rename from mobile/lib/l10n/intl_fr.arb rename to mobile/apps/photos/lib/l10n/intl_fr.arb diff --git a/mobile/lib/l10n/intl_gu.arb b/mobile/apps/photos/lib/l10n/intl_gu.arb similarity index 100% rename from mobile/lib/l10n/intl_gu.arb rename to mobile/apps/photos/lib/l10n/intl_gu.arb diff --git a/mobile/lib/l10n/intl_he.arb b/mobile/apps/photos/lib/l10n/intl_he.arb similarity index 100% rename from mobile/lib/l10n/intl_he.arb rename to mobile/apps/photos/lib/l10n/intl_he.arb diff --git a/mobile/lib/l10n/intl_hi.arb b/mobile/apps/photos/lib/l10n/intl_hi.arb similarity index 100% rename from mobile/lib/l10n/intl_hi.arb rename to mobile/apps/photos/lib/l10n/intl_hi.arb diff --git a/mobile/lib/l10n/intl_hu.arb b/mobile/apps/photos/lib/l10n/intl_hu.arb similarity index 100% rename from mobile/lib/l10n/intl_hu.arb rename to mobile/apps/photos/lib/l10n/intl_hu.arb diff --git a/mobile/lib/l10n/intl_id.arb b/mobile/apps/photos/lib/l10n/intl_id.arb similarity index 100% rename from mobile/lib/l10n/intl_id.arb rename to mobile/apps/photos/lib/l10n/intl_id.arb diff --git a/mobile/lib/l10n/intl_it.arb b/mobile/apps/photos/lib/l10n/intl_it.arb similarity index 100% rename from mobile/lib/l10n/intl_it.arb rename to mobile/apps/photos/lib/l10n/intl_it.arb diff --git a/mobile/lib/l10n/intl_ja.arb b/mobile/apps/photos/lib/l10n/intl_ja.arb similarity index 100% rename from mobile/lib/l10n/intl_ja.arb rename to mobile/apps/photos/lib/l10n/intl_ja.arb diff --git a/mobile/lib/l10n/intl_km.arb b/mobile/apps/photos/lib/l10n/intl_km.arb similarity index 100% rename from mobile/lib/l10n/intl_km.arb rename to mobile/apps/photos/lib/l10n/intl_km.arb diff --git a/mobile/lib/l10n/intl_ko.arb b/mobile/apps/photos/lib/l10n/intl_ko.arb similarity index 100% rename from mobile/lib/l10n/intl_ko.arb rename to mobile/apps/photos/lib/l10n/intl_ko.arb diff --git a/mobile/lib/l10n/intl_ku.arb b/mobile/apps/photos/lib/l10n/intl_ku.arb similarity index 100% rename from mobile/lib/l10n/intl_ku.arb rename to mobile/apps/photos/lib/l10n/intl_ku.arb diff --git a/mobile/lib/l10n/intl_lt.arb b/mobile/apps/photos/lib/l10n/intl_lt.arb similarity index 100% rename from mobile/lib/l10n/intl_lt.arb rename to mobile/apps/photos/lib/l10n/intl_lt.arb diff --git a/mobile/lib/l10n/intl_lv.arb b/mobile/apps/photos/lib/l10n/intl_lv.arb similarity index 100% rename from mobile/lib/l10n/intl_lv.arb rename to mobile/apps/photos/lib/l10n/intl_lv.arb diff --git a/mobile/lib/l10n/intl_ml.arb b/mobile/apps/photos/lib/l10n/intl_ml.arb similarity index 100% rename from mobile/lib/l10n/intl_ml.arb rename to mobile/apps/photos/lib/l10n/intl_ml.arb diff --git a/mobile/lib/l10n/intl_nl.arb b/mobile/apps/photos/lib/l10n/intl_nl.arb similarity index 100% rename from mobile/lib/l10n/intl_nl.arb rename to mobile/apps/photos/lib/l10n/intl_nl.arb diff --git a/mobile/lib/l10n/intl_no.arb b/mobile/apps/photos/lib/l10n/intl_no.arb similarity index 100% rename from mobile/lib/l10n/intl_no.arb rename to mobile/apps/photos/lib/l10n/intl_no.arb diff --git a/mobile/lib/l10n/intl_or.arb b/mobile/apps/photos/lib/l10n/intl_or.arb similarity index 100% rename from mobile/lib/l10n/intl_or.arb rename to mobile/apps/photos/lib/l10n/intl_or.arb diff --git a/mobile/lib/l10n/intl_pl.arb b/mobile/apps/photos/lib/l10n/intl_pl.arb similarity index 100% rename from mobile/lib/l10n/intl_pl.arb rename to mobile/apps/photos/lib/l10n/intl_pl.arb diff --git a/mobile/lib/l10n/intl_pt.arb b/mobile/apps/photos/lib/l10n/intl_pt.arb similarity index 100% rename from mobile/lib/l10n/intl_pt.arb rename to mobile/apps/photos/lib/l10n/intl_pt.arb diff --git a/mobile/lib/l10n/intl_pt_BR.arb b/mobile/apps/photos/lib/l10n/intl_pt_BR.arb similarity index 100% rename from mobile/lib/l10n/intl_pt_BR.arb rename to mobile/apps/photos/lib/l10n/intl_pt_BR.arb diff --git a/mobile/lib/l10n/intl_pt_PT.arb b/mobile/apps/photos/lib/l10n/intl_pt_PT.arb similarity index 100% rename from mobile/lib/l10n/intl_pt_PT.arb rename to mobile/apps/photos/lib/l10n/intl_pt_PT.arb diff --git a/mobile/lib/l10n/intl_ro.arb b/mobile/apps/photos/lib/l10n/intl_ro.arb similarity index 100% rename from mobile/lib/l10n/intl_ro.arb rename to mobile/apps/photos/lib/l10n/intl_ro.arb diff --git a/mobile/lib/l10n/intl_ru.arb b/mobile/apps/photos/lib/l10n/intl_ru.arb similarity index 100% rename from mobile/lib/l10n/intl_ru.arb rename to mobile/apps/photos/lib/l10n/intl_ru.arb diff --git a/mobile/lib/l10n/intl_sl.arb b/mobile/apps/photos/lib/l10n/intl_sl.arb similarity index 100% rename from mobile/lib/l10n/intl_sl.arb rename to mobile/apps/photos/lib/l10n/intl_sl.arb diff --git a/mobile/lib/l10n/intl_sr.arb b/mobile/apps/photos/lib/l10n/intl_sr.arb similarity index 100% rename from mobile/lib/l10n/intl_sr.arb rename to mobile/apps/photos/lib/l10n/intl_sr.arb diff --git a/mobile/lib/l10n/intl_sv.arb b/mobile/apps/photos/lib/l10n/intl_sv.arb similarity index 100% rename from mobile/lib/l10n/intl_sv.arb rename to mobile/apps/photos/lib/l10n/intl_sv.arb diff --git a/mobile/lib/l10n/intl_ta.arb b/mobile/apps/photos/lib/l10n/intl_ta.arb similarity index 100% rename from mobile/lib/l10n/intl_ta.arb rename to mobile/apps/photos/lib/l10n/intl_ta.arb diff --git a/mobile/lib/l10n/intl_te.arb b/mobile/apps/photos/lib/l10n/intl_te.arb similarity index 100% rename from mobile/lib/l10n/intl_te.arb rename to mobile/apps/photos/lib/l10n/intl_te.arb diff --git a/mobile/lib/l10n/intl_th.arb b/mobile/apps/photos/lib/l10n/intl_th.arb similarity index 100% rename from mobile/lib/l10n/intl_th.arb rename to mobile/apps/photos/lib/l10n/intl_th.arb diff --git a/mobile/lib/l10n/intl_ti.arb b/mobile/apps/photos/lib/l10n/intl_ti.arb similarity index 100% rename from mobile/lib/l10n/intl_ti.arb rename to mobile/apps/photos/lib/l10n/intl_ti.arb diff --git a/mobile/lib/l10n/intl_tr.arb b/mobile/apps/photos/lib/l10n/intl_tr.arb similarity index 100% rename from mobile/lib/l10n/intl_tr.arb rename to mobile/apps/photos/lib/l10n/intl_tr.arb diff --git a/mobile/lib/l10n/intl_uk.arb b/mobile/apps/photos/lib/l10n/intl_uk.arb similarity index 100% rename from mobile/lib/l10n/intl_uk.arb rename to mobile/apps/photos/lib/l10n/intl_uk.arb diff --git a/mobile/lib/l10n/intl_vi.arb b/mobile/apps/photos/lib/l10n/intl_vi.arb similarity index 100% rename from mobile/lib/l10n/intl_vi.arb rename to mobile/apps/photos/lib/l10n/intl_vi.arb diff --git a/mobile/lib/l10n/intl_zh.arb b/mobile/apps/photos/lib/l10n/intl_zh.arb similarity index 100% rename from mobile/lib/l10n/intl_zh.arb rename to mobile/apps/photos/lib/l10n/intl_zh.arb diff --git a/mobile/lib/l10n/l10n.dart b/mobile/apps/photos/lib/l10n/l10n.dart similarity index 100% rename from mobile/lib/l10n/l10n.dart rename to mobile/apps/photos/lib/l10n/l10n.dart diff --git a/mobile/lib/main.dart b/mobile/apps/photos/lib/main.dart similarity index 100% rename from mobile/lib/main.dart rename to mobile/apps/photos/lib/main.dart diff --git a/mobile/lib/models/account/two_factor.dart b/mobile/apps/photos/lib/models/account/two_factor.dart similarity index 100% rename from mobile/lib/models/account/two_factor.dart rename to mobile/apps/photos/lib/models/account/two_factor.dart diff --git a/mobile/lib/models/api/billing/billing_plan.dart b/mobile/apps/photos/lib/models/api/billing/billing_plan.dart similarity index 100% rename from mobile/lib/models/api/billing/billing_plan.dart rename to mobile/apps/photos/lib/models/api/billing/billing_plan.dart diff --git a/mobile/lib/models/api/billing/subscription.dart b/mobile/apps/photos/lib/models/api/billing/subscription.dart similarity index 100% rename from mobile/lib/models/api/billing/subscription.dart rename to mobile/apps/photos/lib/models/api/billing/subscription.dart diff --git a/mobile/lib/models/api/collection/collection_file_item.dart b/mobile/apps/photos/lib/models/api/collection/collection_file_item.dart similarity index 100% rename from mobile/lib/models/api/collection/collection_file_item.dart rename to mobile/apps/photos/lib/models/api/collection/collection_file_item.dart diff --git a/mobile/lib/models/api/collection/create_request.dart b/mobile/apps/photos/lib/models/api/collection/create_request.dart similarity index 100% rename from mobile/lib/models/api/collection/create_request.dart rename to mobile/apps/photos/lib/models/api/collection/create_request.dart diff --git a/mobile/lib/models/api/collection/public_url.dart b/mobile/apps/photos/lib/models/api/collection/public_url.dart similarity index 100% rename from mobile/lib/models/api/collection/public_url.dart rename to mobile/apps/photos/lib/models/api/collection/public_url.dart diff --git a/mobile/lib/models/api/collection/trash_item_request.dart b/mobile/apps/photos/lib/models/api/collection/trash_item_request.dart similarity index 100% rename from mobile/lib/models/api/collection/trash_item_request.dart rename to mobile/apps/photos/lib/models/api/collection/trash_item_request.dart diff --git a/mobile/lib/models/api/collection/user.dart b/mobile/apps/photos/lib/models/api/collection/user.dart similarity index 100% rename from mobile/lib/models/api/collection/user.dart rename to mobile/apps/photos/lib/models/api/collection/user.dart diff --git a/mobile/lib/models/api/entity/data.dart b/mobile/apps/photos/lib/models/api/entity/data.dart similarity index 100% rename from mobile/lib/models/api/entity/data.dart rename to mobile/apps/photos/lib/models/api/entity/data.dart diff --git a/mobile/lib/models/api/entity/key.dart b/mobile/apps/photos/lib/models/api/entity/key.dart similarity index 100% rename from mobile/lib/models/api/entity/key.dart rename to mobile/apps/photos/lib/models/api/entity/key.dart diff --git a/mobile/lib/models/api/entity/type.dart b/mobile/apps/photos/lib/models/api/entity/type.dart similarity index 100% rename from mobile/lib/models/api/entity/type.dart rename to mobile/apps/photos/lib/models/api/entity/type.dart diff --git a/mobile/lib/models/api/metadata.dart b/mobile/apps/photos/lib/models/api/metadata.dart similarity index 100% rename from mobile/lib/models/api/metadata.dart rename to mobile/apps/photos/lib/models/api/metadata.dart diff --git a/mobile/lib/models/api/storage_bonus/bonus.dart b/mobile/apps/photos/lib/models/api/storage_bonus/bonus.dart similarity index 100% rename from mobile/lib/models/api/storage_bonus/bonus.dart rename to mobile/apps/photos/lib/models/api/storage_bonus/bonus.dart diff --git a/mobile/lib/models/api/storage_bonus/storage_bonus.dart b/mobile/apps/photos/lib/models/api/storage_bonus/storage_bonus.dart similarity index 100% rename from mobile/lib/models/api/storage_bonus/storage_bonus.dart rename to mobile/apps/photos/lib/models/api/storage_bonus/storage_bonus.dart diff --git a/mobile/lib/models/api/user/delete_account.dart b/mobile/apps/photos/lib/models/api/user/delete_account.dart similarity index 100% rename from mobile/lib/models/api/user/delete_account.dart rename to mobile/apps/photos/lib/models/api/user/delete_account.dart diff --git a/mobile/lib/models/api/user/key_attributes.dart b/mobile/apps/photos/lib/models/api/user/key_attributes.dart similarity index 100% rename from mobile/lib/models/api/user/key_attributes.dart rename to mobile/apps/photos/lib/models/api/user/key_attributes.dart diff --git a/mobile/lib/models/api/user/key_gen_result.dart b/mobile/apps/photos/lib/models/api/user/key_gen_result.dart similarity index 100% rename from mobile/lib/models/api/user/key_gen_result.dart rename to mobile/apps/photos/lib/models/api/user/key_gen_result.dart diff --git a/mobile/lib/models/api/user/private_key_attributes.dart b/mobile/apps/photos/lib/models/api/user/private_key_attributes.dart similarity index 100% rename from mobile/lib/models/api/user/private_key_attributes.dart rename to mobile/apps/photos/lib/models/api/user/private_key_attributes.dart diff --git a/mobile/lib/models/api/user/sessions.dart b/mobile/apps/photos/lib/models/api/user/sessions.dart similarity index 100% rename from mobile/lib/models/api/user/sessions.dart rename to mobile/apps/photos/lib/models/api/user/sessions.dart diff --git a/mobile/lib/models/api/user/set_keys_request.dart b/mobile/apps/photos/lib/models/api/user/set_keys_request.dart similarity index 100% rename from mobile/lib/models/api/user/set_keys_request.dart rename to mobile/apps/photos/lib/models/api/user/set_keys_request.dart diff --git a/mobile/lib/models/api/user/set_recovery_key_request.dart b/mobile/apps/photos/lib/models/api/user/set_recovery_key_request.dart similarity index 100% rename from mobile/lib/models/api/user/set_recovery_key_request.dart rename to mobile/apps/photos/lib/models/api/user/set_recovery_key_request.dart diff --git a/mobile/lib/models/api/user/srp.dart b/mobile/apps/photos/lib/models/api/user/srp.dart similarity index 100% rename from mobile/lib/models/api/user/srp.dart rename to mobile/apps/photos/lib/models/api/user/srp.dart diff --git a/mobile/lib/models/backup/backup_item.dart b/mobile/apps/photos/lib/models/backup/backup_item.dart similarity index 100% rename from mobile/lib/models/backup/backup_item.dart rename to mobile/apps/photos/lib/models/backup/backup_item.dart diff --git a/mobile/lib/models/backup/backup_item_status.dart b/mobile/apps/photos/lib/models/backup/backup_item_status.dart similarity index 100% rename from mobile/lib/models/backup/backup_item_status.dart rename to mobile/apps/photos/lib/models/backup/backup_item_status.dart diff --git a/mobile/lib/models/backup_status.dart b/mobile/apps/photos/lib/models/backup_status.dart similarity index 100% rename from mobile/lib/models/backup_status.dart rename to mobile/apps/photos/lib/models/backup_status.dart diff --git a/mobile/lib/models/base/id.dart b/mobile/apps/photos/lib/models/base/id.dart similarity index 100% rename from mobile/lib/models/base/id.dart rename to mobile/apps/photos/lib/models/base/id.dart diff --git a/mobile/lib/models/base_location.dart b/mobile/apps/photos/lib/models/base_location.dart similarity index 100% rename from mobile/lib/models/base_location.dart rename to mobile/apps/photos/lib/models/base_location.dart diff --git a/mobile/lib/models/button_result.dart b/mobile/apps/photos/lib/models/button_result.dart similarity index 100% rename from mobile/lib/models/button_result.dart rename to mobile/apps/photos/lib/models/button_result.dart diff --git a/mobile/lib/models/collection/collection.dart b/mobile/apps/photos/lib/models/collection/collection.dart similarity index 100% rename from mobile/lib/models/collection/collection.dart rename to mobile/apps/photos/lib/models/collection/collection.dart diff --git a/mobile/lib/models/collection/collection_items.dart b/mobile/apps/photos/lib/models/collection/collection_items.dart similarity index 100% rename from mobile/lib/models/collection/collection_items.dart rename to mobile/apps/photos/lib/models/collection/collection_items.dart diff --git a/mobile/lib/models/device_collection.dart b/mobile/apps/photos/lib/models/device_collection.dart similarity index 100% rename from mobile/lib/models/device_collection.dart rename to mobile/apps/photos/lib/models/device_collection.dart diff --git a/mobile/lib/models/duplicate_files.dart b/mobile/apps/photos/lib/models/duplicate_files.dart similarity index 100% rename from mobile/lib/models/duplicate_files.dart rename to mobile/apps/photos/lib/models/duplicate_files.dart diff --git a/mobile/lib/models/execution_states.dart b/mobile/apps/photos/lib/models/execution_states.dart similarity index 100% rename from mobile/lib/models/execution_states.dart rename to mobile/apps/photos/lib/models/execution_states.dart diff --git a/mobile/lib/models/ffmpeg/channel_layouts.dart b/mobile/apps/photos/lib/models/ffmpeg/channel_layouts.dart similarity index 100% rename from mobile/lib/models/ffmpeg/channel_layouts.dart rename to mobile/apps/photos/lib/models/ffmpeg/channel_layouts.dart diff --git a/mobile/lib/models/ffmpeg/codecs.dart b/mobile/apps/photos/lib/models/ffmpeg/codecs.dart similarity index 100% rename from mobile/lib/models/ffmpeg/codecs.dart rename to mobile/apps/photos/lib/models/ffmpeg/codecs.dart diff --git a/mobile/lib/models/ffmpeg/ffprobe_keys.dart b/mobile/apps/photos/lib/models/ffmpeg/ffprobe_keys.dart similarity index 100% rename from mobile/lib/models/ffmpeg/ffprobe_keys.dart rename to mobile/apps/photos/lib/models/ffmpeg/ffprobe_keys.dart diff --git a/mobile/lib/models/ffmpeg/ffprobe_props.dart b/mobile/apps/photos/lib/models/ffmpeg/ffprobe_props.dart similarity index 100% rename from mobile/lib/models/ffmpeg/ffprobe_props.dart rename to mobile/apps/photos/lib/models/ffmpeg/ffprobe_props.dart diff --git a/mobile/lib/models/ffmpeg/language.dart b/mobile/apps/photos/lib/models/ffmpeg/language.dart similarity index 100% rename from mobile/lib/models/ffmpeg/language.dart rename to mobile/apps/photos/lib/models/ffmpeg/language.dart diff --git a/mobile/lib/models/ffmpeg/mp4.dart b/mobile/apps/photos/lib/models/ffmpeg/mp4.dart similarity index 100% rename from mobile/lib/models/ffmpeg/mp4.dart rename to mobile/apps/photos/lib/models/ffmpeg/mp4.dart diff --git a/mobile/lib/models/file/extensions/file_props.dart b/mobile/apps/photos/lib/models/file/extensions/file_props.dart similarity index 100% rename from mobile/lib/models/file/extensions/file_props.dart rename to mobile/apps/photos/lib/models/file/extensions/file_props.dart diff --git a/mobile/lib/models/file/file.dart b/mobile/apps/photos/lib/models/file/file.dart similarity index 100% rename from mobile/lib/models/file/file.dart rename to mobile/apps/photos/lib/models/file/file.dart diff --git a/mobile/lib/models/file/file_type.dart b/mobile/apps/photos/lib/models/file/file_type.dart similarity index 100% rename from mobile/lib/models/file/file_type.dart rename to mobile/apps/photos/lib/models/file/file_type.dart diff --git a/mobile/lib/models/file/trash_file.dart b/mobile/apps/photos/lib/models/file/trash_file.dart similarity index 100% rename from mobile/lib/models/file/trash_file.dart rename to mobile/apps/photos/lib/models/file/trash_file.dart diff --git a/mobile/lib/models/file_load_result.dart b/mobile/apps/photos/lib/models/file_load_result.dart similarity index 100% rename from mobile/lib/models/file_load_result.dart rename to mobile/apps/photos/lib/models/file_load_result.dart diff --git a/mobile/lib/models/files_split.dart b/mobile/apps/photos/lib/models/files_split.dart similarity index 100% rename from mobile/lib/models/files_split.dart rename to mobile/apps/photos/lib/models/files_split.dart diff --git a/mobile/lib/models/gallery/fixed_extent_grid_row.dart b/mobile/apps/photos/lib/models/gallery/fixed_extent_grid_row.dart similarity index 100% rename from mobile/lib/models/gallery/fixed_extent_grid_row.dart rename to mobile/apps/photos/lib/models/gallery/fixed_extent_grid_row.dart diff --git a/mobile/lib/models/gallery/fixed_extent_section_layout.dart b/mobile/apps/photos/lib/models/gallery/fixed_extent_section_layout.dart similarity index 100% rename from mobile/lib/models/gallery/fixed_extent_section_layout.dart rename to mobile/apps/photos/lib/models/gallery/fixed_extent_section_layout.dart diff --git a/mobile/lib/models/gallery/gallery_sections.dart b/mobile/apps/photos/lib/models/gallery/gallery_sections.dart similarity index 100% rename from mobile/lib/models/gallery/gallery_sections.dart rename to mobile/apps/photos/lib/models/gallery/gallery_sections.dart diff --git a/mobile/lib/models/gallery_type.dart b/mobile/apps/photos/lib/models/gallery_type.dart similarity index 100% rename from mobile/lib/models/gallery_type.dart rename to mobile/apps/photos/lib/models/gallery_type.dart diff --git a/mobile/lib/models/ignored_file.dart b/mobile/apps/photos/lib/models/ignored_file.dart similarity index 100% rename from mobile/lib/models/ignored_file.dart rename to mobile/apps/photos/lib/models/ignored_file.dart diff --git a/mobile/lib/models/local_entity_data.dart b/mobile/apps/photos/lib/models/local_entity_data.dart similarity index 100% rename from mobile/lib/models/local_entity_data.dart rename to mobile/apps/photos/lib/models/local_entity_data.dart diff --git a/mobile/lib/models/location/location.dart b/mobile/apps/photos/lib/models/location/location.dart similarity index 100% rename from mobile/lib/models/location/location.dart rename to mobile/apps/photos/lib/models/location/location.dart diff --git a/mobile/lib/models/location/location.freezed.dart b/mobile/apps/photos/lib/models/location/location.freezed.dart similarity index 100% rename from mobile/lib/models/location/location.freezed.dart rename to mobile/apps/photos/lib/models/location/location.freezed.dart diff --git a/mobile/lib/models/location/location.g.dart b/mobile/apps/photos/lib/models/location/location.g.dart similarity index 100% rename from mobile/lib/models/location/location.g.dart rename to mobile/apps/photos/lib/models/location/location.g.dart diff --git a/mobile/lib/models/location_tag/location_tag.dart b/mobile/apps/photos/lib/models/location_tag/location_tag.dart similarity index 100% rename from mobile/lib/models/location_tag/location_tag.dart rename to mobile/apps/photos/lib/models/location_tag/location_tag.dart diff --git a/mobile/lib/models/location_tag/location_tag.freezed.dart b/mobile/apps/photos/lib/models/location_tag/location_tag.freezed.dart similarity index 100% rename from mobile/lib/models/location_tag/location_tag.freezed.dart rename to mobile/apps/photos/lib/models/location_tag/location_tag.freezed.dart diff --git a/mobile/lib/models/location_tag/location_tag.g.dart b/mobile/apps/photos/lib/models/location_tag/location_tag.g.dart similarity index 100% rename from mobile/lib/models/location_tag/location_tag.g.dart rename to mobile/apps/photos/lib/models/location_tag/location_tag.g.dart diff --git a/mobile/lib/models/memories/clip_memory.dart b/mobile/apps/photos/lib/models/memories/clip_memory.dart similarity index 100% rename from mobile/lib/models/memories/clip_memory.dart rename to mobile/apps/photos/lib/models/memories/clip_memory.dart diff --git a/mobile/lib/models/memories/filler_memory.dart b/mobile/apps/photos/lib/models/memories/filler_memory.dart similarity index 100% rename from mobile/lib/models/memories/filler_memory.dart rename to mobile/apps/photos/lib/models/memories/filler_memory.dart diff --git a/mobile/lib/models/memories/memories_cache.dart b/mobile/apps/photos/lib/models/memories/memories_cache.dart similarity index 100% rename from mobile/lib/models/memories/memories_cache.dart rename to mobile/apps/photos/lib/models/memories/memories_cache.dart diff --git a/mobile/lib/models/memories/memory.dart b/mobile/apps/photos/lib/models/memories/memory.dart similarity index 100% rename from mobile/lib/models/memories/memory.dart rename to mobile/apps/photos/lib/models/memories/memory.dart diff --git a/mobile/lib/models/memories/on_this_day_memory.dart b/mobile/apps/photos/lib/models/memories/on_this_day_memory.dart similarity index 100% rename from mobile/lib/models/memories/on_this_day_memory.dart rename to mobile/apps/photos/lib/models/memories/on_this_day_memory.dart diff --git a/mobile/lib/models/memories/people_memory.dart b/mobile/apps/photos/lib/models/memories/people_memory.dart similarity index 100% rename from mobile/lib/models/memories/people_memory.dart rename to mobile/apps/photos/lib/models/memories/people_memory.dart diff --git a/mobile/lib/models/memories/smart_memory.dart b/mobile/apps/photos/lib/models/memories/smart_memory.dart similarity index 100% rename from mobile/lib/models/memories/smart_memory.dart rename to mobile/apps/photos/lib/models/memories/smart_memory.dart diff --git a/mobile/lib/models/memories/smart_memory_constants.dart b/mobile/apps/photos/lib/models/memories/smart_memory_constants.dart similarity index 100% rename from mobile/lib/models/memories/smart_memory_constants.dart rename to mobile/apps/photos/lib/models/memories/smart_memory_constants.dart diff --git a/mobile/lib/models/memories/time_memory.dart b/mobile/apps/photos/lib/models/memories/time_memory.dart similarity index 100% rename from mobile/lib/models/memories/time_memory.dart rename to mobile/apps/photos/lib/models/memories/time_memory.dart diff --git a/mobile/lib/models/memories/trip_memory.dart b/mobile/apps/photos/lib/models/memories/trip_memory.dart similarity index 100% rename from mobile/lib/models/memories/trip_memory.dart rename to mobile/apps/photos/lib/models/memories/trip_memory.dart diff --git a/mobile/lib/models/metadata/collection_magic.dart b/mobile/apps/photos/lib/models/metadata/collection_magic.dart similarity index 100% rename from mobile/lib/models/metadata/collection_magic.dart rename to mobile/apps/photos/lib/models/metadata/collection_magic.dart diff --git a/mobile/lib/models/metadata/common_keys.dart b/mobile/apps/photos/lib/models/metadata/common_keys.dart similarity index 100% rename from mobile/lib/models/metadata/common_keys.dart rename to mobile/apps/photos/lib/models/metadata/common_keys.dart diff --git a/mobile/lib/models/metadata/file_magic.dart b/mobile/apps/photos/lib/models/metadata/file_magic.dart similarity index 100% rename from mobile/lib/models/metadata/file_magic.dart rename to mobile/apps/photos/lib/models/metadata/file_magic.dart diff --git a/mobile/lib/models/ml/clip.dart b/mobile/apps/photos/lib/models/ml/clip.dart similarity index 100% rename from mobile/lib/models/ml/clip.dart rename to mobile/apps/photos/lib/models/ml/clip.dart diff --git a/mobile/lib/models/ml/discover/prompt.dart b/mobile/apps/photos/lib/models/ml/discover/prompt.dart similarity index 100% rename from mobile/lib/models/ml/discover/prompt.dart rename to mobile/apps/photos/lib/models/ml/discover/prompt.dart diff --git a/mobile/lib/models/ml/face/box.dart b/mobile/apps/photos/lib/models/ml/face/box.dart similarity index 100% rename from mobile/lib/models/ml/face/box.dart rename to mobile/apps/photos/lib/models/ml/face/box.dart diff --git a/mobile/lib/models/ml/face/detection.dart b/mobile/apps/photos/lib/models/ml/face/detection.dart similarity index 100% rename from mobile/lib/models/ml/face/detection.dart rename to mobile/apps/photos/lib/models/ml/face/detection.dart diff --git a/mobile/lib/models/ml/face/dimension.dart b/mobile/apps/photos/lib/models/ml/face/dimension.dart similarity index 100% rename from mobile/lib/models/ml/face/dimension.dart rename to mobile/apps/photos/lib/models/ml/face/dimension.dart diff --git a/mobile/lib/models/ml/face/face.dart b/mobile/apps/photos/lib/models/ml/face/face.dart similarity index 100% rename from mobile/lib/models/ml/face/face.dart rename to mobile/apps/photos/lib/models/ml/face/face.dart diff --git a/mobile/lib/models/ml/face/face_with_embedding.dart b/mobile/apps/photos/lib/models/ml/face/face_with_embedding.dart similarity index 100% rename from mobile/lib/models/ml/face/face_with_embedding.dart rename to mobile/apps/photos/lib/models/ml/face/face_with_embedding.dart diff --git a/mobile/lib/models/ml/face/landmark.dart b/mobile/apps/photos/lib/models/ml/face/landmark.dart similarity index 100% rename from mobile/lib/models/ml/face/landmark.dart rename to mobile/apps/photos/lib/models/ml/face/landmark.dart diff --git a/mobile/lib/models/ml/face/person.dart b/mobile/apps/photos/lib/models/ml/face/person.dart similarity index 100% rename from mobile/lib/models/ml/face/person.dart rename to mobile/apps/photos/lib/models/ml/face/person.dart diff --git a/mobile/lib/models/ml/ml_typedefs.dart b/mobile/apps/photos/lib/models/ml/ml_typedefs.dart similarity index 100% rename from mobile/lib/models/ml/ml_typedefs.dart rename to mobile/apps/photos/lib/models/ml/ml_typedefs.dart diff --git a/mobile/lib/models/ml/ml_versions.dart b/mobile/apps/photos/lib/models/ml/ml_versions.dart similarity index 100% rename from mobile/lib/models/ml/ml_versions.dart rename to mobile/apps/photos/lib/models/ml/ml_versions.dart diff --git a/mobile/lib/models/ml/vector.dart b/mobile/apps/photos/lib/models/ml/vector.dart similarity index 100% rename from mobile/lib/models/ml/vector.dart rename to mobile/apps/photos/lib/models/ml/vector.dart diff --git a/mobile/lib/models/preview/playlist_data.dart b/mobile/apps/photos/lib/models/preview/playlist_data.dart similarity index 100% rename from mobile/lib/models/preview/playlist_data.dart rename to mobile/apps/photos/lib/models/preview/playlist_data.dart diff --git a/mobile/lib/models/preview/preview_item.dart b/mobile/apps/photos/lib/models/preview/preview_item.dart similarity index 100% rename from mobile/lib/models/preview/preview_item.dart rename to mobile/apps/photos/lib/models/preview/preview_item.dart diff --git a/mobile/lib/models/preview/preview_item_status.dart b/mobile/apps/photos/lib/models/preview/preview_item_status.dart similarity index 100% rename from mobile/lib/models/preview/preview_item_status.dart rename to mobile/apps/photos/lib/models/preview/preview_item_status.dart diff --git a/mobile/lib/models/search/album_search_result.dart b/mobile/apps/photos/lib/models/search/album_search_result.dart similarity index 100% rename from mobile/lib/models/search/album_search_result.dart rename to mobile/apps/photos/lib/models/search/album_search_result.dart diff --git a/mobile/lib/models/search/generic_search_result.dart b/mobile/apps/photos/lib/models/search/generic_search_result.dart similarity index 100% rename from mobile/lib/models/search/generic_search_result.dart rename to mobile/apps/photos/lib/models/search/generic_search_result.dart diff --git a/mobile/lib/models/search/hierarchical/album_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/album_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/album_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/album_filter.dart diff --git a/mobile/lib/models/search/hierarchical/contacts_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/contacts_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/contacts_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/contacts_filter.dart diff --git a/mobile/lib/models/search/hierarchical/face_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/face_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/face_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/face_filter.dart diff --git a/mobile/lib/models/search/hierarchical/file_type_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/file_type_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/file_type_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/file_type_filter.dart diff --git a/mobile/lib/models/search/hierarchical/hierarchical_search_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/hierarchical_search_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/hierarchical_search_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/hierarchical_search_filter.dart diff --git a/mobile/lib/models/search/hierarchical/location_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/location_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/location_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/location_filter.dart diff --git a/mobile/lib/models/search/hierarchical/magic_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/magic_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/magic_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/magic_filter.dart diff --git a/mobile/lib/models/search/hierarchical/only_them_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/only_them_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/only_them_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/only_them_filter.dart diff --git a/mobile/lib/models/search/hierarchical/top_level_generic_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/top_level_generic_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/top_level_generic_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/top_level_generic_filter.dart diff --git a/mobile/lib/models/search/hierarchical/uploader_filter.dart b/mobile/apps/photos/lib/models/search/hierarchical/uploader_filter.dart similarity index 100% rename from mobile/lib/models/search/hierarchical/uploader_filter.dart rename to mobile/apps/photos/lib/models/search/hierarchical/uploader_filter.dart diff --git a/mobile/lib/models/search/index_of_indexed_stack.dart b/mobile/apps/photos/lib/models/search/index_of_indexed_stack.dart similarity index 100% rename from mobile/lib/models/search/index_of_indexed_stack.dart rename to mobile/apps/photos/lib/models/search/index_of_indexed_stack.dart diff --git a/mobile/lib/models/search/recent_searches.dart b/mobile/apps/photos/lib/models/search/recent_searches.dart similarity index 100% rename from mobile/lib/models/search/recent_searches.dart rename to mobile/apps/photos/lib/models/search/recent_searches.dart diff --git a/mobile/lib/models/search/search_constants.dart b/mobile/apps/photos/lib/models/search/search_constants.dart similarity index 100% rename from mobile/lib/models/search/search_constants.dart rename to mobile/apps/photos/lib/models/search/search_constants.dart diff --git a/mobile/lib/models/search/search_result.dart b/mobile/apps/photos/lib/models/search/search_result.dart similarity index 100% rename from mobile/lib/models/search/search_result.dart rename to mobile/apps/photos/lib/models/search/search_result.dart diff --git a/mobile/lib/models/search/search_types.dart b/mobile/apps/photos/lib/models/search/search_types.dart similarity index 100% rename from mobile/lib/models/search/search_types.dart rename to mobile/apps/photos/lib/models/search/search_types.dart diff --git a/mobile/lib/models/selected_albums.dart b/mobile/apps/photos/lib/models/selected_albums.dart similarity index 100% rename from mobile/lib/models/selected_albums.dart rename to mobile/apps/photos/lib/models/selected_albums.dart diff --git a/mobile/lib/models/selected_files.dart b/mobile/apps/photos/lib/models/selected_files.dart similarity index 100% rename from mobile/lib/models/selected_files.dart rename to mobile/apps/photos/lib/models/selected_files.dart diff --git a/mobile/lib/models/selected_people.dart b/mobile/apps/photos/lib/models/selected_people.dart similarity index 100% rename from mobile/lib/models/selected_people.dart rename to mobile/apps/photos/lib/models/selected_people.dart diff --git a/mobile/lib/models/typedefs.dart b/mobile/apps/photos/lib/models/typedefs.dart similarity index 100% rename from mobile/lib/models/typedefs.dart rename to mobile/apps/photos/lib/models/typedefs.dart diff --git a/mobile/lib/models/upload_strategy.dart b/mobile/apps/photos/lib/models/upload_strategy.dart similarity index 100% rename from mobile/lib/models/upload_strategy.dart rename to mobile/apps/photos/lib/models/upload_strategy.dart diff --git a/mobile/lib/models/user_details.dart b/mobile/apps/photos/lib/models/user_details.dart similarity index 100% rename from mobile/lib/models/user_details.dart rename to mobile/apps/photos/lib/models/user_details.dart diff --git a/mobile/lib/module/download/file_url.dart b/mobile/apps/photos/lib/module/download/file_url.dart similarity index 100% rename from mobile/lib/module/download/file_url.dart rename to mobile/apps/photos/lib/module/download/file_url.dart diff --git a/mobile/lib/module/download/manager.dart b/mobile/apps/photos/lib/module/download/manager.dart similarity index 100% rename from mobile/lib/module/download/manager.dart rename to mobile/apps/photos/lib/module/download/manager.dart diff --git a/mobile/lib/module/download/task.dart b/mobile/apps/photos/lib/module/download/task.dart similarity index 100% rename from mobile/lib/module/download/task.dart rename to mobile/apps/photos/lib/module/download/task.dart diff --git a/mobile/lib/module/upload/model/multipart.dart b/mobile/apps/photos/lib/module/upload/model/multipart.dart similarity index 100% rename from mobile/lib/module/upload/model/multipart.dart rename to mobile/apps/photos/lib/module/upload/model/multipart.dart diff --git a/mobile/lib/module/upload/model/upload_url.dart b/mobile/apps/photos/lib/module/upload/model/upload_url.dart similarity index 100% rename from mobile/lib/module/upload/model/upload_url.dart rename to mobile/apps/photos/lib/module/upload/model/upload_url.dart diff --git a/mobile/lib/module/upload/model/xml.dart b/mobile/apps/photos/lib/module/upload/model/xml.dart similarity index 100% rename from mobile/lib/module/upload/model/xml.dart rename to mobile/apps/photos/lib/module/upload/model/xml.dart diff --git a/mobile/lib/module/upload/service/multipart.dart b/mobile/apps/photos/lib/module/upload/service/multipart.dart similarity index 100% rename from mobile/lib/module/upload/service/multipart.dart rename to mobile/apps/photos/lib/module/upload/service/multipart.dart diff --git a/mobile/lib/service_locator.dart b/mobile/apps/photos/lib/service_locator.dart similarity index 100% rename from mobile/lib/service_locator.dart rename to mobile/apps/photos/lib/service_locator.dart diff --git a/mobile/lib/services/account/billing_service.dart b/mobile/apps/photos/lib/services/account/billing_service.dart similarity index 100% rename from mobile/lib/services/account/billing_service.dart rename to mobile/apps/photos/lib/services/account/billing_service.dart diff --git a/mobile/lib/services/account/passkey_service.dart b/mobile/apps/photos/lib/services/account/passkey_service.dart similarity index 100% rename from mobile/lib/services/account/passkey_service.dart rename to mobile/apps/photos/lib/services/account/passkey_service.dart diff --git a/mobile/lib/services/account/user_service.dart b/mobile/apps/photos/lib/services/account/user_service.dart similarity index 100% rename from mobile/lib/services/account/user_service.dart rename to mobile/apps/photos/lib/services/account/user_service.dart diff --git a/mobile/lib/services/album_home_widget_service.dart b/mobile/apps/photos/lib/services/album_home_widget_service.dart similarity index 100% rename from mobile/lib/services/album_home_widget_service.dart rename to mobile/apps/photos/lib/services/album_home_widget_service.dart diff --git a/mobile/lib/services/app_lifecycle_service.dart b/mobile/apps/photos/lib/services/app_lifecycle_service.dart similarity index 100% rename from mobile/lib/services/app_lifecycle_service.dart rename to mobile/apps/photos/lib/services/app_lifecycle_service.dart diff --git a/mobile/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dart similarity index 100% rename from mobile/lib/services/collections_service.dart rename to mobile/apps/photos/lib/services/collections_service.dart diff --git a/mobile/lib/services/deduplication_service.dart b/mobile/apps/photos/lib/services/deduplication_service.dart similarity index 100% rename from mobile/lib/services/deduplication_service.dart rename to mobile/apps/photos/lib/services/deduplication_service.dart diff --git a/mobile/lib/services/entity_service.dart b/mobile/apps/photos/lib/services/entity_service.dart similarity index 100% rename from mobile/lib/services/entity_service.dart rename to mobile/apps/photos/lib/services/entity_service.dart diff --git a/mobile/lib/services/favorites_service.dart b/mobile/apps/photos/lib/services/favorites_service.dart similarity index 100% rename from mobile/lib/services/favorites_service.dart rename to mobile/apps/photos/lib/services/favorites_service.dart diff --git a/mobile/lib/services/file_magic_service.dart b/mobile/apps/photos/lib/services/file_magic_service.dart similarity index 100% rename from mobile/lib/services/file_magic_service.dart rename to mobile/apps/photos/lib/services/file_magic_service.dart diff --git a/mobile/lib/services/filedata/filedata_service.dart b/mobile/apps/photos/lib/services/filedata/filedata_service.dart similarity index 100% rename from mobile/lib/services/filedata/filedata_service.dart rename to mobile/apps/photos/lib/services/filedata/filedata_service.dart diff --git a/mobile/lib/services/filedata/model/enc_file_data.dart b/mobile/apps/photos/lib/services/filedata/model/enc_file_data.dart similarity index 100% rename from mobile/lib/services/filedata/model/enc_file_data.dart rename to mobile/apps/photos/lib/services/filedata/model/enc_file_data.dart diff --git a/mobile/lib/services/filedata/model/file_data.dart b/mobile/apps/photos/lib/services/filedata/model/file_data.dart similarity index 100% rename from mobile/lib/services/filedata/model/file_data.dart rename to mobile/apps/photos/lib/services/filedata/model/file_data.dart diff --git a/mobile/lib/services/filedata/model/response.dart b/mobile/apps/photos/lib/services/filedata/model/response.dart similarity index 100% rename from mobile/lib/services/filedata/model/response.dart rename to mobile/apps/photos/lib/services/filedata/model/response.dart diff --git a/mobile/lib/services/files_service.dart b/mobile/apps/photos/lib/services/files_service.dart similarity index 100% rename from mobile/lib/services/files_service.dart rename to mobile/apps/photos/lib/services/files_service.dart diff --git a/mobile/lib/services/filter/collection_ignore.dart b/mobile/apps/photos/lib/services/filter/collection_ignore.dart similarity index 100% rename from mobile/lib/services/filter/collection_ignore.dart rename to mobile/apps/photos/lib/services/filter/collection_ignore.dart diff --git a/mobile/lib/services/filter/db_filters.dart b/mobile/apps/photos/lib/services/filter/db_filters.dart similarity index 100% rename from mobile/lib/services/filter/db_filters.dart rename to mobile/apps/photos/lib/services/filter/db_filters.dart diff --git a/mobile/lib/services/filter/dedupe_by_upload_id.dart b/mobile/apps/photos/lib/services/filter/dedupe_by_upload_id.dart similarity index 100% rename from mobile/lib/services/filter/dedupe_by_upload_id.dart rename to mobile/apps/photos/lib/services/filter/dedupe_by_upload_id.dart diff --git a/mobile/lib/services/filter/filter.dart b/mobile/apps/photos/lib/services/filter/filter.dart similarity index 100% rename from mobile/lib/services/filter/filter.dart rename to mobile/apps/photos/lib/services/filter/filter.dart diff --git a/mobile/lib/services/filter/only_uploaded_files_filter.dart b/mobile/apps/photos/lib/services/filter/only_uploaded_files_filter.dart similarity index 100% rename from mobile/lib/services/filter/only_uploaded_files_filter.dart rename to mobile/apps/photos/lib/services/filter/only_uploaded_files_filter.dart diff --git a/mobile/lib/services/filter/shared.dart b/mobile/apps/photos/lib/services/filter/shared.dart similarity index 100% rename from mobile/lib/services/filter/shared.dart rename to mobile/apps/photos/lib/services/filter/shared.dart diff --git a/mobile/lib/services/filter/type_filter.dart b/mobile/apps/photos/lib/services/filter/type_filter.dart similarity index 100% rename from mobile/lib/services/filter/type_filter.dart rename to mobile/apps/photos/lib/services/filter/type_filter.dart diff --git a/mobile/lib/services/filter/upload_ignore.dart b/mobile/apps/photos/lib/services/filter/upload_ignore.dart similarity index 100% rename from mobile/lib/services/filter/upload_ignore.dart rename to mobile/apps/photos/lib/services/filter/upload_ignore.dart diff --git a/mobile/lib/services/hidden_service.dart b/mobile/apps/photos/lib/services/hidden_service.dart similarity index 100% rename from mobile/lib/services/hidden_service.dart rename to mobile/apps/photos/lib/services/hidden_service.dart diff --git a/mobile/lib/services/home_widget_service.dart b/mobile/apps/photos/lib/services/home_widget_service.dart similarity index 100% rename from mobile/lib/services/home_widget_service.dart rename to mobile/apps/photos/lib/services/home_widget_service.dart diff --git a/mobile/lib/services/ignored_files_service.dart b/mobile/apps/photos/lib/services/ignored_files_service.dart similarity index 100% rename from mobile/lib/services/ignored_files_service.dart rename to mobile/apps/photos/lib/services/ignored_files_service.dart diff --git a/mobile/lib/services/isolate_functions.dart b/mobile/apps/photos/lib/services/isolate_functions.dart similarity index 100% rename from mobile/lib/services/isolate_functions.dart rename to mobile/apps/photos/lib/services/isolate_functions.dart diff --git a/mobile/lib/services/isolate_service.dart b/mobile/apps/photos/lib/services/isolate_service.dart similarity index 100% rename from mobile/lib/services/isolate_service.dart rename to mobile/apps/photos/lib/services/isolate_service.dart diff --git a/mobile/lib/services/language_service.dart b/mobile/apps/photos/lib/services/language_service.dart similarity index 100% rename from mobile/lib/services/language_service.dart rename to mobile/apps/photos/lib/services/language_service.dart diff --git a/mobile/lib/services/local_authentication_service.dart b/mobile/apps/photos/lib/services/local_authentication_service.dart similarity index 100% rename from mobile/lib/services/local_authentication_service.dart rename to mobile/apps/photos/lib/services/local_authentication_service.dart diff --git a/mobile/lib/services/local_file_update_service.dart b/mobile/apps/photos/lib/services/local_file_update_service.dart similarity index 100% rename from mobile/lib/services/local_file_update_service.dart rename to mobile/apps/photos/lib/services/local_file_update_service.dart diff --git a/mobile/lib/services/location_service.dart b/mobile/apps/photos/lib/services/location_service.dart similarity index 100% rename from mobile/lib/services/location_service.dart rename to mobile/apps/photos/lib/services/location_service.dart diff --git a/mobile/lib/services/machine_learning/compute_controller.dart b/mobile/apps/photos/lib/services/machine_learning/compute_controller.dart similarity index 100% rename from mobile/lib/services/machine_learning/compute_controller.dart rename to mobile/apps/photos/lib/services/machine_learning/compute_controller.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_alignment/alignment_result.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_alignment/alignment_result.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_alignment/alignment_result.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_alignment/alignment_result.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_alignment/similarity_transform.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_alignment/similarity_transform.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_alignment/similarity_transform.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_alignment/similarity_transform.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_clustering/face_db_info_for_clustering.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_clustering/face_db_info_for_clustering.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_clustering/face_db_info_for_clustering.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_clustering/face_db_info_for_clustering.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_detection/detection.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_detection/detection.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_filtering/blur_detection_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_filtering/blur_detection_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_filtering/blur_detection_service.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_filtering/blur_detection_service.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_filtering/face_filtering_constants.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_filtering/face_filtering_constants.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_filtering/face_filtering_constants.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_filtering/face_filtering_constants.dart diff --git a/mobile/lib/services/machine_learning/face_ml/face_recognition_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/face_recognition_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/face_recognition_service.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/face_recognition_service.dart diff --git a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart diff --git a/mobile/lib/services/machine_learning/face_ml/person/person_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_ml/person/person_service.dart rename to mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart diff --git a/mobile/lib/services/machine_learning/face_thumbnail_generator.dart b/mobile/apps/photos/lib/services/machine_learning/face_thumbnail_generator.dart similarity index 100% rename from mobile/lib/services/machine_learning/face_thumbnail_generator.dart rename to mobile/apps/photos/lib/services/machine_learning/face_thumbnail_generator.dart diff --git a/mobile/lib/services/machine_learning/ml_computer.dart b/mobile/apps/photos/lib/services/machine_learning/ml_computer.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_computer.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_computer.dart diff --git a/mobile/lib/services/machine_learning/ml_constants.dart b/mobile/apps/photos/lib/services/machine_learning/ml_constants.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_constants.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_constants.dart diff --git a/mobile/lib/services/machine_learning/ml_exceptions.dart b/mobile/apps/photos/lib/services/machine_learning/ml_exceptions.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_exceptions.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_exceptions.dart diff --git a/mobile/lib/services/machine_learning/ml_indexing_isolate.dart b/mobile/apps/photos/lib/services/machine_learning/ml_indexing_isolate.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_indexing_isolate.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_indexing_isolate.dart diff --git a/mobile/lib/services/machine_learning/ml_model.dart b/mobile/apps/photos/lib/services/machine_learning/ml_model.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_model.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_model.dart diff --git a/mobile/lib/services/machine_learning/ml_models_overview.dart b/mobile/apps/photos/lib/services/machine_learning/ml_models_overview.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_models_overview.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_models_overview.dart diff --git a/mobile/lib/services/machine_learning/ml_result.dart b/mobile/apps/photos/lib/services/machine_learning/ml_result.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_result.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_result.dart diff --git a/mobile/lib/services/machine_learning/ml_service.dart b/mobile/apps/photos/lib/services/machine_learning/ml_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/ml_service.dart rename to mobile/apps/photos/lib/services/machine_learning/ml_service.dart diff --git a/mobile/lib/services/machine_learning/onnx_env.dart b/mobile/apps/photos/lib/services/machine_learning/onnx_env.dart similarity index 100% rename from mobile/lib/services/machine_learning/onnx_env.dart rename to mobile/apps/photos/lib/services/machine_learning/onnx_env.dart diff --git a/mobile/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart b/mobile/apps/photos/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart similarity index 100% rename from mobile/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart rename to mobile/apps/photos/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart diff --git a/mobile/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart b/mobile/apps/photos/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart similarity index 100% rename from mobile/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart rename to mobile/apps/photos/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart diff --git a/mobile/lib/services/machine_learning/semantic_search/clip/clip_text_tokenizer.dart b/mobile/apps/photos/lib/services/machine_learning/semantic_search/clip/clip_text_tokenizer.dart similarity index 100% rename from mobile/lib/services/machine_learning/semantic_search/clip/clip_text_tokenizer.dart rename to mobile/apps/photos/lib/services/machine_learning/semantic_search/clip/clip_text_tokenizer.dart diff --git a/mobile/lib/services/machine_learning/semantic_search/query_result.dart b/mobile/apps/photos/lib/services/machine_learning/semantic_search/query_result.dart similarity index 100% rename from mobile/lib/services/machine_learning/semantic_search/query_result.dart rename to mobile/apps/photos/lib/services/machine_learning/semantic_search/query_result.dart diff --git a/mobile/lib/services/machine_learning/semantic_search/semantic_search_service.dart b/mobile/apps/photos/lib/services/machine_learning/semantic_search/semantic_search_service.dart similarity index 100% rename from mobile/lib/services/machine_learning/semantic_search/semantic_search_service.dart rename to mobile/apps/photos/lib/services/machine_learning/semantic_search/semantic_search_service.dart diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/apps/photos/lib/services/magic_cache_service.dart similarity index 100% rename from mobile/lib/services/magic_cache_service.dart rename to mobile/apps/photos/lib/services/magic_cache_service.dart diff --git a/mobile/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart similarity index 100% rename from mobile/lib/services/memories_cache_service.dart rename to mobile/apps/photos/lib/services/memories_cache_service.dart diff --git a/mobile/lib/services/memory_home_widget_service.dart b/mobile/apps/photos/lib/services/memory_home_widget_service.dart similarity index 100% rename from mobile/lib/services/memory_home_widget_service.dart rename to mobile/apps/photos/lib/services/memory_home_widget_service.dart diff --git a/mobile/lib/services/notification_service.dart b/mobile/apps/photos/lib/services/notification_service.dart similarity index 100% rename from mobile/lib/services/notification_service.dart rename to mobile/apps/photos/lib/services/notification_service.dart diff --git a/mobile/lib/services/people_home_widget_service.dart b/mobile/apps/photos/lib/services/people_home_widget_service.dart similarity index 100% rename from mobile/lib/services/people_home_widget_service.dart rename to mobile/apps/photos/lib/services/people_home_widget_service.dart diff --git a/mobile/lib/services/permission/service.dart b/mobile/apps/photos/lib/services/permission/service.dart similarity index 100% rename from mobile/lib/services/permission/service.dart rename to mobile/apps/photos/lib/services/permission/service.dart diff --git a/mobile/lib/services/push_service.dart b/mobile/apps/photos/lib/services/push_service.dart similarity index 100% rename from mobile/lib/services/push_service.dart rename to mobile/apps/photos/lib/services/push_service.dart diff --git a/mobile/lib/services/remote_assets_service.dart b/mobile/apps/photos/lib/services/remote_assets_service.dart similarity index 100% rename from mobile/lib/services/remote_assets_service.dart rename to mobile/apps/photos/lib/services/remote_assets_service.dart diff --git a/mobile/lib/services/search_service.dart b/mobile/apps/photos/lib/services/search_service.dart similarity index 100% rename from mobile/lib/services/search_service.dart rename to mobile/apps/photos/lib/services/search_service.dart diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/apps/photos/lib/services/smart_memories_service.dart similarity index 100% rename from mobile/lib/services/smart_memories_service.dart rename to mobile/apps/photos/lib/services/smart_memories_service.dart diff --git a/mobile/lib/services/storage_bonus_service.dart b/mobile/apps/photos/lib/services/storage_bonus_service.dart similarity index 100% rename from mobile/lib/services/storage_bonus_service.dart rename to mobile/apps/photos/lib/services/storage_bonus_service.dart diff --git a/mobile/lib/services/sync/diff_fetcher.dart b/mobile/apps/photos/lib/services/sync/diff_fetcher.dart similarity index 100% rename from mobile/lib/services/sync/diff_fetcher.dart rename to mobile/apps/photos/lib/services/sync/diff_fetcher.dart diff --git a/mobile/lib/services/sync/import/diff.dart b/mobile/apps/photos/lib/services/sync/import/diff.dart similarity index 100% rename from mobile/lib/services/sync/import/diff.dart rename to mobile/apps/photos/lib/services/sync/import/diff.dart diff --git a/mobile/lib/services/sync/import/local_assets.dart b/mobile/apps/photos/lib/services/sync/import/local_assets.dart similarity index 100% rename from mobile/lib/services/sync/import/local_assets.dart rename to mobile/apps/photos/lib/services/sync/import/local_assets.dart diff --git a/mobile/lib/services/sync/import/model.dart b/mobile/apps/photos/lib/services/sync/import/model.dart similarity index 100% rename from mobile/lib/services/sync/import/model.dart rename to mobile/apps/photos/lib/services/sync/import/model.dart diff --git a/mobile/lib/services/sync/local_sync_service.dart b/mobile/apps/photos/lib/services/sync/local_sync_service.dart similarity index 100% rename from mobile/lib/services/sync/local_sync_service.dart rename to mobile/apps/photos/lib/services/sync/local_sync_service.dart diff --git a/mobile/lib/services/sync/remote_sync_service.dart b/mobile/apps/photos/lib/services/sync/remote_sync_service.dart similarity index 100% rename from mobile/lib/services/sync/remote_sync_service.dart rename to mobile/apps/photos/lib/services/sync/remote_sync_service.dart diff --git a/mobile/lib/services/sync/sync_service.dart b/mobile/apps/photos/lib/services/sync/sync_service.dart similarity index 100% rename from mobile/lib/services/sync/sync_service.dart rename to mobile/apps/photos/lib/services/sync/sync_service.dart diff --git a/mobile/lib/services/sync/trash_sync_service.dart b/mobile/apps/photos/lib/services/sync/trash_sync_service.dart similarity index 100% rename from mobile/lib/services/sync/trash_sync_service.dart rename to mobile/apps/photos/lib/services/sync/trash_sync_service.dart diff --git a/mobile/lib/services/update_service.dart b/mobile/apps/photos/lib/services/update_service.dart similarity index 100% rename from mobile/lib/services/update_service.dart rename to mobile/apps/photos/lib/services/update_service.dart diff --git a/mobile/lib/services/video_memory_service.dart b/mobile/apps/photos/lib/services/video_memory_service.dart similarity index 100% rename from mobile/lib/services/video_memory_service.dart rename to mobile/apps/photos/lib/services/video_memory_service.dart diff --git a/mobile/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart similarity index 100% rename from mobile/lib/services/video_preview_service.dart rename to mobile/apps/photos/lib/services/video_preview_service.dart diff --git a/mobile/lib/services/wake_lock_service.dart b/mobile/apps/photos/lib/services/wake_lock_service.dart similarity index 100% rename from mobile/lib/services/wake_lock_service.dart rename to mobile/apps/photos/lib/services/wake_lock_service.dart diff --git a/mobile/lib/states/all_sections_examples_state.dart b/mobile/apps/photos/lib/states/all_sections_examples_state.dart similarity index 100% rename from mobile/lib/states/all_sections_examples_state.dart rename to mobile/apps/photos/lib/states/all_sections_examples_state.dart diff --git a/mobile/lib/states/detail_page_state.dart b/mobile/apps/photos/lib/states/detail_page_state.dart similarity index 100% rename from mobile/lib/states/detail_page_state.dart rename to mobile/apps/photos/lib/states/detail_page_state.dart diff --git a/mobile/lib/states/location_screen_state.dart b/mobile/apps/photos/lib/states/location_screen_state.dart similarity index 100% rename from mobile/lib/states/location_screen_state.dart rename to mobile/apps/photos/lib/states/location_screen_state.dart diff --git a/mobile/lib/states/location_state.dart b/mobile/apps/photos/lib/states/location_state.dart similarity index 100% rename from mobile/lib/states/location_state.dart rename to mobile/apps/photos/lib/states/location_state.dart diff --git a/mobile/lib/states/user_details_state.dart b/mobile/apps/photos/lib/states/user_details_state.dart similarity index 100% rename from mobile/lib/states/user_details_state.dart rename to mobile/apps/photos/lib/states/user_details_state.dart diff --git a/mobile/lib/theme/colors.dart b/mobile/apps/photos/lib/theme/colors.dart similarity index 100% rename from mobile/lib/theme/colors.dart rename to mobile/apps/photos/lib/theme/colors.dart diff --git a/mobile/lib/theme/effects.dart b/mobile/apps/photos/lib/theme/effects.dart similarity index 100% rename from mobile/lib/theme/effects.dart rename to mobile/apps/photos/lib/theme/effects.dart diff --git a/mobile/lib/theme/ente_theme.dart b/mobile/apps/photos/lib/theme/ente_theme.dart similarity index 100% rename from mobile/lib/theme/ente_theme.dart rename to mobile/apps/photos/lib/theme/ente_theme.dart diff --git a/mobile/lib/theme/text_style.dart b/mobile/apps/photos/lib/theme/text_style.dart similarity index 100% rename from mobile/lib/theme/text_style.dart rename to mobile/apps/photos/lib/theme/text_style.dart diff --git a/mobile/lib/ui/account/change_email_dialog.dart b/mobile/apps/photos/lib/ui/account/change_email_dialog.dart similarity index 100% rename from mobile/lib/ui/account/change_email_dialog.dart rename to mobile/apps/photos/lib/ui/account/change_email_dialog.dart diff --git a/mobile/lib/ui/account/delete_account_page.dart b/mobile/apps/photos/lib/ui/account/delete_account_page.dart similarity index 100% rename from mobile/lib/ui/account/delete_account_page.dart rename to mobile/apps/photos/lib/ui/account/delete_account_page.dart diff --git a/mobile/lib/ui/account/email_entry_page.dart b/mobile/apps/photos/lib/ui/account/email_entry_page.dart similarity index 100% rename from mobile/lib/ui/account/email_entry_page.dart rename to mobile/apps/photos/lib/ui/account/email_entry_page.dart diff --git a/mobile/lib/ui/account/login_page.dart b/mobile/apps/photos/lib/ui/account/login_page.dart similarity index 100% rename from mobile/lib/ui/account/login_page.dart rename to mobile/apps/photos/lib/ui/account/login_page.dart diff --git a/mobile/lib/ui/account/login_pwd_verification_page.dart b/mobile/apps/photos/lib/ui/account/login_pwd_verification_page.dart similarity index 100% rename from mobile/lib/ui/account/login_pwd_verification_page.dart rename to mobile/apps/photos/lib/ui/account/login_pwd_verification_page.dart diff --git a/mobile/lib/ui/account/ott_verification_page.dart b/mobile/apps/photos/lib/ui/account/ott_verification_page.dart similarity index 100% rename from mobile/lib/ui/account/ott_verification_page.dart rename to mobile/apps/photos/lib/ui/account/ott_verification_page.dart diff --git a/mobile/lib/ui/account/passkey_page.dart b/mobile/apps/photos/lib/ui/account/passkey_page.dart similarity index 100% rename from mobile/lib/ui/account/passkey_page.dart rename to mobile/apps/photos/lib/ui/account/passkey_page.dart diff --git a/mobile/lib/ui/account/password_entry_page.dart b/mobile/apps/photos/lib/ui/account/password_entry_page.dart similarity index 100% rename from mobile/lib/ui/account/password_entry_page.dart rename to mobile/apps/photos/lib/ui/account/password_entry_page.dart diff --git a/mobile/lib/ui/account/password_reentry_page.dart b/mobile/apps/photos/lib/ui/account/password_reentry_page.dart similarity index 100% rename from mobile/lib/ui/account/password_reentry_page.dart rename to mobile/apps/photos/lib/ui/account/password_reentry_page.dart diff --git a/mobile/lib/ui/account/recovery_key_page.dart b/mobile/apps/photos/lib/ui/account/recovery_key_page.dart similarity index 100% rename from mobile/lib/ui/account/recovery_key_page.dart rename to mobile/apps/photos/lib/ui/account/recovery_key_page.dart diff --git a/mobile/lib/ui/account/recovery_page.dart b/mobile/apps/photos/lib/ui/account/recovery_page.dart similarity index 100% rename from mobile/lib/ui/account/recovery_page.dart rename to mobile/apps/photos/lib/ui/account/recovery_page.dart diff --git a/mobile/lib/ui/account/request_pwd_verification_page.dart b/mobile/apps/photos/lib/ui/account/request_pwd_verification_page.dart similarity index 100% rename from mobile/lib/ui/account/request_pwd_verification_page.dart rename to mobile/apps/photos/lib/ui/account/request_pwd_verification_page.dart diff --git a/mobile/lib/ui/account/sessions_page.dart b/mobile/apps/photos/lib/ui/account/sessions_page.dart similarity index 100% rename from mobile/lib/ui/account/sessions_page.dart rename to mobile/apps/photos/lib/ui/account/sessions_page.dart diff --git a/mobile/lib/ui/account/two_factor_authentication_page.dart b/mobile/apps/photos/lib/ui/account/two_factor_authentication_page.dart similarity index 100% rename from mobile/lib/ui/account/two_factor_authentication_page.dart rename to mobile/apps/photos/lib/ui/account/two_factor_authentication_page.dart diff --git a/mobile/lib/ui/account/two_factor_recovery_page.dart b/mobile/apps/photos/lib/ui/account/two_factor_recovery_page.dart similarity index 100% rename from mobile/lib/ui/account/two_factor_recovery_page.dart rename to mobile/apps/photos/lib/ui/account/two_factor_recovery_page.dart diff --git a/mobile/lib/ui/account/two_factor_setup_page.dart b/mobile/apps/photos/lib/ui/account/two_factor_setup_page.dart similarity index 100% rename from mobile/lib/ui/account/two_factor_setup_page.dart rename to mobile/apps/photos/lib/ui/account/two_factor_setup_page.dart diff --git a/mobile/lib/ui/account/verify_recovery_page.dart b/mobile/apps/photos/lib/ui/account/verify_recovery_page.dart similarity index 100% rename from mobile/lib/ui/account/verify_recovery_page.dart rename to mobile/apps/photos/lib/ui/account/verify_recovery_page.dart diff --git a/mobile/lib/ui/actions/collection/collection_file_actions.dart b/mobile/apps/photos/lib/ui/actions/collection/collection_file_actions.dart similarity index 100% rename from mobile/lib/ui/actions/collection/collection_file_actions.dart rename to mobile/apps/photos/lib/ui/actions/collection/collection_file_actions.dart diff --git a/mobile/lib/ui/actions/collection/collection_sharing_actions.dart b/mobile/apps/photos/lib/ui/actions/collection/collection_sharing_actions.dart similarity index 100% rename from mobile/lib/ui/actions/collection/collection_sharing_actions.dart rename to mobile/apps/photos/lib/ui/actions/collection/collection_sharing_actions.dart diff --git a/mobile/lib/ui/actions/file/file_actions.dart b/mobile/apps/photos/lib/ui/actions/file/file_actions.dart similarity index 100% rename from mobile/lib/ui/actions/file/file_actions.dart rename to mobile/apps/photos/lib/ui/actions/file/file_actions.dart diff --git a/mobile/lib/ui/cast/auto.dart b/mobile/apps/photos/lib/ui/cast/auto.dart similarity index 100% rename from mobile/lib/ui/cast/auto.dart rename to mobile/apps/photos/lib/ui/cast/auto.dart diff --git a/mobile/lib/ui/cast/choose.dart b/mobile/apps/photos/lib/ui/cast/choose.dart similarity index 100% rename from mobile/lib/ui/cast/choose.dart rename to mobile/apps/photos/lib/ui/cast/choose.dart diff --git a/mobile/lib/ui/collections/album/column_item.dart b/mobile/apps/photos/lib/ui/collections/album/column_item.dart similarity index 100% rename from mobile/lib/ui/collections/album/column_item.dart rename to mobile/apps/photos/lib/ui/collections/album/column_item.dart diff --git a/mobile/lib/ui/collections/album/horizontal_list.dart b/mobile/apps/photos/lib/ui/collections/album/horizontal_list.dart similarity index 100% rename from mobile/lib/ui/collections/album/horizontal_list.dart rename to mobile/apps/photos/lib/ui/collections/album/horizontal_list.dart diff --git a/mobile/lib/ui/collections/album/list_item.dart b/mobile/apps/photos/lib/ui/collections/album/list_item.dart similarity index 100% rename from mobile/lib/ui/collections/album/list_item.dart rename to mobile/apps/photos/lib/ui/collections/album/list_item.dart diff --git a/mobile/lib/ui/collections/album/new_list_item.dart b/mobile/apps/photos/lib/ui/collections/album/new_list_item.dart similarity index 100% rename from mobile/lib/ui/collections/album/new_list_item.dart rename to mobile/apps/photos/lib/ui/collections/album/new_list_item.dart diff --git a/mobile/lib/ui/collections/album/new_row_item.dart b/mobile/apps/photos/lib/ui/collections/album/new_row_item.dart similarity index 100% rename from mobile/lib/ui/collections/album/new_row_item.dart rename to mobile/apps/photos/lib/ui/collections/album/new_row_item.dart diff --git a/mobile/lib/ui/collections/album/row_item.dart b/mobile/apps/photos/lib/ui/collections/album/row_item.dart similarity index 99% rename from mobile/lib/ui/collections/album/row_item.dart rename to mobile/apps/photos/lib/ui/collections/album/row_item.dart index ffaaf04421..48aff48c6a 100644 --- a/mobile/lib/ui/collections/album/row_item.dart +++ b/mobile/apps/photos/lib/ui/collections/album/row_item.dart @@ -27,7 +27,7 @@ class AlbumRowItemWidget extends StatelessWidget { final SelectedAlbums? selectedAlbums; static const _borderWidth = 1.0; static const _cornerRadius = 12.0; - static const _cornerSmoothing = 1.0; + static const _cornerSmoothing = 0.6; const AlbumRowItemWidget( this.c, diff --git a/mobile/lib/ui/collections/album/vertical_list.dart b/mobile/apps/photos/lib/ui/collections/album/vertical_list.dart similarity index 100% rename from mobile/lib/ui/collections/album/vertical_list.dart rename to mobile/apps/photos/lib/ui/collections/album/vertical_list.dart diff --git a/mobile/lib/ui/collections/button/archived_button.dart b/mobile/apps/photos/lib/ui/collections/button/archived_button.dart similarity index 100% rename from mobile/lib/ui/collections/button/archived_button.dart rename to mobile/apps/photos/lib/ui/collections/button/archived_button.dart diff --git a/mobile/lib/ui/collections/button/hidden_button.dart b/mobile/apps/photos/lib/ui/collections/button/hidden_button.dart similarity index 100% rename from mobile/lib/ui/collections/button/hidden_button.dart rename to mobile/apps/photos/lib/ui/collections/button/hidden_button.dart diff --git a/mobile/lib/ui/collections/button/trash_button.dart b/mobile/apps/photos/lib/ui/collections/button/trash_button.dart similarity index 100% rename from mobile/lib/ui/collections/button/trash_button.dart rename to mobile/apps/photos/lib/ui/collections/button/trash_button.dart diff --git a/mobile/lib/ui/collections/button/uncategorized_button.dart b/mobile/apps/photos/lib/ui/collections/button/uncategorized_button.dart similarity index 100% rename from mobile/lib/ui/collections/button/uncategorized_button.dart rename to mobile/apps/photos/lib/ui/collections/button/uncategorized_button.dart diff --git a/mobile/lib/ui/collections/collection_action_sheet.dart b/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart similarity index 100% rename from mobile/lib/ui/collections/collection_action_sheet.dart rename to mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart diff --git a/mobile/lib/ui/collections/collection_list_page.dart b/mobile/apps/photos/lib/ui/collections/collection_list_page.dart similarity index 100% rename from mobile/lib/ui/collections/collection_list_page.dart rename to mobile/apps/photos/lib/ui/collections/collection_list_page.dart diff --git a/mobile/lib/ui/collections/device/device_folder_item.dart b/mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart similarity index 99% rename from mobile/lib/ui/collections/device/device_folder_item.dart rename to mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart index e7817b169e..cf5809dc71 100644 --- a/mobile/lib/ui/collections/device/device_folder_item.dart +++ b/mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart @@ -13,7 +13,7 @@ class DeviceFolderItem extends StatelessWidget { final double sideOfThumbnail; static const _cornerRadius = 12.0; - static const _cornerSmoothing = 1.0; + static const _cornerSmoothing = 0.6; static const _borderWidth = 1.0; const DeviceFolderItem( diff --git a/mobile/lib/ui/collections/device/device_folders_grid_view.dart b/mobile/apps/photos/lib/ui/collections/device/device_folders_grid_view.dart similarity index 100% rename from mobile/lib/ui/collections/device/device_folders_grid_view.dart rename to mobile/apps/photos/lib/ui/collections/device/device_folders_grid_view.dart diff --git a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart b/mobile/apps/photos/lib/ui/collections/device/device_folders_vertical_grid_view.dart similarity index 100% rename from mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart rename to mobile/apps/photos/lib/ui/collections/device/device_folders_vertical_grid_view.dart diff --git a/mobile/lib/ui/collections/flex_grid_view.dart b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart similarity index 97% rename from mobile/lib/ui/collections/flex_grid_view.dart rename to mobile/apps/photos/lib/ui/collections/flex_grid_view.dart index 2267833b1a..aa66ae5d46 100644 --- a/mobile/lib/ui/collections/flex_grid_view.dart +++ b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart @@ -4,6 +4,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; import "package:flutter/services.dart"; import "package:logging/logging.dart"; +import "package:photos/core/configuration.dart"; import "package:photos/core/event_bus.dart"; import "package:photos/events/clear_album_selections_event.dart"; import "package:photos/generated/l10n.dart"; @@ -98,10 +99,16 @@ class _CollectionsFlexiGridViewWidgetState Future _navigateToCollectionPage(Collection c) async { final thumbnail = await CollectionsService.instance.getCover(c); + final bool isOwner = c.isOwner(Configuration.instance.getUserID()!); + final String tagPrefix = (isOwner ? "collection" : "shared_collection") + + widget.tag + + "_" + + c.id.toString(); // ignore: unawaited_futures routeToPage( context, CollectionPage( + tagPrefix: tagPrefix, CollectionWithThumbnail(c, thumbnail), ), ); diff --git a/mobile/lib/ui/common/bottom_shadow.dart b/mobile/apps/photos/lib/ui/common/bottom_shadow.dart similarity index 100% rename from mobile/lib/ui/common/bottom_shadow.dart rename to mobile/apps/photos/lib/ui/common/bottom_shadow.dart diff --git a/mobile/lib/ui/common/date_input.dart b/mobile/apps/photos/lib/ui/common/date_input.dart similarity index 100% rename from mobile/lib/ui/common/date_input.dart rename to mobile/apps/photos/lib/ui/common/date_input.dart diff --git a/mobile/lib/ui/common/dynamic_fab.dart b/mobile/apps/photos/lib/ui/common/dynamic_fab.dart similarity index 100% rename from mobile/lib/ui/common/dynamic_fab.dart rename to mobile/apps/photos/lib/ui/common/dynamic_fab.dart diff --git a/mobile/lib/ui/common/fast_scroll_physics.dart b/mobile/apps/photos/lib/ui/common/fast_scroll_physics.dart similarity index 100% rename from mobile/lib/ui/common/fast_scroll_physics.dart rename to mobile/apps/photos/lib/ui/common/fast_scroll_physics.dart diff --git a/mobile/lib/ui/common/gradient_button.dart b/mobile/apps/photos/lib/ui/common/gradient_button.dart similarity index 100% rename from mobile/lib/ui/common/gradient_button.dart rename to mobile/apps/photos/lib/ui/common/gradient_button.dart diff --git a/mobile/lib/ui/common/linear_progress_dialog.dart b/mobile/apps/photos/lib/ui/common/linear_progress_dialog.dart similarity index 100% rename from mobile/lib/ui/common/linear_progress_dialog.dart rename to mobile/apps/photos/lib/ui/common/linear_progress_dialog.dart diff --git a/mobile/lib/ui/common/loading_widget.dart b/mobile/apps/photos/lib/ui/common/loading_widget.dart similarity index 100% rename from mobile/lib/ui/common/loading_widget.dart rename to mobile/apps/photos/lib/ui/common/loading_widget.dart diff --git a/mobile/lib/ui/common/popup_item.dart b/mobile/apps/photos/lib/ui/common/popup_item.dart similarity index 100% rename from mobile/lib/ui/common/popup_item.dart rename to mobile/apps/photos/lib/ui/common/popup_item.dart diff --git a/mobile/lib/ui/common/progress_dialog.dart b/mobile/apps/photos/lib/ui/common/progress_dialog.dart similarity index 100% rename from mobile/lib/ui/common/progress_dialog.dart rename to mobile/apps/photos/lib/ui/common/progress_dialog.dart diff --git a/mobile/lib/ui/common/user_dialogs.dart b/mobile/apps/photos/lib/ui/common/user_dialogs.dart similarity index 100% rename from mobile/lib/ui/common/user_dialogs.dart rename to mobile/apps/photos/lib/ui/common/user_dialogs.dart diff --git a/mobile/lib/ui/common/web_page.dart b/mobile/apps/photos/lib/ui/common/web_page.dart similarity index 100% rename from mobile/lib/ui/common/web_page.dart rename to mobile/apps/photos/lib/ui/common/web_page.dart diff --git a/mobile/lib/ui/components/action_sheet_widget.dart b/mobile/apps/photos/lib/ui/components/action_sheet_widget.dart similarity index 100% rename from mobile/lib/ui/components/action_sheet_widget.dart rename to mobile/apps/photos/lib/ui/components/action_sheet_widget.dart diff --git a/mobile/lib/ui/components/blur_menu_item_widget.dart b/mobile/apps/photos/lib/ui/components/blur_menu_item_widget.dart similarity index 100% rename from mobile/lib/ui/components/blur_menu_item_widget.dart rename to mobile/apps/photos/lib/ui/components/blur_menu_item_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/action_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/action_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/action_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/action_bar_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/album_action_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/album_action_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/album_action_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/album_action_bar_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/album_bottom_action_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/album_bottom_action_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/album_bottom_action_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/album_bottom_action_bar_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/expanded_menu_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/expanded_menu_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/expanded_menu_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/expanded_menu_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/people_action_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/people_action_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/people_action_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/people_action_bar_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/people_bottom_action_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/people_bottom_action_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/people_bottom_action_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/people_bottom_action_bar_widget.dart diff --git a/mobile/lib/ui/components/bottom_action_bar/selection_action_button_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_action_bar/selection_action_button_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_action_bar/selection_action_button_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_action_bar/selection_action_button_widget.dart diff --git a/mobile/lib/ui/components/bottom_of_title_bar_widget.dart b/mobile/apps/photos/lib/ui/components/bottom_of_title_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/bottom_of_title_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/bottom_of_title_bar_widget.dart diff --git a/mobile/lib/ui/components/buttons/button_widget.dart b/mobile/apps/photos/lib/ui/components/buttons/button_widget.dart similarity index 100% rename from mobile/lib/ui/components/buttons/button_widget.dart rename to mobile/apps/photos/lib/ui/components/buttons/button_widget.dart diff --git a/mobile/lib/ui/components/buttons/chip_button_widget.dart b/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart similarity index 100% rename from mobile/lib/ui/components/buttons/chip_button_widget.dart rename to mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart diff --git a/mobile/lib/ui/components/buttons/icon_button_widget.dart b/mobile/apps/photos/lib/ui/components/buttons/icon_button_widget.dart similarity index 100% rename from mobile/lib/ui/components/buttons/icon_button_widget.dart rename to mobile/apps/photos/lib/ui/components/buttons/icon_button_widget.dart diff --git a/mobile/lib/ui/components/buttons/inline_button_widget.dart b/mobile/apps/photos/lib/ui/components/buttons/inline_button_widget.dart similarity index 100% rename from mobile/lib/ui/components/buttons/inline_button_widget.dart rename to mobile/apps/photos/lib/ui/components/buttons/inline_button_widget.dart diff --git a/mobile/lib/ui/components/captioned_text_widget.dart b/mobile/apps/photos/lib/ui/components/captioned_text_widget.dart similarity index 100% rename from mobile/lib/ui/components/captioned_text_widget.dart rename to mobile/apps/photos/lib/ui/components/captioned_text_widget.dart diff --git a/mobile/lib/ui/components/dialog_widget.dart b/mobile/apps/photos/lib/ui/components/dialog_widget.dart similarity index 100% rename from mobile/lib/ui/components/dialog_widget.dart rename to mobile/apps/photos/lib/ui/components/dialog_widget.dart diff --git a/mobile/lib/ui/components/divider_widget.dart b/mobile/apps/photos/lib/ui/components/divider_widget.dart similarity index 100% rename from mobile/lib/ui/components/divider_widget.dart rename to mobile/apps/photos/lib/ui/components/divider_widget.dart diff --git a/mobile/lib/ui/components/empty_state_item_widget.dart b/mobile/apps/photos/lib/ui/components/empty_state_item_widget.dart similarity index 100% rename from mobile/lib/ui/components/empty_state_item_widget.dart rename to mobile/apps/photos/lib/ui/components/empty_state_item_widget.dart diff --git a/mobile/lib/ui/components/end_to_end_banner.dart b/mobile/apps/photos/lib/ui/components/end_to_end_banner.dart similarity index 100% rename from mobile/lib/ui/components/end_to_end_banner.dart rename to mobile/apps/photos/lib/ui/components/end_to_end_banner.dart diff --git a/mobile/lib/ui/components/expandable_menu_item_widget.dart b/mobile/apps/photos/lib/ui/components/expandable_menu_item_widget.dart similarity index 100% rename from mobile/lib/ui/components/expandable_menu_item_widget.dart rename to mobile/apps/photos/lib/ui/components/expandable_menu_item_widget.dart diff --git a/mobile/lib/ui/components/home_header_widget.dart b/mobile/apps/photos/lib/ui/components/home_header_widget.dart similarity index 100% rename from mobile/lib/ui/components/home_header_widget.dart rename to mobile/apps/photos/lib/ui/components/home_header_widget.dart diff --git a/mobile/lib/ui/components/info_item_widget.dart b/mobile/apps/photos/lib/ui/components/info_item_widget.dart similarity index 100% rename from mobile/lib/ui/components/info_item_widget.dart rename to mobile/apps/photos/lib/ui/components/info_item_widget.dart diff --git a/mobile/lib/ui/components/keyboard/keyboard_oveylay.dart b/mobile/apps/photos/lib/ui/components/keyboard/keyboard_oveylay.dart similarity index 100% rename from mobile/lib/ui/components/keyboard/keyboard_oveylay.dart rename to mobile/apps/photos/lib/ui/components/keyboard/keyboard_oveylay.dart diff --git a/mobile/lib/ui/components/keyboard/keyboard_top_button.dart b/mobile/apps/photos/lib/ui/components/keyboard/keyboard_top_button.dart similarity index 100% rename from mobile/lib/ui/components/keyboard/keyboard_top_button.dart rename to mobile/apps/photos/lib/ui/components/keyboard/keyboard_top_button.dart diff --git a/mobile/lib/ui/components/menu_item_widget/menu_item_child_widgets.dart b/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_child_widgets.dart similarity index 100% rename from mobile/lib/ui/components/menu_item_widget/menu_item_child_widgets.dart rename to mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_child_widgets.dart diff --git a/mobile/lib/ui/components/menu_item_widget/menu_item_widget.dart b/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget.dart similarity index 100% rename from mobile/lib/ui/components/menu_item_widget/menu_item_widget.dart rename to mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget.dart diff --git a/mobile/lib/ui/components/menu_section_description_widget.dart b/mobile/apps/photos/lib/ui/components/menu_section_description_widget.dart similarity index 100% rename from mobile/lib/ui/components/menu_section_description_widget.dart rename to mobile/apps/photos/lib/ui/components/menu_section_description_widget.dart diff --git a/mobile/lib/ui/components/menu_section_title.dart b/mobile/apps/photos/lib/ui/components/menu_section_title.dart similarity index 100% rename from mobile/lib/ui/components/menu_section_title.dart rename to mobile/apps/photos/lib/ui/components/menu_section_title.dart diff --git a/mobile/lib/ui/components/models/button_type.dart b/mobile/apps/photos/lib/ui/components/models/button_type.dart similarity index 100% rename from mobile/lib/ui/components/models/button_type.dart rename to mobile/apps/photos/lib/ui/components/models/button_type.dart diff --git a/mobile/lib/ui/components/models/custom_button_style.dart b/mobile/apps/photos/lib/ui/components/models/custom_button_style.dart similarity index 100% rename from mobile/lib/ui/components/models/custom_button_style.dart rename to mobile/apps/photos/lib/ui/components/models/custom_button_style.dart diff --git a/mobile/lib/ui/components/notification_widget.dart b/mobile/apps/photos/lib/ui/components/notification_widget.dart similarity index 100% rename from mobile/lib/ui/components/notification_widget.dart rename to mobile/apps/photos/lib/ui/components/notification_widget.dart diff --git a/mobile/lib/ui/components/searchable_appbar.dart b/mobile/apps/photos/lib/ui/components/searchable_appbar.dart similarity index 100% rename from mobile/lib/ui/components/searchable_appbar.dart rename to mobile/apps/photos/lib/ui/components/searchable_appbar.dart diff --git a/mobile/lib/ui/components/text_input_widget.dart b/mobile/apps/photos/lib/ui/components/text_input_widget.dart similarity index 100% rename from mobile/lib/ui/components/text_input_widget.dart rename to mobile/apps/photos/lib/ui/components/text_input_widget.dart diff --git a/mobile/lib/ui/components/title_bar_title_widget.dart b/mobile/apps/photos/lib/ui/components/title_bar_title_widget.dart similarity index 100% rename from mobile/lib/ui/components/title_bar_title_widget.dart rename to mobile/apps/photos/lib/ui/components/title_bar_title_widget.dart diff --git a/mobile/lib/ui/components/title_bar_widget.dart b/mobile/apps/photos/lib/ui/components/title_bar_widget.dart similarity index 100% rename from mobile/lib/ui/components/title_bar_widget.dart rename to mobile/apps/photos/lib/ui/components/title_bar_widget.dart diff --git a/mobile/lib/ui/components/toggle_switch_widget.dart b/mobile/apps/photos/lib/ui/components/toggle_switch_widget.dart similarity index 100% rename from mobile/lib/ui/components/toggle_switch_widget.dart rename to mobile/apps/photos/lib/ui/components/toggle_switch_widget.dart diff --git a/mobile/lib/ui/extents_page_view.dart b/mobile/apps/photos/lib/ui/extents_page_view.dart similarity index 100% rename from mobile/lib/ui/extents_page_view.dart rename to mobile/apps/photos/lib/ui/extents_page_view.dart diff --git a/mobile/lib/ui/growth/apply_code_screen.dart b/mobile/apps/photos/lib/ui/growth/apply_code_screen.dart similarity index 100% rename from mobile/lib/ui/growth/apply_code_screen.dart rename to mobile/apps/photos/lib/ui/growth/apply_code_screen.dart diff --git a/mobile/lib/ui/growth/code_success_screen.dart b/mobile/apps/photos/lib/ui/growth/code_success_screen.dart similarity index 100% rename from mobile/lib/ui/growth/code_success_screen.dart rename to mobile/apps/photos/lib/ui/growth/code_success_screen.dart diff --git a/mobile/lib/ui/growth/referral_code_widget.dart b/mobile/apps/photos/lib/ui/growth/referral_code_widget.dart similarity index 100% rename from mobile/lib/ui/growth/referral_code_widget.dart rename to mobile/apps/photos/lib/ui/growth/referral_code_widget.dart diff --git a/mobile/lib/ui/growth/referral_screen.dart b/mobile/apps/photos/lib/ui/growth/referral_screen.dart similarity index 100% rename from mobile/lib/ui/growth/referral_screen.dart rename to mobile/apps/photos/lib/ui/growth/referral_screen.dart diff --git a/mobile/lib/ui/growth/storage_details_screen.dart b/mobile/apps/photos/lib/ui/growth/storage_details_screen.dart similarity index 100% rename from mobile/lib/ui/growth/storage_details_screen.dart rename to mobile/apps/photos/lib/ui/growth/storage_details_screen.dart diff --git a/mobile/lib/ui/home/grant_permissions_widget.dart b/mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart similarity index 100% rename from mobile/lib/ui/home/grant_permissions_widget.dart rename to mobile/apps/photos/lib/ui/home/grant_permissions_widget.dart diff --git a/mobile/lib/ui/home/header_error_widget.dart b/mobile/apps/photos/lib/ui/home/header_error_widget.dart similarity index 100% rename from mobile/lib/ui/home/header_error_widget.dart rename to mobile/apps/photos/lib/ui/home/header_error_widget.dart diff --git a/mobile/lib/ui/home/header_widget.dart b/mobile/apps/photos/lib/ui/home/header_widget.dart similarity index 100% rename from mobile/lib/ui/home/header_widget.dart rename to mobile/apps/photos/lib/ui/home/header_widget.dart diff --git a/mobile/lib/ui/home/home_bottom_nav_bar.dart b/mobile/apps/photos/lib/ui/home/home_bottom_nav_bar.dart similarity index 100% rename from mobile/lib/ui/home/home_bottom_nav_bar.dart rename to mobile/apps/photos/lib/ui/home/home_bottom_nav_bar.dart diff --git a/mobile/lib/ui/home/home_gallery_widget.dart b/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart similarity index 100% rename from mobile/lib/ui/home/home_gallery_widget.dart rename to mobile/apps/photos/lib/ui/home/home_gallery_widget.dart diff --git a/mobile/lib/ui/home/landing_page_widget.dart b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart similarity index 100% rename from mobile/lib/ui/home/landing_page_widget.dart rename to mobile/apps/photos/lib/ui/home/landing_page_widget.dart diff --git a/mobile/lib/ui/home/loading_photos_widget.dart b/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart similarity index 100% rename from mobile/lib/ui/home/loading_photos_widget.dart rename to mobile/apps/photos/lib/ui/home/loading_photos_widget.dart diff --git a/mobile/lib/ui/home/memories/all_memories_page.dart b/mobile/apps/photos/lib/ui/home/memories/all_memories_page.dart similarity index 100% rename from mobile/lib/ui/home/memories/all_memories_page.dart rename to mobile/apps/photos/lib/ui/home/memories/all_memories_page.dart diff --git a/mobile/lib/ui/home/memories/custom_listener.dart b/mobile/apps/photos/lib/ui/home/memories/custom_listener.dart similarity index 100% rename from mobile/lib/ui/home/memories/custom_listener.dart rename to mobile/apps/photos/lib/ui/home/memories/custom_listener.dart diff --git a/mobile/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart similarity index 100% rename from mobile/lib/ui/home/memories/full_screen_memory.dart rename to mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart diff --git a/mobile/lib/ui/home/memories/memories_widget.dart b/mobile/apps/photos/lib/ui/home/memories/memories_widget.dart similarity index 100% rename from mobile/lib/ui/home/memories/memories_widget.dart rename to mobile/apps/photos/lib/ui/home/memories/memories_widget.dart diff --git a/mobile/lib/ui/home/memories/memory_cover_widget.dart b/mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart similarity index 100% rename from mobile/lib/ui/home/memories/memory_cover_widget.dart rename to mobile/apps/photos/lib/ui/home/memories/memory_cover_widget.dart diff --git a/mobile/lib/ui/home/memories/memory_progress_indicator.dart b/mobile/apps/photos/lib/ui/home/memories/memory_progress_indicator.dart similarity index 100% rename from mobile/lib/ui/home/memories/memory_progress_indicator.dart rename to mobile/apps/photos/lib/ui/home/memories/memory_progress_indicator.dart diff --git a/mobile/lib/ui/home/start_backup_hook_widget.dart b/mobile/apps/photos/lib/ui/home/start_backup_hook_widget.dart similarity index 100% rename from mobile/lib/ui/home/start_backup_hook_widget.dart rename to mobile/apps/photos/lib/ui/home/start_backup_hook_widget.dart diff --git a/mobile/lib/ui/home/status_bar_widget.dart b/mobile/apps/photos/lib/ui/home/status_bar_widget.dart similarity index 100% rename from mobile/lib/ui/home/status_bar_widget.dart rename to mobile/apps/photos/lib/ui/home/status_bar_widget.dart diff --git a/mobile/lib/ui/huge_listview/draggable_scrollbar.dart b/mobile/apps/photos/lib/ui/huge_listview/draggable_scrollbar.dart similarity index 100% rename from mobile/lib/ui/huge_listview/draggable_scrollbar.dart rename to mobile/apps/photos/lib/ui/huge_listview/draggable_scrollbar.dart diff --git a/mobile/lib/ui/huge_listview/huge_listview.dart b/mobile/apps/photos/lib/ui/huge_listview/huge_listview.dart similarity index 100% rename from mobile/lib/ui/huge_listview/huge_listview.dart rename to mobile/apps/photos/lib/ui/huge_listview/huge_listview.dart diff --git a/mobile/lib/ui/huge_listview/scroll_bar_thumb.dart b/mobile/apps/photos/lib/ui/huge_listview/scroll_bar_thumb.dart similarity index 100% rename from mobile/lib/ui/huge_listview/scroll_bar_thumb.dart rename to mobile/apps/photos/lib/ui/huge_listview/scroll_bar_thumb.dart diff --git a/mobile/lib/ui/lifecycle_event_handler.dart b/mobile/apps/photos/lib/ui/lifecycle_event_handler.dart similarity index 100% rename from mobile/lib/ui/lifecycle_event_handler.dart rename to mobile/apps/photos/lib/ui/lifecycle_event_handler.dart diff --git a/mobile/lib/ui/map/enable_map.dart b/mobile/apps/photos/lib/ui/map/enable_map.dart similarity index 100% rename from mobile/lib/ui/map/enable_map.dart rename to mobile/apps/photos/lib/ui/map/enable_map.dart diff --git a/mobile/lib/ui/map/image_marker.dart b/mobile/apps/photos/lib/ui/map/image_marker.dart similarity index 100% rename from mobile/lib/ui/map/image_marker.dart rename to mobile/apps/photos/lib/ui/map/image_marker.dart diff --git a/mobile/lib/ui/map/map_button.dart b/mobile/apps/photos/lib/ui/map/map_button.dart similarity index 100% rename from mobile/lib/ui/map/map_button.dart rename to mobile/apps/photos/lib/ui/map/map_button.dart diff --git a/mobile/lib/ui/map/map_gallery_tile.dart b/mobile/apps/photos/lib/ui/map/map_gallery_tile.dart similarity index 100% rename from mobile/lib/ui/map/map_gallery_tile.dart rename to mobile/apps/photos/lib/ui/map/map_gallery_tile.dart diff --git a/mobile/lib/ui/map/map_gallery_tile_badge.dart b/mobile/apps/photos/lib/ui/map/map_gallery_tile_badge.dart similarity index 100% rename from mobile/lib/ui/map/map_gallery_tile_badge.dart rename to mobile/apps/photos/lib/ui/map/map_gallery_tile_badge.dart diff --git a/mobile/lib/ui/map/map_isolate.dart b/mobile/apps/photos/lib/ui/map/map_isolate.dart similarity index 100% rename from mobile/lib/ui/map/map_isolate.dart rename to mobile/apps/photos/lib/ui/map/map_isolate.dart diff --git a/mobile/lib/ui/map/map_marker.dart b/mobile/apps/photos/lib/ui/map/map_marker.dart similarity index 100% rename from mobile/lib/ui/map/map_marker.dart rename to mobile/apps/photos/lib/ui/map/map_marker.dart diff --git a/mobile/lib/ui/map/map_pull_up_gallery.dart b/mobile/apps/photos/lib/ui/map/map_pull_up_gallery.dart similarity index 100% rename from mobile/lib/ui/map/map_pull_up_gallery.dart rename to mobile/apps/photos/lib/ui/map/map_pull_up_gallery.dart diff --git a/mobile/lib/ui/map/map_screen.dart b/mobile/apps/photos/lib/ui/map/map_screen.dart similarity index 100% rename from mobile/lib/ui/map/map_screen.dart rename to mobile/apps/photos/lib/ui/map/map_screen.dart diff --git a/mobile/lib/ui/map/map_view.dart b/mobile/apps/photos/lib/ui/map/map_view.dart similarity index 100% rename from mobile/lib/ui/map/map_view.dart rename to mobile/apps/photos/lib/ui/map/map_view.dart diff --git a/mobile/lib/ui/map/marker_image.dart b/mobile/apps/photos/lib/ui/map/marker_image.dart similarity index 100% rename from mobile/lib/ui/map/marker_image.dart rename to mobile/apps/photos/lib/ui/map/marker_image.dart diff --git a/mobile/lib/ui/map/tile/attribution/map_attribution.dart b/mobile/apps/photos/lib/ui/map/tile/attribution/map_attribution.dart similarity index 100% rename from mobile/lib/ui/map/tile/attribution/map_attribution.dart rename to mobile/apps/photos/lib/ui/map/tile/attribution/map_attribution.dart diff --git a/mobile/lib/ui/map/tile/cache.dart b/mobile/apps/photos/lib/ui/map/tile/cache.dart similarity index 100% rename from mobile/lib/ui/map/tile/cache.dart rename to mobile/apps/photos/lib/ui/map/tile/cache.dart diff --git a/mobile/lib/ui/map/tile/layers.dart b/mobile/apps/photos/lib/ui/map/tile/layers.dart similarity index 100% rename from mobile/lib/ui/map/tile/layers.dart rename to mobile/apps/photos/lib/ui/map/tile/layers.dart diff --git a/mobile/lib/ui/notification/toast.dart b/mobile/apps/photos/lib/ui/notification/toast.dart similarity index 100% rename from mobile/lib/ui/notification/toast.dart rename to mobile/apps/photos/lib/ui/notification/toast.dart diff --git a/mobile/lib/ui/notification/update/change_log_entry.dart b/mobile/apps/photos/lib/ui/notification/update/change_log_entry.dart similarity index 100% rename from mobile/lib/ui/notification/update/change_log_entry.dart rename to mobile/apps/photos/lib/ui/notification/update/change_log_entry.dart diff --git a/mobile/lib/ui/notification/update/change_log_page.dart b/mobile/apps/photos/lib/ui/notification/update/change_log_page.dart similarity index 100% rename from mobile/lib/ui/notification/update/change_log_page.dart rename to mobile/apps/photos/lib/ui/notification/update/change_log_page.dart diff --git a/mobile/lib/ui/payment/add_on_page.dart b/mobile/apps/photos/lib/ui/payment/add_on_page.dart similarity index 100% rename from mobile/lib/ui/payment/add_on_page.dart rename to mobile/apps/photos/lib/ui/payment/add_on_page.dart diff --git a/mobile/lib/ui/payment/billing_questions_widget.dart b/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart similarity index 100% rename from mobile/lib/ui/payment/billing_questions_widget.dart rename to mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart diff --git a/mobile/lib/ui/payment/child_subscription_widget.dart b/mobile/apps/photos/lib/ui/payment/child_subscription_widget.dart similarity index 100% rename from mobile/lib/ui/payment/child_subscription_widget.dart rename to mobile/apps/photos/lib/ui/payment/child_subscription_widget.dart diff --git a/mobile/lib/ui/payment/payment_web_page.dart b/mobile/apps/photos/lib/ui/payment/payment_web_page.dart similarity index 100% rename from mobile/lib/ui/payment/payment_web_page.dart rename to mobile/apps/photos/lib/ui/payment/payment_web_page.dart diff --git a/mobile/lib/ui/payment/store_subscription_page.dart b/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart similarity index 100% rename from mobile/lib/ui/payment/store_subscription_page.dart rename to mobile/apps/photos/lib/ui/payment/store_subscription_page.dart diff --git a/mobile/lib/ui/payment/stripe_subscription_page.dart b/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart similarity index 100% rename from mobile/lib/ui/payment/stripe_subscription_page.dart rename to mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart diff --git a/mobile/lib/ui/payment/subscription.dart b/mobile/apps/photos/lib/ui/payment/subscription.dart similarity index 100% rename from mobile/lib/ui/payment/subscription.dart rename to mobile/apps/photos/lib/ui/payment/subscription.dart diff --git a/mobile/lib/ui/payment/subscription_common_widgets.dart b/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart similarity index 100% rename from mobile/lib/ui/payment/subscription_common_widgets.dart rename to mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart diff --git a/mobile/lib/ui/payment/subscription_plan_widget.dart b/mobile/apps/photos/lib/ui/payment/subscription_plan_widget.dart similarity index 100% rename from mobile/lib/ui/payment/subscription_plan_widget.dart rename to mobile/apps/photos/lib/ui/payment/subscription_plan_widget.dart diff --git a/mobile/lib/ui/payment/view_add_on_widget.dart b/mobile/apps/photos/lib/ui/payment/view_add_on_widget.dart similarity index 100% rename from mobile/lib/ui/payment/view_add_on_widget.dart rename to mobile/apps/photos/lib/ui/payment/view_add_on_widget.dart diff --git a/mobile/lib/ui/settings/about_section_widget.dart b/mobile/apps/photos/lib/ui/settings/about_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/about_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/about_section_widget.dart diff --git a/mobile/lib/ui/settings/account_section_widget.dart b/mobile/apps/photos/lib/ui/settings/account_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/account_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/account_section_widget.dart diff --git a/mobile/lib/ui/settings/advanced_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/advanced_settings_screen.dart similarity index 100% rename from mobile/lib/ui/settings/advanced_settings_screen.dart rename to mobile/apps/photos/lib/ui/settings/advanced_settings_screen.dart diff --git a/mobile/lib/ui/settings/app_icon_selection_screen.dart b/mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart similarity index 100% rename from mobile/lib/ui/settings/app_icon_selection_screen.dart rename to mobile/apps/photos/lib/ui/settings/app_icon_selection_screen.dart diff --git a/mobile/lib/ui/settings/app_update_dialog.dart b/mobile/apps/photos/lib/ui/settings/app_update_dialog.dart similarity index 100% rename from mobile/lib/ui/settings/app_update_dialog.dart rename to mobile/apps/photos/lib/ui/settings/app_update_dialog.dart diff --git a/mobile/lib/ui/settings/app_version_widget.dart b/mobile/apps/photos/lib/ui/settings/app_version_widget.dart similarity index 100% rename from mobile/lib/ui/settings/app_version_widget.dart rename to mobile/apps/photos/lib/ui/settings/app_version_widget.dart diff --git a/mobile/lib/ui/settings/backup/backup_folder_selection_page.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_folder_selection_page.dart similarity index 100% rename from mobile/lib/ui/settings/backup/backup_folder_selection_page.dart rename to mobile/apps/photos/lib/ui/settings/backup/backup_folder_selection_page.dart diff --git a/mobile/lib/ui/settings/backup/backup_item_card.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_item_card.dart similarity index 100% rename from mobile/lib/ui/settings/backup/backup_item_card.dart rename to mobile/apps/photos/lib/ui/settings/backup/backup_item_card.dart diff --git a/mobile/lib/ui/settings/backup/backup_section_widget.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/backup/backup_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/backup/backup_section_widget.dart diff --git a/mobile/lib/ui/settings/backup/backup_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart similarity index 100% rename from mobile/lib/ui/settings/backup/backup_settings_screen.dart rename to mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart diff --git a/mobile/lib/ui/settings/backup/backup_status_screen.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_status_screen.dart similarity index 100% rename from mobile/lib/ui/settings/backup/backup_status_screen.dart rename to mobile/apps/photos/lib/ui/settings/backup/backup_status_screen.dart diff --git a/mobile/lib/ui/settings/backup/free_space_options.dart b/mobile/apps/photos/lib/ui/settings/backup/free_space_options.dart similarity index 100% rename from mobile/lib/ui/settings/backup/free_space_options.dart rename to mobile/apps/photos/lib/ui/settings/backup/free_space_options.dart diff --git a/mobile/lib/ui/settings/common_settings.dart b/mobile/apps/photos/lib/ui/settings/common_settings.dart similarity index 100% rename from mobile/lib/ui/settings/common_settings.dart rename to mobile/apps/photos/lib/ui/settings/common_settings.dart diff --git a/mobile/lib/ui/settings/debug/debug_section_widget.dart b/mobile/apps/photos/lib/ui/settings/debug/debug_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/debug/debug_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/debug/debug_section_widget.dart diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/apps/photos/lib/ui/settings/debug/ml_debug_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/debug/ml_debug_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/debug/ml_debug_section_widget.dart diff --git a/mobile/lib/ui/settings/developer_settings_page.dart b/mobile/apps/photos/lib/ui/settings/developer_settings_page.dart similarity index 100% rename from mobile/lib/ui/settings/developer_settings_page.dart rename to mobile/apps/photos/lib/ui/settings/developer_settings_page.dart diff --git a/mobile/lib/ui/settings/developer_settings_widget.dart b/mobile/apps/photos/lib/ui/settings/developer_settings_widget.dart similarity index 100% rename from mobile/lib/ui/settings/developer_settings_widget.dart rename to mobile/apps/photos/lib/ui/settings/developer_settings_widget.dart diff --git a/mobile/lib/ui/settings/gallery_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart similarity index 100% rename from mobile/lib/ui/settings/gallery_settings_screen.dart rename to mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart diff --git a/mobile/lib/ui/settings/general_section_widget.dart b/mobile/apps/photos/lib/ui/settings/general_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/general_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/general_section_widget.dart diff --git a/mobile/lib/ui/settings/inherited_settings_state.dart b/mobile/apps/photos/lib/ui/settings/inherited_settings_state.dart similarity index 100% rename from mobile/lib/ui/settings/inherited_settings_state.dart rename to mobile/apps/photos/lib/ui/settings/inherited_settings_state.dart diff --git a/mobile/lib/ui/settings/language_picker.dart b/mobile/apps/photos/lib/ui/settings/language_picker.dart similarity index 100% rename from mobile/lib/ui/settings/language_picker.dart rename to mobile/apps/photos/lib/ui/settings/language_picker.dart diff --git a/mobile/lib/ui/settings/lock_screen/custom_pin_keypad.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/custom_pin_keypad.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/custom_pin_keypad.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/custom_pin_keypad.dart diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_auto_lock.dart diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/lock_screen_options.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_password.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_password.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/lock_screen_password.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_password.dart diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_pin.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_pin.dart similarity index 100% rename from mobile/lib/ui/settings/lock_screen/lock_screen_pin.dart rename to mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_pin.dart diff --git a/mobile/lib/ui/settings/ml/enable_ml_consent.dart b/mobile/apps/photos/lib/ui/settings/ml/enable_ml_consent.dart similarity index 100% rename from mobile/lib/ui/settings/ml/enable_ml_consent.dart rename to mobile/apps/photos/lib/ui/settings/ml/enable_ml_consent.dart diff --git a/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart b/mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dart similarity index 99% rename from mobile/lib/ui/settings/ml/machine_learning_settings_page.dart rename to mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dart index 82c81e3967..1d64b186fd 100644 --- a/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart +++ b/mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dart @@ -472,7 +472,7 @@ class MLStatusWidgetState extends State { if (!_isDeviceHealthy && pendingFiles > 0) { return MenuSectionDescriptionWidget( - content: S.of(context).indexingIsPaused, + content: S.of(context).indexingPausedStatusDescription, ); } diff --git a/mobile/lib/ui/settings/ml/ml_user_dev_screen.dart b/mobile/apps/photos/lib/ui/settings/ml/ml_user_dev_screen.dart similarity index 100% rename from mobile/lib/ui/settings/ml/ml_user_dev_screen.dart rename to mobile/apps/photos/lib/ui/settings/ml/ml_user_dev_screen.dart diff --git a/mobile/lib/ui/settings/notification_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/notification_settings_screen.dart similarity index 100% rename from mobile/lib/ui/settings/notification_settings_screen.dart rename to mobile/apps/photos/lib/ui/settings/notification_settings_screen.dart diff --git a/mobile/lib/ui/settings/pending_sync/path_info_storage_viewer.dart b/mobile/apps/photos/lib/ui/settings/pending_sync/path_info_storage_viewer.dart similarity index 100% rename from mobile/lib/ui/settings/pending_sync/path_info_storage_viewer.dart rename to mobile/apps/photos/lib/ui/settings/pending_sync/path_info_storage_viewer.dart diff --git a/mobile/lib/ui/settings/pending_sync/pending_sync_info_screen.dart b/mobile/apps/photos/lib/ui/settings/pending_sync/pending_sync_info_screen.dart similarity index 100% rename from mobile/lib/ui/settings/pending_sync/pending_sync_info_screen.dart rename to mobile/apps/photos/lib/ui/settings/pending_sync/pending_sync_info_screen.dart diff --git a/mobile/lib/ui/settings/security_section_widget.dart b/mobile/apps/photos/lib/ui/settings/security_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/security_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/security_section_widget.dart diff --git a/mobile/lib/ui/settings/settings_title_bar_widget.dart b/mobile/apps/photos/lib/ui/settings/settings_title_bar_widget.dart similarity index 100% rename from mobile/lib/ui/settings/settings_title_bar_widget.dart rename to mobile/apps/photos/lib/ui/settings/settings_title_bar_widget.dart diff --git a/mobile/lib/ui/settings/social_section_widget.dart b/mobile/apps/photos/lib/ui/settings/social_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/social_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/social_section_widget.dart diff --git a/mobile/lib/ui/settings/storage_card_widget.dart b/mobile/apps/photos/lib/ui/settings/storage_card_widget.dart similarity index 100% rename from mobile/lib/ui/settings/storage_card_widget.dart rename to mobile/apps/photos/lib/ui/settings/storage_card_widget.dart diff --git a/mobile/lib/ui/settings/storage_progress_widget.dart b/mobile/apps/photos/lib/ui/settings/storage_progress_widget.dart similarity index 100% rename from mobile/lib/ui/settings/storage_progress_widget.dart rename to mobile/apps/photos/lib/ui/settings/storage_progress_widget.dart diff --git a/mobile/lib/ui/settings/support_section_widget.dart b/mobile/apps/photos/lib/ui/settings/support_section_widget.dart similarity index 100% rename from mobile/lib/ui/settings/support_section_widget.dart rename to mobile/apps/photos/lib/ui/settings/support_section_widget.dart diff --git a/mobile/lib/ui/settings/theme_switch_widget.dart b/mobile/apps/photos/lib/ui/settings/theme_switch_widget.dart similarity index 100% rename from mobile/lib/ui/settings/theme_switch_widget.dart rename to mobile/apps/photos/lib/ui/settings/theme_switch_widget.dart diff --git a/mobile/lib/ui/settings/widget_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/widget_settings_screen.dart similarity index 100% rename from mobile/lib/ui/settings/widget_settings_screen.dart rename to mobile/apps/photos/lib/ui/settings/widget_settings_screen.dart diff --git a/mobile/lib/ui/settings/widgets/albums_widget_settings.dart b/mobile/apps/photos/lib/ui/settings/widgets/albums_widget_settings.dart similarity index 100% rename from mobile/lib/ui/settings/widgets/albums_widget_settings.dart rename to mobile/apps/photos/lib/ui/settings/widgets/albums_widget_settings.dart diff --git a/mobile/lib/ui/settings/widgets/memories_widget_settings.dart b/mobile/apps/photos/lib/ui/settings/widgets/memories_widget_settings.dart similarity index 100% rename from mobile/lib/ui/settings/widgets/memories_widget_settings.dart rename to mobile/apps/photos/lib/ui/settings/widgets/memories_widget_settings.dart diff --git a/mobile/lib/ui/settings/widgets/people_widget_settings.dart b/mobile/apps/photos/lib/ui/settings/widgets/people_widget_settings.dart similarity index 100% rename from mobile/lib/ui/settings/widgets/people_widget_settings.dart rename to mobile/apps/photos/lib/ui/settings/widgets/people_widget_settings.dart diff --git a/mobile/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dart similarity index 100% rename from mobile/lib/ui/settings_page.dart rename to mobile/apps/photos/lib/ui/settings_page.dart diff --git a/mobile/lib/ui/sharing/add_participant_page.dart b/mobile/apps/photos/lib/ui/sharing/add_participant_page.dart similarity index 100% rename from mobile/lib/ui/sharing/add_participant_page.dart rename to mobile/apps/photos/lib/ui/sharing/add_participant_page.dart diff --git a/mobile/lib/ui/sharing/album_participants_page.dart b/mobile/apps/photos/lib/ui/sharing/album_participants_page.dart similarity index 100% rename from mobile/lib/ui/sharing/album_participants_page.dart rename to mobile/apps/photos/lib/ui/sharing/album_participants_page.dart diff --git a/mobile/lib/ui/sharing/album_share_info_widget.dart b/mobile/apps/photos/lib/ui/sharing/album_share_info_widget.dart similarity index 100% rename from mobile/lib/ui/sharing/album_share_info_widget.dart rename to mobile/apps/photos/lib/ui/sharing/album_share_info_widget.dart diff --git a/mobile/lib/ui/sharing/manage_album_participant.dart b/mobile/apps/photos/lib/ui/sharing/manage_album_participant.dart similarity index 100% rename from mobile/lib/ui/sharing/manage_album_participant.dart rename to mobile/apps/photos/lib/ui/sharing/manage_album_participant.dart diff --git a/mobile/lib/ui/sharing/manage_links_widget.dart b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart similarity index 100% rename from mobile/lib/ui/sharing/manage_links_widget.dart rename to mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart diff --git a/mobile/lib/ui/sharing/more_count_badge.dart b/mobile/apps/photos/lib/ui/sharing/more_count_badge.dart similarity index 100% rename from mobile/lib/ui/sharing/more_count_badge.dart rename to mobile/apps/photos/lib/ui/sharing/more_count_badge.dart diff --git a/mobile/lib/ui/sharing/pickers/device_limit_picker_page.dart b/mobile/apps/photos/lib/ui/sharing/pickers/device_limit_picker_page.dart similarity index 100% rename from mobile/lib/ui/sharing/pickers/device_limit_picker_page.dart rename to mobile/apps/photos/lib/ui/sharing/pickers/device_limit_picker_page.dart diff --git a/mobile/lib/ui/sharing/pickers/link_expiry_picker_page.dart b/mobile/apps/photos/lib/ui/sharing/pickers/link_expiry_picker_page.dart similarity index 100% rename from mobile/lib/ui/sharing/pickers/link_expiry_picker_page.dart rename to mobile/apps/photos/lib/ui/sharing/pickers/link_expiry_picker_page.dart diff --git a/mobile/lib/ui/sharing/share_collection_page.dart b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart similarity index 100% rename from mobile/lib/ui/sharing/share_collection_page.dart rename to mobile/apps/photos/lib/ui/sharing/share_collection_page.dart diff --git a/mobile/lib/ui/sharing/show_images_prevew.dart b/mobile/apps/photos/lib/ui/sharing/show_images_prevew.dart similarity index 100% rename from mobile/lib/ui/sharing/show_images_prevew.dart rename to mobile/apps/photos/lib/ui/sharing/show_images_prevew.dart diff --git a/mobile/lib/ui/sharing/user_avator_widget.dart b/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart similarity index 100% rename from mobile/lib/ui/sharing/user_avator_widget.dart rename to mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart diff --git a/mobile/lib/ui/sharing/verify_identity_dialog.dart b/mobile/apps/photos/lib/ui/sharing/verify_identity_dialog.dart similarity index 100% rename from mobile/lib/ui/sharing/verify_identity_dialog.dart rename to mobile/apps/photos/lib/ui/sharing/verify_identity_dialog.dart diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/apps/photos/lib/ui/tabs/home_widget.dart similarity index 100% rename from mobile/lib/ui/tabs/home_widget.dart rename to mobile/apps/photos/lib/ui/tabs/home_widget.dart diff --git a/mobile/lib/ui/tabs/nav_bar.dart b/mobile/apps/photos/lib/ui/tabs/nav_bar.dart similarity index 100% rename from mobile/lib/ui/tabs/nav_bar.dart rename to mobile/apps/photos/lib/ui/tabs/nav_bar.dart diff --git a/mobile/lib/ui/tabs/section_title.dart b/mobile/apps/photos/lib/ui/tabs/section_title.dart similarity index 100% rename from mobile/lib/ui/tabs/section_title.dart rename to mobile/apps/photos/lib/ui/tabs/section_title.dart diff --git a/mobile/lib/ui/tabs/shared/all_quick_links_page.dart b/mobile/apps/photos/lib/ui/tabs/shared/all_quick_links_page.dart similarity index 100% rename from mobile/lib/ui/tabs/shared/all_quick_links_page.dart rename to mobile/apps/photos/lib/ui/tabs/shared/all_quick_links_page.dart diff --git a/mobile/lib/ui/tabs/shared/empty_state.dart b/mobile/apps/photos/lib/ui/tabs/shared/empty_state.dart similarity index 100% rename from mobile/lib/ui/tabs/shared/empty_state.dart rename to mobile/apps/photos/lib/ui/tabs/shared/empty_state.dart diff --git a/mobile/lib/ui/tabs/shared/quick_link_album_item.dart b/mobile/apps/photos/lib/ui/tabs/shared/quick_link_album_item.dart similarity index 100% rename from mobile/lib/ui/tabs/shared/quick_link_album_item.dart rename to mobile/apps/photos/lib/ui/tabs/shared/quick_link_album_item.dart diff --git a/mobile/lib/ui/tabs/shared_collections_tab.dart b/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart similarity index 100% rename from mobile/lib/ui/tabs/shared_collections_tab.dart rename to mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart diff --git a/mobile/lib/ui/tabs/user_collections_tab.dart b/mobile/apps/photos/lib/ui/tabs/user_collections_tab.dart similarity index 100% rename from mobile/lib/ui/tabs/user_collections_tab.dart rename to mobile/apps/photos/lib/ui/tabs/user_collections_tab.dart diff --git a/mobile/lib/ui/tools/app_lock.dart b/mobile/apps/photos/lib/ui/tools/app_lock.dart similarity index 100% rename from mobile/lib/ui/tools/app_lock.dart rename to mobile/apps/photos/lib/ui/tools/app_lock.dart diff --git a/mobile/lib/ui/tools/collage/collage_common_widgets.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_common_widgets.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_common_widgets.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_common_widgets.dart diff --git a/mobile/lib/ui/tools/collage/collage_creator_page.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_creator_page.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_creator_page.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_creator_page.dart diff --git a/mobile/lib/ui/tools/collage/collage_item_icon.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_item_icon.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_item_icon.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_item_icon.dart diff --git a/mobile/lib/ui/tools/collage/collage_item_widget.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_item_widget.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_item_widget.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_item_widget.dart diff --git a/mobile/lib/ui/tools/collage/collage_save_button.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_save_button.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_save_button.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_save_button.dart diff --git a/mobile/lib/ui/tools/collage/collage_test_grid.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_test_grid.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_test_grid.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_test_grid.dart diff --git a/mobile/lib/ui/tools/collage/collage_with_five_items.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_with_five_items.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_with_five_items.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_with_five_items.dart diff --git a/mobile/lib/ui/tools/collage/collage_with_four_items.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_with_four_items.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_with_four_items.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_with_four_items.dart diff --git a/mobile/lib/ui/tools/collage/collage_with_six_items.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_with_six_items.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_with_six_items.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_with_six_items.dart diff --git a/mobile/lib/ui/tools/collage/collage_with_three_items.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_with_three_items.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_with_three_items.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_with_three_items.dart diff --git a/mobile/lib/ui/tools/collage/collage_with_two_items.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_with_two_items.dart similarity index 100% rename from mobile/lib/ui/tools/collage/collage_with_two_items.dart rename to mobile/apps/photos/lib/ui/tools/collage/collage_with_two_items.dart diff --git a/mobile/lib/ui/tools/debug/app_storage_viewer.dart b/mobile/apps/photos/lib/ui/tools/debug/app_storage_viewer.dart similarity index 98% rename from mobile/lib/ui/tools/debug/app_storage_viewer.dart rename to mobile/apps/photos/lib/ui/tools/debug/app_storage_viewer.dart index 87ba10f1b0..9343f36a3a 100644 --- a/mobile/lib/ui/tools/debug/app_storage_viewer.dart +++ b/mobile/apps/photos/lib/ui/tools/debug/app_storage_viewer.dart @@ -95,10 +95,10 @@ class _AppStorageViewerState extends State { paths.addAll([ PathStorageItem.name(appDocumentsDirectory.path, "Documents"), PathStorageItem.name(appSupportDirectory.path, "Support"), - PathStorageItem.name(appTemporaryDirectory.path, "App Temp"), + PathStorageItem.name(appTemporaryDirectory.path, "Temp"), PathStorageItem.name( personFaceThumbnails, - "Person Face Thumbnails", + "Face thumbnails", allowCacheClear: true, ), ]); diff --git a/mobile/lib/ui/tools/debug/log_file_viewer.dart b/mobile/apps/photos/lib/ui/tools/debug/log_file_viewer.dart similarity index 100% rename from mobile/lib/ui/tools/debug/log_file_viewer.dart rename to mobile/apps/photos/lib/ui/tools/debug/log_file_viewer.dart diff --git a/mobile/lib/ui/tools/debug/path_storage_viewer.dart b/mobile/apps/photos/lib/ui/tools/debug/path_storage_viewer.dart similarity index 100% rename from mobile/lib/ui/tools/debug/path_storage_viewer.dart rename to mobile/apps/photos/lib/ui/tools/debug/path_storage_viewer.dart diff --git a/mobile/lib/ui/tools/deduplicate_page.dart b/mobile/apps/photos/lib/ui/tools/deduplicate_page.dart similarity index 100% rename from mobile/lib/ui/tools/deduplicate_page.dart rename to mobile/apps/photos/lib/ui/tools/deduplicate_page.dart diff --git a/mobile/lib/ui/tools/editor/export_video_result.dart b/mobile/apps/photos/lib/ui/tools/editor/export_video_result.dart similarity index 100% rename from mobile/lib/ui/tools/editor/export_video_result.dart rename to mobile/apps/photos/lib/ui/tools/editor/export_video_result.dart diff --git a/mobile/lib/ui/tools/editor/export_video_service.dart b/mobile/apps/photos/lib/ui/tools/editor/export_video_service.dart similarity index 100% rename from mobile/lib/ui/tools/editor/export_video_service.dart rename to mobile/apps/photos/lib/ui/tools/editor/export_video_service.dart diff --git a/mobile/lib/ui/tools/editor/filtered_image.dart b/mobile/apps/photos/lib/ui/tools/editor/filtered_image.dart similarity index 100% rename from mobile/lib/ui/tools/editor/filtered_image.dart rename to mobile/apps/photos/lib/ui/tools/editor/filtered_image.dart diff --git a/mobile/lib/ui/tools/editor/image_editor_page.dart b/mobile/apps/photos/lib/ui/tools/editor/image_editor_page.dart similarity index 100% rename from mobile/lib/ui/tools/editor/image_editor_page.dart rename to mobile/apps/photos/lib/ui/tools/editor/image_editor_page.dart diff --git a/mobile/lib/ui/tools/editor/video_crop_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_crop_page.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_crop_page.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_crop_page.dart diff --git a/mobile/lib/ui/tools/editor/video_editor/crop_value.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor/crop_value.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_editor/crop_value.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_editor/crop_value.dart diff --git a/mobile/lib/ui/tools/editor/video_editor/video_editor_bottom_action.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_bottom_action.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_editor/video_editor_bottom_action.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_bottom_action.dart diff --git a/mobile/lib/ui/tools/editor/video_editor/video_editor_main_actions.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_main_actions.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_editor/video_editor_main_actions.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_main_actions.dart diff --git a/mobile/lib/ui/tools/editor/video_editor/video_editor_navigation_options.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_navigation_options.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_editor/video_editor_navigation_options.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_navigation_options.dart diff --git a/mobile/lib/ui/tools/editor/video_editor/video_editor_player_control.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_player_control.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_editor/video_editor_player_control.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_editor/video_editor_player_control.dart diff --git a/mobile/lib/ui/tools/editor/video_editor_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_editor_page.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_editor_page.dart diff --git a/mobile/lib/ui/tools/editor/video_rotate_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_rotate_page.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_rotate_page.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_rotate_page.dart diff --git a/mobile/lib/ui/tools/editor/video_trim_page.dart b/mobile/apps/photos/lib/ui/tools/editor/video_trim_page.dart similarity index 100% rename from mobile/lib/ui/tools/editor/video_trim_page.dart rename to mobile/apps/photos/lib/ui/tools/editor/video_trim_page.dart diff --git a/mobile/lib/ui/tools/free_space_page.dart b/mobile/apps/photos/lib/ui/tools/free_space_page.dart similarity index 100% rename from mobile/lib/ui/tools/free_space_page.dart rename to mobile/apps/photos/lib/ui/tools/free_space_page.dart diff --git a/mobile/lib/ui/tools/lock_screen.dart b/mobile/apps/photos/lib/ui/tools/lock_screen.dart similarity index 100% rename from mobile/lib/ui/tools/lock_screen.dart rename to mobile/apps/photos/lib/ui/tools/lock_screen.dart diff --git a/mobile/lib/ui/viewer/actions/album_selection_action_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/actions/album_selection_action_widget.dart rename to mobile/apps/photos/lib/ui/viewer/actions/album_selection_action_widget.dart diff --git a/mobile/lib/ui/viewer/actions/album_selection_overlay_bar.dart b/mobile/apps/photos/lib/ui/viewer/actions/album_selection_overlay_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/actions/album_selection_overlay_bar.dart rename to mobile/apps/photos/lib/ui/viewer/actions/album_selection_overlay_bar.dart diff --git a/mobile/lib/ui/viewer/actions/delete_empty_albums.dart b/mobile/apps/photos/lib/ui/viewer/actions/delete_empty_albums.dart similarity index 100% rename from mobile/lib/ui/viewer/actions/delete_empty_albums.dart rename to mobile/apps/photos/lib/ui/viewer/actions/delete_empty_albums.dart diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart similarity index 94% rename from mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart rename to mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart index 548395a9c4..8afde97947 100644 --- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart +++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart @@ -423,44 +423,7 @@ class _FileSelectionActionsWidgetState ), labelText: S.of(context).editLocation, icon: Icons.edit_location_alt_outlined, - onTap: () async { - await showBarModalBottomSheet( - shape: const RoundedRectangleBorder( - borderRadius: BorderRadius.vertical( - top: Radius.circular(5), - ), - ), - backgroundColor: getEnteColorScheme(context).backgroundElevated, - barrierColor: backdropFaintDark, - topControl: Stack( - alignment: Alignment.bottomCenter, - children: [ - // This container is for increasing the tap area - Container( - width: double.infinity, - height: 36, - color: Colors.transparent, - ), - Container( - height: 5, - width: 40, - decoration: const BoxDecoration( - color: backgroundElevated2Light, - borderRadius: BorderRadius.all( - Radius.circular(5), - ), - ), - ), - ], - ), - context: context, - builder: (context) { - return UpdateLocationDataWidget( - widget.selectedFiles.files.toList(), - ); - }, - ); - }, + onTap: _editLocation, ), ); } @@ -480,11 +443,7 @@ class _FileSelectionActionsWidgetState labelText: S.of(context).share, icon: Icons.adaptive.share_outlined, key: shareButtonKey, - onTap: () => shareSelected( - context, - shareButtonKey, - widget.selectedFiles.files.toList(), - ), + onTap: _shareSelectedFiles, ), ); } @@ -524,6 +483,54 @@ class _FileSelectionActionsWidgetState return const SizedBox(); } + Future _editLocation() async { + await showBarModalBottomSheet( + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.vertical( + top: Radius.circular(5), + ), + ), + backgroundColor: getEnteColorScheme(context).backgroundElevated, + barrierColor: backdropFaintDark, + topControl: Stack( + alignment: Alignment.bottomCenter, + children: [ + // This container is for increasing the tap area + Container( + width: double.infinity, + height: 36, + color: Colors.transparent, + ), + Container( + height: 5, + width: 40, + decoration: const BoxDecoration( + color: backgroundElevated2Light, + borderRadius: BorderRadius.all( + Radius.circular(5), + ), + ), + ), + ], + ), + context: context, + builder: (context) { + return UpdateLocationDataWidget( + widget.selectedFiles.files.toList(), + ); + }, + ); + } + + Future _shareSelectedFiles() async { + shareSelected( + context, + shareButtonKey, + widget.selectedFiles.files.toList(), + ); + widget.selectedFiles.clearAll(); + } + Future _moveFiles() async { if (split.pendingUploads.isNotEmpty || split.ownedByOtherUsers.isNotEmpty) { widget.selectedFiles diff --git a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart rename to mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart diff --git a/mobile/lib/ui/viewer/actions/file_viewer.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_viewer.dart similarity index 100% rename from mobile/lib/ui/viewer/actions/file_viewer.dart rename to mobile/apps/photos/lib/ui/viewer/actions/file_viewer.dart diff --git a/mobile/lib/ui/viewer/actions/people_selection_action_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/people_selection_action_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/actions/people_selection_action_widget.dart rename to mobile/apps/photos/lib/ui/viewer/actions/people_selection_action_widget.dart diff --git a/mobile/lib/ui/viewer/date/date_time_picker.dart b/mobile/apps/photos/lib/ui/viewer/date/date_time_picker.dart similarity index 100% rename from mobile/lib/ui/viewer/date/date_time_picker.dart rename to mobile/apps/photos/lib/ui/viewer/date/date_time_picker.dart diff --git a/mobile/lib/ui/viewer/date/edit_date_sheet.dart b/mobile/apps/photos/lib/ui/viewer/date/edit_date_sheet.dart similarity index 100% rename from mobile/lib/ui/viewer/date/edit_date_sheet.dart rename to mobile/apps/photos/lib/ui/viewer/date/edit_date_sheet.dart diff --git a/mobile/lib/ui/viewer/file/detail_page.dart b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart similarity index 100% rename from mobile/lib/ui/viewer/file/detail_page.dart rename to mobile/apps/photos/lib/ui/viewer/file/detail_page.dart diff --git a/mobile/lib/ui/viewer/file/exif_info_dialog.dart b/mobile/apps/photos/lib/ui/viewer/file/exif_info_dialog.dart similarity index 100% rename from mobile/lib/ui/viewer/file/exif_info_dialog.dart rename to mobile/apps/photos/lib/ui/viewer/file/exif_info_dialog.dart diff --git a/mobile/lib/ui/viewer/file/file_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/file/file_app_bar.dart rename to mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart diff --git a/mobile/lib/ui/viewer/file/file_bottom_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/file/file_bottom_bar.dart rename to mobile/apps/photos/lib/ui/viewer/file/file_bottom_bar.dart diff --git a/mobile/lib/ui/viewer/file/file_caption_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/file_caption_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/file_caption_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/file_caption_widget.dart diff --git a/mobile/lib/ui/viewer/file/file_details_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/file_details_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/file_details_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/file_details_widget.dart diff --git a/mobile/lib/ui/viewer/file/file_icons_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/file_icons_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/file_icons_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/file_icons_widget.dart diff --git a/mobile/lib/ui/viewer/file/file_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/file_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/file_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/file_widget.dart diff --git a/mobile/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart b/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart similarity index 100% rename from mobile/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart rename to mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/play_pause_button.dart diff --git a/mobile/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart rename to mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart diff --git a/mobile/lib/ui/viewer/file/no_thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/no_thumbnail_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/no_thumbnail_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/no_thumbnail_widget.dart diff --git a/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart b/mobile/apps/photos/lib/ui/viewer/file/panorama_viewer_screen.dart similarity index 100% rename from mobile/lib/ui/viewer/file/panorama_viewer_screen.dart rename to mobile/apps/photos/lib/ui/viewer/file/panorama_viewer_screen.dart diff --git a/mobile/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/thumbnail_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart diff --git a/mobile/lib/ui/viewer/file/video_control/custom_progress_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/video_control/custom_progress_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_control/custom_progress_bar.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_control/custom_progress_bar.dart diff --git a/mobile/lib/ui/viewer/file/video_exif_dialog.dart b/mobile/apps/photos/lib/ui/viewer/file/video_exif_dialog.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_exif_dialog.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_exif_dialog.dart diff --git a/mobile/lib/ui/viewer/file/video_stream_change.dart b/mobile/apps/photos/lib/ui/viewer/file/video_stream_change.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_stream_change.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_stream_change.dart diff --git a/mobile/lib/ui/viewer/file/video_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_widget.dart diff --git a/mobile/lib/ui/viewer/file/video_widget_media_kit.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget_media_kit.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_widget_media_kit.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_widget_media_kit.dart diff --git a/mobile/lib/ui/viewer/file/video_widget_media_kit_common.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget_media_kit_common.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_widget_media_kit_common.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_widget_media_kit_common.dart diff --git a/mobile/lib/ui/viewer/file/video_widget_native.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart similarity index 100% rename from mobile/lib/ui/viewer/file/video_widget_native.dart rename to mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart diff --git a/mobile/lib/ui/viewer/file/zoomable_image.dart b/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart similarity index 100% rename from mobile/lib/ui/viewer/file/zoomable_image.dart rename to mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart diff --git a/mobile/lib/ui/viewer/file/zoomable_live_image_new.dart b/mobile/apps/photos/lib/ui/viewer/file/zoomable_live_image_new.dart similarity index 100% rename from mobile/lib/ui/viewer/file/zoomable_live_image_new.dart rename to mobile/apps/photos/lib/ui/viewer/file/zoomable_live_image_new.dart diff --git a/mobile/lib/ui/viewer/file_details/added_by_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/added_by_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/added_by_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/added_by_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/albums_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/albums_item_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/albums_item_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/albums_item_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/backed_up_time_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/backed_up_time_item_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/backed_up_time_item_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/backed_up_time_item_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/creation_time_item_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/creation_time_item_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/exif_item_widgets.dart b/mobile/apps/photos/lib/ui/viewer/file_details/exif_item_widgets.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/exif_item_widgets.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/exif_item_widgets.dart diff --git a/mobile/lib/ui/viewer/file_details/favorite_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/favorite_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/favorite_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/favorite_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/file_info_face_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_face_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/file_info_face_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/file_info_face_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/file_info_faces_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/file_info_faces_item_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/file_info_faces_item_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/file_properties_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/file_properties_item_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/file_properties_item_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/file_properties_item_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/location_tags_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/location_tags_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/location_tags_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/location_tags_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/preview_properties_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/preview_properties_item_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/preview_properties_item_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/preview_properties_item_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/upload_icon_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/upload_icon_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/upload_icon_widget.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/upload_icon_widget.dart diff --git a/mobile/lib/ui/viewer/file_details/video_exif_item.dart b/mobile/apps/photos/lib/ui/viewer/file_details/video_exif_item.dart similarity index 100% rename from mobile/lib/ui/viewer/file_details/video_exif_item.dart rename to mobile/apps/photos/lib/ui/viewer/file_details/video_exif_item.dart diff --git a/mobile/lib/ui/viewer/gallery/archive_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/archive_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/archive_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/archive_page.dart diff --git a/mobile/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart b/mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart diff --git a/mobile/lib/ui/viewer/gallery/collect_photos_card_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_card_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/collect_photos_card_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_card_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/collection_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/collection_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/collection_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/collection_page.dart diff --git a/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/gallery_file_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/component/grid/gallery_grid_view_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/grid/gallery_grid_view_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/grid/gallery_grid_view_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/grid/gallery_grid_view_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart diff --git a/mobile/lib/ui/viewer/gallery/component/grid/non_recyclable_grid_view_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/grid/non_recyclable_grid_view_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/grid/non_recyclable_grid_view_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/grid/non_recyclable_grid_view_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/component/grid/recyclable_grid_view_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/grid/recyclable_grid_view_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/grid/recyclable_grid_view_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/grid/recyclable_grid_view_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/component/group/group_gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_gallery.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/group/group_gallery.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_gallery.dart diff --git a/mobile/lib/ui/viewer/gallery/component/group/group_header_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_header_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/group/group_header_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_header_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart diff --git a/mobile/lib/ui/viewer/gallery/component/group/type.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/group/type.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/group/type.dart diff --git a/mobile/lib/ui/viewer/gallery/component/multiple_groups_gallery_view.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/multiple_groups_gallery_view.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/multiple_groups_gallery_view.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/multiple_groups_gallery_view.dart diff --git a/mobile/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart diff --git a/mobile/lib/ui/viewer/gallery/custom_scroll_bar.dart b/mobile/apps/photos/lib/ui/viewer/gallery/custom_scroll_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/custom_scroll_bar.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/custom_scroll_bar.dart diff --git a/mobile/lib/ui/viewer/gallery/device_folder_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/device_folder_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/device_folder_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/device_folder_page.dart diff --git a/mobile/lib/ui/viewer/gallery/empty_album_state.dart b/mobile/apps/photos/lib/ui/viewer/gallery/empty_album_state.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/empty_album_state.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/empty_album_state.dart diff --git a/mobile/lib/ui/viewer/gallery/empty_hidden_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/empty_hidden_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/empty_hidden_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/empty_hidden_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/empty_state.dart b/mobile/apps/photos/lib/ui/viewer/gallery/empty_state.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/empty_state.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/empty_state.dart diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/gallery.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/hidden_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/hidden_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/hidden_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/hidden_page.dart diff --git a/mobile/lib/ui/viewer/gallery/hierarchical_search_gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/hierarchical_search_gallery.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/hierarchical_search_gallery.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/hierarchical_search_gallery.dart diff --git a/mobile/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart b/mobile/apps/photos/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart diff --git a/mobile/lib/ui/viewer/gallery/hooks/pick_cover_photo.dart b/mobile/apps/photos/lib/ui/viewer/gallery/hooks/pick_cover_photo.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/hooks/pick_cover_photo.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/hooks/pick_cover_photo.dart diff --git a/mobile/lib/ui/viewer/gallery/hooks/pick_person_avatar.dart b/mobile/apps/photos/lib/ui/viewer/gallery/hooks/pick_person_avatar.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/hooks/pick_person_avatar.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/hooks/pick_person_avatar.dart diff --git a/mobile/lib/ui/viewer/gallery/large_files_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/large_files_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/large_files_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/large_files_page.dart diff --git a/mobile/lib/ui/viewer/gallery/photo_grid_size_picker_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/photo_grid_size_picker_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/photo_grid_size_picker_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/photo_grid_size_picker_page.dart diff --git a/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/shared_public_collection_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/shared_public_collection_page.dart diff --git a/mobile/lib/ui/viewer/gallery/state/gallery_context_state.dart b/mobile/apps/photos/lib/ui/viewer/gallery/state/gallery_context_state.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/state/gallery_context_state.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/state/gallery_context_state.dart diff --git a/mobile/lib/ui/viewer/gallery/state/gallery_files_inherited_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/state/gallery_files_inherited_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/state/gallery_files_inherited_widget.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/state/gallery_files_inherited_widget.dart diff --git a/mobile/lib/ui/viewer/gallery/state/inherited_search_filter_data.dart b/mobile/apps/photos/lib/ui/viewer/gallery/state/inherited_search_filter_data.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/state/inherited_search_filter_data.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/state/inherited_search_filter_data.dart diff --git a/mobile/lib/ui/viewer/gallery/state/search_filter_data_provider.dart b/mobile/apps/photos/lib/ui/viewer/gallery/state/search_filter_data_provider.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/state/search_filter_data_provider.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/state/search_filter_data_provider.dart diff --git a/mobile/lib/ui/viewer/gallery/state/selection_state.dart b/mobile/apps/photos/lib/ui/viewer/gallery/state/selection_state.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/state/selection_state.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/state/selection_state.dart diff --git a/mobile/lib/ui/viewer/gallery/trash_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/trash_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/trash_page.dart diff --git a/mobile/lib/ui/viewer/gallery/uncategorized_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/uncategorized_page.dart similarity index 100% rename from mobile/lib/ui/viewer/gallery/uncategorized_page.dart rename to mobile/apps/photos/lib/ui/viewer/gallery/uncategorized_page.dart diff --git a/mobile/lib/ui/viewer/hierarchicial_search/applied_filters_for_appbar.dart b/mobile/apps/photos/lib/ui/viewer/hierarchicial_search/applied_filters_for_appbar.dart similarity index 100% rename from mobile/lib/ui/viewer/hierarchicial_search/applied_filters_for_appbar.dart rename to mobile/apps/photos/lib/ui/viewer/hierarchicial_search/applied_filters_for_appbar.dart diff --git a/mobile/lib/ui/viewer/hierarchicial_search/chip_widgets/face_filter_chip.dart b/mobile/apps/photos/lib/ui/viewer/hierarchicial_search/chip_widgets/face_filter_chip.dart similarity index 100% rename from mobile/lib/ui/viewer/hierarchicial_search/chip_widgets/face_filter_chip.dart rename to mobile/apps/photos/lib/ui/viewer/hierarchicial_search/chip_widgets/face_filter_chip.dart diff --git a/mobile/lib/ui/viewer/hierarchicial_search/chip_widgets/generic_filter_chip.dart b/mobile/apps/photos/lib/ui/viewer/hierarchicial_search/chip_widgets/generic_filter_chip.dart similarity index 100% rename from mobile/lib/ui/viewer/hierarchicial_search/chip_widgets/generic_filter_chip.dart rename to mobile/apps/photos/lib/ui/viewer/hierarchicial_search/chip_widgets/generic_filter_chip.dart diff --git a/mobile/lib/ui/viewer/hierarchicial_search/chip_widgets/only_them_filter_chip.dart b/mobile/apps/photos/lib/ui/viewer/hierarchicial_search/chip_widgets/only_them_filter_chip.dart similarity index 100% rename from mobile/lib/ui/viewer/hierarchicial_search/chip_widgets/only_them_filter_chip.dart rename to mobile/apps/photos/lib/ui/viewer/hierarchicial_search/chip_widgets/only_them_filter_chip.dart diff --git a/mobile/lib/ui/viewer/hierarchicial_search/filter_options_bottom_sheet.dart b/mobile/apps/photos/lib/ui/viewer/hierarchicial_search/filter_options_bottom_sheet.dart similarity index 100% rename from mobile/lib/ui/viewer/hierarchicial_search/filter_options_bottom_sheet.dart rename to mobile/apps/photos/lib/ui/viewer/hierarchicial_search/filter_options_bottom_sheet.dart diff --git a/mobile/lib/ui/viewer/hierarchicial_search/recommended_filters_for_appbar.dart b/mobile/apps/photos/lib/ui/viewer/hierarchicial_search/recommended_filters_for_appbar.dart similarity index 100% rename from mobile/lib/ui/viewer/hierarchicial_search/recommended_filters_for_appbar.dart rename to mobile/apps/photos/lib/ui/viewer/hierarchicial_search/recommended_filters_for_appbar.dart diff --git a/mobile/lib/ui/viewer/location/add_location_sheet.dart b/mobile/apps/photos/lib/ui/viewer/location/add_location_sheet.dart similarity index 100% rename from mobile/lib/ui/viewer/location/add_location_sheet.dart rename to mobile/apps/photos/lib/ui/viewer/location/add_location_sheet.dart diff --git a/mobile/lib/ui/viewer/location/dynamic_location_gallery_widget.dart b/mobile/apps/photos/lib/ui/viewer/location/dynamic_location_gallery_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/location/dynamic_location_gallery_widget.dart rename to mobile/apps/photos/lib/ui/viewer/location/dynamic_location_gallery_widget.dart diff --git a/mobile/lib/ui/viewer/location/edit_center_point_tile_widget.dart b/mobile/apps/photos/lib/ui/viewer/location/edit_center_point_tile_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/location/edit_center_point_tile_widget.dart rename to mobile/apps/photos/lib/ui/viewer/location/edit_center_point_tile_widget.dart diff --git a/mobile/lib/ui/viewer/location/edit_location_sheet.dart b/mobile/apps/photos/lib/ui/viewer/location/edit_location_sheet.dart similarity index 100% rename from mobile/lib/ui/viewer/location/edit_location_sheet.dart rename to mobile/apps/photos/lib/ui/viewer/location/edit_location_sheet.dart diff --git a/mobile/lib/ui/viewer/location/location_screen.dart b/mobile/apps/photos/lib/ui/viewer/location/location_screen.dart similarity index 100% rename from mobile/lib/ui/viewer/location/location_screen.dart rename to mobile/apps/photos/lib/ui/viewer/location/location_screen.dart diff --git a/mobile/lib/ui/viewer/location/pick_center_point_widget.dart b/mobile/apps/photos/lib/ui/viewer/location/pick_center_point_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/location/pick_center_point_widget.dart rename to mobile/apps/photos/lib/ui/viewer/location/pick_center_point_widget.dart diff --git a/mobile/lib/ui/viewer/location/radius_picker_widget.dart b/mobile/apps/photos/lib/ui/viewer/location/radius_picker_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/location/radius_picker_widget.dart rename to mobile/apps/photos/lib/ui/viewer/location/radius_picker_widget.dart diff --git a/mobile/lib/ui/viewer/location/update_location_data_widget.dart b/mobile/apps/photos/lib/ui/viewer/location/update_location_data_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/location/update_location_data_widget.dart rename to mobile/apps/photos/lib/ui/viewer/location/update_location_data_widget.dart diff --git a/mobile/lib/ui/viewer/people/add_person_action_sheet.dart b/mobile/apps/photos/lib/ui/viewer/people/add_person_action_sheet.dart similarity index 100% rename from mobile/lib/ui/viewer/people/add_person_action_sheet.dart rename to mobile/apps/photos/lib/ui/viewer/people/add_person_action_sheet.dart diff --git a/mobile/lib/ui/viewer/people/cluster_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/people/cluster_app_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/people/cluster_app_bar.dart rename to mobile/apps/photos/lib/ui/viewer/people/cluster_app_bar.dart diff --git a/mobile/lib/ui/viewer/people/cluster_breakup_page.dart b/mobile/apps/photos/lib/ui/viewer/people/cluster_breakup_page.dart similarity index 100% rename from mobile/lib/ui/viewer/people/cluster_breakup_page.dart rename to mobile/apps/photos/lib/ui/viewer/people/cluster_breakup_page.dart diff --git a/mobile/lib/ui/viewer/people/cluster_page.dart b/mobile/apps/photos/lib/ui/viewer/people/cluster_page.dart similarity index 100% rename from mobile/lib/ui/viewer/people/cluster_page.dart rename to mobile/apps/photos/lib/ui/viewer/people/cluster_page.dart diff --git a/mobile/lib/ui/viewer/people/file_face_widget.dart b/mobile/apps/photos/lib/ui/viewer/people/file_face_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/people/file_face_widget.dart rename to mobile/apps/photos/lib/ui/viewer/people/file_face_widget.dart diff --git a/mobile/lib/ui/viewer/people/link_email_screen.dart b/mobile/apps/photos/lib/ui/viewer/people/link_email_screen.dart similarity index 100% rename from mobile/lib/ui/viewer/people/link_email_screen.dart rename to mobile/apps/photos/lib/ui/viewer/people/link_email_screen.dart diff --git a/mobile/lib/ui/viewer/people/people_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/people/people_app_bar.dart similarity index 100% rename from mobile/lib/ui/viewer/people/people_app_bar.dart rename to mobile/apps/photos/lib/ui/viewer/people/people_app_bar.dart diff --git a/mobile/lib/ui/viewer/people/people_banner.dart b/mobile/apps/photos/lib/ui/viewer/people/people_banner.dart similarity index 100% rename from mobile/lib/ui/viewer/people/people_banner.dart rename to mobile/apps/photos/lib/ui/viewer/people/people_banner.dart diff --git a/mobile/lib/ui/viewer/people/people_page.dart b/mobile/apps/photos/lib/ui/viewer/people/people_page.dart similarity index 100% rename from mobile/lib/ui/viewer/people/people_page.dart rename to mobile/apps/photos/lib/ui/viewer/people/people_page.dart diff --git a/mobile/lib/ui/viewer/people/people_util.dart b/mobile/apps/photos/lib/ui/viewer/people/people_util.dart similarity index 100% rename from mobile/lib/ui/viewer/people/people_util.dart rename to mobile/apps/photos/lib/ui/viewer/people/people_util.dart diff --git a/mobile/lib/ui/viewer/people/person_cluster_suggestion.dart b/mobile/apps/photos/lib/ui/viewer/people/person_cluster_suggestion.dart similarity index 100% rename from mobile/lib/ui/viewer/people/person_cluster_suggestion.dart rename to mobile/apps/photos/lib/ui/viewer/people/person_cluster_suggestion.dart diff --git a/mobile/lib/ui/viewer/people/person_clusters_page.dart b/mobile/apps/photos/lib/ui/viewer/people/person_clusters_page.dart similarity index 100% rename from mobile/lib/ui/viewer/people/person_clusters_page.dart rename to mobile/apps/photos/lib/ui/viewer/people/person_clusters_page.dart diff --git a/mobile/lib/ui/viewer/people/person_face_widget.dart b/mobile/apps/photos/lib/ui/viewer/people/person_face_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/people/person_face_widget.dart rename to mobile/apps/photos/lib/ui/viewer/people/person_face_widget.dart diff --git a/mobile/lib/ui/viewer/people/person_gallery_suggestion.dart b/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart similarity index 100% rename from mobile/lib/ui/viewer/people/person_gallery_suggestion.dart rename to mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart diff --git a/mobile/lib/ui/viewer/people/person_row_item.dart b/mobile/apps/photos/lib/ui/viewer/people/person_row_item.dart similarity index 100% rename from mobile/lib/ui/viewer/people/person_row_item.dart rename to mobile/apps/photos/lib/ui/viewer/people/person_row_item.dart diff --git a/mobile/lib/ui/viewer/people/person_selection_action_widgets.dart b/mobile/apps/photos/lib/ui/viewer/people/person_selection_action_widgets.dart similarity index 100% rename from mobile/lib/ui/viewer/people/person_selection_action_widgets.dart rename to mobile/apps/photos/lib/ui/viewer/people/person_selection_action_widgets.dart diff --git a/mobile/lib/ui/viewer/people/save_or_edit_person.dart b/mobile/apps/photos/lib/ui/viewer/people/save_or_edit_person.dart similarity index 100% rename from mobile/lib/ui/viewer/people/save_or_edit_person.dart rename to mobile/apps/photos/lib/ui/viewer/people/save_or_edit_person.dart diff --git a/mobile/lib/ui/viewer/search/result/contact_result_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/contact_result_page.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/contact_result_page.dart diff --git a/mobile/lib/ui/viewer/search/result/go_to_map_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/result/go_to_map_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/go_to_map_widget.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/go_to_map_widget.dart diff --git a/mobile/lib/ui/viewer/search/result/magic_result_screen.dart b/mobile/apps/photos/lib/ui/viewer/search/result/magic_result_screen.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/magic_result_screen.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/magic_result_screen.dart diff --git a/mobile/lib/ui/viewer/search/result/no_result_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/result/no_result_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/no_result_widget.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/no_result_widget.dart diff --git a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/people_section_all_page.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart diff --git a/mobile/lib/ui/viewer/search/result/search_result_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/search_result_page.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/search_result_page.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/search_result_page.dart diff --git a/mobile/lib/ui/viewer/search/result/search_result_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/result/search_result_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/search_result_widget.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/search_result_widget.dart diff --git a/mobile/lib/ui/viewer/search/result/search_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/search_section_all_page.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/search_section_all_page.dart diff --git a/mobile/lib/ui/viewer/search/result/search_thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/result/search_thumbnail_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/search_thumbnail_widget.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/search_thumbnail_widget.dart diff --git a/mobile/lib/ui/viewer/search/result/searchable_item.dart b/mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart similarity index 100% rename from mobile/lib/ui/viewer/search/result/searchable_item.dart rename to mobile/apps/photos/lib/ui/viewer/search/result/searchable_item.dart diff --git a/mobile/lib/ui/viewer/search/search_section_cta.dart b/mobile/apps/photos/lib/ui/viewer/search/search_section_cta.dart similarity index 100% rename from mobile/lib/ui/viewer/search/search_section_cta.dart rename to mobile/apps/photos/lib/ui/viewer/search/search_section_cta.dart diff --git a/mobile/lib/ui/viewer/search/search_suffix_icon_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/search_suffix_icon_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/search/search_suffix_icon_widget.dart rename to mobile/apps/photos/lib/ui/viewer/search/search_suffix_icon_widget.dart diff --git a/mobile/lib/ui/viewer/search/search_suggestions.dart b/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart similarity index 100% rename from mobile/lib/ui/viewer/search/search_suggestions.dart rename to mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart diff --git a/mobile/lib/ui/viewer/search/search_widget.dart b/mobile/apps/photos/lib/ui/viewer/search/search_widget.dart similarity index 100% rename from mobile/lib/ui/viewer/search/search_widget.dart rename to mobile/apps/photos/lib/ui/viewer/search/search_widget.dart diff --git a/mobile/lib/ui/viewer/search/tab_empty_state.dart b/mobile/apps/photos/lib/ui/viewer/search/tab_empty_state.dart similarity index 100% rename from mobile/lib/ui/viewer/search/tab_empty_state.dart rename to mobile/apps/photos/lib/ui/viewer/search/tab_empty_state.dart diff --git a/mobile/lib/ui/viewer/search_tab/albums_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/albums_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/albums_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/albums_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/contacts_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/contacts_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/contacts_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/file_type_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/file_type_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/file_type_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/file_type_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/locations_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/locations_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/locations_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/locations_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/magic_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/magic_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/magic_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/magic_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/moments_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/moments_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/moments_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/moments_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/people_section.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/people_section.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/people_section.dart diff --git a/mobile/lib/ui/viewer/search_tab/search_tab.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/search_tab.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart diff --git a/mobile/lib/ui/viewer/search_tab/section_header.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/section_header.dart similarity index 100% rename from mobile/lib/ui/viewer/search_tab/section_header.dart rename to mobile/apps/photos/lib/ui/viewer/search_tab/section_header.dart diff --git a/mobile/lib/utils/auth_util.dart b/mobile/apps/photos/lib/utils/auth_util.dart similarity index 100% rename from mobile/lib/utils/auth_util.dart rename to mobile/apps/photos/lib/utils/auth_util.dart diff --git a/mobile/lib/utils/bg_task_utils.dart b/mobile/apps/photos/lib/utils/bg_task_utils.dart similarity index 100% rename from mobile/lib/utils/bg_task_utils.dart rename to mobile/apps/photos/lib/utils/bg_task_utils.dart diff --git a/mobile/lib/utils/cache_util.dart b/mobile/apps/photos/lib/utils/cache_util.dart similarity index 100% rename from mobile/lib/utils/cache_util.dart rename to mobile/apps/photos/lib/utils/cache_util.dart diff --git a/mobile/lib/utils/collection_util.dart b/mobile/apps/photos/lib/utils/collection_util.dart similarity index 100% rename from mobile/lib/utils/collection_util.dart rename to mobile/apps/photos/lib/utils/collection_util.dart diff --git a/mobile/lib/utils/debug_ml_export_data.dart b/mobile/apps/photos/lib/utils/debug_ml_export_data.dart similarity index 100% rename from mobile/lib/utils/debug_ml_export_data.dart rename to mobile/apps/photos/lib/utils/debug_ml_export_data.dart diff --git a/mobile/lib/utils/delete_file_util.dart b/mobile/apps/photos/lib/utils/delete_file_util.dart similarity index 100% rename from mobile/lib/utils/delete_file_util.dart rename to mobile/apps/photos/lib/utils/delete_file_util.dart diff --git a/mobile/lib/utils/device_info.dart b/mobile/apps/photos/lib/utils/device_info.dart similarity index 100% rename from mobile/lib/utils/device_info.dart rename to mobile/apps/photos/lib/utils/device_info.dart diff --git a/mobile/lib/utils/dialog_util.dart b/mobile/apps/photos/lib/utils/dialog_util.dart similarity index 100% rename from mobile/lib/utils/dialog_util.dart rename to mobile/apps/photos/lib/utils/dialog_util.dart diff --git a/mobile/lib/utils/email_util.dart b/mobile/apps/photos/lib/utils/email_util.dart similarity index 100% rename from mobile/lib/utils/email_util.dart rename to mobile/apps/photos/lib/utils/email_util.dart diff --git a/mobile/lib/utils/exif_util.dart b/mobile/apps/photos/lib/utils/exif_util.dart similarity index 100% rename from mobile/lib/utils/exif_util.dart rename to mobile/apps/photos/lib/utils/exif_util.dart diff --git a/mobile/lib/utils/face/face_thumbnail_cache.dart b/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart similarity index 100% rename from mobile/lib/utils/face/face_thumbnail_cache.dart rename to mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart diff --git a/mobile/lib/utils/ffprobe_util.dart b/mobile/apps/photos/lib/utils/ffprobe_util.dart similarity index 100% rename from mobile/lib/utils/ffprobe_util.dart rename to mobile/apps/photos/lib/utils/ffprobe_util.dart diff --git a/mobile/lib/utils/file_download_util.dart b/mobile/apps/photos/lib/utils/file_download_util.dart similarity index 100% rename from mobile/lib/utils/file_download_util.dart rename to mobile/apps/photos/lib/utils/file_download_util.dart diff --git a/mobile/lib/utils/file_key.dart b/mobile/apps/photos/lib/utils/file_key.dart similarity index 100% rename from mobile/lib/utils/file_key.dart rename to mobile/apps/photos/lib/utils/file_key.dart diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/apps/photos/lib/utils/file_uploader.dart similarity index 100% rename from mobile/lib/utils/file_uploader.dart rename to mobile/apps/photos/lib/utils/file_uploader.dart diff --git a/mobile/lib/utils/file_uploader_util.dart b/mobile/apps/photos/lib/utils/file_uploader_util.dart similarity index 100% rename from mobile/lib/utils/file_uploader_util.dart rename to mobile/apps/photos/lib/utils/file_uploader_util.dart diff --git a/mobile/lib/utils/file_util.dart b/mobile/apps/photos/lib/utils/file_util.dart similarity index 100% rename from mobile/lib/utils/file_util.dart rename to mobile/apps/photos/lib/utils/file_util.dart diff --git a/mobile/lib/utils/gzip.dart b/mobile/apps/photos/lib/utils/gzip.dart similarity index 100% rename from mobile/lib/utils/gzip.dart rename to mobile/apps/photos/lib/utils/gzip.dart diff --git a/mobile/lib/utils/hierarchical_search_util.dart b/mobile/apps/photos/lib/utils/hierarchical_search_util.dart similarity index 100% rename from mobile/lib/utils/hierarchical_search_util.dart rename to mobile/apps/photos/lib/utils/hierarchical_search_util.dart diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/apps/photos/lib/utils/image_ml_util.dart similarity index 100% rename from mobile/lib/utils/image_ml_util.dart rename to mobile/apps/photos/lib/utils/image_ml_util.dart diff --git a/mobile/lib/utils/image_util.dart b/mobile/apps/photos/lib/utils/image_util.dart similarity index 100% rename from mobile/lib/utils/image_util.dart rename to mobile/apps/photos/lib/utils/image_util.dart diff --git a/mobile/lib/utils/intent_util.dart b/mobile/apps/photos/lib/utils/intent_util.dart similarity index 100% rename from mobile/lib/utils/intent_util.dart rename to mobile/apps/photos/lib/utils/intent_util.dart diff --git a/mobile/lib/utils/local_settings.dart b/mobile/apps/photos/lib/utils/local_settings.dart similarity index 100% rename from mobile/lib/utils/local_settings.dart rename to mobile/apps/photos/lib/utils/local_settings.dart diff --git a/mobile/lib/utils/lock_screen_settings.dart b/mobile/apps/photos/lib/utils/lock_screen_settings.dart similarity index 100% rename from mobile/lib/utils/lock_screen_settings.dart rename to mobile/apps/photos/lib/utils/lock_screen_settings.dart diff --git a/mobile/lib/utils/magic_util.dart b/mobile/apps/photos/lib/utils/magic_util.dart similarity index 100% rename from mobile/lib/utils/magic_util.dart rename to mobile/apps/photos/lib/utils/magic_util.dart diff --git a/mobile/lib/utils/misc_util.dart b/mobile/apps/photos/lib/utils/misc_util.dart similarity index 100% rename from mobile/lib/utils/misc_util.dart rename to mobile/apps/photos/lib/utils/misc_util.dart diff --git a/mobile/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart similarity index 100% rename from mobile/lib/utils/ml_util.dart rename to mobile/apps/photos/lib/utils/ml_util.dart diff --git a/mobile/lib/utils/navigation_util.dart b/mobile/apps/photos/lib/utils/navigation_util.dart similarity index 100% rename from mobile/lib/utils/navigation_util.dart rename to mobile/apps/photos/lib/utils/navigation_util.dart diff --git a/mobile/lib/utils/network_util.dart b/mobile/apps/photos/lib/utils/network_util.dart similarity index 100% rename from mobile/lib/utils/network_util.dart rename to mobile/apps/photos/lib/utils/network_util.dart diff --git a/mobile/lib/utils/panorama_util.dart b/mobile/apps/photos/lib/utils/panorama_util.dart similarity index 100% rename from mobile/lib/utils/panorama_util.dart rename to mobile/apps/photos/lib/utils/panorama_util.dart diff --git a/mobile/lib/utils/person_contact_linking_util.dart b/mobile/apps/photos/lib/utils/person_contact_linking_util.dart similarity index 100% rename from mobile/lib/utils/person_contact_linking_util.dart rename to mobile/apps/photos/lib/utils/person_contact_linking_util.dart diff --git a/mobile/lib/utils/ram_check_util.dart b/mobile/apps/photos/lib/utils/ram_check_util.dart similarity index 100% rename from mobile/lib/utils/ram_check_util.dart rename to mobile/apps/photos/lib/utils/ram_check_util.dart diff --git a/mobile/lib/utils/separators_util.dart b/mobile/apps/photos/lib/utils/separators_util.dart similarity index 100% rename from mobile/lib/utils/separators_util.dart rename to mobile/apps/photos/lib/utils/separators_util.dart diff --git a/mobile/lib/utils/share_util.dart b/mobile/apps/photos/lib/utils/share_util.dart similarity index 100% rename from mobile/lib/utils/share_util.dart rename to mobile/apps/photos/lib/utils/share_util.dart diff --git a/mobile/lib/utils/standalone/README.md b/mobile/apps/photos/lib/utils/standalone/README.md similarity index 100% rename from mobile/lib/utils/standalone/README.md rename to mobile/apps/photos/lib/utils/standalone/README.md diff --git a/mobile/lib/utils/standalone/data.dart b/mobile/apps/photos/lib/utils/standalone/data.dart similarity index 100% rename from mobile/lib/utils/standalone/data.dart rename to mobile/apps/photos/lib/utils/standalone/data.dart diff --git a/mobile/lib/utils/standalone/date_time.dart b/mobile/apps/photos/lib/utils/standalone/date_time.dart similarity index 100% rename from mobile/lib/utils/standalone/date_time.dart rename to mobile/apps/photos/lib/utils/standalone/date_time.dart diff --git a/mobile/lib/utils/standalone/debouncer.dart b/mobile/apps/photos/lib/utils/standalone/debouncer.dart similarity index 100% rename from mobile/lib/utils/standalone/debouncer.dart rename to mobile/apps/photos/lib/utils/standalone/debouncer.dart diff --git a/mobile/lib/utils/standalone/directory_content.dart b/mobile/apps/photos/lib/utils/standalone/directory_content.dart similarity index 100% rename from mobile/lib/utils/standalone/directory_content.dart rename to mobile/apps/photos/lib/utils/standalone/directory_content.dart diff --git a/mobile/lib/utils/standalone/fake_progress.dart b/mobile/apps/photos/lib/utils/standalone/fake_progress.dart similarity index 100% rename from mobile/lib/utils/standalone/fake_progress.dart rename to mobile/apps/photos/lib/utils/standalone/fake_progress.dart diff --git a/mobile/lib/utils/standalone/parse.dart b/mobile/apps/photos/lib/utils/standalone/parse.dart similarity index 100% rename from mobile/lib/utils/standalone/parse.dart rename to mobile/apps/photos/lib/utils/standalone/parse.dart diff --git a/mobile/lib/utils/standalone/simple_task_queue.dart b/mobile/apps/photos/lib/utils/standalone/simple_task_queue.dart similarity index 100% rename from mobile/lib/utils/standalone/simple_task_queue.dart rename to mobile/apps/photos/lib/utils/standalone/simple_task_queue.dart diff --git a/mobile/lib/utils/standalone/task_queue.dart b/mobile/apps/photos/lib/utils/standalone/task_queue.dart similarity index 100% rename from mobile/lib/utils/standalone/task_queue.dart rename to mobile/apps/photos/lib/utils/standalone/task_queue.dart diff --git a/mobile/lib/utils/thumbnail_util.dart b/mobile/apps/photos/lib/utils/thumbnail_util.dart similarity index 100% rename from mobile/lib/utils/thumbnail_util.dart rename to mobile/apps/photos/lib/utils/thumbnail_util.dart diff --git a/mobile/lib/utils/validator_util.dart b/mobile/apps/photos/lib/utils/validator_util.dart similarity index 100% rename from mobile/lib/utils/validator_util.dart rename to mobile/apps/photos/lib/utils/validator_util.dart diff --git a/mobile/lib/utils/widget_util.dart b/mobile/apps/photos/lib/utils/widget_util.dart similarity index 100% rename from mobile/lib/utils/widget_util.dart rename to mobile/apps/photos/lib/utils/widget_util.dart diff --git a/mobile/plugins/ente_cast/.metadata b/mobile/apps/photos/plugins/ente_cast/.metadata similarity index 100% rename from mobile/plugins/ente_cast/.metadata rename to mobile/apps/photos/plugins/ente_cast/.metadata diff --git a/mobile/plugins/ente_cast/analysis_options.yaml b/mobile/apps/photos/plugins/ente_cast/analysis_options.yaml similarity index 100% rename from mobile/plugins/ente_cast/analysis_options.yaml rename to mobile/apps/photos/plugins/ente_cast/analysis_options.yaml diff --git a/mobile/plugins/ente_cast/lib/ente_cast.dart b/mobile/apps/photos/plugins/ente_cast/lib/ente_cast.dart similarity index 100% rename from mobile/plugins/ente_cast/lib/ente_cast.dart rename to mobile/apps/photos/plugins/ente_cast/lib/ente_cast.dart diff --git a/mobile/plugins/ente_cast/lib/src/model.dart b/mobile/apps/photos/plugins/ente_cast/lib/src/model.dart similarity index 100% rename from mobile/plugins/ente_cast/lib/src/model.dart rename to mobile/apps/photos/plugins/ente_cast/lib/src/model.dart diff --git a/mobile/plugins/ente_cast/lib/src/service.dart b/mobile/apps/photos/plugins/ente_cast/lib/src/service.dart similarity index 100% rename from mobile/plugins/ente_cast/lib/src/service.dart rename to mobile/apps/photos/plugins/ente_cast/lib/src/service.dart diff --git a/mobile/plugins/ente_cast/pubspec.lock b/mobile/apps/photos/plugins/ente_cast/pubspec.lock similarity index 100% rename from mobile/plugins/ente_cast/pubspec.lock rename to mobile/apps/photos/plugins/ente_cast/pubspec.lock diff --git a/mobile/plugins/ente_cast/pubspec.yaml b/mobile/apps/photos/plugins/ente_cast/pubspec.yaml similarity index 100% rename from mobile/plugins/ente_cast/pubspec.yaml rename to mobile/apps/photos/plugins/ente_cast/pubspec.yaml diff --git a/mobile/plugins/ente_cast_none/.metadata b/mobile/apps/photos/plugins/ente_cast_none/.metadata similarity index 100% rename from mobile/plugins/ente_cast_none/.metadata rename to mobile/apps/photos/plugins/ente_cast_none/.metadata diff --git a/mobile/plugins/ente_cast_none/analysis_options.yaml b/mobile/apps/photos/plugins/ente_cast_none/analysis_options.yaml similarity index 100% rename from mobile/plugins/ente_cast_none/analysis_options.yaml rename to mobile/apps/photos/plugins/ente_cast_none/analysis_options.yaml diff --git a/mobile/plugins/ente_cast_none/lib/ente_cast_none.dart b/mobile/apps/photos/plugins/ente_cast_none/lib/ente_cast_none.dart similarity index 100% rename from mobile/plugins/ente_cast_none/lib/ente_cast_none.dart rename to mobile/apps/photos/plugins/ente_cast_none/lib/ente_cast_none.dart diff --git a/mobile/plugins/ente_cast_none/lib/src/service.dart b/mobile/apps/photos/plugins/ente_cast_none/lib/src/service.dart similarity index 100% rename from mobile/plugins/ente_cast_none/lib/src/service.dart rename to mobile/apps/photos/plugins/ente_cast_none/lib/src/service.dart diff --git a/mobile/plugins/ente_cast_none/pubspec.lock b/mobile/apps/photos/plugins/ente_cast_none/pubspec.lock similarity index 100% rename from mobile/plugins/ente_cast_none/pubspec.lock rename to mobile/apps/photos/plugins/ente_cast_none/pubspec.lock diff --git a/mobile/plugins/ente_cast_none/pubspec.yaml b/mobile/apps/photos/plugins/ente_cast_none/pubspec.yaml similarity index 100% rename from mobile/plugins/ente_cast_none/pubspec.yaml rename to mobile/apps/photos/plugins/ente_cast_none/pubspec.yaml diff --git a/mobile/plugins/ente_cast_normal/.metadata b/mobile/apps/photos/plugins/ente_cast_normal/.metadata similarity index 100% rename from mobile/plugins/ente_cast_normal/.metadata rename to mobile/apps/photos/plugins/ente_cast_normal/.metadata diff --git a/mobile/plugins/ente_cast_normal/analysis_options.yaml b/mobile/apps/photos/plugins/ente_cast_normal/analysis_options.yaml similarity index 100% rename from mobile/plugins/ente_cast_normal/analysis_options.yaml rename to mobile/apps/photos/plugins/ente_cast_normal/analysis_options.yaml diff --git a/mobile/plugins/ente_cast_normal/lib/ente_cast_normal.dart b/mobile/apps/photos/plugins/ente_cast_normal/lib/ente_cast_normal.dart similarity index 100% rename from mobile/plugins/ente_cast_normal/lib/ente_cast_normal.dart rename to mobile/apps/photos/plugins/ente_cast_normal/lib/ente_cast_normal.dart diff --git a/mobile/plugins/ente_cast_normal/lib/src/service.dart b/mobile/apps/photos/plugins/ente_cast_normal/lib/src/service.dart similarity index 100% rename from mobile/plugins/ente_cast_normal/lib/src/service.dart rename to mobile/apps/photos/plugins/ente_cast_normal/lib/src/service.dart diff --git a/mobile/plugins/ente_cast_normal/pubspec.lock b/mobile/apps/photos/plugins/ente_cast_normal/pubspec.lock similarity index 100% rename from mobile/plugins/ente_cast_normal/pubspec.lock rename to mobile/apps/photos/plugins/ente_cast_normal/pubspec.lock diff --git a/mobile/plugins/ente_cast_normal/pubspec.yaml b/mobile/apps/photos/plugins/ente_cast_normal/pubspec.yaml similarity index 100% rename from mobile/plugins/ente_cast_normal/pubspec.yaml rename to mobile/apps/photos/plugins/ente_cast_normal/pubspec.yaml diff --git a/mobile/plugins/ente_crypto/.metadata b/mobile/apps/photos/plugins/ente_crypto/.metadata similarity index 100% rename from mobile/plugins/ente_crypto/.metadata rename to mobile/apps/photos/plugins/ente_crypto/.metadata diff --git a/mobile/plugins/ente_crypto/analysis_options.yaml b/mobile/apps/photos/plugins/ente_crypto/analysis_options.yaml similarity index 100% rename from mobile/plugins/ente_crypto/analysis_options.yaml rename to mobile/apps/photos/plugins/ente_crypto/analysis_options.yaml diff --git a/mobile/plugins/ente_crypto/lib/ente_crypto.dart b/mobile/apps/photos/plugins/ente_crypto/lib/ente_crypto.dart similarity index 100% rename from mobile/plugins/ente_crypto/lib/ente_crypto.dart rename to mobile/apps/photos/plugins/ente_crypto/lib/ente_crypto.dart diff --git a/mobile/plugins/ente_crypto/lib/src/crypto.dart b/mobile/apps/photos/plugins/ente_crypto/lib/src/crypto.dart similarity index 100% rename from mobile/plugins/ente_crypto/lib/src/crypto.dart rename to mobile/apps/photos/plugins/ente_crypto/lib/src/crypto.dart diff --git a/mobile/plugins/ente_crypto/lib/src/models/derived_key_result.dart b/mobile/apps/photos/plugins/ente_crypto/lib/src/models/derived_key_result.dart similarity index 100% rename from mobile/plugins/ente_crypto/lib/src/models/derived_key_result.dart rename to mobile/apps/photos/plugins/ente_crypto/lib/src/models/derived_key_result.dart diff --git a/mobile/plugins/ente_crypto/lib/src/models/encryption_result.dart b/mobile/apps/photos/plugins/ente_crypto/lib/src/models/encryption_result.dart similarity index 100% rename from mobile/plugins/ente_crypto/lib/src/models/encryption_result.dart rename to mobile/apps/photos/plugins/ente_crypto/lib/src/models/encryption_result.dart diff --git a/mobile/plugins/ente_crypto/lib/src/models/errors.dart b/mobile/apps/photos/plugins/ente_crypto/lib/src/models/errors.dart similarity index 100% rename from mobile/plugins/ente_crypto/lib/src/models/errors.dart rename to mobile/apps/photos/plugins/ente_crypto/lib/src/models/errors.dart diff --git a/mobile/plugins/ente_crypto/pubspec.lock b/mobile/apps/photos/plugins/ente_crypto/pubspec.lock similarity index 100% rename from mobile/plugins/ente_crypto/pubspec.lock rename to mobile/apps/photos/plugins/ente_crypto/pubspec.lock diff --git a/mobile/plugins/ente_crypto/pubspec.yaml b/mobile/apps/photos/plugins/ente_crypto/pubspec.yaml similarity index 100% rename from mobile/plugins/ente_crypto/pubspec.yaml rename to mobile/apps/photos/plugins/ente_crypto/pubspec.yaml diff --git a/mobile/plugins/ente_feature_flag/.metadata b/mobile/apps/photos/plugins/ente_feature_flag/.metadata similarity index 100% rename from mobile/plugins/ente_feature_flag/.metadata rename to mobile/apps/photos/plugins/ente_feature_flag/.metadata diff --git a/mobile/plugins/ente_feature_flag/analysis_options.yaml b/mobile/apps/photos/plugins/ente_feature_flag/analysis_options.yaml similarity index 100% rename from mobile/plugins/ente_feature_flag/analysis_options.yaml rename to mobile/apps/photos/plugins/ente_feature_flag/analysis_options.yaml diff --git a/mobile/plugins/ente_feature_flag/lib/ente_feature_flag.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/ente_feature_flag.dart similarity index 100% rename from mobile/plugins/ente_feature_flag/lib/ente_feature_flag.dart rename to mobile/apps/photos/plugins/ente_feature_flag/lib/ente_feature_flag.dart diff --git a/mobile/plugins/ente_feature_flag/lib/src/model.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/model.dart similarity index 100% rename from mobile/plugins/ente_feature_flag/lib/src/model.dart rename to mobile/apps/photos/plugins/ente_feature_flag/lib/src/model.dart diff --git a/mobile/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart similarity index 100% rename from mobile/plugins/ente_feature_flag/lib/src/service.dart rename to mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart diff --git a/mobile/plugins/ente_feature_flag/pubspec.lock b/mobile/apps/photos/plugins/ente_feature_flag/pubspec.lock similarity index 100% rename from mobile/plugins/ente_feature_flag/pubspec.lock rename to mobile/apps/photos/plugins/ente_feature_flag/pubspec.lock diff --git a/mobile/plugins/ente_feature_flag/pubspec.yaml b/mobile/apps/photos/plugins/ente_feature_flag/pubspec.yaml similarity index 100% rename from mobile/plugins/ente_feature_flag/pubspec.yaml rename to mobile/apps/photos/plugins/ente_feature_flag/pubspec.yaml diff --git a/mobile/plugins/onnx_dart/.metadata b/mobile/apps/photos/plugins/onnx_dart/.metadata similarity index 100% rename from mobile/plugins/onnx_dart/.metadata rename to mobile/apps/photos/plugins/onnx_dart/.metadata diff --git a/mobile/plugins/onnx_dart/analysis_options.yaml b/mobile/apps/photos/plugins/onnx_dart/analysis_options.yaml similarity index 100% rename from mobile/plugins/onnx_dart/analysis_options.yaml rename to mobile/apps/photos/plugins/onnx_dart/analysis_options.yaml diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.lock b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.lock similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.lock rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.lock diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/gc.properties b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/gc.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/gc.properties rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/gc.properties diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.bin b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.bin similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.bin rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.bin diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.lock b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.lock similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.lock rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.lock diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.bin b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.bin similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.bin rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.bin diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.bin b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.bin similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.bin rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.bin diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.lock b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.lock similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.lock rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.lock diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/gc.properties b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/gc.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/8.5/gc.properties rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/8.5/gc.properties diff --git a/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock diff --git a/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.properties b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.properties rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.properties diff --git a/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.bin b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.bin similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.bin rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.bin diff --git a/mobile/plugins/onnx_dart/android/.gradle/config.properties b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/config.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/config.properties rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/config.properties diff --git a/mobile/plugins/onnx_dart/android/.gradle/file-system.probe b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/file-system.probe similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/file-system.probe rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/file-system.probe diff --git a/mobile/plugins/onnx_dart/android/.gradle/vcs-1/gc.properties b/mobile/apps/photos/plugins/onnx_dart/android/.gradle/vcs-1/gc.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/.gradle/vcs-1/gc.properties rename to mobile/apps/photos/plugins/onnx_dart/android/.gradle/vcs-1/gc.properties diff --git a/mobile/plugins/onnx_dart/android/build.gradle b/mobile/apps/photos/plugins/onnx_dart/android/build.gradle similarity index 100% rename from mobile/plugins/onnx_dart/android/build.gradle rename to mobile/apps/photos/plugins/onnx_dart/android/build.gradle diff --git a/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jar b/mobile/apps/photos/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jar rename to mobile/apps/photos/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jar diff --git a/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.properties b/mobile/apps/photos/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.properties rename to mobile/apps/photos/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.properties diff --git a/mobile/plugins/onnx_dart/android/gradlew b/mobile/apps/photos/plugins/onnx_dart/android/gradlew similarity index 100% rename from mobile/plugins/onnx_dart/android/gradlew rename to mobile/apps/photos/plugins/onnx_dart/android/gradlew diff --git a/mobile/plugins/onnx_dart/android/gradlew.bat b/mobile/apps/photos/plugins/onnx_dart/android/gradlew.bat similarity index 100% rename from mobile/plugins/onnx_dart/android/gradlew.bat rename to mobile/apps/photos/plugins/onnx_dart/android/gradlew.bat diff --git a/mobile/plugins/onnx_dart/android/local.properties b/mobile/apps/photos/plugins/onnx_dart/android/local.properties similarity index 100% rename from mobile/plugins/onnx_dart/android/local.properties rename to mobile/apps/photos/plugins/onnx_dart/android/local.properties diff --git a/mobile/plugins/onnx_dart/android/settings.gradle b/mobile/apps/photos/plugins/onnx_dart/android/settings.gradle similarity index 100% rename from mobile/plugins/onnx_dart/android/settings.gradle rename to mobile/apps/photos/plugins/onnx_dart/android/settings.gradle diff --git a/mobile/plugins/onnx_dart/android/src/main/AndroidManifest.xml b/mobile/apps/photos/plugins/onnx_dart/android/src/main/AndroidManifest.xml similarity index 100% rename from mobile/plugins/onnx_dart/android/src/main/AndroidManifest.xml rename to mobile/apps/photos/plugins/onnx_dart/android/src/main/AndroidManifest.xml diff --git a/mobile/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt b/mobile/apps/photos/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt similarity index 100% rename from mobile/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt rename to mobile/apps/photos/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt diff --git a/mobile/plugins/onnx_dart/lib/onnx_dart.dart b/mobile/apps/photos/plugins/onnx_dart/lib/onnx_dart.dart similarity index 100% rename from mobile/plugins/onnx_dart/lib/onnx_dart.dart rename to mobile/apps/photos/plugins/onnx_dart/lib/onnx_dart.dart diff --git a/mobile/plugins/onnx_dart/lib/onnx_dart_method_channel.dart b/mobile/apps/photos/plugins/onnx_dart/lib/onnx_dart_method_channel.dart similarity index 100% rename from mobile/plugins/onnx_dart/lib/onnx_dart_method_channel.dart rename to mobile/apps/photos/plugins/onnx_dart/lib/onnx_dart_method_channel.dart diff --git a/mobile/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart b/mobile/apps/photos/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart similarity index 100% rename from mobile/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart rename to mobile/apps/photos/plugins/onnx_dart/lib/onnx_dart_platform_interface.dart diff --git a/mobile/plugins/onnx_dart/pubspec.lock b/mobile/apps/photos/plugins/onnx_dart/pubspec.lock similarity index 100% rename from mobile/plugins/onnx_dart/pubspec.lock rename to mobile/apps/photos/plugins/onnx_dart/pubspec.lock diff --git a/mobile/plugins/onnx_dart/pubspec.yaml b/mobile/apps/photos/plugins/onnx_dart/pubspec.yaml similarity index 100% rename from mobile/plugins/onnx_dart/pubspec.yaml rename to mobile/apps/photos/plugins/onnx_dart/pubspec.yaml diff --git a/mobile/pubspec.lock b/mobile/apps/photos/pubspec.lock similarity index 100% rename from mobile/pubspec.lock rename to mobile/apps/photos/pubspec.lock diff --git a/mobile/pubspec.yaml b/mobile/apps/photos/pubspec.yaml similarity index 100% rename from mobile/pubspec.yaml rename to mobile/apps/photos/pubspec.yaml diff --git a/mobile/run.sh b/mobile/apps/photos/run.sh similarity index 100% rename from mobile/run.sh rename to mobile/apps/photos/run.sh diff --git a/mobile/scripts/app_init_perf_test.sh b/mobile/apps/photos/scripts/app_init_perf_test.sh similarity index 100% rename from mobile/scripts/app_init_perf_test.sh rename to mobile/apps/photos/scripts/app_init_perf_test.sh diff --git a/mobile/scripts/bump_version.sh b/mobile/apps/photos/scripts/bump_version.sh similarity index 100% rename from mobile/scripts/bump_version.sh rename to mobile/apps/photos/scripts/bump_version.sh diff --git a/mobile/scripts/create_tag.sh b/mobile/apps/photos/scripts/create_tag.sh similarity index 100% rename from mobile/scripts/create_tag.sh rename to mobile/apps/photos/scripts/create_tag.sh diff --git a/mobile/scripts/gallery_scroll_perf_test.sh b/mobile/apps/photos/scripts/gallery_scroll_perf_test.sh similarity index 100% rename from mobile/scripts/gallery_scroll_perf_test.sh rename to mobile/apps/photos/scripts/gallery_scroll_perf_test.sh diff --git a/mobile/test/utils/date_time_util_test.dart b/mobile/apps/photos/test/utils/date_time_util_test.dart similarity index 100% rename from mobile/test/utils/date_time_util_test.dart rename to mobile/apps/photos/test/utils/date_time_util_test.dart diff --git a/mobile/test/utils/parsing_loc_from_exif_test.dart b/mobile/apps/photos/test/utils/parsing_loc_from_exif_test.dart similarity index 100% rename from mobile/test/utils/parsing_loc_from_exif_test.dart rename to mobile/apps/photos/test/utils/parsing_loc_from_exif_test.dart diff --git a/mobile/test_driver/perf_driver.dart b/mobile/apps/photos/test_driver/perf_driver.dart similarity index 100% rename from mobile/test_driver/perf_driver.dart rename to mobile/apps/photos/test_driver/perf_driver.dart diff --git a/server/pkg/controller/filedata/controller.go b/server/pkg/controller/filedata/controller.go index ec269b690c..65cbef0033 100644 --- a/server/pkg/controller/filedata/controller.go +++ b/server/pkg/controller/filedata/controller.go @@ -267,9 +267,9 @@ func (c *Controller) fetchS3FileMetadata(ctx context.Context, row fileData.Row, // :todo:neeraj make it configurable to // specify preferred dc to read from // and fallback logic to read from different bucket when we fail to read from preferred dc - if dc == "b6" { - if array.StringInList("b5", row.ReplicatedBuckets) { - dc = "b5" + if dc == "b5" { + if array.StringInList("b6", row.ReplicatedBuckets) { + dc = "b6" } } opt := _defaultFetchConfig diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsx index b405e4cacc..28792966c3 100644 --- a/web/apps/auth/src/pages/_app.tsx +++ b/web/apps/auth/src/pages/_app.tsx @@ -1,9 +1,8 @@ import "@fontsource-variable/inter"; import { CssBaseline } from "@mui/material"; import { ThemeProvider } from "@mui/material/styles"; -import { getData } from "ente-accounts/services/accounts-db"; +import { savedLocalUser } from "ente-accounts/services/accounts-db"; import { accountLogout } from "ente-accounts/services/logout"; -import type { User } from "ente-accounts/services/user"; import { staticAppTitle } from "ente-base/app"; import { CustomHead } from "ente-base/components/Head"; import { @@ -32,8 +31,7 @@ const App: React.FC = ({ Component, pageProps }) => { const { showMiniDialog, miniDialogProps } = useAttributedMiniDialog(); useEffect(() => { - const user = getData("user") as User | undefined | null; - logStartupBanner(user?.id); + logStartupBanner(savedLocalUser()?.id); }, []); const logout = useCallback(() => { diff --git a/web/apps/cast/src/pages/slideshow.tsx b/web/apps/cast/src/pages/slideshow.tsx index 2bc1b32eff..4ecdb61e2a 100644 --- a/web/apps/cast/src/pages/slideshow.tsx +++ b/web/apps/cast/src/pages/slideshow.tsx @@ -9,7 +9,7 @@ import { imageURLGenerator } from "services/render"; const Page: React.FC = () => { const [isEmpty, setIsEmpty] = useState(false); - const [imageURL, setImageURL] = useState(); + const [imageURL, setImageURL] = useState(""); const router = useRouter(); diff --git a/web/apps/photos/eslint.config.mjs b/web/apps/photos/eslint.config.mjs index acc4236012..a1fe1f9296 100644 --- a/web/apps/photos/eslint.config.mjs +++ b/web/apps/photos/eslint.config.mjs @@ -1,38 +1,3 @@ import config from "ente-build-config/eslintrc-next-app.mjs"; -export default [ - ...config, - { ignores: [".next-desktop"] }, - { - rules: { - /* TODO: - * "This rule requires the `strictNullChecks` compiler option to be - * turned on to function correctly" - */ - "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", - "@typescript-eslint/no-unnecessary-condition": "off", - "@typescript-eslint/no-unsafe-assignment": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-unsafe-return": "off", - "@typescript-eslint/no-unsafe-member-access": "off", - "@typescript-eslint/no-unsafe-argument": "off", - "@typescript-eslint/no-unsafe-call": "off", - /** TODO: Disabled as we migrate, try to prune these again */ - "@typescript-eslint/no-floating-promises": "off", - "@typescript-eslint/no-unsafe-enum-comparison": "off", - "@typescript-eslint/no-unnecessary-type-assertion": "off", - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/prefer-promise-reject-errors": "off", - "@typescript-eslint/no-useless-constructor": "off", - "@typescript-eslint/require-await": "off", - "@typescript-eslint/no-misused-promises": "off", - "@typescript-eslint/restrict-template-expressions": "off", - "@typescript-eslint/no-inferrable-types": "off", - "@typescript-eslint/no-base-to-string": "off", - "@typescript-eslint/restrict-plus-operands": "off", - "@typescript-eslint/no-unused-expressions": "off", - "react-hooks/exhaustive-deps": "off", - "react-refresh/only-export-components": "off", - }, - }, -]; +export default [...config, { ignores: [".next-desktop"] }]; diff --git a/web/apps/photos/public/images/preview.jpg b/web/apps/photos/public/images/preview.jpg new file mode 100644 index 0000000000..2e3d9f1da4 Binary files /dev/null and b/web/apps/photos/public/images/preview.jpg differ diff --git a/web/apps/photos/src/components/AuthenticateUser.tsx b/web/apps/photos/src/components/AuthenticateUser.tsx index 7962c7d966..2fabc25d89 100644 --- a/web/apps/photos/src/components/AuthenticateUser.tsx +++ b/web/apps/photos/src/components/AuthenticateUser.tsx @@ -1,7 +1,11 @@ import { VerifyMasterPasswordForm } from "ente-accounts/components/VerifyMasterPasswordForm"; -import { getData } from "ente-accounts/services/accounts-db"; import { checkSessionValidity } from "ente-accounts/services/session"; -import type { KeyAttributes, User } from "ente-accounts/services/user"; +import { + ensureLocalUser, + ensureSavedKeyAttributes, + type KeyAttributes, + type LocalUser, +} from "ente-accounts/services/user"; import { TitledMiniDialog, type MiniDialogAttributes, @@ -26,13 +30,36 @@ type AuthenticateUserProps = ModalVisibilityProps & { * This is used as precursor to performing various sensitive or locked actions. */ export const AuthenticateUser: React.FC = ({ + open, + onClose, + ...rest +}) => ( + + + +); + +/** + * The contents of the {@link AuthenticateUser} dialog. + * + * See: [Note: MUI dialog state] for why this is a separate component. + */ +const AuthenticateUserDialogContents: React.FC = ({ open, onClose, onAuthenticate, }) => { - const { logout, showMiniDialog, onGenericError } = useBaseContext(); - const [user, setUser] = useState(); - const [keyAttributes, setKeyAttributes] = useState(); + const { logout, showMiniDialog } = useBaseContext(); + + const [user, setUser] = useState(); + const [keyAttributes, setKeyAttributes] = useState< + KeyAttributes | undefined + >(undefined); // This is a altered version of the check we do on the password verification // screen, except here it don't try to overwrite local state and instead @@ -53,58 +80,32 @@ export const AuthenticateUser: React.FC = ({ // potentially transient issues. log.warn("Ignoring error when determining session validity", e); } - }, [logout, showMiniDialog]); + }, [logout, showMiniDialog, onClose]); useEffect(() => { - const main = async () => { - try { - const user = getData("user"); - if (!user) { - throw Error("User not found"); - } - setUser(user); - const keyAttributes = getData("keyAttributes"); - if ( - (!user?.token && !user?.encryptedToken) || - (keyAttributes && !keyAttributes.memLimit) - ) { - throw Error("User not logged in"); - } else if (!keyAttributes) { - throw Error("Key attributes not found"); - } else { - setKeyAttributes(keyAttributes); - } - } catch (e) { - onClose(); - onGenericError(e); - } - }; - main(); + setUser(ensureLocalUser()); + setKeyAttributes(ensureSavedKeyAttributes()); }, []); useEffect(() => { - // Do a non-blocking validation of the session, but show the dialog to - // the user. + // Do a non-blocking validation of the session whenever we show the + // dialog to the user. if (open) void validateSession(); - }, [open]); + }, [open, validateSession]); + + // They'll be read from disk shortly. + if (!user || !keyAttributes) return <>; return ( - - { - onClose(); - onAuthenticate(); - }} - /> - + { + onClose(); + onAuthenticate(); + }} + /> ); }; diff --git a/web/apps/photos/src/components/pages/gallery/Avatar.tsx b/web/apps/photos/src/components/Avatar.tsx similarity index 84% rename from web/apps/photos/src/components/pages/gallery/Avatar.tsx rename to web/apps/photos/src/components/Avatar.tsx index 31da162bb0..05feac15bf 100644 --- a/web/apps/photos/src/components/pages/gallery/Avatar.tsx +++ b/web/apps/photos/src/components/Avatar.tsx @@ -1,7 +1,9 @@ +// TODO: Audit this file +/* eslint-disable react-hooks/exhaustive-deps */ import { styled } from "@mui/material"; import type { LocalUser } from "ente-accounts/services/user"; import log from "ente-base/log"; -import { EnteFile } from "ente-media/file"; +import { type EnteFile } from "ente-media/file"; import { avatarBackgroundColor, avatarBackgroundColorPublicCollectedFile, @@ -20,7 +22,7 @@ interface AvatarProps { const AvatarBase = styled("div")<{ colorCode: string; size: number; - opacity: number; + opacity: number | undefined; }>` width: ${({ size }) => `${size}px`}; height: ${({ size }) => `${size}px`}; @@ -43,21 +45,21 @@ const Avatar: React.FC = ({ emailByUserID, }) => { const [colorCode, setColorCode] = useState(""); - const [userLetter, setUserLetter] = useState(""); + const [userLetter, setUserLetter] = useState(""); useLayoutEffect(() => { try { if (!file) { return; } - if (file.ownerID !== user.id) { + if (file.ownerID !== user?.id) { // getting email from in-memory id-email map - const email = emailByUserID.get(file.ownerID); + const email = emailByUserID?.get(file.ownerID); if (!email) { log.error("email not found in userIDToEmailMap"); return; } - setUserLetter(email[0].toUpperCase()); + setUserLetter(email[0]?.toUpperCase()); setColorCode(avatarBackgroundColor(file.ownerID)); } else if (file.ownerID === user.id) { const uploaderName = file.pubMagicMetadata?.data.uploaderName; @@ -67,7 +69,7 @@ const Avatar: React.FC = ({ ); return; } - setUserLetter(uploaderName[0].toUpperCase()); + setUserLetter(uploaderName[0]?.toUpperCase()); setColorCode(avatarBackgroundColorPublicCollectedFile); } } catch (e) { @@ -82,7 +84,7 @@ const Avatar: React.FC = ({ } if (user?.email === email) { - setUserLetter(email[0].toUpperCase()); + setUserLetter(email[0]?.toUpperCase()); setColorCode(avatarBackgroundColorPublicCollectedFile); return; } @@ -94,7 +96,7 @@ const Avatar: React.FC = ({ log.error(`ID not found for email: ${email}`); return; } - setUserLetter(email[0].toUpperCase()); + setUserLetter(email[0]?.toUpperCase()); setColorCode(avatarBackgroundColor(id)); } catch (e) { log.error("AvatarIcon.tsx - useLayoutEffect email failed", e); diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx index f14f0d7cc8..672ab6b9ba 100644 --- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx +++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx @@ -20,6 +20,7 @@ import { loadCast } from "ente-new/photos/utils/chromecast-sender"; import { t } from "i18next"; import React, { useCallback, useEffect, useState } from "react"; import { Trans } from "react-i18next"; +import { z } from "zod/v4"; type AlbumCastDialogProps = ModalVisibilityProps & { /** The collection that we want to cast. */ @@ -40,11 +41,15 @@ export const AlbumCastDialog: React.FC = ({ ); /** - * [Note: MUI dialog state reset] + * [Note: MUI dialog state] * - * Keep the dialog contents in a separate component so that they get rendered + * In some cases we keep the dialog contents in a separate component so that (a) + * they get rendered only when the dialog is shown, and (b) they get rendered * afresh when the dialog is unmounted and then shown again. * + * Keeping it separate both resets the state of the component, and also ensures + * that the effects run again when the dialog is shown. + * * Details: * * Any state we keep inside the React component that a MUI Dialog as a child @@ -58,7 +63,8 @@ export const AlbumCastDialog: React.FC = ({ * circumstance. If it is undesirable, there are multiple approaches: * https://github.com/mui/material-ui/issues/16325 * - * One of those is to keep the dialog contents in a separate component. + * One of those approaches is to keep the dialog contents in a separate + * component. */ export const AlbumCastDialogContents: React.FC = ({ open, @@ -82,6 +88,7 @@ export const AlbumCastDialogContents: React.FC = ({ // (effectively, only Chrome). // // Override, otherwise tsc complains about unknown property `chrome`. + // @ts-expect-error TODO: why is this needed // eslint-disable-next-line @typescript-eslint/dot-notation setBrowserCanCast(typeof window["chrome"] != "undefined"); }, []); @@ -108,7 +115,7 @@ export const AlbumCastDialogContents: React.FC = ({ useEffect(() => { if (view == "auto") { - loadCast().then(async (cast) => { + void loadCast().then(async (cast) => { const instance = cast.framework.CastContext.getInstance(); try { await instance.requestSession(); @@ -117,37 +124,35 @@ export const AlbumCastDialogContents: React.FC = ({ log.error("Error requesting session", e); return; } - const session = instance.getCurrentSession(); + const session = instance.getCurrentSession()!; session.addMessageListener( "urn:x-cast:pair-request", (_, message) => { - const data = message; - const obj = JSON.parse(data); - const code = obj.code; + const { code } = CastPairRequest.parse( + JSON.parse(message), + ); - if (code) { - publishCastPayload(`${code}`, collection) - .then(() => { - setView("choose"); - onClose(); - }) - .catch((e: unknown) => { - log.error("Error casting to TV", e); - setView("auto-cast-error"); - }); - } + void publishCastPayload(code, collection) + .then(() => { + setView("choose"); + onClose(); + }) + .catch((e: unknown) => { + log.error("Error casting to TV", e); + setView("auto-cast-error"); + }); }, ); const collectionID = collection.id; - session + void session .sendMessage("urn:x-cast:pair-request", { collectionID }) .then(() => { log.debug(() => "urn:x-cast:pair-request sent"); }); }); } - }, [view, collection]); + }, [onClose, view, collection]); useEffect(() => { // Make API call to clear all previous sessions (if any) whenever the @@ -243,3 +248,8 @@ export const AlbumCastDialogContents: React.FC = ({ ); }; + +/** + * Zod schema for the "x-cast:pair-request" payload sent by the cast app. + */ +const CastPairRequest = z.object({ code: z.string() }); diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsx index ca2a032a35..aeb1797e35 100644 --- a/web/apps/photos/src/components/Collections/AllAlbums.tsx +++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx @@ -1,3 +1,4 @@ +// TODO: Audit this file. import CloseIcon from "@mui/icons-material/Close"; import { Box, @@ -18,15 +19,19 @@ import { LargeTileButton, LargeTileTextOverlay, } from "ente-new/photos/components/Tiles"; -import { +import type { CollectionsSortBy, - type CollectionSummary, + CollectionSummary, } from "ente-new/photos/services/collection-summary"; import { t } from "i18next"; import memoize from "memoize-one"; import React, { useEffect, useRef, useState } from "react"; import AutoSizer from "react-virtualized-auto-sizer"; -import { areEqual, FixedSizeList, ListChildComponentProps } from "react-window"; +import { + areEqual, + FixedSizeList, + type ListChildComponentProps, +} from "react-window"; interface AllAlbums { open: boolean; @@ -97,7 +102,15 @@ const AllAlbumsDialog = styled(Dialog)(({ theme }) => ({ }, })); -const Title = ({ +type TitleProps = { collectionCount: number } & Pick< + AllAlbums, + | "onClose" + | "collectionsSortBy" + | "onChangeCollectionsSortBy" + | "isInHiddenSection" +>; + +const Title: React.FC = ({ onClose, collectionCount, collectionsSortBy, @@ -150,7 +163,10 @@ interface ItemData { // If we were only passing a single, stable value (e.g. items), // We could just pass the value directly. const createItemData = memoize((collectionRowList, onCollectionClick) => ({ + // TODO: + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment collectionRowList, + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment onCollectionClick, })); @@ -166,11 +182,11 @@ const AlbumsRow = React.memo( isScrolling, }: ListChildComponentProps) => { const { collectionRowList, onCollectionClick } = data; - const collectionRow = collectionRowList[index]; + const collectionRow = collectionRowList[index]!; return (
- {collectionRow.map((item: any) => ( + {collectionRow.map((item) => ( void; + onCollectionClick: (id: number) => void; } const AllAlbumsContent: React.FC = ({ @@ -199,7 +215,9 @@ const AllAlbumsContent: React.FC = ({ const refreshInProgress = useRef(false); const shouldRefresh = useRef(false); - const [collectionRowList, setCollectionRowList] = useState([]); + const [collectionRowList, setCollectionRowList] = useState< + CollectionSummary[][] + >([]); const columns = isTwoColumn ? 2 : 3; const maxListContentHeight = @@ -208,10 +226,7 @@ const AllAlbumsContent: React.FC = ({ 32; /* padding above first and below last row */ useEffect(() => { - if (!collectionSummaries) { - return; - } - const main = async () => { + const main = () => { if (refreshInProgress.current) { shouldRefresh.current = true; return; @@ -227,7 +242,7 @@ const AllAlbumsContent: React.FC = ({ i < columns && index < collectionSummaries.length; i++ ) { - collectionRow.push(collectionSummaries[index++]); + collectionRow.push(collectionSummaries[index++]!); } collectionRowList.push(collectionRow); } diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx index ba532a8c1d..8ed21cdab9 100644 --- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx +++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx @@ -15,7 +15,6 @@ import UnarchiveIcon from "@mui/icons-material/Unarchive"; import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined"; import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined"; import { Box, IconButton, Menu, Stack, Tooltip } from "@mui/material"; -import { assertionFailed } from "ente-base/assert"; import { SpacedRow } from "ente-base/components/containers"; import { ActivityIndicator } from "ente-base/components/mui/ActivityIndicator"; import { @@ -25,6 +24,9 @@ import { import { SingleInputDialog } from "ente-base/components/SingleInputDialog"; import { useModalVisibility } from "ente-base/components/utils/modal"; import { useBaseContext } from "ente-base/context"; +import type { AddSaveGroup } from "ente-gallery/components/utils/save-groups"; +import { downloadAndSaveCollectionFiles } from "ente-gallery/services/save"; +import { uniqueFilesByID } from "ente-gallery/utils/file"; import { CollectionOrder, type Collection } from "ente-media/collection"; import { ItemVisibility } from "ente-media/file-metadata"; import type { RemotePullOpts } from "ente-new/photos/components/gallery"; @@ -33,7 +35,9 @@ import { GalleryItemsSummary, } from "ente-new/photos/components/gallery/ListHeader"; import { + defaultHiddenCollectionUserFacingName, deleteCollection, + findDefaultHiddenCollectionIDs, isHiddenCollection, leaveSharedCollection, renameCollection, @@ -46,19 +50,19 @@ import { type CollectionSummary, type CollectionSummaryType, } from "ente-new/photos/services/collection-summary"; +import { + savedCollectionFiles, + savedCollections, +} from "ente-new/photos/services/photos-fdb"; import { emptyTrash } from "ente-new/photos/services/trash"; import { usePhotosAppContext } from "ente-new/photos/types/context"; import { t } from "i18next"; import React, { useCallback, useRef } from "react"; import { Trans } from "react-i18next"; -import { SetFilesDownloadProgressAttributesCreator } from "types/gallery"; -import { - downloadCollectionHelper, - downloadDefaultHiddenCollectionHelper, -} from "utils/collection"; export interface CollectionHeaderProps { collectionSummary: CollectionSummary; + // TODO: This can be undefined activeCollection: Collection; setActiveCollectionID: (collectionID: number) => void; isActiveCollectionDownloadInProgress: () => boolean; @@ -69,7 +73,11 @@ export interface CollectionHeaderProps { onRemotePull: (opts?: RemotePullOpts) => Promise; onCollectionShare: () => void; onCollectionCast: () => void; - setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator; + /** + * A function that can be used to create a UI notification to track the + * progress of user-initiated download, and to cancel it if needed. + */ + onAddSaveGroup: AddSaveGroup; } /** @@ -78,10 +86,6 @@ export interface CollectionHeaderProps { */ export const CollectionHeader: React.FC = (props) => { const { collectionSummary } = props; - if (!collectionSummary) { - assertionFailed("Gallery/CollectionHeader without a collection"); - return <>; - } const { name, type, attributes, fileCount } = collectionSummary; @@ -119,19 +123,19 @@ const CollectionHeaderOptions: React.FC = ({ onRemotePull, onCollectionShare, onCollectionCast, - setFilesDownloadProgressAttributesCreator, + onAddSaveGroup, isActiveCollectionDownloadInProgress, }) => { const { showMiniDialog, onGenericError } = useBaseContext(); const { showLoadingBar, hideLoadingBar } = usePhotosAppContext(); - const overflowMenuIconRef = useRef(null); + const overflowMenuIconRef = useRef(null); const { show: showSortOrderMenu, props: sortOrderMenuVisibilityProps } = useModalVisibility(); const { show: showAlbumNameInput, props: albumNameInputVisibilityProps } = useModalVisibility(); - const { type: collectionSummaryType } = collectionSummary; + const { type: collectionSummaryType, fileCount } = collectionSummary; /** * Return a new function by wrapping an async function in an error handler, @@ -221,21 +225,35 @@ const CollectionHeaderOptions: React.FC = ({ setActiveCollectionID(PseudoCollectionID.all); }); - const _downloadCollection = () => { + const _downloadCollection = async () => { if (isActiveCollectionDownloadInProgress()) return; if (collectionSummaryType == "hiddenItems") { - return downloadDefaultHiddenCollectionHelper( - setFilesDownloadProgressAttributesCreator, + const defaultHiddenCollectionsIDs = findDefaultHiddenCollectionIDs( + await savedCollections(), + ); + const collectionFiles = await savedCollectionFiles(); + const defaultHiddenCollectionFiles = uniqueFilesByID( + collectionFiles.filter((file) => + defaultHiddenCollectionsIDs.has(file.collectionID), + ), + ); + await downloadAndSaveCollectionFiles( + defaultHiddenCollectionUserFacingName, + PseudoCollectionID.hiddenItems, + defaultHiddenCollectionFiles, + true, + onAddSaveGroup, ); } else { - return downloadCollectionHelper( + await downloadAndSaveCollectionFiles( + activeCollection.name, activeCollection.id, - setFilesDownloadProgressAttributesCreator( - activeCollection.name, - activeCollection.id, - isHiddenCollection(activeCollection), + (await savedCollectionFiles()).filter( + (file) => file.collectionID == activeCollection.id, ), + isHiddenCollection(activeCollection), + onAddSaveGroup, ); } }; @@ -312,13 +330,17 @@ const CollectionHeaderOptions: React.FC = ({ case "userFavorites": menuOptions = [ - - {t("download_favorites")} - , + fileCount && ( + + {t("download_favorites")} + + ), = ({ case "uncategorized": menuOptions = [ - - {t("download_uncategorized")} - , + fileCount && ( + + {t("download_uncategorized")} + + ), ]; break; case "hiddenItems": menuOptions = [ - - {t("download_hidden_items")} - , + fileCount && ( + + {t("download_hidden_items")} + + ), ]; break; @@ -487,6 +513,8 @@ const CollectionHeaderOptions: React.FC = ({ break; } + const validMenuOptions = menuOptions.filter((o) => !!o); + return ( = ({ onDownloadClick={downloadCollection} onShareClick={onCollectionShare} /> - - } - > - {...menuOptions} - + {validMenuOptions.length > 0 && ( + + } + > + {validMenuOptions} + + )} = ({ {...albumNameInputVisibilityProps} title={t("rename_album")} label={t("album_name")} + // TODO: Need to ensure this cannot be undefined when we reach here + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition initialValue={activeCollection?.name} submitButtonColor="primary" submitButtonTitle={t("rename")} @@ -547,6 +580,7 @@ const QuickOptions: React.FC = ({ )} {showDownloadQuickOption(collectionSummary) && + collectionSummary.fileCount > 0 && (isDownloadInProgress() ? ( ) : ( @@ -674,7 +708,7 @@ const DownloadOption: React.FC< interface CollectionSortOrderMenuProps { open: boolean; onClose: () => void; - overflowMenuIconRef: React.RefObject; + overflowMenuIconRef: React.RefObject; onAscClick: () => void; onDescClick: () => void; } diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx index 0bd3871d59..e22740e1eb 100644 --- a/web/apps/photos/src/components/Collections/CollectionShare.tsx +++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx @@ -1,3 +1,5 @@ +// TODO: Audit this file +/* eslint-disable @typescript-eslint/no-unnecessary-condition */ import AddIcon from "@mui/icons-material/Add"; import AdminPanelSettingsIcon from "@mui/icons-material/AdminPanelSettings"; import BlockIcon from "@mui/icons-material/Block"; @@ -15,7 +17,7 @@ import WorkspacesIcon from "@mui/icons-material/Workspaces"; import { Dialog, Stack, styled, Typography } from "@mui/material"; import NumberAvatar from "@mui/material/Avatar"; import TextField from "@mui/material/TextField"; -import Avatar from "components/pages/gallery/Avatar"; +import Avatar from "components/Avatar"; import { type LocalUser } from "ente-accounts/services/user"; import { LoadingButton } from "ente-base/components/mui/LoadingButton"; import { @@ -71,13 +73,7 @@ import { usePhotosAppContext } from "ente-new/photos/types/context"; import { wait } from "ente-utils/promise"; import { useFormik } from "formik"; import { t } from "i18next"; -import React, { - useCallback, - useEffect, - useMemo, - useRef, - useState, -} from "react"; +import React, { useCallback, useEffect, useMemo, useState } from "react"; import { Trans } from "react-i18next"; import { z } from "zod/v4"; @@ -217,11 +213,13 @@ const SharingDetails: React.FC = ({ const collaborators = collection.sharees .filter((sharee) => sharee.role == "COLLABORATOR") - .map((sharee) => sharee.email); + .map((sharee) => sharee.email) + .filter((email) => email !== undefined); const viewers = collection.sharees .filter((sharee) => sharee.role == "VIEWER") - .map((sharee) => sharee.email); + .map((sharee) => sharee.email) + .filter((email) => email !== undefined); const userOrEmail = (email: string) => email == user.email ? t("you") : email; @@ -240,7 +238,7 @@ const SharingDetails: React.FC = ({ {...{ user, emailByUserID }} /> } - label={isOwner ? t("you") : ownerEmail} + label={isOwner ? t("you") : (ownerEmail ?? "")} /> @@ -325,19 +323,20 @@ const EmailShare: React.FC = ({ const { show: showManageEmail, props: manageEmailVisibilityProps } = useModalVisibility(); - const [participantRole, setParticipantRole] = useState< - CollectionNewParticipantRole | undefined - >(undefined); + const [participantRole, setParticipantRole] = + // Initial value is arbitrary, it always gets reset before + // `showAddParticipant` is called. + useState("VIEWER"); const showAddViewer = useCallback(() => { setParticipantRole("VIEWER"); showAddParticipant(); }, [showAddParticipant]); - const showAddCollaborator = () => { + const showAddCollaborator = useCallback(() => { setParticipantRole("COLLABORATOR"); showAddParticipant(); - }; + }, [showAddParticipant]); const participantCount = collection.sharees.length; @@ -498,7 +497,7 @@ const AddParticipant: React.FC = ({ email != user.email && !collection?.sharees?.find((value) => value.email == email), ); - }, [shareSuggestionEmails, collection.sharees]); + }, [user.email, shareSuggestionEmails, collection.sharees]); const handleRootClose = () => { onClose(); @@ -607,7 +606,7 @@ const AddParticipantForm: React.FC = ({ onSubmit, }) => { const formik = useFormik({ - initialValues: { email: "", selectedEmails: [] }, + initialValues: { email: "", selectedEmails: new Array() }, onSubmit: async ({ email, selectedEmails }, { setFieldError }) => { const setEmailFieldError = (message: string) => setFieldError("email", message); @@ -630,7 +629,19 @@ const AddParticipantForm: React.FC = ({ }); const resetExistingSelection = () => - formik.setFieldValue("selectedEmails", []); + void formik.setFieldValue("selectedEmails", []); + + const createToggleEmail = (email: string) => { + return () => { + const emails = formik.values.selectedEmails; + void formik.setFieldValue( + "selectedEmails", + emails.includes(email) + ? emails.filter((e) => e != email) + : emails.concat(email), + ); + }; + }; return (
@@ -664,18 +675,7 @@ const AddParticipantForm: React.FC = ({ { - const emails = - formik.values.selectedEmails; - formik.setFieldValue( - "selectedEmails", - emails.includes(email) - ? emails.filter( - (e) => e != email, - ) - : emails.concat(email), - ); - }} + onClick={createToggleEmail(email)} label={email} startIcon={ = ({ props: manageParticipantVisibilityProps, } = useModalVisibility(); - const participantType = useRef<"COLLABORATOR" | "VIEWER">(null); + const [participantRole, setParticipantRole] = + useState("VIEWER"); + const [selectedParticipant, setSelectedParticipant] = useState< + CollectionUser | undefined + >(undefined); - const selectedParticipant = useRef(null); - - const openAddCollab = () => { - participantType.current = "COLLABORATOR"; + const showAddViewer = useCallback(() => { + setParticipantRole("VIEWER"); showAddParticipant(); - }; + }, [showAddParticipant]); - const openAddViewer = () => { - participantType.current = "VIEWER"; + const showAddCollaborator = useCallback(() => { + setParticipantRole("COLLABORATOR"); showAddParticipant(); - }; + }, [showAddParticipant]); + + const selectAndManageParticipant = useCallback( + (email: string) => { + setSelectedParticipant( + collection.sharees.find((sharee) => sharee.email == email), + ); + showManageParticipant(); + }, + [collection, showManageParticipant], + ); const handleRootClose = () => { onClose(); @@ -770,20 +782,14 @@ const ManageEmailShare: React.FC = ({ const isOwner = user.id == collection.owner?.id; const collaborators = collection.sharees - ?.filter((sharee) => sharee.role == "COLLABORATOR") - .map((sharee) => sharee.email); + .filter((sharee) => sharee.role == "COLLABORATOR") + .map((sharee) => sharee.email) + .filter((email) => email !== undefined); - const viewers = - collection.sharees - ?.filter((sharee) => sharee.role == "VIEWER") - .map((sharee) => sharee.email) || []; - - const openManageParticipant = (email) => { - selectedParticipant.current = collection.sharees.find( - (sharee) => sharee.email === email, - ); - showManageParticipant(); - }; + const viewers = collection.sharees + .filter((sharee) => sharee.role == "VIEWER") + .map((sharee) => sharee.email) + .filter((email) => email !== undefined); return ( <> @@ -807,7 +813,7 @@ const ManageEmailShare: React.FC = ({ {...{ user, emailByUserID }} /> } - label={isOwner ? t("you") : ownerEmail} + label={isOwner ? t("you") : (ownerEmail ?? "")} /> @@ -821,7 +827,7 @@ const ManageEmailShare: React.FC = ({ - openManageParticipant(item) + selectAndManageParticipant(item) } label={item} startIcon={ @@ -838,7 +844,7 @@ const ManageEmailShare: React.FC = ({ } - onClick={openAddCollab} + onClick={showAddCollaborator} label={ collaborators?.length ? t("add_more") @@ -857,7 +863,7 @@ const ManageEmailShare: React.FC = ({ - openManageParticipant(item) + selectAndManageParticipant(item) } label={item} startIcon={ @@ -873,7 +879,7 @@ const ManageEmailShare: React.FC = ({ ))} } - onClick={openAddViewer} + onClick={showAddViewer} label={ viewers?.length ? t("add_more") @@ -894,12 +900,12 @@ const ManageEmailShare: React.FC = ({ onRootClose, onRemotePull, }} - role={participantType.current} + role={participantRole} /> ); @@ -908,7 +914,13 @@ const ManageEmailShare: React.FC = ({ type ManageParticipantProps = ModalVisibilityProps & { onRootClose: () => void; wrap: (f: () => Promise) => () => void; - selectedParticipant: CollectionUser; + /** + * The participant in the collection who we're trying to manage. + * + * The caller semantically guarantees that participant will always be set + * when {@link open} is `true`, but the types don't reflect this. + */ + participant: CollectionUser | undefined; } & Pick; const ManageParticipant: React.FC = ({ @@ -916,7 +928,7 @@ const ManageParticipant: React.FC = ({ onClose, onRootClose, collection, - selectedParticipant, + participant, wrap, onRemotePull, }) => { @@ -928,7 +940,9 @@ const ManageParticipant: React.FC = ({ }; const unshare = wrap(() => - unshareCollection(collection.id, selectedParticipant.email), + // We should have a participant (with a valid email) if this ends up + // being called. + unshareCollection(collection.id, participant!.email!), ); const handleRemove = () => { @@ -952,9 +966,8 @@ const ManageParticipant: React.FC = ({ values={{ selectedEmail }} /> ); - buttonText = t("confirm_convert_to_viewer"); - } else if (newRole == "COLLABORATOR") { + } else { message = t("change_permission_to_collaborator", { selectedEmail, }); @@ -975,13 +988,13 @@ const ManageParticipant: React.FC = ({ newRole: CollectionNewParticipantRole, ) => { await shareCollection(collection, selectedEmail, newRole); - selectedParticipant.role = newRole; + participant!.role = newRole; await onRemotePull({ silent: true }); }; const createOnRoleChange = (role: CollectionNewParticipantRole) => () => { - if (role == selectedParticipant.role) return; - const { email } = selectedParticipant; + if (role == participant!.role) return; + const email = participant!.email!; confirmChangeRolePermission(email, role, () => updateCollectionRole(email, role), ); @@ -993,7 +1006,7 @@ const ManageParticipant: React.FC = ({ message: ( ), continue: { @@ -1004,7 +1017,7 @@ const ManageParticipant: React.FC = ({ }); }; - if (!selectedParticipant) { + if (!participant) { return <>; } @@ -1014,7 +1027,7 @@ const ManageParticipant: React.FC = ({ {...{ open, onClose }} onRootClose={handleRootClose} title={t("manage")} - caption={selectedParticipant.email} + caption={participant.email} > @@ -1032,7 +1045,7 @@ const ManageParticipant: React.FC = ({ label={"Collaborator"} startIcon={} endIcon={ - selectedParticipant.role === "COLLABORATOR" && ( + participant.role === "COLLABORATOR" && ( ) } @@ -1045,9 +1058,7 @@ const ManageParticipant: React.FC = ({ label={"Viewer"} startIcon={} endIcon={ - selectedParticipant.role == "VIEWER" && ( - - ) + participant.role == "VIEWER" && } /> @@ -1094,43 +1105,47 @@ const PublicShare: React.FC = ({ setBlockingLoad, onRemotePull, }) => { - const [publicShareUrl, setPublicShareUrl] = useState(null); - const [publicURL, setPublicURL] = useState( - undefined, - ); const { show: showPublicLinkCreated, props: publicLinkCreatedVisibilityProps, } = useModalVisibility(); + const [publicURL, setPublicURL] = useState( + undefined, + ); + const [resolvedURL, setResolvedURL] = useState( + undefined, + ); + useEffect(() => { setPublicURL(collection.publicURLs[0]); }, [collection]); useEffect(() => { if (publicURL?.url) { - appendCollectionKeyToShareURL(publicURL.url, collection.key).then( - (url) => setPublicShareUrl(url), - ); + void appendCollectionKeyToShareURL( + publicURL.url, + collection.key, + ).then((url) => setResolvedURL(url)); } else { - setPublicShareUrl(null); + setResolvedURL(undefined); } - }, [publicURL]); + }, [collection.key, publicURL]); const handleCopyLink = () => { - navigator.clipboard.writeText(publicShareUrl); + if (resolvedURL) void navigator.clipboard.writeText(resolvedURL); }; return ( <> - {publicURL ? ( + {publicURL && resolvedURL ? ( = ({ ); }; -type ManagePublicShareProps = { - onRootClose: () => void; - collection: Collection; - publicURL: PublicURL; - setPublicURL: (publicURL: PublicURL | undefined) => void; - publicShareUrl: string; -} & Pick< - CollectionShareProps, - "collection" | "setBlockingLoad" | "onRemotePull" ->; +type ManagePublicShareProps = { onRootClose: () => void } & Pick< + ManagePublicShareOptionsProps, + "publicURL" | "setPublicURL" | "resolvedURL" +> & + Pick< + CollectionShareProps, + "collection" | "setBlockingLoad" | "onRemotePull" + >; const ManagePublicShare: React.FC = ({ onRootClose, collection, publicURL, setPublicURL, - publicShareUrl, + resolvedURL, setBlockingLoad, onRemotePull, }) => { @@ -1254,7 +1267,7 @@ const ManagePublicShare: React.FC = ({ props: managePublicShareVisibilityProps, } = useModalVisibility(); - const [copied, handleCopyLink] = useClipboardCopy(publicShareUrl); + const [copied, handleCopyLink] = useClipboardCopy(resolvedURL); return ( <> @@ -1300,7 +1313,7 @@ const ManagePublicShare: React.FC = ({ onRootClose, collection, publicURL, - publicShareUrl, + resolvedURL, setPublicURL, setBlockingLoad, onRemotePull, @@ -1310,15 +1323,18 @@ const ManagePublicShare: React.FC = ({ ); }; -const isLinkExpired = (validTill: number) => { - return validTill && validTill < Date.now() * 1000; -}; +const isLinkExpired = (validTill: number) => + validTill > 0 && validTill < Date.now() * 1000; type ManagePublicShareOptionsProps = ModalVisibilityProps & { onRootClose: () => void; publicURL: PublicURL; setPublicURL: (publicURL: PublicURL | undefined) => void; - publicShareUrl: string; + /** + * The "resolved" publicURL, with both the full origin and the secret + * fragment appended to it. + */ + resolvedURL: string; } & Pick< CollectionShareProps, "collection" | "setBlockingLoad" | "onRemotePull" @@ -1331,13 +1347,13 @@ const ManagePublicShareOptions: React.FC = ({ collection, publicURL, setPublicURL, - publicShareUrl, + resolvedURL, setBlockingLoad, onRemotePull, }) => { - const [sharableLinkError, setSharableLinkError] = useState(null); + const [errorMessage, setErrorMessage] = useState(""); - const [copied, handleCopyLink] = useClipboardCopy(publicShareUrl); + const [copied, handleCopyLink] = useClipboardCopy(resolvedURL); const handleRootClose = () => { onClose(); @@ -1347,27 +1363,29 @@ const ManagePublicShareOptions: React.FC = ({ const handlePublicURLUpdate = async ( updates: UpdatePublicURLAttributes, ) => { + setBlockingLoad(true); + setErrorMessage(""); try { - setBlockingLoad(true); setPublicURL(await updatePublicURL(collection.id, updates)); void onRemotePull({ silent: true }); } catch (e) { log.error("Could not update public link", e); - setSharableLinkError(t("generic_error")); + setErrorMessage(t("generic_error")); } finally { setBlockingLoad(false); } }; const handleRemovePublicLink = async () => { + setBlockingLoad(true); + setErrorMessage(""); try { - setBlockingLoad(true); await deleteShareURL(collection.id); setPublicURL(undefined); void onRemotePull({ silent: true }); onClose(); } catch (e) { log.error("Failed to remove public link", e); - setSharableLinkError(t("generic_error")); + setErrorMessage(t("generic_error")); } finally { setBlockingLoad(false); } @@ -1426,12 +1444,12 @@ const ManagePublicShareOptions: React.FC = ({ label={t("remove_link")} /> - {sharableLinkError && ( + {errorMessage && ( - {sharableLinkError} + {errorMessage} )} @@ -1461,7 +1479,7 @@ const ManagePublicCollect: React.FC = ({ onUpdate, }) => { const handleFileDownloadSetting = () => { - onUpdate({ enableCollect: !publicURL.enableCollect }); + void onUpdate({ enableCollect: !publicURL.enableCollect }); }; return ( @@ -1652,7 +1670,9 @@ const ManageDownloadAccess: React.FC = ({ }, }); } else { - onUpdate({ enableDownload: true }); + // TODO: Various calls to onUpdate return promises. The UI should + // handle the in-progress states where needed. + void onUpdate({ enableDownload: true }); } }; @@ -1673,7 +1693,7 @@ const ManageLinkPassword: React.FC = ({ const { show: showSetPassword, props: setPasswordVisibilityProps } = useModalVisibility(); - const handlePasswordChangeSetting = async () => { + const handlePasswordChangeSetting = () => { if (publicURL.passwordEnabled) { showMiniDialog({ title: t("disable_password"), diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx index 57854c0ce2..d7cddb8291 100644 --- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx +++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx @@ -1,16 +1,25 @@ +// TODO: Audit this file import { AllAlbums } from "components/Collections/AllAlbums"; import { CollectionShare, type CollectionShareProps, } from "components/Collections/CollectionShare"; -import { TimeStampListItem } from "components/FileList"; +import type { FileListHeaderOrFooter } from "components/FileList"; import { useModalVisibility } from "ente-base/components/utils/modal"; +import { + isSaveCancelled, + isSaveComplete, + type SaveGroup, +} from "ente-gallery/components/utils/save-groups"; +import { sortFiles } from "ente-gallery/utils/file"; import type { Collection } from "ente-media/collection"; +import type { EnteFile } from "ente-media/file"; import { GalleryBarImpl, type GalleryBarImplProps, } from "ente-new/photos/components/gallery/BarImpl"; import { PeopleHeader } from "ente-new/photos/components/gallery/PeopleHeader"; +import type { CollectionSummary } from "ente-new/photos/services/collection-summary"; import { collectionsSortBy, haveOnlySystemCollections, @@ -20,12 +29,6 @@ import { } from "ente-new/photos/services/collection-summary"; import { includes } from "ente-utils/type-guards"; import React, { useCallback, useEffect, useMemo, useState } from "react"; -import { sortCollectionSummaries } from "services/collectionService"; -import { - FilesDownloadProgressAttributes, - isFilesDownloadCancelled, - isFilesDownloadCompleted, -} from "../FilesDownloadProgress"; import { AlbumCastDialog } from "./AlbumCastDialog"; import { CollectionHeader, @@ -47,12 +50,9 @@ type GalleryBarAndListHeaderProps = Omit< barCollectionSummaries: CollectionSummaries; activeCollection: Collection; setActiveCollectionID: (collectionID: number) => void; - setPhotoListHeader: (value: TimeStampListItem) => void; - filesDownloadProgressAttributesList: FilesDownloadProgressAttributes[]; -} & Pick< - CollectionHeaderProps, - "setFilesDownloadProgressAttributesCreator" | "onRemotePull" - > & + setFileListHeader: (header: FileListHeaderOrFooter) => void; + saveGroups: SaveGroup[]; +} & Pick & Pick< CollectionShareProps, "user" | "emailByUserID" | "shareSuggestionEmails" | "setBlockingLoad" @@ -63,11 +63,11 @@ type GalleryBarAndListHeaderProps = Omit< * dialogs that might be triggered by actions on either the bar or the header.. * * This component manages the sticky horizontally scrollable bar shown at the - * top of the gallery, AND the non-sticky header shown below the bar, at the top - * of the actual list of items. + * top of the gallery, AND the (non-sticky) header shown below the bar, at the + * top of the actual list of items. * * These are disparate views - indeed, the list header is not even a child of - * this component but is instead proxied via {@link setPhotoListHeader}. Still, + * this component but is instead proxied via {@link setFileListHeader}. Still, * having this intermediate wrapper component allows us to move some of the * common concerns shared by both the gallery bar and list header (e.g. some * dialogs that can be invoked from both places) into this file instead of @@ -89,14 +89,14 @@ export const GalleryBarAndListHeader: React.FC< setActiveCollectionID, setBlockingLoad, people, + saveGroups, activePerson, emailByUserID, shareSuggestionEmails, onRemotePull, + onAddSaveGroup, onSelectPerson, - setPhotoListHeader, - filesDownloadProgressAttributesList, - setFilesDownloadProgressAttributesCreator, + setFileListHeader, }) => { const { show: showAllAlbums, props: allAlbumsVisibilityProps } = useModalVisibility(); @@ -126,33 +126,29 @@ export const GalleryBarAndListHeader: React.FC< ); const isActiveCollectionDownloadInProgress = useCallback(() => { - const attributes = filesDownloadProgressAttributesList.find( - (attr) => attr.collectionID === activeCollectionID, + const group = saveGroups.find( + (g) => g.collectionSummaryID === activeCollectionID, ); - return ( - attributes && - !isFilesDownloadCancelled(attributes) && - !isFilesDownloadCompleted(attributes) - ); - }, [activeCollectionID, filesDownloadProgressAttributesList]); + return !!group && !isSaveComplete(group) && !isSaveCancelled(group); + }, [saveGroups, activeCollectionID]); useEffect(() => { if (shouldHide) return; - setPhotoListHeader({ + setFileListHeader({ item: mode != "people" ? ( @@ -164,9 +160,9 @@ export const GalleryBarAndListHeader: React.FC< ) : ( <> ), - tag: "header", height: 68, }); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [ shouldHide, mode, @@ -176,7 +172,7 @@ export const GalleryBarAndListHeader: React.FC< activePerson, showCollectionShare, showCollectionCast, - // TODO-Cluster + // TODO: Cluster // This causes a loop since it is an array dep // people, ]); @@ -217,9 +213,9 @@ export const GalleryBarAndListHeader: React.FC< /> { return [value, setter] as const; }; + +const sortCollectionSummaries = ( + collectionSummaries: CollectionSummary[], + by: CollectionsSortBy, +) => + collectionSummaries + .sort((a, b) => { + switch (by) { + case "name": + return a.name.localeCompare(b.name); + case "creation-time-asc": + return ( + -1 * + compareCollectionsLatestFile(b.latestFile, a.latestFile) + ); + case "updation-time-desc": + return (b.updationTime ?? 0) - (a.updationTime ?? 0); + } + }) + .sort((a, b) => b.sortPriority - a.sortPriority); + +const compareCollectionsLatestFile = ( + first: EnteFile | undefined, + second: EnteFile | undefined, +) => { + if (!first) { + return 1; + } else if (!second) { + return -1; + } else { + const sortedFiles = sortFiles([first, second]); + if (sortedFiles[0]?.id !== first.id) { + return 1; + } else { + return -1; + } + } +}; diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsx new file mode 100644 index 0000000000..2546a43aa6 --- /dev/null +++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx @@ -0,0 +1,116 @@ +import { useBaseContext } from "ente-base/context"; +import { + isSaveComplete, + isSaveCompleteWithErrors, + type SaveGroup, +} from "ente-gallery/components/utils/save-groups"; +import { Notification } from "ente-new/photos/components/Notification"; +import { t } from "i18next"; + +interface DownloadStatusNotificationsProps { + /** + * A list of user-initiated downloads for which a status should be shown. + * + * An entry is added to this list when the user initiates the download, and + * remains here until the user explicitly closes the corresponding + * {@link Notification} component that was showing the save group's status. + */ + saveGroups: SaveGroup[]; + /** + * Called when the user closes the download status associated with the given + * {@link saveGroup}. + */ + onRemoveSaveGroup: (saveGroup: SaveGroup) => void; + /** + * Called when the collection summary with the given {@link collectionID} + * should be shown. If {@link isHiddenCollectionSummary} is set, then any + * reauthentication as appropriate before switching to the hidden section of + * the app is performed first. + * + * and hidden attribute should be shown. + * + * This is only relevant in the context of the photos app, and can be + * omitted by the public albums app. See the documentation of + * {@link SaveGroup}'s {@link collectionSummaryID} property for why we don't + * store the collection summary itself. + */ + onShowCollectionSummary?: ( + collectionSummaryID: number | undefined, + isHiddenCollectionSummary: boolean | undefined, + ) => void; +} + +/** + * A component that shows a list of notifications, one each for an active + * user-initiated download. + */ +export const DownloadStatusNotifications: React.FC< + DownloadStatusNotificationsProps +> = ({ saveGroups, onRemoveSaveGroup, onShowCollectionSummary }) => { + const { showMiniDialog } = useBaseContext(); + + const confirmCancelDownload = (group: SaveGroup) => + showMiniDialog({ + title: t("stop_downloads_title"), + message: t("stop_downloads_message"), + continue: { + text: t("yes_stop_downloads"), + color: "critical", + action: () => { + group.canceller.abort(); + onRemoveSaveGroup(group); + }, + }, + cancel: t("no"), + }); + + const createOnClose = (group: SaveGroup) => () => { + if (isSaveComplete(group)) { + onRemoveSaveGroup(group); + } else { + confirmCancelDownload(group); + } + }; + + const createOnClick = (group: SaveGroup) => () => { + const electron = globalThis.electron; + if (electron && group.downloadDirPath) { + void electron.openDirectory(group.downloadDirPath); + } else if (onShowCollectionSummary) { + onShowCollectionSummary( + group.collectionSummaryID, + group.isHiddenCollectionSummary, + ); + } else { + return undefined; + } + }; + + return saveGroups.map((group, index) => ( + + )); +}; diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsx index 4a1c497f59..b419a81296 100644 --- a/web/apps/photos/src/components/FileList.tsx +++ b/web/apps/photos/src/components/FileList.tsx @@ -1,8 +1,9 @@ +// TODO: Audit this file import AlbumOutlinedIcon from "@mui/icons-material/AlbumOutlined"; import FavoriteRoundedIcon from "@mui/icons-material/FavoriteRounded"; import PlayCircleOutlineOutlinedIcon from "@mui/icons-material/PlayCircleOutlineOutlined"; -import { Box, Checkbox, Link, Typography, styled } from "@mui/material"; -import Avatar from "components/pages/gallery/Avatar"; +import { Box, Checkbox, Typography, styled } from "@mui/material"; +import Avatar from "components/Avatar"; import type { LocalUser } from "ente-accounts/services/user"; import { assertionFailed } from "ente-base/assert"; import { Overlay } from "ente-base/components/containers"; @@ -10,7 +11,7 @@ import { isSameDay } from "ente-base/date"; import { formattedDateRelative } from "ente-base/i18n-date"; import log from "ente-base/log"; import { downloadManager } from "ente-gallery/services/download"; -import { EnteFile } from "ente-media/file"; +import type { EnteFile } from "ente-media/file"; import { fileCreationTime, fileDurationString } from "ente-media/file-metadata"; import { FileType } from "ente-media/file-type"; import { @@ -28,43 +29,53 @@ import { TileBottomTextOverlay } from "ente-new/photos/components/Tiles"; import { PseudoCollectionID } from "ente-new/photos/services/collection-summary"; import { t } from "i18next"; import memoize from "memoize-one"; -import React, { useContext, useEffect, useMemo, useRef, useState } from "react"; -import { Trans } from "react-i18next"; +import React, { + useDeferredValue, + useEffect, + useMemo, + useRef, + useState, +} from "react"; import { - VariableSizeList as List, - ListChildComponentProps, + type ListChildComponentProps, + VariableSizeList, areEqual, } from "react-window"; -import { SelectedState } from "types/gallery"; -import { shouldShowAvatar } from "utils/file"; +import { type SelectedState } from "utils/file"; import { handleSelectCreator, handleSelectCreatorMulti, } from "utils/photoFrame"; -import { PublicCollectionGalleryContext } from "utils/publicCollectionGallery"; -export const DATE_CONTAINER_HEIGHT = 48; export const SPACE_BTW_DATES = 44; -const SPACE_BTW_DATES_TO_IMAGE_CONTAINER_WIDTH_RATIO = 0.244; +/** + * A component with an explicit height suitable for being plugged in as the + * {@link header} or {@link footer} of the {@link FileList}. + */ +export interface FileListHeaderOrFooter { + /** + * The component itself. + */ + item: React.ReactNode; + /** + * The height of the component (in px). + */ + height: number; +} -const FOOTER_HEIGHT = 90; -const ALBUM_FOOTER_HEIGHT = 75; -const ALBUM_FOOTER_HEIGHT_WITH_REFERRAL = 113; - -export type FileListItemTag = "header" | "publicAlbumsFooter" | "date" | "file"; - -export interface TimeStampListItem { +interface TimeStampListItem { /** * An optional {@link FileListItemTag} that can be used to identify item * types for conditional behaviour. */ - tag?: FileListItemTag; + tag?: "date" | "file"; items?: FileListAnnotatedFile[]; itemStartIndex?: number; - date?: string; + date?: string | null; dates?: { date: string; span: number }[]; groups?: number[]; + // eslint-disable-next-line @typescript-eslint/no-explicit-any item?: any; id?: string; height?: number; @@ -121,6 +132,18 @@ export interface FileListProps { * another mode in which the gallery operates. */ modePlus?: GalleryBarMode | "search"; + /** + * An optional component shown before all the items in the list. + * + * It is not sticky, and scrolls along with the content of the list. + */ + header?: FileListHeaderOrFooter; + /** + * An optional component shown after all the items in the list. + * + * It is not sticky, and scrolls along with the content of the list. + */ + footer?: FileListHeaderOrFooter; /** * The logged in user, if any. * @@ -129,11 +152,13 @@ export interface FileListProps { * omit this prop. */ user?: LocalUser; - showAppDownloadBanner?: boolean; /** - * If `true`, then the current listing is showing magic search results. + * If `true`, then the default behaviour of grouping files by their date is + * suppressed. + * + * This behaviour is used when showing magic search results. */ - isMagicSearchResult?: boolean; + disableGrouping?: boolean; selectable?: boolean; setSelected: ( selected: SelectedState | ((selected: SelectedState) => SelectedState), @@ -156,16 +181,6 @@ export interface FileListProps { * omitted when running in the public albums app. */ emailByUserID?: Map; - /** - * An optional {@link TimeStampListItem} shown before all the items in the - * list. It is not sticky, and scrolls along with the content of the list. - */ - header?: TimeStampListItem; - /** - * An optional {@link TimeStampListItem} shown after all the items in the - * list. It is not sticky, and scrolls along with the content of the list. - */ - footer?: TimeStampListItem; /** * Called when the user activates the thumbnail at the given {@link index}. * @@ -184,10 +199,10 @@ export const FileList: React.FC = ({ mode, modePlus, header, + footer, user, annotatedFiles, - showAppDownloadBanner, - isMagicSearchResult, + disableGrouping, selectable, selected, setSelected, @@ -195,17 +210,14 @@ export const FileList: React.FC = ({ activePersonID, favoriteFileIDs, emailByUserID, - footer, onItemClick, }) => { - const publicCollectionGalleryContext = useContext( - PublicCollectionGalleryContext, + const [_timeStampList, setTimeStampList] = useState( + new Array(), ); + const timeStampList = useDeferredValue(_timeStampList); - const [timeStampList, setTimeStampList] = useState([]); - const refreshInProgress = useRef(false); - const shouldRefresh = useRef(false); - const listRef = useRef(null); + const listRef = useRef(null); // Timeline date strings for which all photos have been selected. // @@ -213,8 +225,8 @@ export const FileList: React.FC = ({ const [checkedTimelineDateStrings, setCheckedTimelineDateStrings] = useState(new Set()); - const [rangeStart, setRangeStart] = useState(null); - const [currentHover, setCurrentHover] = useState(null); + const [rangeStart, setRangeStart] = useState(null); + const [currentHover, setCurrentHover] = useState(null); const [isShiftKeyPressed, setIsShiftKeyPressed] = useState(false); const fittableColumns = getFractionFittableColumns(width); @@ -225,81 +237,76 @@ export const FileList: React.FC = ({ columns = MIN_COLUMNS; skipMerge = true; } + const shrinkRatio = getShrinkRatio(width, columns); const listItemHeight = IMAGE_CONTAINER_MAX_HEIGHT * shrinkRatio + GAP_BTW_TILES; - const refreshList = () => { - listRef.current?.resetAfterIndex(0); - }; - useEffect(() => { - const main = () => { - if (refreshInProgress.current) { - shouldRefresh.current = true; - return; - } - refreshInProgress.current = true; - let timeStampList: TimeStampListItem[] = []; + // Since width and height are dependencies, there might be too many + // updates to the list during a resize. The list computation too, while + // fast, is non-trivial. + // + // To avoid these issues, the we use `useDeferredValue`: if it gets + // another update when processing one, React will restart the background + // rerender from scratch. - if (header) { - timeStampList.push(asFullSpanListItem(header)); - } else if (publicCollectionGalleryContext.photoListHeader) { - timeStampList.push( - getPhotoListHeader( - publicCollectionGalleryContext.photoListHeader, - ), - ); - } - if (isMagicSearchResult) { - noGrouping(timeStampList); - } else { - groupByTime(timeStampList); - } + let timeStampList: TimeStampListItem[] = []; - if (!skipMerge) { - timeStampList = mergeTimeStampList(timeStampList, columns); - } - if (timeStampList.length === 1) { - timeStampList.push(getEmptyListItem()); - } - timeStampList.push(getVacuumItem(timeStampList)); - if (footer) { - timeStampList.push(asFullSpanListItem(footer)); - } else if (publicCollectionGalleryContext.credentials) { - if (publicCollectionGalleryContext.photoListFooter) { - timeStampList.push( - getPhotoListFooter( - publicCollectionGalleryContext.photoListFooter, - ), - ); - } - timeStampList.push(getAlbumsFooter()); - } else if (showAppDownloadBanner) { - timeStampList.push(getAppDownloadFooter()); - } + if (header) { + timeStampList.push(asFullSpanListItem(header)); + } - setTimeStampList(timeStampList); - refreshInProgress.current = false; - if (shouldRefresh.current) { - shouldRefresh.current = false; - setTimeout(main, 0); - } - }; - main(); + if (disableGrouping) { + noGrouping(timeStampList); + } else { + groupByTime(timeStampList); + } + + if (!skipMerge) { + timeStampList = mergeTimeStampList(timeStampList, columns); + } + + if (timeStampList.length == 1) { + timeStampList.push({ + item: ( + + + {t("nothing_here")} + + + ), + id: "empty-list-banner", + height: height - 48, + }); + } + + const footerHeight = footer?.height ?? 0; + timeStampList.push(getVacuumItem(timeStampList, footerHeight)); + if (footer) { + timeStampList.push(asFullSpanListItem(footer)); + } + + setTimeStampList(timeStampList); + // TODO: + // eslint-disable-next-line react-hooks/exhaustive-deps }, [ width, height, - annotatedFiles, header, - publicCollectionGalleryContext.photoListHeader, - isMagicSearchResult, + footer, + annotatedFiles, + disableGrouping, + columns, ]); useEffect(() => { - refreshList(); + // Refresh list. + listRef.current?.resetAfterIndex(0); }, [timeStampList]); + // TODO: Too many non-null assertions + const groupByTime = (timeStampList: TimeStampListItem[]) => { let listItemIndex = 0; let lastCreationTime: number | undefined; @@ -323,7 +330,7 @@ export const FileList: React.FC = ({ }); listItemIndex = 1; } else if (listItemIndex < columns) { - timeStampList[timeStampList.length - 1].items.push(item); + timeStampList[timeStampList.length - 1]!.items!.push(item); listItemIndex++; } else { listItemIndex = 1; @@ -340,7 +347,7 @@ export const FileList: React.FC = ({ let listItemIndex = columns; annotatedFiles.forEach((item, index) => { if (listItemIndex < columns) { - timeStampList[timeStampList.length - 1].items.push(item); + timeStampList[timeStampList.length - 1]!.items!.push(item); listItemIndex++; } else { listItemIndex = 1; @@ -353,51 +360,10 @@ export const FileList: React.FC = ({ }); }; - const getPhotoListHeader = (photoListHeader) => { - return { - ...photoListHeader, - item: ( - - {photoListHeader.item} - - ), - }; - }; - - const getPhotoListFooter = (photoListFooter) => { - return { - ...photoListFooter, - item: ( - - {photoListFooter.item} - - ), - }; - }; - - const getEmptyListItem = () => { - return { - item: ( - - - {t("nothing_here")} - - - ), - id: "empty-list-banner", - height: height - 48, - }; - }; - - const getVacuumItem = (timeStampList) => { - let footerHeight; - if (publicCollectionGalleryContext.credentials) { - footerHeight = publicCollectionGalleryContext.referralCode - ? ALBUM_FOOTER_HEIGHT_WITH_REFERRAL - : ALBUM_FOOTER_HEIGHT; - } else { - footerHeight = FOOTER_HEIGHT; - } + const getVacuumItem = ( + timeStampList: TimeStampListItem[], + footerHeight: number, + ) => { const fileListHeight = (() => { let sum = 0; const getCurrentItemSize = getItemSize(timeStampList); @@ -415,95 +381,6 @@ export const FileList: React.FC = ({ }; }; - const getAppDownloadFooter = (): TimeStampListItem => ({ - tag: "publicAlbumsFooter", - height: FOOTER_HEIGHT, - item: ( - - - - ), - b: ( - - ), - }} - /> - - - ), - }); - - const getAlbumsFooter = (): TimeStampListItem => ({ - tag: "publicAlbumsFooter", - height: publicCollectionGalleryContext.referralCode - ? ALBUM_FOOTER_HEIGHT_WITH_REFERRAL - : ALBUM_FOOTER_HEIGHT, - item: ( - - {/* Make the entire area tappable, otherwise it is hard to - get at on mobile devices. */} - - - - - ), - }} - values={{ url: "ente.io" }} - /> - - - {publicCollectionGalleryContext.referralCode ? ( - - - - - - ) : null} - - - ), - }); - /** * Checks and merge multiple dates into a single row. */ @@ -515,30 +392,31 @@ export const FileList: React.FC = ({ let index = 0; let newIndex = 0; while (index < items.length) { - const currItem = items[index]; + const currItem = items[index]!; // If the current item is of type time, then it is not part of an ongoing date. // So, there is a possibility of merge. if (currItem.tag == "date") { // If new list pointer is not at the end of list then // we can add more items to the same list. if (newList[newIndex]) { + const SPACE_BTW_DATES_TO_IMAGE_CONTAINER_WIDTH_RATIO = 0.244; // Check if items can be added to same list if ( - newList[newIndex + 1].items.length + - items[index + 1].items.length + + newList[newIndex + 1]!.items!.length + + items[index + 1]!.items!.length + Math.ceil( - newList[newIndex].dates.length * + newList[newIndex]!.dates!.length * SPACE_BTW_DATES_TO_IMAGE_CONTAINER_WIDTH_RATIO, ) <= columns ) { - newList[newIndex].dates.push({ - date: currItem.date, - span: items[index + 1].items.length, + newList[newIndex]!.dates!.push({ + date: currItem.date!, + span: items[index + 1]!.items!.length, }); - newList[newIndex + 1].items = [ - ...newList[newIndex + 1].items, - ...items[index + 1].items, + newList[newIndex + 1]!.items = [ + ...newList[newIndex + 1]!.items!, + ...items[index + 1]!.items!, ]; index += 2; } else { @@ -554,12 +432,12 @@ export const FileList: React.FC = ({ date: null, dates: [ { - date: currItem.date, - span: items[index + 1].items.length, + date: currItem.date!, + span: items[index + 1]!.items!.length, }, ], }); - newList.push(items[index + 1]); + newList.push(items[index + 1]!); index += 2; } } else { @@ -571,11 +449,11 @@ export const FileList: React.FC = ({ } } for (let i = 0; i < newList.length; i++) { - const currItem = newList[i]; - const nextItem = newList[i + 1]; + const currItem = newList[i]!; + const nextItem = newList[i + 1]!; if (currItem.tag == "date") { - if (currItem.dates.length > 1) { - currItem.groups = currItem.dates.map((item) => item.span); + if (currItem.dates!.length > 1) { + currItem.groups = currItem.dates!.map((item) => item.span); nextItem.groups = currItem.groups; } } @@ -583,33 +461,31 @@ export const FileList: React.FC = ({ return newList; }; - const getItemSize = (timeStampList) => (index) => { - switch (timeStampList[index].tag) { - case "date": - return DATE_CONTAINER_HEIGHT; - case "file": - return listItemHeight; - default: - return timeStampList[index].height; - } - }; + const getItemSize = + (timeStampList: TimeStampListItem[]) => (index: number) => { + switch (timeStampList[index]!.tag) { + case "date": + return dateContainerHeight; + case "file": + return listItemHeight; + default: + return timeStampList[index]!.height!; + } + }; - const generateKey = (index) => { - switch (timeStampList[index].tag) { + const generateKey = (index: number) => { + switch (timeStampList[index]!.tag) { case "file": - return `${timeStampList[index].items[0].file.id}-${ - timeStampList[index].items.slice(-1)[0].file.id + return `${timeStampList[index]!.items![0]!.file.id}-${ + timeStampList[index]!.items!.slice(-1)[0]!.file.id }`; default: - return `${timeStampList[index].id}-${index}`; + return `${timeStampList[index]!.id}-${index}`; } }; useEffect(() => { - // Nothing to do here if nothing is selected. - if (!selected) return; - - const notSelectedFiles = (annotatedFiles ?? []).filter( + const notSelectedFiles = annotatedFiles.filter( (item) => !selected[item.file.id], ); @@ -617,7 +493,7 @@ export const FileList: React.FC = ({ notSelectedFiles.map((item) => item.timelineDateString), ); // to get file's date which were manually unselected - const localSelectedFiles = (annotatedFiles ?? []).filter( + const localSelectedFiles = annotatedFiles.filter( // to get files which were manually selected (item) => !unselectedDates.has(item.timelineDateString), ); @@ -636,6 +512,8 @@ export const FileList: React.FC = ({ localSelectedDates.forEach((date) => checked.add(date)); return checked; }); + // TODO: + // eslint-disable-next-line react-hooks/exhaustive-deps }, [selected]); const handleSelectMulti = handleSelectCreatorMulti( @@ -658,7 +536,7 @@ export const FileList: React.FC = ({ } setCheckedTimelineDateStrings(next); - const filesOnADay = annotatedFiles?.filter( + const filesOnADay = annotatedFiles.filter( (item) => item.timelineDateString === date, ); // all files on a checked/unchecked day @@ -685,23 +563,23 @@ export const FileList: React.FC = ({ const handleRangeSelect = (index: number) => () => { if (typeof rangeStart != "undefined" && rangeStart !== index) { const direction = - (index - rangeStart) / Math.abs(index - rangeStart); + (index - rangeStart!) / Math.abs(index - rangeStart!); let checked = true; for ( - let i = rangeStart; + let i = rangeStart!; (index - i) * direction >= 0; i += direction ) { - checked = checked && !!selected[annotatedFiles[i].file.id]; + checked = checked && !!selected[annotatedFiles[i]!.file.id]; } for ( - let i = rangeStart; + let i = rangeStart!; (index - i) * direction > 0; i += direction ) { - handleSelect(annotatedFiles[i].file)(!checked); + handleSelect(annotatedFiles[i]!.file)(!checked); } - handleSelect(annotatedFiles[index].file, index)(!checked); + handleSelect(annotatedFiles[index]!.file, index)(!checked); } }; @@ -743,7 +621,7 @@ export const FileList: React.FC = ({ {...{ user, emailByUserID }} file={file} onClick={() => onItemClick(index)} - selectable={selectable} + selectable={selectable!} onSelect={handleSelect(file, index)} selected={ (!mode @@ -759,8 +637,8 @@ export const FileList: React.FC = ({ onRangeSelect={handleRangeSelect(index)} isRangeSelectActive={isShiftKeyPressed && selected.count > 0} isInsSelectRange={ - (index >= rangeStart && index <= currentHover) || - (index >= currentHover && index <= rangeStart) + (index >= rangeStart! && index <= currentHover!) || + (index >= currentHover! && index <= rangeStart!) } activeCollectionID={activeCollectionID} showPlaceholder={isScrolling} @@ -770,9 +648,9 @@ export const FileList: React.FC = ({ const renderListItem = ( listItem: TimeStampListItem, - isScrolling: boolean, + isScrolling: boolean | undefined, ) => { - const haveSelection = (selected.count ?? 0) > 0; + const haveSelection = selected.count > 0; switch (listItem.tag) { case "date": return listItem.dates ? ( @@ -803,12 +681,12 @@ export const FileList: React.FC = ({ {haveSelection && ( - onChangeSelectAllCheckBox(listItem.date) + onChangeSelectAllCheckBox(listItem.date!) } size="small" sx={{ pl: 0 }} @@ -818,22 +696,22 @@ export const FileList: React.FC = ({ ); case "file": { - const ret = listItem.items.map((item, idx) => + const ret = listItem.items!.map((item, idx) => getThumbnail( item, - listItem.itemStartIndex + idx, - isScrolling, + listItem.itemStartIndex! + idx, + !!isScrolling, ), ); if (listItem.groups) { let sum = 0; for (let i = 0; i < listItem.groups.length - 1; i++) { - sum = sum + listItem.groups[i]; + sum = sum + listItem.groups[i]!; ret.splice( sum, 0,
, ); sum += 1; @@ -842,11 +720,13 @@ export const FileList: React.FC = ({ return ret; } default: + // TODO: + // eslint-disable-next-line @typescript-eslint/no-unsafe-return return listItem.item; } }; - if (!timeStampList?.length) { + if (!timeStampList.length) { return <>; } @@ -874,7 +754,7 @@ export const FileList: React.FC = ({ } return ( - = ({ useIsScrolling > {PhotoListRow} - + ); }; @@ -957,69 +837,47 @@ const ListContainer = styled(Box, { } `; +/** + * An grid item, spanning {@link span} columns. + */ const ListItemContainer = styled("div")<{ span: number }>` - grid-column: span ${(props) => props.span}; + grid-column: span ${({ span }) => span}; display: flex; align-items: center; `; +/** + * A grid items that spans all columns. + */ const FullSpanListItemContainer = styled("div")` grid-column: 1 / -1; display: flex; align-items: center; `; -const asFullSpanListItem = ({ item, ...rest }: TimeStampListItem) => ({ +/** + * Convert a {@link FileListHeaderOrFooter} into a {@link TimeStampListItem} + * that spans all columns. + */ +const asFullSpanListItem = ({ item, ...rest }: FileListHeaderOrFooter) => ({ ...rest, item: {item}, }); -const DateContainer = styled(ListItemContainer)( - ({ theme }) => ` +/** + * The fixed height (in px) of {@link DateContainer}. + */ +const dateContainerHeight = 48; + +const DateContainer = styled(ListItemContainer)` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - height: ${DATE_CONTAINER_HEIGHT}px; - color: ${theme.vars.palette.text.muted}; -`, -); - -const FooterContainer = styled(ListItemContainer)` - margin-bottom: 0.75rem; - @media (max-width: 540px) { - font-size: 12px; - margin-bottom: 0.5rem; - } - text-align: center; - justify-content: center; - align-items: flex-end; - margin-top: calc(2rem + 20px); + height: ${dateContainerHeight}px; + color: "text.muted"; `; -const AlbumFooterContainer = styled(ListItemContainer, { - shouldForwardProp: (propName) => propName != "hasReferral", -})<{ hasReferral: boolean }>` - margin-top: 48px; - margin-bottom: ${({ hasReferral }) => (!hasReferral ? `10px` : "0px")}; - text-align: center; - justify-content: center; -`; - -const FullStretchContainer = styled("div")( - ({ theme }) => ` - margin: 0 -24px; - width: calc(100% + 46px); - left: -24px; - @media (max-width: ${IMAGE_CONTAINER_MAX_WIDTH * MIN_COLUMNS}px) { - margin: 0 -4px; - width: calc(100% + 6px); - left: -4px; - } - background-color: ${theme.vars.palette.accent.main}; -`, -); - -const NothingContainer = styled(ListItemContainer)` +const NoFilesContainer = styled(ListItemContainer)` text-align: center; justify-content: center; `; @@ -1060,10 +918,10 @@ const PhotoListRow = React.memo( gridTemplateColumns={getTemplateColumns( columns, shrinkRatio, - timeStampList[index].groups, + timeStampList[index]!.groups, )} > - {renderListItem(timeStampList[index], isScrolling)} + {renderListItem(timeStampList[index]!, isScrolling)} ); @@ -1084,7 +942,7 @@ type FileThumbnailProps = { isInsSelectRange: boolean; activeCollectionID: number; showPlaceholder: boolean; - isFav: boolean; + isFav: boolean | undefined; } & Pick; const FileThumbnail: React.FC = ({ @@ -1150,13 +1008,13 @@ const FileThumbnail: React.FC = ({ onSelect(!selected); } } else if (imageURL) { - onClick?.(); + onClick(); } }; const handleSelect: React.ChangeEventHandler = (e) => { if (isRangeSelectActive) { - onRangeSelect?.(); + onRangeSelect(); } else { onSelect(e.target.checked); } @@ -1413,3 +1271,19 @@ const VideoDurationOverlay: React.FC = ({ )} ); + +/** + * Return `true` if the owner or uploader name avatar indicator should be shown + * for the given {@link file}. + */ +const shouldShowAvatar = (file: EnteFile, user: LocalUser | undefined) => { + // Public albums app. + if (!user) return false; + // A file shared with the user. + if (file.ownerID != user.id) return true; + // A public collected file (i.e. a file owned by the user, uploaded by an + // named guest via a public collect link) + if (file.pubMagicMetadata?.data.uploaderName) return true; + // Regular file. + return false; +}; diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsx index b482a7ca72..0e8a35656b 100644 --- a/web/apps/photos/src/components/FileListWithViewer.tsx +++ b/web/apps/photos/src/components/FileListWithViewer.tsx @@ -1,12 +1,14 @@ import { styled } from "@mui/material"; import { isSameDay } from "ente-base/date"; import { formattedDate } from "ente-base/i18n-date"; +import type { AddSaveGroup } from "ente-gallery/components/utils/save-groups"; import { FileViewer, type FileViewerProps, } from "ente-gallery/components/viewer/FileViewer"; +import { downloadAndSaveFiles } from "ente-gallery/services/save"; import type { Collection } from "ente-media/collection"; -import { EnteFile } from "ente-media/file"; +import type { EnteFile } from "ente-media/file"; import { fileCreationTime, fileFileName } from "ente-media/file-metadata"; import { moveToTrash } from "ente-new/photos/services/collection"; import { PseudoCollectionID } from "ente-new/photos/services/collection-summary"; @@ -14,8 +16,6 @@ import { t } from "i18next"; import { useCallback, useMemo, useState } from "react"; import AutoSizer from "react-virtualized-auto-sizer"; import { uploadManager } from "services/upload-manager"; -import { SetFilesDownloadProgressAttributesCreator } from "types/gallery"; -import { downloadSingleFile } from "utils/file"; import { FileList, type FileListAnnotatedFile, @@ -38,7 +38,6 @@ export type FileListWithViewerProps = { * Not set in the context of the shared albums app. */ onMarkTempDeleted?: (files: EnteFile[]) => void; - setFilesDownloadProgressAttributesCreator?: SetFilesDownloadProgressAttributesCreator; /** * Called when the visibility of the file viewer dialog changes. */ @@ -48,13 +47,18 @@ export type FileListWithViewerProps = { * pull from remote. */ onRemotePull: () => Promise; + /** + * A function that can be used to create a UI notification to track the + * progress of user-initiated download, and to cancel it if needed. + */ + onAddSaveGroup: AddSaveGroup; } & Pick< FileListProps, | "mode" | "modePlus" | "header" - | "showAppDownloadBanner" - | "isMagicSearchResult" + | "footer" + | "disableGrouping" | "selectable" | "selected" | "setSelected" @@ -89,11 +93,11 @@ export const FileListWithViewer: React.FC = ({ mode, modePlus, header, + footer, user, files, enableDownload, - showAppDownloadBanner, - isMagicSearchResult, + disableGrouping, selectable, selected, setSelected, @@ -107,11 +111,11 @@ export const FileListWithViewer: React.FC = ({ collectionNameByID, pendingFavoriteUpdates, pendingVisibilityUpdates, - setFilesDownloadProgressAttributesCreator, onSetOpenFileViewer, onRemotePull, onRemoteFilesPull, onVisualFeedback, + onAddSaveGroup, onToggleFavorite, onFileVisibilityUpdate, onMarkTempDeleted, @@ -130,16 +134,19 @@ export const FileListWithViewer: React.FC = ({ [files], ); - const handleThumbnailClick = useCallback((index: number) => { - setCurrentIndex(index); - setOpenFileViewer(true); - onSetOpenFileViewer?.(true); - }, []); + const handleThumbnailClick = useCallback( + (index: number) => { + setCurrentIndex(index); + setOpenFileViewer(true); + onSetOpenFileViewer?.(true); + }, + [onSetOpenFileViewer], + ); const handleCloseFileViewer = useCallback(() => { onSetOpenFileViewer?.(false); setOpenFileViewer(false); - }, []); + }, [onSetOpenFileViewer]); const handleTriggerRemotePull = useCallback( () => void onRemotePull(), @@ -147,18 +154,15 @@ export const FileListWithViewer: React.FC = ({ ); const handleDownload = useCallback( - (file: EnteFile) => { - const setSingleFileDownloadProgress = - setFilesDownloadProgressAttributesCreator!(fileFileName(file)); - void downloadSingleFile(file, setSingleFileDownloadProgress); - }, - [setFilesDownloadProgressAttributesCreator], + (file: EnteFile) => + downloadAndSaveFiles([file], fileFileName(file), onAddSaveGroup), + [onAddSaveGroup], ); const handleDelete = useMemo(() => { return onMarkTempDeleted ? (file: EnteFile) => - moveToTrash([file]).then(() => onMarkTempDeleted?.([file])) + moveToTrash([file]).then(() => onMarkTempDeleted([file])) : undefined; }, [onMarkTempDeleted]); @@ -166,7 +170,7 @@ export const FileListWithViewer: React.FC = ({ (editedFile: File, collection: Collection, enteFile: EnteFile) => { uploadManager.prepareForNewUpload(); uploadManager.showUploadProgressDialog(); - uploadManager.uploadFile(editedFile, collection, enteFile); + void uploadManager.uploadFile(editedFile, collection, enteFile); }, [], ); @@ -181,9 +185,9 @@ export const FileListWithViewer: React.FC = ({ mode, modePlus, header, + footer, user, - showAppDownloadBanner, - isMagicSearchResult, + disableGrouping, selectable, selected, setSelected, diff --git a/web/apps/photos/src/components/FilesDownloadProgress.tsx b/web/apps/photos/src/components/FilesDownloadProgress.tsx deleted file mode 100644 index b71c4f2521..0000000000 --- a/web/apps/photos/src/components/FilesDownloadProgress.tsx +++ /dev/null @@ -1,173 +0,0 @@ -import { useBaseContext } from "ente-base/context"; -import { Notification } from "ente-new/photos/components/Notification"; -import { t } from "i18next"; - -export interface FilesDownloadProgressAttributes { - id: number; - success: number; - failed: number; - total: number; - folderName: string; - collectionID: number; - isHidden: boolean; - downloadDirPath: string; - canceller: AbortController; -} - -interface FilesDownloadProgressProps { - attributesList: FilesDownloadProgressAttributes[]; - setAttributesList: (value: FilesDownloadProgressAttributes[]) => void; - /** - * Called when the hidden section should be shown. - * - * This triggers the display of the dialog to authenticate the user, and the - * returned promise when (and only if) the user successfully reauthenticates. - * - * Since the hidden section is only relevant in the context of the photos - * app where there is a logged in user, this callback can be omitted in the - * context of the public albums app. - */ - onShowHiddenSection?: () => Promise; - /** - * Called when the collection with the given {@link collectionID} should be - * shown. - * - * This is only relevant in the context of the photos app, and can be - * omitted by the public albums app. - */ - onShowCollection?: (collectionID: number) => void; -} - -export const isFilesDownloadStarted = ( - attributes: FilesDownloadProgressAttributes, -) => { - return attributes && attributes.total > 0; -}; - -export const isFilesDownloadCompleted = ( - attributes: FilesDownloadProgressAttributes, -) => { - return ( - attributes && - attributes.success + attributes.failed === attributes.total - ); -}; - -const isFilesDownloadCompletedWithErrors = ( - attributes: FilesDownloadProgressAttributes, -) => { - return ( - attributes && - attributes.failed > 0 && - isFilesDownloadCompleted(attributes) - ); -}; - -export const isFilesDownloadCancelled = ( - attributes: FilesDownloadProgressAttributes, -) => { - return attributes?.canceller?.signal?.aborted; -}; - -export const FilesDownloadProgress: React.FC = ({ - attributesList, - setAttributesList, - onShowHiddenSection, - onShowCollection, -}) => { - const { showMiniDialog } = useBaseContext(); - - if (!attributesList) { - return <>; - } - - const onClose = (id: number) => { - setAttributesList(attributesList.filter((attr) => attr.id !== id)); - }; - - const confirmCancelDownload = ( - attributes: FilesDownloadProgressAttributes, - ) => { - showMiniDialog({ - title: t("stop_downloads_title"), - message: t("stop_downloads_message"), - continue: { - text: t("yes_stop_downloads"), - color: "critical", - action: () => { - attributes?.canceller.abort(); - onClose(attributes.id); - }, - }, - cancel: t("no"), - }); - }; - - const handleClose = (attributes: FilesDownloadProgressAttributes) => () => { - if (isFilesDownloadCompleted(attributes)) { - onClose(attributes.id); - } else { - confirmCancelDownload(attributes); - } - }; - - const createHandleOnClick = - (id: number, onShowCollection: (collectionID: number) => void) => - () => { - const attributes = attributesList.find((attr) => attr.id === id); - const electron = globalThis.electron; - if (electron) { - electron.openDirectory(attributes.downloadDirPath); - } else if (onShowCollection) { - if (attributes.isHidden) { - void onShowHiddenSection().then(() => { - onShowCollection(attributes.collectionID); - }); - } else { - onShowCollection(attributes.collectionID); - } - } - }; - - const notifications: React.ReactNode[] = []; - let visibleIndex = 0; - for (const attributes of attributesList) { - // Skip attempted downloads of empty albums, which had no effect. - if (!isFilesDownloadStarted(attributes)) continue; - - const index = visibleIndex++; - notifications.push( - , - ); - } - - return notifications; -}; diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx index 62a578a6c1..4dfe1d2cc4 100644 --- a/web/apps/photos/src/components/FixCreationTime.tsx +++ b/web/apps/photos/src/components/FixCreationTime.tsx @@ -153,7 +153,7 @@ const Progress: React.FC = ({ completed, total }) => ( ); interface OptionsFormProps { - step: Step; + step: Step | undefined; onSubmit: (values: FormValues) => Promise; onClose: () => void; } @@ -226,7 +226,7 @@ const OptionsForm: React.FC = ({ }; interface FooterProps { - step: Step; + step: Step | undefined; onSubmit: () => void; onClose: () => void; } diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx index 13899ebabf..8c9769d0c5 100644 --- a/web/apps/photos/src/components/Sidebar.tsx +++ b/web/apps/photos/src/components/Sidebar.tsx @@ -109,14 +109,15 @@ import { } from "ente-new/photos/services/user-details"; import { usePhotosAppContext } from "ente-new/photos/types/context"; import { initiateEmail, openURL } from "ente-new/photos/utils/web"; +import { wait } from "ente-utils/promise"; import { t } from "i18next"; import { useRouter } from "next/router"; import React, { - MouseEventHandler, useCallback, useEffect, useMemo, useState, + type MouseEventHandler, } from "react"; import { Trans } from "react-i18next"; import { testUpload } from "../../tests/upload.test"; @@ -140,18 +141,23 @@ type SidebarProps = ModalVisibilityProps & { */ onShowPlanSelector: () => void; /** - * Called when the collection summary with the given - * {@link collectionSummaryID} should be shown. - */ - onShowCollectionSummary: (collectionSummaryID: number) => void; - /** - * Called when the hidden section should be shown. + * Called when the collection summary with the given {@link collectionID} + * should be shown. * - * This triggers the display of the dialog to authenticate the user, exactly - * as if {@link onAuthenticateUser} were called. Then, on successful - * authentication, the gallery will switch to the hidden section. + * @param collectionSummaryID The ID of the {@link CollectionSummary} to + * switch to. + * + * @param isHiddenCollectionSummary If `true`, then any reauthentication as + * appropriate before switching to the hidden section of the app is + * performed first before showing the collection summary. + * + * @return A promise that fullfills after any needed reauthentication has + * been peformed (The view transition might still be in progress). */ - onShowHiddenSection: () => Promise; + onShowCollectionSummary: ( + collectionSummaryID: number, + isHiddenCollectionSummary?: boolean, + ) => Promise; /** * Called when the export dialog should be shown. */ @@ -175,7 +181,6 @@ export const Sidebar: React.FC = ({ uncategorizedCollectionSummaryID, onShowPlanSelector, onShowCollectionSummary, - onShowHiddenSection, onShowExport, onAuthenticateUser, }) => ( @@ -189,7 +194,6 @@ export const Sidebar: React.FC = ({ normalCollectionSummaries, uncategorizedCollectionSummaryID, onShowCollectionSummary, - onShowHiddenSection, }} /> = ({ isSubscriptionStripe(userDetails.subscription) && isSubscriptionPastDue(userDetails.subscription) ) { + // TODO: This makes an API request, so the UI should indicate + // the await. + // + // eslint-disable-next-line @typescript-eslint/no-floating-promises redirectToCustomerPortal(); } else { onShowPlanSelector(); @@ -320,8 +328,8 @@ const SubscriptionStatus: React.FC = ({ return true; }, [userDetails]); - const handleClick = useMemo(() => { - const eventHandler: MouseEventHandler = (e) => { + const handleClick: MouseEventHandler = useCallback( + (e) => { e.stopPropagation(); if (isSubscriptionActive(userDetails.subscription)) { @@ -333,14 +341,15 @@ const SubscriptionStatus: React.FC = ({ isSubscriptionStripe(userDetails.subscription) && isSubscriptionPastDue(userDetails.subscription) ) { + // eslint-disable-next-line @typescript-eslint/no-floating-promises redirectToCustomerPortal(); } else { onShowPlanSelector(); } } - }; - return eventHandler; - }, [userDetails]); + }, + [onShowPlanSelector, userDetails], + ); if (!hasAMessage) { return <>; @@ -355,7 +364,7 @@ const SubscriptionStatus: React.FC = ({ message = t("subscription_info_free"); } else if (isSubscriptionCancelled(userDetails.subscription)) { message = t("subscription_info_renewal_cancelled", { - date: userDetails.subscription?.expiryTime, + date: userDetails.subscription.expiryTime, }); } } else { @@ -383,8 +392,8 @@ const SubscriptionStatus: React.FC = ({ {message} @@ -461,7 +470,6 @@ type ShortcutSectionProps = SectionProps & | "normalCollectionSummaries" | "uncategorizedCollectionSummaryID" | "onShowCollectionSummary" - | "onShowHiddenSection" >; const ShortcutSection: React.FC = ({ @@ -469,25 +477,27 @@ const ShortcutSection: React.FC = ({ normalCollectionSummaries, uncategorizedCollectionSummaryID, onShowCollectionSummary, - onShowHiddenSection, }) => { - const openUncategorizedSection = () => { - onShowCollectionSummary(uncategorizedCollectionSummaryID); - onCloseSidebar(); - }; + const handleOpenUncategorizedSection = () => + void onShowCollectionSummary(uncategorizedCollectionSummaryID).then( + onCloseSidebar, + ); - const openTrashSection = () => { - onShowCollectionSummary(PseudoCollectionID.trash); - onCloseSidebar(); - }; + const handleOpenTrashSection = () => + void onShowCollectionSummary(PseudoCollectionID.trash).then( + onCloseSidebar, + ); - const openArchiveSection = () => { - onShowCollectionSummary(PseudoCollectionID.archiveItems); - onCloseSidebar(); - }; + const handleOpenArchiveSection = () => + void onShowCollectionSummary(PseudoCollectionID.archiveItems).then( + onCloseSidebar, + ); - const openHiddenSection = () => - void onShowHiddenSection().then(onCloseSidebar); + const handleOpenHiddenSection = () => + void onShowCollectionSummary(PseudoCollectionID.hiddenItems, true) + // See: [Note: Workarounds for unactionable ARIA warnings] + .then(() => wait(10)) + .then(onCloseSidebar); const summaryCaption = (summaryID: number) => normalCollectionSummaries.get(summaryID)?.fileCount.toString(); @@ -498,13 +508,13 @@ const ShortcutSection: React.FC = ({ startIcon={} label={t("section_uncategorized")} caption={summaryCaption(uncategorizedCollectionSummaryID)} - onClick={openUncategorizedSection} + onClick={handleOpenUncategorizedSection} /> } label={t("section_archive")} caption={summaryCaption(PseudoCollectionID.archiveItems)} - onClick={openArchiveSection} + onClick={handleOpenArchiveSection} /> } @@ -517,13 +527,13 @@ const ShortcutSection: React.FC = ({ }} /> } - onClick={openHiddenSection} + onClick={handleOpenHiddenSection} /> } label={t("section_trash")} caption={summaryCaption(PseudoCollectionID.trash)} - onClick={openTrashSection} + onClick={handleOpenTrashSection} /> ); @@ -641,13 +651,13 @@ const ExitSection: React.FC = () => { }; const InfoSection: React.FC = () => { - const [appVersion, setAppVersion] = useState(); - const [host, setHost] = useState(); + const [appVersion, setAppVersion] = useState(""); + const [host, setHost] = useState(""); useEffect(() => { void globalThis.electron?.appVersion().then(setAppVersion); void customAPIHost().then(setHost); - }); + }, []); return ( <> @@ -846,16 +856,17 @@ const LanguageSelector = () => { const locale = getLocaleInUse(); const updateCurrentLocale = (newLocale: SupportedLocale) => { - setLocaleInUse(newLocale); - // [Note: Changing locale causes a full reload] - // - // A full reload is needed because we use the global `t` instance - // instead of the useTranslation hook. - // - // We also rely on this behaviour by caching various formatters in - // module static variables that not get updated if the i18n.language - // changes unless there is a full reload. - window.location.reload(); + void setLocaleInUse(newLocale).then(() => { + // [Note: Changing locale causes a full reload] + // + // A full reload is needed because we use the global `t` instance + // instead of the useTranslation hook. + // + // We also rely on this behaviour by caching various formatters in + // module static variables that not get updated if the i18n.language + // changes unless there is a full reload. + window.location.reload(); + }); }; const options = supportedLocales.map((locale) => ({ @@ -1083,11 +1094,14 @@ const Help: React.FC = ({ continue: { text: t("view_logs"), action: viewLogs }, }); - const viewLogs = () => { + const viewLogs = async () => { log.info("Viewing logs"); const electron = globalThis.electron; - if (electron) electron.openLogDirectory(); - else saveStringAsFile(savedLogs(), `ente-web-logs-${Date.now()}.txt`); + if (electron) { + await electron.openLogDirectory(); + } else { + saveStringAsFile(savedLogs(), `ente-web-logs-${Date.now()}.txt`); + } }; return ( diff --git a/web/apps/photos/src/components/SubscriptionCard.tsx b/web/apps/photos/src/components/SubscriptionCard.tsx index abf26b8190..f695207da4 100644 --- a/web/apps/photos/src/components/SubscriptionCard.tsx +++ b/web/apps/photos/src/components/SubscriptionCard.tsx @@ -233,7 +233,7 @@ const IndividualUsageSection: React.FC = ({ {`${formattedStorageByteSize(storage - usage)} ${t("free")}`} - {t("photos_count", { count: fileCount ?? 0 })} + {t("photos_count", { count: fileCount })} @@ -326,7 +326,7 @@ const FamilyUsageSection: React.FC = ({ - {t("photos_count", { count: fileCount ?? 0 })} + {t("photos_count", { count: fileCount })} diff --git a/web/apps/photos/src/components/Upload.tsx b/web/apps/photos/src/components/Upload.tsx index fe9ec555f7..e43e1f2867 100644 --- a/web/apps/photos/src/components/Upload.tsx +++ b/web/apps/photos/src/components/Upload.tsx @@ -1,3 +1,8 @@ +// TODO: Audit this file +// TODO: Too many null assertions in this file. The types need reworking. +/* eslint-disable react-hooks/exhaustive-deps */ +/* eslint-disable @typescript-eslint/no-misused-promises */ +/* eslint-disable @typescript-eslint/no-floating-promises */ import ChevronRightIcon from "@mui/icons-material/ChevronRight"; import DiscFullIcon from "@mui/icons-material/DiscFull"; import GoogleIcon from "@mui/icons-material/Google"; @@ -27,6 +32,7 @@ import { } from "ente-base/components/utils/modal"; import { useBaseContext } from "ente-base/context"; import { basename, dirname, joinPath } from "ente-base/file-name"; +import type { PublicAlbumsCredentials } from "ente-base/http"; import log from "ente-base/log"; import type { CollectionMapping, Electron, ZipItem } from "ente-base/types/ipc"; import { type UploadTypeSelectorIntent } from "ente-gallery/components/Upload"; @@ -65,13 +71,7 @@ import { redirectToCustomerPortal } from "ente-new/photos/services/user-details" import { usePhotosAppContext } from "ente-new/photos/types/context"; import { firstNonEmpty } from "ente-utils/array"; import { t } from "i18next"; -import React, { - useCallback, - useContext, - useEffect, - useRef, - useState, -} from "react"; +import React, { useCallback, useEffect, useRef, useState } from "react"; import type { InProgressUpload, SegregatedFinishedUploads, @@ -81,19 +81,24 @@ import type { } from "services/upload-manager"; import { uploadManager } from "services/upload-manager"; import watcher from "services/watch"; -import { SetLoading } from "types/gallery"; -import { PublicCollectionGalleryContext } from "utils/publicCollectionGallery"; import { UploadProgress } from "./UploadProgress"; interface UploadProps { /** - * The currently logged in user, if any. + * The logged in user, if any. * * This is only expected to be present when we're running it the context of * the photos app, where there is a logged in user. When used by the public * albums app, this prop can be omitted. */ user?: LocalUser; + /** + * The {@link PublicAlbumsCredentials} to use, if any. + * + * These are expected to be set if we are in the context of the public + * albums app, and should be undefined when we're in the photos app context. + */ + publicAlbumsCredentials?: PublicAlbumsCredentials; isFirstUpload?: boolean; uploadTypeSelectorView: boolean; dragAndDropFiles: File[]; @@ -101,7 +106,7 @@ interface UploadProps { uploadTypeSelectorIntent: UploadTypeSelectorIntent; activeCollection?: Collection; closeUploadTypeSelector: () => void; - setLoading: SetLoading; + setLoading: (loading: boolean) => void; setShouldDisableDropzone: (value: boolean) => void; showCollectionSelector?: () => void; /** @@ -162,6 +167,7 @@ type UploadType = "files" | "folders" | "zips"; */ export const Upload: React.FC = ({ user, + publicAlbumsCredentials, isFirstUpload, dragAndDropFiles, onRemotePull, @@ -175,9 +181,6 @@ export const Upload: React.FC = ({ }) => { const { showMiniDialog, onGenericError } = useBaseContext(); const { showNotification, watchFolderView } = usePhotosAppContext(); - const publicCollectionGalleryContext = useContext( - PublicCollectionGalleryContext, - ); const [uploadProgressView, setUploadProgressView] = useState(false); const [uploadPhase, setUploadPhase] = useState("preparing"); @@ -186,9 +189,9 @@ export const Upload: React.FC = ({ finished: 0, total: 0, }); - const [inProgressUploads, setInProgressUploads] = useState< - InProgressUpload[] - >([]); + const [inProgressUploads, setInProgressUploads] = useState( + new Array(), + ); const [finishedUploads, setFinishedUploads] = useState(new Map()); const [percentComplete, setPercentComplete] = useState(0); @@ -271,7 +274,9 @@ export const Upload: React.FC = ({ * If set, this will be the name of the collection that our desktop app * wishes for us to upload into. */ - const pendingDesktopUploadCollectionName = useRef(""); + const pendingDesktopUploadCollectionName = useRef( + undefined, + ); /** * This is set to thue user's choice when the user chooses one of the @@ -367,12 +372,14 @@ export const Upload: React.FC = ({ setInProgressUploads, setFinishedUploads, setUploadPhase, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore setUploadFilenames: setUploadFileNames, setHasLivePhotos, setUploadProgressView, }, onUploadFile, - publicCollectionGalleryContext.credentials, + publicAlbumsCredentials, ); if (uploadManager.isUploadRunning()) { @@ -402,7 +409,7 @@ export const Upload: React.FC = ({ setDesktopZipItems(zipItems); }); } - }, [publicCollectionGalleryContext.credentials]); + }, [publicAlbumsCredentials]); // Handle selected files when user selects files for upload through the open // file / open folder selection dialog, or drag-and-drops them. @@ -502,7 +509,7 @@ export const Upload: React.FC = ({ ); uploadItemsAndPaths.current = prunedItemAndPaths; - if (uploadItemsAndPaths.current.length === 0) { + if (uploadItemsAndPaths.current.length == 0) { props.setLoading(false); return; } @@ -517,15 +524,15 @@ export const Upload: React.FC = ({ log.debug(() => ["Import suggestion", importSuggestion]); const _selectedUploadType = selectedUploadType.current; - selectedUploadType.current = null; + selectedUploadType.current = undefined; props.setLoading(false); (async () => { - if (publicCollectionGalleryContext.credentials) { + if (publicAlbumsCredentials) { setUploaderName( - await savedPublicCollectionUploaderName( - publicCollectionGalleryContext.credentials.accessToken, - ), + (await savedPublicCollectionUploaderName( + publicAlbumsCredentials.accessToken, + )) ?? "", ); showUploaderNameInput(); return; @@ -538,7 +545,7 @@ export const Upload: React.FC = ({ "root", pendingDesktopUploadCollectionName.current, ); - pendingDesktopUploadCollectionName.current = null; + pendingDesktopUploadCollectionName.current = undefined; } else { uploadFilesToNewCollections("parent"); } @@ -567,6 +574,7 @@ export const Upload: React.FC = ({ } } + // eslint-disable-next-line @typescript-eslint/no-empty-function let showNextModal = () => {}; if (importSuggestion.hasNestedFolders) { showNextModal = () => setOpenCollectionMappingChoice(true); @@ -577,16 +585,22 @@ export const Upload: React.FC = ({ }; } - onOpenCollectionSelector({ + onOpenCollectionSelector?.({ action: "upload", onSelectCollection: uploadFilesToExistingCollection, onCreateCollection: showNextModal, onCancel: handleCollectionSelectorCancel, }); })(); - }, [webFiles, desktopFiles, desktopFilePaths, desktopZipItems]); + }, [ + publicAlbumsCredentials, + webFiles, + desktopFiles, + desktopFilePaths, + desktopZipItems, + ]); - const preCollectionCreationAction = async () => { + const preCollectionCreationAction = () => { onCloseCollectionSelector?.(); props.setShouldDisableDropzone(uploadManager.isUploadInProgress()); setUploadPhase("preparing"); @@ -597,7 +611,7 @@ export const Upload: React.FC = ({ collection: Collection, uploaderName?: string, ) => { - await preCollectionCreationAction(); + preCollectionCreationAction(); const uploadItemsWithCollection = uploadItemsAndPaths.current.map( ([uploadItem, path], index) => ({ uploadItem, @@ -611,14 +625,14 @@ export const Upload: React.FC = ({ [collection], uploaderName, ); - uploadItemsAndPaths.current = null; + uploadItemsAndPaths.current = []; }; const uploadFilesToNewCollections = async ( mapping: CollectionMapping, collectionName?: string, ) => { - await preCollectionCreationAction(); + preCollectionCreationAction(); let uploadItemsWithCollection: UploadItemWithCollection[] = []; let collectionNameToUploadItems = new Map< string, @@ -626,7 +640,9 @@ export const Upload: React.FC = ({ >(); if (mapping == "root") { collectionNameToUploadItems.set( - collectionName, + // Un-enforced convention is that collectionName is always set + // when mapping is "root". TODO: Reflect this in types. + collectionName!, uploadItemsAndPaths.current, ); } else { @@ -666,7 +682,7 @@ export const Upload: React.FC = ({ return; } await waitInQueueAndUploadFiles(uploadItemsWithCollection, collections); - uploadItemsAndPaths.current = null; + uploadItemsAndPaths.current = []; }; const waitInQueueAndUploadFiles = async ( @@ -717,7 +733,7 @@ export const Upload: React.FC = ({ collections, uploadItemsWithCollection .map(({ uploadItem }) => uploadItem) - .filter((x) => x), + .filter((x) => x !== undefined), ); } const wereFilesProcessed = await uploadManager.uploadItems( @@ -821,16 +837,16 @@ export const Upload: React.FC = ({ } }; - const handlePublicUpload = async (uploaderName: string) => { + const handlePublicUpload = (uploaderName: string) => { savePublicCollectionUploaderName( - publicCollectionGalleryContext.credentials.accessToken, + publicAlbumsCredentials!.accessToken, uploaderName, ); // Do not keep the uploader name input dialog open while the upload is // progressing (the upload progress indicator will take out now). void uploadFilesToExistingCollection( - props.uploadCollection, + props.uploadCollection!, uploaderName, ); }; @@ -838,7 +854,7 @@ export const Upload: React.FC = ({ const handleCollectionMappingSelect = (mapping: CollectionMapping) => uploadFilesToNewCollections( mapping, - importSuggestion.rootFolderName ?? + importSuggestion.rootFolderName || t("autogenerated_default_album_name"), ); @@ -859,6 +875,7 @@ export const Upload: React.FC = ({ = ({ open={uploadProgressView} onClose={closeUploadProgress} percentComplete={percentComplete} - uploadFileNames={uploadFileNames} + uploadFileNames={uploadFileNames!} uploadCounter={uploadCounter} uploadPhase={uploadPhase} inProgressUploads={inProgressUploads} @@ -890,7 +907,7 @@ export const Upload: React.FC = ({ open={uploaderNameInputVisibilityProps.open} onClose={handleUploaderNameInputClose} uploaderName={uploaderName} - uploadFileCount={uploadItemsAndPaths.current?.length ?? 0} + uploadFileCount={uploadItemsAndPaths.current.length} onSubmit={handlePublicUpload} /> @@ -982,7 +999,7 @@ const defaultImportSuggestion: ImportSuggestion = { }; const deriveImportSuggestion = ( - uploadType: UploadType, + uploadType: UploadType | undefined, paths: string[], ): ImportSuggestion => { if (isDesktop && uploadType == "files") { @@ -994,8 +1011,8 @@ const deriveImportSuggestion = ( ); const separatorCount = (s: string) => separatorCounts.get(s)!; paths.sort((path1, path2) => separatorCount(path1) - separatorCount(path2)); - const firstPath = paths[0]; - const lastPath = paths[paths.length - 1]; + const firstPath = paths[0]!; + const lastPath = paths[paths.length - 1]!; const L = firstPath.length; let i = 0; @@ -1018,7 +1035,7 @@ const deriveImportSuggestion = ( } return { - rootFolderName: commonPathPrefix || null, + rootFolderName: commonPathPrefix || "", hasNestedFolders: firstFileFolder !== lastFileFolder, }; }; @@ -1072,7 +1089,7 @@ const setPendingUploads = async ( and on next upload we can directly start uploading to this collection */ if (collections.length == 1) { - collectionName = collections[0].name; + collectionName = collections[0]!.name; } const filePaths: string[] = []; @@ -1106,7 +1123,7 @@ type UploadTypeSelectorProps = ModalVisibilityProps & { * Called when the user selects one of the options. */ onSelect: (type: UploadType) => void; -}; +} & Pick; /** * Request the user to specify which type of file / folder / zip it is that they @@ -1120,38 +1137,26 @@ type UploadTypeSelectorProps = ModalVisibilityProps & { const UploadTypeSelector: React.FC = ({ open, onClose, + publicAlbumsCredentials, intent, pendingUploadType, onSelect, }) => { - const publicCollectionGalleryContext = useContext( - PublicCollectionGalleryContext, - ); - // Directly show the file selector for the public albums app on likely // mobile devices. const directlyShowUploadFiles = useIsTouchscreen(); useEffect(() => { - if ( - open && - directlyShowUploadFiles && - publicCollectionGalleryContext.credentials - ) { + if (open && directlyShowUploadFiles && publicAlbumsCredentials) { onSelect("files"); onClose(); } - }, [open]); + }, [open, publicAlbumsCredentials]); - const handleClose: DialogProps["onClose"] = (_, reason) => { + const handleClose: DialogProps["onClose"] = () => { // Disable backdrop clicks and esc keypresses if a selection is pending // processing so that the user doesn't inadvertently close the dialog. - if ( - pendingUploadType && - (reason == "backdropClick" || reason == "escapeKeyDown") - ) { - return; - } + if (pendingUploadType) return; onClose(); }; @@ -1210,20 +1215,22 @@ const UploadOptions: React.FC = ({ onSelect("folders"); break; case "zips": - !showTakeoutOptions - ? setShowTakeoutOptions(true) - : onSelect("zips"); + if (!showTakeoutOptions) { + setShowTakeoutOptions(true); + } else { + onSelect("zips"); + } break; } }; - return !showTakeoutOptions ? ( + return showTakeoutOptions ? ( + + ) : ( - ) : ( - ); }; diff --git a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/web/apps/photos/src/components/UploadProgress.tsx b/web/apps/photos/src/components/UploadProgress.tsx index 9b762c5189..f5366faeeb 100644 --- a/web/apps/photos/src/components/UploadProgress.tsx +++ b/web/apps/photos/src/components/UploadProgress.tsx @@ -1,3 +1,5 @@ +// TODO: Audit this file +/* eslint-disable @typescript-eslint/no-unsafe-argument */ import CloseIcon from "@mui/icons-material/Close"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; import UnfoldLessIcon from "@mui/icons-material/UnfoldLess"; @@ -32,17 +34,18 @@ import { t } from "i18next"; import memoize from "memoize-one"; import React, { createContext, - ReactElement, + useCallback, useContext, useEffect, useState, + type ReactElement, } from "react"; import { Trans } from "react-i18next"; import { areEqual, FixedSizeList as List, - ListChildComponentProps, - ListItemKeySelector, + type ListChildComponentProps, + type ListItemKeySelector, } from "react-window"; import type { FinishedUploadType, @@ -87,7 +90,7 @@ export const UploadProgress: React.FC = ({ if (open) setExpanded(false); }, [open]); - const handleClose = () => { + const handleClose = useCallback(() => { if (uploadPhase == "done") { onClose(); } else { @@ -102,7 +105,7 @@ export const UploadProgress: React.FC = ({ cancel: t("no"), }); } - }; + }, [uploadPhase, onClose, cancelUploads, showMiniDialog]); if (!open) { return <>; @@ -130,6 +133,9 @@ export const UploadProgress: React.FC = ({ ); }; +/** + * A context internal to the components of this file. + */ interface UploadProgressContextT { open: boolean; onClose: () => void; @@ -145,20 +151,19 @@ interface UploadProgressContextT { setExpanded: React.Dispatch>; } -const UploadProgressContext = createContext({ - open: null, - onClose: () => null, - uploadCounter: null, - uploadPhase: undefined, - percentComplete: null, - retryFailed: () => null, - inProgressUploads: null, - uploadFileNames: null, - finishedUploads: null, - hasLivePhotos: null, - expanded: null, - setExpanded: () => null, -}); +const UploadProgressContext = createContext( + undefined, +); + +/** + * Convenience hook to obtain the non-null asserted + * {@link UploadProgressContext}. + * + * The non-null assertion is reasonable since we provide it to the tree always + * in an invariant that is local to this file (and thus has less chance of being + * invalid in the future). + */ +const useUploadProgressContext = () => useContext(UploadProgressContext)!; const MinimizedUploadProgress: React.FC = () => ( @@ -176,9 +181,7 @@ const UploadProgressHeader: React.FC = () => ( ); const UploadProgressTitle: React.FC = () => { - const { setExpanded, onClose, expanded } = useContext( - UploadProgressContext, - ); + const { setExpanded, onClose, expanded } = useUploadProgressContext(); const toggleExpanded = () => setExpanded((expanded) => !expanded); return ( @@ -202,9 +205,8 @@ const UploadProgressTitle: React.FC = () => { }; const UploadProgressSubtitleText: React.FC = () => { - const { uploadPhase, uploadCounter, finishedUploads } = useContext( - UploadProgressContext, - ); + const { uploadPhase, uploadCounter, finishedUploads } = + useUploadProgressContext(); return ( { - const { uploadPhase, percentComplete } = useContext(UploadProgressContext); + const { uploadPhase, percentComplete } = useUploadProgressContext(); return ( @@ -300,9 +302,8 @@ const UploadProgressBar: React.FC = () => { }; function UploadProgressDialog() { - const { open, onClose, uploadPhase, finishedUploads } = useContext( - UploadProgressContext, - ); + const { open, onClose, uploadPhase, finishedUploads } = + useUploadProgressContext(); const [hasUnUploadedFiles, setHasUnUploadedFiles] = useState(false); @@ -377,11 +378,14 @@ function UploadProgressDialog() { const InProgressSection: React.FC = () => { const { inProgressUploads, hasLivePhotos, uploadFileNames, uploadPhase } = - useContext(UploadProgressContext); - const fileList = inProgressUploads ?? []; + useUploadProgressContext(); + const fileList = inProgressUploads; + + // @ts-expect-error Need to add types const renderListItem = ({ localFileID, progress }) => { return ( + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment {uploadFileNames.get(localFileID)} {uploadPhase == "uploading" && ( @@ -395,10 +399,12 @@ const InProgressSection: React.FC = () => { ); }; + // @ts-expect-error Need to add types const getItemTitle = ({ localFileID, progress }) => { return `${uploadFileNames.get(localFileID)} - ${progress}%`; }; + // @ts-expect-error Need to add types const generateItemKey = ({ localFileID, progress }) => { return `${localFileID}-${progress}`; }; @@ -408,7 +414,7 @@ const InProgressSection: React.FC = () => { }> @@ -492,35 +498,39 @@ const ResultSection: React.FC = ({ sectionTitle, sectionInfo, }) => { - const { finishedUploads, uploadFileNames } = useContext( - UploadProgressContext, - ); + const { finishedUploads, uploadFileNames } = useUploadProgressContext(); + const fileList = finishedUploads.get(resultType); if (!fileList?.length) { return <>; } + // @ts-expect-error Need to add types const renderListItem = (fileID) => { return ( + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment {uploadFileNames.get(fileID)} ); }; + // @ts-expect-error Need to add types const getItemTitle = (fileID) => { - return uploadFileNames.get(fileID); + return uploadFileNames.get(fileID)!; }; + // @ts-expect-error Need to add types const generateItemKey = (fileID) => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-return return fileID; }; return ( }> - + {sectionInfo && {sectionInfo}} @@ -589,11 +599,17 @@ const createItemData: ( getItemTitle: (item: T) => string, items: T[], ) => ItemData = memoize((renderListItem, getItemTitle, items) => ({ + // TODO + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment renderListItem, + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment getItemTitle, + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment items, })); +// TODO: Too many non-null assertions + // @ts-expect-error "TODO: Understand and fix the type error here" const Row: ({ index, @@ -613,12 +629,12 @@ const Row: ({ ], }, }} - title={getItemTitle(items[index])} + title={getItemTitle(items[index]!)} placement="bottom-start" enterDelay={300} enterNextDelay={100} > -
{renderListItem(items[index])}
+
{renderListItem(items[index]!)}
); }, @@ -634,7 +650,7 @@ function ItemList(props: ItemListProps) { const getItemKey: ListItemKeySelector> = (index, data) => { const { items } = data; - return props.generateItemKey(items[index]); + return props.generateItemKey(items[index]!); }; return ( @@ -642,11 +658,11 @@ function ItemList(props: ItemListProps) { @@ -657,15 +673,14 @@ function ItemList(props: ItemListProps) { } const DoneFooter: React.FC = () => { - const { uploadPhase, finishedUploads, retryFailed, onClose } = useContext( - UploadProgressContext, - ); + const { uploadPhase, finishedUploads, retryFailed, onClose } = + useUploadProgressContext(); return ( {uploadPhase == "done" && - (finishedUploads?.get("failed")?.length > 0 || - finishedUploads?.get("blocked")?.length > 0 ? ( + ((finishedUploads.get("failed")?.length ?? 0) > 0 || + (finishedUploads.get("blocked")?.length ?? 0) > 0 ? ( diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsx index c88e332776..fd7627b30a 100644 --- a/web/apps/photos/src/components/WatchFolder.tsx +++ b/web/apps/photos/src/components/WatchFolder.tsx @@ -53,7 +53,7 @@ export const WatchFolder: React.FC = ({ useModalVisibility(); useEffect(() => { - watcher.getWatches().then((ws) => setWatches(ws)); + void watcher.getWatches().then((ws) => setWatches(ws)); }, []); useEffect(() => { @@ -63,7 +63,7 @@ export const WatchFolder: React.FC = ({ e.preventDefault(); e.stopPropagation(); - for (const file of e.dataTransfer.files) { + for (const file of e.dataTransfer?.files ?? []) { void selectCollectionMappingAndAddWatchIfDirectory(file); } }; @@ -72,6 +72,8 @@ export const WatchFolder: React.FC = ({ return () => { removeEventListener("drop", handleWatchFolderDrop); }; + // TODO: + // eslint-disable-next-line react-hooks/exhaustive-deps }, [open]); const selectCollectionMappingAndAddWatchIfDirectory = async ( @@ -87,7 +89,7 @@ export const WatchFolder: React.FC = ({ const selectCollectionMappingAndAddWatch = async (path: string) => { const filePaths = await ensureElectron().fs.findFiles(path); if (areAllInSameDirectory(filePaths)) { - addWatch(path, "root"); + await addWatch(path, "root"); } else { setSavedFolderPath(path); showMappingChoice(); @@ -109,7 +111,7 @@ export const WatchFolder: React.FC = ({ const handleCollectionMappingSelect = (mapping: CollectionMapping) => { setSavedFolderPath(undefined); - addWatch(savedFolderPath!, mapping); + void addWatch(savedFolderPath!, mapping); }; return ( @@ -152,13 +154,11 @@ export const WatchFolder: React.FC = ({ interface WatchList { watches: FolderWatch[] | undefined; - removeWatch: (watch: FolderWatch) => void; + removeWatch: (watch: FolderWatch) => Promise; } const WatchList: React.FC = ({ watches, removeWatch }) => - (watches ?? []).length === 0 ? ( - - ) : ( + watches?.length ? ( {watches.map((watch) => ( = ({ watches, removeWatch }) => /> ))} + ) : ( + ); const NoWatches: React.FC = () => ( @@ -201,13 +203,13 @@ const Check: React.FC = () => ( interface WatchEntryProps { watch: FolderWatch; - removeWatch: (watch: FolderWatch) => void; + removeWatch: (watch: FolderWatch) => Promise; } const WatchEntry: React.FC = ({ watch, removeWatch }) => { const { showMiniDialog } = useBaseContext(); - const confirmStopWatching = () => { + const confirmStopWatching = () => showMiniDialog({ title: t("stop_watching_folder_title"), message: t("stop_watching_folder_message"), @@ -217,7 +219,6 @@ const WatchEntry: React.FC = ({ watch, removeWatch }) => { action: () => removeWatch(watch), }, }); - }; return ( diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx index 39dc37b57c..018e98efbb 100644 --- a/web/apps/photos/src/pages/_app.tsx +++ b/web/apps/photos/src/pages/_app.tsx @@ -4,13 +4,13 @@ import { CssBaseline, Typography } from "@mui/material"; import { styled, ThemeProvider } from "@mui/material/styles"; import { useNotification } from "components/utils/hooks-app"; import { - getData, isLocalStorageAndIndexedDBMismatch, + savedLocalUser, + savedPartialLocalUser, } from "ente-accounts/services/accounts-db"; -import type { User } from "ente-accounts/services/user"; import { isDesktop, staticAppTitle } from "ente-base/app"; import { CenteredRow } from "ente-base/components/containers"; -import { CustomHead } from "ente-base/components/Head"; +import { CustomHeadPhotosOrAlbums } from "ente-base/components/Head"; import { LoadingIndicator, TranslucentLoadingOverlay, @@ -26,7 +26,7 @@ import { photosTheme } from "ente-base/components/utils/theme"; import { BaseContext, deriveBaseContext } from "ente-base/context"; import log from "ente-base/log"; import { logStartupBanner } from "ente-base/log-web"; -import { AppUpdate } from "ente-base/types/ipc"; +import type { AppUpdate } from "ente-base/types/ipc"; import { initVideoProcessing, isHLSGenerationSupported, @@ -68,12 +68,12 @@ const App: React.FC = ({ Component, pageProps }) => { const logout = useCallback(() => void photosLogout(), []); useEffect(() => { - const user = getData("user") as User | undefined | null; - logStartupBanner(user?.id); + logStartupBanner(savedLocalUser()?.id); void isLocalStorageAndIndexedDBMismatch().then((mismatch) => { if (mismatch) { log.error("Logging out (IndexedDB and local storage mismatch)"); - return logout(); + logout(); + return; } else { return runMigrations(); } @@ -82,15 +82,18 @@ const App: React.FC = ({ Component, pageProps }) => { useEffect(() => { const electron = globalThis.electron; - if (!electron) return; + if (!electron) return undefined; // Attach various listeners for events sent to us by the Node.js layer. // This is for events that we should listen for always, not just when // the user is logged in. const handleOpenEnteURL = (url: string) => { - if (url.startsWith("ente://app")) router.push(url); - else log.info(`Ignoring unhandled open request for URL ${url}`); + if (url.startsWith("ente://app")) { + void router.push(url); + } else { + log.info(`Ignoring unhandled open request for URL ${url}`); + } }; const showUpdateDialog = (update: AppUpdate) => { @@ -119,7 +122,7 @@ const App: React.FC = ({ Component, pageProps }) => { electron.onOpenEnteURL(undefined); electron.onAppUpdateAvailable(undefined); }; - }, []); + }, [router, showMiniDialog, showNotification]); useEffect(() => { if (isDesktop) void resumeExportsIfNeeded(); @@ -128,11 +131,20 @@ const App: React.FC = ({ Component, pageProps }) => { useEffect(() => { const query = new URLSearchParams(window.location.search); const needsFamilyRedirect = query.get("redirect") == "families"; - if (needsFamilyRedirect && getData("user")?.token) + if (needsFamilyRedirect && savedPartialLocalUser()?.token) redirectToFamilyPortal(); - router.events.on("routeChangeStart", () => { - if (needsFamilyRedirect && getData("user")?.token) { + // Creating this inline, we need this on debug only and temporarily. Can + // remove the debug print itself after a while. + interface NROptions { + shallow: boolean; + } + router.events.on("routeChangeStart", (url: string, o: NROptions) => { + if (process.env.NEXT_PUBLIC_ENTE_TRACE_RT) { + log.debug(() => [o.shallow ? "route-shallow" : "route", url]); + } + + if (needsFamilyRedirect && savedPartialLocalUser()?.token) { redirectToFamilyPortal(); // https://github.com/vercel/next.js/issues/2476#issuecomment-573460710 @@ -140,6 +152,8 @@ const App: React.FC = ({ Component, pageProps }) => { throw "Aborting route change, redirection in process...."; } }); + // TODO: + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const baseContext = useMemo( @@ -167,7 +181,7 @@ const App: React.FC = ({ Component, pageProps }) => { return ( - + diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index 46579debcf..5e1437d64b 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -1,15 +1,16 @@ +// TODO: Audit this file (the code here is mostly fine, but needs revisiting +// the file it depends on have been audited and their interfaces fixed). +/* eslint-disable react-hooks/exhaustive-deps */ +/* eslint-disable @typescript-eslint/no-floating-promises */ import ArrowBackIcon from "@mui/icons-material/ArrowBack"; import FileUploadOutlinedIcon from "@mui/icons-material/FileUploadOutlined"; import MenuIcon from "@mui/icons-material/Menu"; -import { IconButton, Stack, Typography } from "@mui/material"; +import { IconButton, Link, Stack, Typography } from "@mui/material"; import { AuthenticateUser } from "components/AuthenticateUser"; import { GalleryBarAndListHeader } from "components/Collections/GalleryBarAndListHeader"; -import { TimeStampListItem } from "components/FileList"; +import { DownloadStatusNotifications } from "components/DownloadStatusNotifications"; +import type { FileListHeaderOrFooter } from "components/FileList"; import { FileListWithViewer } from "components/FileListWithViewer"; -import { - FilesDownloadProgress, - FilesDownloadProgressAttributes, -} from "components/FilesDownloadProgress"; import { FixCreationTime } from "components/FixCreationTime"; import { Sidebar } from "components/Sidebar"; import { Upload } from "components/Upload"; @@ -17,10 +18,10 @@ import { sessionExpiredDialogAttributes } from "ente-accounts/components/utils/d import { getAndClearIsFirstLogin, getAndClearJustSignedUp, - getData, } from "ente-accounts/services/accounts-db"; import { stashRedirect } from "ente-accounts/services/redirect"; import { isSessionInvalid } from "ente-accounts/services/session"; +import { ensureLocalUser } from "ente-accounts/services/user"; import type { MiniDialogAttributes } from "ente-base/components/MiniDialog"; import { NavbarBase } from "ente-base/components/Navbar"; import { SingleInputDialog } from "ente-base/components/SingleInputDialog"; @@ -35,12 +36,13 @@ import { useBaseContext } from "ente-base/context"; import log from "ente-base/log"; import { clearSessionStorage, - haveCredentialsInSession, + haveMasterKeyInSession, masterKeyFromSession, } from "ente-base/session"; -import { getAuthToken } from "ente-base/token"; +import { savedAuthToken } from "ente-base/token"; import { FullScreenDropZone } from "ente-gallery/components/FullScreenDropZone"; import { type UploadTypeSelectorIntent } from "ente-gallery/components/Upload"; +import { useSaveGroups } from "ente-gallery/components/utils/save-groups"; import { type Collection } from "ente-media/collection"; import { type EnteFile } from "ente-media/file"; import { type ItemVisibility } from "ente-media/file-metadata"; @@ -77,7 +79,10 @@ import { } from "ente-new/photos/components/gallery/reducer"; import { notifyOthersFilesDialogAttributes } from "ente-new/photos/components/utils/dialog-attributes"; import { useIsOffline } from "ente-new/photos/components/utils/use-is-offline"; -import { usePeopleStateSnapshot } from "ente-new/photos/components/utils/use-snapshot"; +import { + usePeopleStateSnapshot, + useUserDetailsSnapshot, +} from "ente-new/photos/components/utils/use-snapshot"; import { shouldShowWhatsNew } from "ente-new/photos/services/changelog"; import { addToFavoritesCollection, @@ -108,9 +113,8 @@ import { import type { SearchOption } from "ente-new/photos/services/search/types"; import { initSettings } from "ente-new/photos/services/settings"; import { - initUserDetailsOrTriggerPull, redirectToCustomerPortal, - userDetailsSnapshot, + savedUserDetailsOrTriggerPull, verifyStripeSubscription, } from "ente-new/photos/services/user-details"; import { usePhotosAppContext } from "ente-new/photos/types/context"; @@ -118,15 +122,14 @@ import { PromiseQueue } from "ente-utils/promise"; import { t } from "i18next"; import { useRouter, type NextRouter } from "next/router"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; -import { FileWithPath } from "react-dropzone"; +import type { FileWithPath } from "react-dropzone"; import { Trans } from "react-i18next"; import { uploadManager } from "services/upload-manager"; import { - SelectedState, - SetFilesDownloadProgressAttributes, - SetFilesDownloadProgressAttributesCreator, -} from "types/gallery"; -import { getSelectedFiles, performFileOp } from "utils/file"; + getSelectedFiles, + performFileOp, + type SelectedState, +} from "utils/file"; /** * The default view for logged in users. @@ -181,25 +184,31 @@ const Page: React.FC = () => { const [fixCreationTimeFiles, setFixCreationTimeFiles] = useState< EnteFile[] >([]); - - const peopleState = usePeopleStateSnapshot(); - - // The (non-sticky) header shown at the top of the gallery items. - const [photoListHeader, setPhotoListHeader] = - useState(null); - - const [ - filesDownloadProgressAttributesList, - setFilesDownloadProgressAttributesList, - ] = useState([]); - const [, setPostCreateAlbumOp] = useState( - undefined, - ); + const [fileListHeader, setFileListHeader] = useState< + FileListHeaderOrFooter | undefined + >(undefined); const [openCollectionSelector, setOpenCollectionSelector] = useState(false); const [collectionSelectorAttributes, setCollectionSelectorAttributes] = useState(); + const userDetails = useUserDetailsSnapshot(); + const peopleState = usePeopleStateSnapshot(); + + const { saveGroups, onAddSaveGroup, onRemoveSaveGroup } = useSaveGroups(); + const [, setPostCreateAlbumOp] = useState( + undefined, + ); + + /** + * The last time (epoch milliseconds) when we prompted the user for their + * password when opening the hidden section. + * + * This is used to implement a grace window, where we don't reprompt them + * for their password for the same purpose again and again. + */ + const lastAuthenticationForHiddenTimestamp = useRef(0); + const { show: showSidebar, props: sidebarVisibilityProps } = useModalVisibility(); const { show: showPlanSelector, props: planSelectorVisibilityProps } = @@ -279,7 +288,7 @@ const Page: React.FC = () => { let syncIntervalID: ReturnType | undefined; void (async () => { - if (!haveCredentialsInSession() || !(await getAuthToken())) { + if (!haveMasterKeyInSession() || !(await savedAuthToken())) { // If we don't have master key or auth token, reauthenticate. stashRedirect("/gallery"); router.push("/"); @@ -301,7 +310,6 @@ const Page: React.FC = () => { // One time inits. preloadImage("/images/subscription-card-background"); initSettings(); - await initUserDetailsOrTriggerPull(); setupSelectAllKeyBoardShortcutHandler(); // Show the initial state while the rest of the sequence proceeds. @@ -318,13 +326,12 @@ const Page: React.FC = () => { } // Initialize the reducer. - const user = getData("user"); - // TODO: Pass entire snapshot to reducer? - const familyData = userDetailsSnapshot()?.familyData; + const user = ensureLocalUser(); + const userDetails = await savedUserDetailsOrTriggerPull(); dispatch({ type: "mount", user, - familyData, + familyData: userDetails?.familyData, collections: await savedCollections(), collectionFiles: await savedCollectionFiles(), trashItems: await savedTrashItems(), @@ -354,6 +361,13 @@ const Page: React.FC = () => { }; }, []); + useEffect(() => { + // Only act on updates after the initial mount has completed. + if (state.user && userDetails) { + dispatch({ type: "setUserDetails", userDetails }); + } + }, [state.user, userDetails]); + useEffect(() => { if (typeof activeCollectionID == "undefined" || !router.isReady) { return; @@ -368,7 +382,7 @@ const Page: React.FC = () => { }, [activeCollectionID, router.isReady]); useEffect(() => { - if (router.isReady && haveCredentialsInSession()) { + if (router.isReady && haveMasterKeyInSession()) { handleSubscriptionCompletionRedirectIfNeeded( showMiniDialog, showLoadingBar, @@ -397,15 +411,14 @@ const Page: React.FC = () => { useEffect(() => { if (isInSearchMode && state.searchSuggestion) { - setPhotoListHeader({ - height: 104, + setFileListHeader({ item: ( ), - tag: "header", + height: 104, }); } }, [isInSearchMode, state.searchSuggestion, state.searchResults]); @@ -440,7 +453,7 @@ const Page: React.FC = () => { // - We haven't fetched the user yet; !user || // - There is nothing to select; - !filteredFiles?.length || + !filteredFiles.length || // - Any of the modals are open. uploadTypeSelectorView || openCollectionSelector || @@ -474,13 +487,14 @@ const Page: React.FC = () => { selected.ownCount++; } selected.count++; + // @ts-expect-error Selection code needs type fixing selected[item.id] = true; }); setSelected(selected); }; const clearSelection = () => { - if (!selected?.count) { + if (!selected.count) { return; } setSelected({ @@ -623,39 +637,6 @@ const Page: React.FC = () => { }; }; - const setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator = - useCallback((folderName, collectionID, isHidden) => { - const id = Math.random(); - const updater: SetFilesDownloadProgressAttributes = (value) => { - setFilesDownloadProgressAttributesList((prev) => { - const attributes = prev?.find((attr) => attr.id === id); - const updatedAttributes = - typeof value == "function" - ? value(attributes) - : { ...attributes, ...value }; - const updatedAttributesList = attributes - ? prev.map((attr) => - attr.id === id ? updatedAttributes : attr, - ) - : [...prev, updatedAttributes]; - - return updatedAttributesList; - }); - }; - updater({ - id, - folderName, - collectionID, - isHidden, - canceller: null, - total: 0, - success: 0, - failed: 0, - downloadDirPath: null, - }); - return updater; - }, []); - const handleRemoveFilesFromCollection = (collection: Collection) => { void (async () => { showLoadingBar(); @@ -693,7 +674,8 @@ const Page: React.FC = () => { filteredFiles, ); const userFiles = selectedFiles.filter( - (f) => f.ownerID == user.id, + // If a selection is happening, there must be a user. + (f) => f.ownerID == user!.id, ); const sourceCollectionID = selected.collectionID; if (userFiles.length > 0) { @@ -743,26 +725,28 @@ const Page: React.FC = () => { void (async () => { showLoadingBar(); try { - const selectedFiles = getSelectedFiles( - selected, + // When hiding use all non-hidden files instead of the filtered + // files since we want to move all files copies to the hidden + // collection. + const opFiles = op == "hide" - ? // passing files here instead of filteredData for hide since - // we want to move all files copies to hidden collection - state.collectionFiles.filter( + ? state.collectionFiles.filter( (f) => !state.hiddenFileIDs.has(f.id), ) - : filteredFiles, - ); + : filteredFiles; + const selectedFiles = getSelectedFiles(selected, opFiles); const toProcessFiles = op == "download" ? selectedFiles : selectedFiles.filter( - (file) => file.ownerID == user.id, + // There'll be a user if files are being selected. + (file) => file.ownerID == user!.id, ); if (toProcessFiles.length > 0) { await performFileOp( op, toProcessFiles, + onAddSaveGroup, handleMarkTempDeleted, () => dispatch({ type: "clearTempDeleted" }), (files) => dispatch({ type: "markTempHidden", files }), @@ -771,7 +755,6 @@ const Page: React.FC = () => { setFixCreationTimeFiles(files); showFixCreationTime(); }, - setFilesDownloadProgressAttributesCreator, ); } // Apart from download, the other operations currently only work @@ -794,24 +777,24 @@ const Page: React.FC = () => { const handleSelectSearchOption = ( searchOption: SearchOption | undefined, ) => { - const type = searchOption?.suggestion.type; - if (type == "collection" || type == "person") { + if (searchOption) { + const type = searchOption.suggestion.type; if (type == "collection") { dispatch({ type: "showCollectionSummary", collectionSummaryID: searchOption.suggestion.collectionID, }); - } else { + } else if (type == "person") { dispatch({ type: "showPerson", personID: searchOption.suggestion.person.id, }); + } else { + dispatch({ + type: "enterSearchMode", + searchSuggestion: searchOption.suggestion, + }); } - } else if (searchOption) { - dispatch({ - type: "enterSearchMode", - searchSuggestion: searchOption.suggestion, - }); } else { dispatch({ type: "exitSearch" }); } @@ -823,44 +806,80 @@ const Page: React.FC = () => { setUploadTypeSelectorIntent(intent ?? "upload"); }; - const handleShowCollectionSummary = ( - collectionSummaryID: number | undefined, - ) => { - // Trigger a pull of the latest data from remote when opening the trash. - // - // This is needed for a specific scenario: - // - // 1. User deletes a collection, selecting the option to delete files. - // 2. Museum acks, and then client does a trash pull. - // - // This trash pull will not contain the files that belonged to the - // collection that got deleted because the collection deletion is a - // asynchronous operation. - // - // So the user might not see the entry for the just deleted file if they - // were to go to the trash meanwhile (until the next pull happens). To - // avoid this, we trigger a trash pull whenever it is opened. - if (collectionSummaryID == PseudoCollectionID.trash) { - void remoteFilesPull(); - } + const handleShowCollectionSummaryWithID = useCallback( + (collectionSummaryID: number | undefined) => { + // Trigger a pull of the latest data from remote when opening the trash. + // + // This is needed for a specific scenario: + // + // 1. User deletes a collection, selecting the option to delete files. + // 2. Museum acks, and then client does a trash pull. + // + // This trash pull will not contain the files that belonged to the + // collection that got deleted because the collection deletion is a + // asynchronous operation. + // + // So the user might not see the entry for the just deleted file if they + // were to go to the trash meanwhile (until the next pull happens). To + // avoid this, we trigger a trash pull whenever it is opened. + if (collectionSummaryID == PseudoCollectionID.trash) { + void remoteFilesPull(); + } - dispatch({ type: "showCollectionSummary", collectionSummaryID }); - }; + dispatch({ type: "showCollectionSummary", collectionSummaryID }); + }, + [], + ); - // The same function can also be used to show collections since the - // namespace for the collection IDs and collection summary IDs are disjoint. - const handleShowCollection = handleShowCollectionSummary; + /** + * Switch to gallery view to show a collection or pseudo-collection. + * + * @param collectionSummaryID The ID of the {@link CollectionSummary} to + * show. If not provided, show the "All" section. + * + * @param isHidden If `true`, then any reauthentication as appropriate + * before switching to the hidden section of the app is performed first + * before before switching to the relevant collection or pseudo-collection. + */ + const showCollectionSummary = useCallback( + async ( + collectionSummaryID: number | undefined, + isHiddenCollectionSummary: boolean | undefined, + ) => { + const lastAuthAt = lastAuthenticationForHiddenTimestamp.current; + if ( + isHiddenCollectionSummary && + barMode != "hidden-albums" && + Date.now() - lastAuthAt > 5 * 60 * 1e3 /* 5 minutes */ + ) { + await authenticateUser(); + lastAuthenticationForHiddenTimestamp.current = Date.now(); + } + handleShowCollectionSummaryWithID(collectionSummaryID); + }, + [authenticateUser, handleShowCollectionSummaryWithID, barMode], + ); + + const handleSidebarShowCollectionSummary = showCollectionSummary; + + const handleDownloadStatusNotificationsShowCollectionSummary = useCallback( + ( + collectionSummaryID: number | undefined, + isHiddenCollectionSummary: boolean | undefined, + ) => { + void showCollectionSummary( + collectionSummaryID, + isHiddenCollectionSummary, + ); + }, + [showCollectionSummary], + ); const handleChangeBarMode = (mode: GalleryBarMode) => mode == "people" ? dispatch({ type: "showPeople" }) : dispatch({ type: "showAlbums" }); - const handleShowHiddenSection = useCallback( - () => authenticateUser().then(() => dispatch({ type: "showHidden" })), - [], - ); - const handleFileViewerToggleFavorite = useCallback( async (file: EnteFile) => { const fileID = file.id; @@ -900,12 +919,13 @@ const Page: React.FC = () => { // 3. The caller (eventually) triggers a remote pull in the // background, but meanwhile uses this updated metadata. // - // TODO(RE): Replace with file fetch? + // TODO: Replace with files pull? dispatch({ type: "unsyncedPrivateMagicMetadataUpdate", fileID, privateMagicMetadata: { ...file.magicMetadata, + count: file.magicMetadata?.count ?? 0, version: (file.magicMetadata?.version ?? 0) + 1, data: { ...file.magicMetadata?.data, visibility }, }, @@ -949,6 +969,14 @@ const Page: React.FC = () => { [], ); + const showAppDownloadFooter = + state.collectionFiles.length < 30 && !isInSearchMode; + + const fileListFooter = useMemo( + () => (showAppDownloadFooter ? createAppDownloadFooter() : undefined), + [showAppDownloadFooter], + ); + const showSelectionBar = selected.count > 0 && selected.collectionID === activeCollectionID; @@ -978,20 +1006,17 @@ const Page: React.FC = () => { attributes={collectionSelectorAttributes} collectionSummaries={normalCollectionSummaries} collectionForCollectionSummaryID={(id) => - // Null assert since the collection selector should only - // show "selectable" normalCollectionSummaries. See: - // [Note: Picking from selectable collection summaries]. findCollectionCreatingUncategorizedIfNeeded( state.collections, id, - )! + ) } /> - { { emailByUserID={state.emailByUserID} shareSuggestionEmails={state.shareSuggestionEmails} people={ - (state.view.type == "people" + (state.view?.type == "people" ? state.view.visiblePeople : undefined) ?? [] } onChangeMode={handleChangeBarMode} setBlockingLoad={setBlockingLoad} - setActiveCollectionID={handleShowCollectionSummary} + setActiveCollectionID={handleShowCollectionSummaryWithID} onRemotePull={remotePull} onSelectPerson={handleSelectPerson} /> @@ -1111,8 +1138,7 @@ const Page: React.FC = () => { state.uncategorizedCollectionSummaryID } onShowPlanSelector={showPlanSelector} - onShowCollectionSummary={handleShowCollectionSummary} - onShowHiddenSection={handleShowHiddenSection} + onShowCollectionSummary={handleSidebarShowCollectionSummary} onShowExport={showExport} onAuthenticateUser={authenticateUser} /> @@ -1127,25 +1153,24 @@ const Page: React.FC = () => { /> ) : !isInSearchMode && !isFirstLoad && - state.view.type == "people" && + state.view?.type == "people" && !state.view.activePerson ? ( ) : ( { fileNormalCollectionIDs, pendingFavoriteUpdates, pendingVisibilityUpdates, + onAddSaveGroup, }} emailByUserID={state.emailByUserID} - setFilesDownloadProgressAttributesCreator={ - setFilesDownloadProgressAttributesCreator - } onToggleFavorite={handleFileViewerToggleFavorite} onFileVisibilityUpdate={ handleFileViewerFileVisibilityUpdate @@ -1214,7 +1237,7 @@ const OfflineMessage: React.FC = () => ( * Preload all three variants of a responsive image. */ const preloadImage = (imgBasePath: string) => { - const srcset = []; + const srcset: string[] = []; for (let i = 1; i <= 3; i++) srcset.push(`${imgBasePath}/${i}x.png ${i}x`); new Image().srcset = srcset.join(","); }; @@ -1301,11 +1324,11 @@ const HiddenSectionNavbarContents: React.FC< * * Check if these query parameters exist, and if so, act on them appropriately. */ -export async function handleSubscriptionCompletionRedirectIfNeeded( +const handleSubscriptionCompletionRedirectIfNeeded = async ( showMiniDialog: (attributes: MiniDialogAttributes) => void, showLoadingBar: () => void, router: NextRouter, -) { +) => { const { session_id: sessionID, status, reason } = router.query; if (status == "success") { @@ -1316,7 +1339,7 @@ export async function handleSubscriptionCompletionRedirectIfNeeded( message: ( ), continue: { text: t("ok") }, @@ -1329,7 +1352,7 @@ export async function handleSubscriptionCompletionRedirectIfNeeded( ); } } else if (status == "fail") { - log.error(`Subscription purchase failed: ${reason}`); + log.error(`Subscription purchase failed`, reason); switch (reason) { case "canceled": showMiniDialog({ @@ -1370,4 +1393,40 @@ export async function handleSubscriptionCompletionRedirectIfNeeded( ); } } -} +}; + +const createAppDownloadFooter = (): FileListHeaderOrFooter => ({ + item: ( + + + ), + b: ( + + ), + }} + /> + + ), + height: 90, +}); diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx index 291314daa5..d276aad67b 100644 --- a/web/apps/photos/src/pages/index.tsx +++ b/web/apps/photos/src/pages/index.tsx @@ -1,7 +1,7 @@ import { Box, Stack, Typography, styled } from "@mui/material"; import { LoginContents } from "ente-accounts/components/LoginContents"; import { SignUpContents } from "ente-accounts/components/SignUpContents"; -import { getData } from "ente-accounts/services/accounts-db"; +import { savedPartialLocalUser } from "ente-accounts/services/accounts-db"; import { CenteredFill, CenteredRow } from "ente-base/components/containers"; import { EnteLogo } from "ente-base/components/EnteLogo"; import { ActivityIndicator } from "ente-base/components/mui/ActivityIndicator"; @@ -9,9 +9,10 @@ import { FocusVisibleButton } from "ente-base/components/mui/FocusVisibleButton" import { useBaseContext } from "ente-base/context"; import { albumsAppOrigin, customAPIHost } from "ente-base/origins"; import { - haveAuthenticatedSession, + masterKeyFromSession, updateSessionFromElectronSafeStorageIfNeeded, } from "ente-base/session"; +import { savedAuthToken } from "ente-base/token"; import { canAccessIndexedDB } from "ente-gallery/services/files-db"; import { DevSettings } from "ente-new/photos/components/DevSettings"; import { t } from "i18next"; @@ -34,53 +35,47 @@ const Page: React.FC = () => { ); useEffect(() => { - refreshHost(); - const currentURL = new URL(window.location.href); - const albumsURL = new URL(albumsAppOrigin()); - currentURL.pathname = router.pathname; - if ( - currentURL.host === albumsURL.host && - currentURL.pathname != "/shared-albums" - ) { - handleAlbumsRedirect(currentURL); - } else { - handleNormalRedirect(); - } - }, [refreshHost]); - - const handleAlbumsRedirect = async (currentURL: URL) => { - const end = currentURL.hash.lastIndexOf("&"); - const hash = currentURL.hash.slice(1, end !== -1 ? end : undefined); - await router.replace({ - pathname: "/shared-albums", - search: currentURL.search, - hash: hash, - }); - await ensureIndexedDBAccess(); - }; - - const handleNormalRedirect = async () => { - const user = getData("user"); - await updateSessionFromElectronSafeStorageIfNeeded(); - if (await haveAuthenticatedSession()) { - await router.push("/gallery"); - } else if (user?.email) { - await router.push("/verify"); - } - await ensureIndexedDBAccess(); - }; - - const ensureIndexedDBAccess = useCallback(async () => { - if (!(await canAccessIndexedDB())) { - showMiniDialog({ - title: t("error"), - message: t("local_storage_not_accessible"), - nonClosable: true, - cancel: false, - }); - } - setLoading(false); - }, [showMiniDialog]); + void (async () => { + refreshHost(); + const currentURL = new URL(window.location.href); + const albumsURL = new URL(albumsAppOrigin()); + currentURL.pathname = router.pathname; + if ( + currentURL.host == albumsURL.host && + currentURL.pathname != "/shared-albums" + ) { + const end = currentURL.hash.lastIndexOf("&"); + const hash = currentURL.hash.slice( + 1, + end !== -1 ? end : undefined, + ); + await router.replace({ + pathname: "/shared-albums", + search: currentURL.search, + hash: hash, + }); + } else { + await updateSessionFromElectronSafeStorageIfNeeded(); + if ( + (await masterKeyFromSession()) && + (await savedAuthToken()) + ) { + await router.push("/gallery"); + } else if (savedPartialLocalUser()?.email) { + await router.push("/verify"); + } + } + if (!(await canAccessIndexedDB())) { + showMiniDialog({ + title: t("error"), + message: t("local_storage_not_accessible"), + nonClosable: true, + cancel: false, + }); + } + setLoading(false); + })(); + }, [showMiniDialog, router, refreshHost]); return ( @@ -289,7 +284,7 @@ const DesktopBox = styled(CenteredRow)` const Slideshow: React.FC = () => { const [selectedIndex, setSelectedIndex] = useState(0); - const containerRef = useRef(undefined); + const containerRef = useRef(null); useEffect(() => { const intervalID = setInterval(() => { diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx index 92a49006ab..bd65bc12f4 100644 --- a/web/apps/photos/src/pages/shared-albums.tsx +++ b/web/apps/photos/src/pages/shared-albums.tsx @@ -1,15 +1,21 @@ +// TODO: Audit this file (too many null assertions + other issues) +/* eslint-disable @typescript-eslint/no-floating-promises */ import AddPhotoAlternateOutlinedIcon from "@mui/icons-material/AddPhotoAlternateOutlined"; import CloseIcon from "@mui/icons-material/Close"; import DownloadIcon from "@mui/icons-material/Download"; import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined"; -import { Box, Button, IconButton, Stack, styled, Tooltip } from "@mui/material"; -import Typography from "@mui/material/Typography"; -import { TimeStampListItem } from "components/FileList"; -import { FileListWithViewer } from "components/FileListWithViewer"; import { - FilesDownloadProgress, - FilesDownloadProgressAttributes, -} from "components/FilesDownloadProgress"; + Box, + Button, + IconButton, + Link, + Stack, + styled, + Tooltip, +} from "@mui/material"; +import Typography from "@mui/material/Typography"; +import { DownloadStatusNotifications } from "components/DownloadStatusNotifications"; +import { FileListWithViewer } from "components/FileListWithViewer"; import { Upload } from "components/Upload"; import { AccountsPageContents, @@ -44,11 +50,19 @@ import { useBaseContext } from "ente-base/context"; import { isHTTP401Error, isHTTPErrorWithStatus, - PublicAlbumsCredentials, + type PublicAlbumsCredentials, } from "ente-base/http"; import log from "ente-base/log"; import { FullScreenDropZone } from "ente-gallery/components/FullScreenDropZone"; +import { + useSaveGroups, + type AddSaveGroup, +} from "ente-gallery/components/utils/save-groups"; import { downloadManager } from "ente-gallery/services/download"; +import { + downloadAndSaveCollectionFiles, + downloadAndSaveFiles, +} from "ente-gallery/services/save"; import { extractCollectionKeyFromShareURL } from "ente-gallery/services/share"; import { updateShouldDisableCFUploadProxy } from "ente-gallery/services/upload"; import { sortFiles } from "ente-gallery/utils/file"; @@ -73,49 +87,30 @@ import { GalleryItemsHeaderAdapter, GalleryItemsSummary, } from "ente-new/photos/components/gallery/ListHeader"; -import { isHiddenCollection } from "ente-new/photos/services/collection"; import { PseudoCollectionID } from "ente-new/photos/services/collection-summary"; import { usePhotosAppContext } from "ente-new/photos/types/context"; import { t } from "i18next"; import { useRouter } from "next/router"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { type FileWithPath } from "react-dropzone"; +import { Trans } from "react-i18next"; import { uploadManager } from "services/upload-manager"; -import { - SelectedState, - SetFilesDownloadProgressAttributes, - SetFilesDownloadProgressAttributesCreator, -} from "types/gallery"; -import { downloadCollectionFiles } from "utils/collection"; -import { downloadSelectedFiles, getSelectedFiles } from "utils/file"; -import { PublicCollectionGalleryContext } from "utils/publicCollectionGallery"; +import { getSelectedFiles, type SelectedState } from "utils/file"; export default function PublicCollectionGallery() { const { showMiniDialog, onGenericError } = useBaseContext(); const { showLoadingBar, hideLoadingBar } = usePhotosAppContext(); - const credentials = useRef(undefined); - const collectionKey = useRef(null); - const url = useRef(null); - const referralCode = useRef(""); const [publicCollection, setPublicCollection] = useState< Collection | undefined >(undefined); const [publicFiles, setPublicFiles] = useState( undefined, ); - const [errorMessage, setErrorMessage] = useState(null); + const [referralCode, setReferralCode] = useState(""); + const [errorMessage, setErrorMessage] = useState(""); const [loading, setLoading] = useState(true); const [isPasswordProtected, setIsPasswordProtected] = useState(false); - - const router = useRouter(); - - const [photoListHeader, setPhotoListHeader] = - useState(null); - - const [photoListFooter, setPhotoListFooter] = - useState(null); - const [uploadTypeSelectorView, setUploadTypeSelectorView] = useState(false); const [blockingLoad, setBlockingLoad] = useState(false); const [shouldDisableDropzone, setShouldDisableDropzone] = useState(false); @@ -129,53 +124,13 @@ export default function PublicCollectionGallery() { context: undefined, }); - const [ - filesDownloadProgressAttributesList, - setFilesDownloadProgressAttributesList, - ] = useState([]); + // TODO: Can we convert these to state + const credentials = useRef(undefined); + const collectionKey = useRef(undefined); - const setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator = - useCallback((folderName, collectionID, isHidden) => { - const id = Math.random(); - const updater: SetFilesDownloadProgressAttributes = (value) => { - setFilesDownloadProgressAttributesList((prev) => { - const attributes = prev?.find((attr) => attr.id === id); - const updatedAttributes = - typeof value == "function" - ? value(attributes) - : { ...attributes, ...value }; - const updatedAttributesList = attributes - ? prev.map((attr) => - attr.id === id ? updatedAttributes : attr, - ) - : [...prev, updatedAttributes]; + const { saveGroups, onAddSaveGroup, onRemoveSaveGroup } = useSaveGroups(); - return updatedAttributesList; - }); - }; - updater({ - id, - folderName, - collectionID, - isHidden, - canceller: null, - total: 0, - success: 0, - failed: 0, - downloadDirPath: null, - }); - return updater; - }, []); - - const onAddPhotos = useMemo(() => { - return publicCollection?.publicURLs[0]?.enableCollect - ? () => setUploadTypeSelectorView(true) - : undefined; - }, [publicCollection]); - - const closeUploadTypeSelectorView = () => { - setUploadTypeSelectorView(false); - }; + const router = useRouter(); const showPublicLinkExpiredMessage = () => showMiniDialog({ @@ -215,8 +170,7 @@ export default function PublicCollectionGallery() { const main = async () => { let redirectingToWebsite = false; try { - url.current = window.location.href; - const currentURL = new URL(url.current); + const currentURL = new URL(window.location.href); const t = currentURL.searchParams.get("t"); const ck = await extractCollectionKeyFromShareURL(currentURL); if (!t && !ck) { @@ -227,15 +181,13 @@ export default function PublicCollectionGallery() { return; } collectionKey.current = ck; - url.current = window.location.href; - const collection = await savedPublicCollectionByKey( - collectionKey.current, - ); + const collection = await savedPublicCollectionByKey(ck); const accessToken = t; let accessTokenJWT: string | undefined; if (collection) { - referralCode.current = - await savedLastPublicCollectionReferralCode(); + setReferralCode( + (await savedLastPublicCollectionReferralCode()) ?? "", + ); setPublicCollection(collection); setIsPasswordProtected( !!collection.publicURLs[0]?.passwordEnabled, @@ -261,77 +213,46 @@ export default function PublicCollectionGallery() { } }; main(); + // TODO: + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const downloadEnabled = - publicCollection?.publicURLs?.[0]?.enableDownload ?? true; - - useEffect(() => { - publicCollection && - publicFiles && - setPhotoListHeader({ - item: ( - - ), - tag: "header", - height: 68, - }); - }, [publicCollection, publicFiles]); - - useEffect(() => { - setPhotoListFooter( - onAddPhotos - ? { - item: ( - - - - ), - height: 104, - } - : null, - ); - }, [onAddPhotos]); + publicCollection?.publicURLs[0]?.enableDownload ?? true; /** * Pull the latest data related to the public album from remote, updating * both our local database and component state. */ const publicAlbumsRemotePull = useCallback(async () => { - const accessToken = credentials.current.accessToken; + const accessToken = credentials.current!.accessToken; showLoadingBar(); setLoading(true); try { const { collection, referralCode: userReferralCode } = - await pullCollection(accessToken, collectionKey.current); - referralCode.current = userReferralCode; + await pullCollection(accessToken, collectionKey.current!); + setReferralCode(userReferralCode); setPublicCollection(collection); const isPasswordProtected = !!collection.publicURLs[0]?.passwordEnabled; setIsPasswordProtected(isPasswordProtected); - setErrorMessage(null); + setErrorMessage(""); // Remove the locally cached accessTokenJWT if the sharer has // disabled password protection on the link. - if (!isPasswordProtected && credentials.current.accessTokenJWT) { + if (!isPasswordProtected && credentials.current?.accessTokenJWT) { credentials.current.accessTokenJWT = undefined; downloadManager.setPublicAlbumsCredentials(credentials.current); removePublicCollectionAccessTokenJWT(accessToken); } - if (isPasswordProtected && !credentials.current.accessTokenJWT) { + if (isPasswordProtected && !credentials.current?.accessTokenJWT) { await removePublicCollectionFileData(accessToken); } else { try { await pullPublicCollectionFiles( - credentials.current, + credentials.current!, collection, (files) => setPublicFiles( @@ -350,7 +271,7 @@ export default function PublicCollectionGallery() { // Clear the locally cached accessTokenJWT and ask the user // to reenter the password. if (isHTTP401Error(e)) { - credentials.current.accessTokenJWT = undefined; + credentials.current!.accessTokenJWT = undefined; downloadManager.setPublicAlbumsCredentials( credentials.current, ); @@ -381,7 +302,7 @@ export default function PublicCollectionGallery() { ); // Sharing has been disabled. Clear out local cache. await removePublicCollectionFileData(accessToken); - await removePublicCollectionByKey(collectionKey.current); + await removePublicCollectionByKey(collectionKey.current!); setPublicCollection(undefined); setPublicFiles(undefined); } else { @@ -394,7 +315,7 @@ export default function PublicCollectionGallery() { hideLoadingBar(); setLoading(false); } - }, [showLoadingBar, hideLoadingBar]); + }, [showLoadingBar, hideLoadingBar, onGenericError]); // See: [Note: Visual feedback to acknowledge user actions] const handleVisualFeedback = useCallback(() => { @@ -407,13 +328,13 @@ export default function PublicCollectionGallery() { setFieldError, ) => { try { - const accessToken = credentials.current.accessToken; + const accessToken = credentials.current!.accessToken; const accessTokenJWT = await verifyPublicAlbumPassword( - publicCollection.publicURLs[0]!, + publicCollection!.publicURLs[0]!, password, accessToken, ); - credentials.current.accessTokenJWT = accessTokenJWT; + credentials.current!.accessTokenJWT = accessTokenJWT; downloadManager.setPublicAlbumsCredentials(credentials.current); await savePublicCollectionAccessTokenJWT( accessToken, @@ -432,7 +353,7 @@ export default function PublicCollectionGallery() { }; const clearSelection = () => { - if (!selected?.count) { + if (!selected.count) { return; } setSelected({ @@ -445,19 +366,16 @@ export default function PublicCollectionGallery() { const handleUploadFile = (file: EnteFile) => setPublicFiles( - sortFilesForCollection([...publicFiles, file], publicCollection), + sortFilesForCollection([...publicFiles!, file], publicCollection), ); const downloadFilesHelper = async () => { try { - const selectedFiles = getSelectedFiles(selected, publicFiles); - const setFilesDownloadProgressAttributes = - setFilesDownloadProgressAttributesCreator( - t("files_count", { count: selectedFiles.length }), - ); - await downloadSelectedFiles( + const selectedFiles = getSelectedFiles(selected, publicFiles!); + await downloadAndSaveFiles( selectedFiles, - setFilesDownloadProgressAttributes, + t("files_count", { count: selectedFiles.length }), + onAddSaveGroup, ); clearSelection(); } catch (e) { @@ -465,6 +383,44 @@ export default function PublicCollectionGallery() { } }; + const onAddPhotos = useMemo(() => { + return publicCollection?.publicURLs[0]?.enableCollect + ? () => setUploadTypeSelectorView(true) + : undefined; + }, [publicCollection]); + + const closeUploadTypeSelectorView = () => { + setUploadTypeSelectorView(false); + }; + + const fileListHeader = useMemo( + () => + publicCollection && publicFiles + ? { + item: ( + + ), + height: fileListHeaderHeight, + } + : undefined, + [onAddSaveGroup, publicCollection, publicFiles, downloadEnabled], + ); + + const fileListFooter = useMemo(() => { + const props = { referralCode, onAddPhotos }; + return { + item: , + height: fileListFooterHeightForProps(props), + }; + }, [referralCode, onAddPhotos]); + if (loading && (!publicFiles || !credentials.current)) { return ; } else if (errorMessage) { @@ -475,7 +431,7 @@ export default function PublicCollectionGallery() {
); - } else if (isPasswordProtected && !credentials.current.accessTokenJWT) { + } else if (isPasswordProtected && !credentials.current?.accessTokenJWT) { return ( {t("password")} @@ -504,79 +460,69 @@ export default function PublicCollectionGallery() { ); } - // TODO: memo this (after the dependencies are traceable). - const context = { - credentials: credentials.current, - referralCode: referralCode.current, - photoListHeader, - photoListFooter, - }; - return ( - - + - - {selected.count > 0 ? ( - - ) : ( - - - - - {onAddPhotos ? ( - - ) : ( - - )} - - )} - + {selected.count > 0 ? ( + + ) : ( + + + + + {onAddPhotos ? ( + + ) : ( + + )} + + )} + - - {blockingLoad && } - - - - + + {blockingLoad && } + + + ); } @@ -675,33 +621,38 @@ const SelectedFileOptions: React.FC = ({ ); -interface ListHeaderProps { +interface FileListHeaderProps { publicCollection: Collection; publicFiles: EnteFile[]; - setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator; + downloadEnabled: boolean; + onAddSaveGroup: AddSaveGroup; } -const ListHeader: React.FC = ({ +/** + * The fixed height (in px) of {@link FileListHeader}. + */ +const fileListHeaderHeight = 68; + +/** + * A header shown before the listing of files. + * + * It scrolls along with the content. It has a fixed height, + * {@link fileListHeaderHeight}. + */ +const FileListHeader: React.FC = ({ publicCollection, publicFiles, - setFilesDownloadProgressAttributesCreator, + downloadEnabled, + onAddSaveGroup, }) => { - const downloadEnabled = - publicCollection.publicURLs?.[0]?.enableDownload ?? true; - - const downloadAllFiles = async () => { - const setFilesDownloadProgressAttributes = - setFilesDownloadProgressAttributesCreator( - publicCollection.name, - publicCollection.id, - isHiddenCollection(publicCollection), - ); - await downloadCollectionFiles( + const downloadAllFiles = () => + downloadAndSaveCollectionFiles( publicCollection.name, + publicCollection.id, publicFiles, - setFilesDownloadProgressAttributes, + undefined, + onAddSaveGroup, ); - }; return ( @@ -724,3 +675,85 @@ const ListHeader: React.FC = ({ ); }; + +interface FileListFooterProps { + referralCode?: string; + onAddPhotos?: () => void; +} + +/** + * The dynamic (prop-dependent) height of {@link FileListFooter}. + */ +const fileListFooterHeightForProps = ({ + referralCode, + onAddPhotos, +}: FileListFooterProps) => (onAddPhotos ? 104 : 0) + (referralCode ? 113 : 75); + +/** + * A footer shown after the listing of files. + * + * It scrolls along with the content. It has a dynamic height, dependent on the + * props, calculated using {@link fileListFooterHeightForProps}. + */ + +const FileListFooter: React.FC = ({ + referralCode, + onAddPhotos, +}) => ( + + {onAddPhotos && ( + + + + )} + {/* Make the entire area tappable, otherwise it is hard to + get at on mobile devices. */} + + + + ), + }} + values={{ url: "ente.io" }} + /> + + + {referralCode && ( + + + + )} + +); diff --git a/web/apps/photos/src/services/collectionService.ts b/web/apps/photos/src/services/collectionService.ts deleted file mode 100644 index 672ff93aa5..0000000000 --- a/web/apps/photos/src/services/collectionService.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { sortFiles } from "ente-gallery/utils/file"; -import { EnteFile } from "ente-media/file"; -import type { CollectionSummary } from "ente-new/photos/services/collection-summary"; -import { CollectionsSortBy } from "ente-new/photos/services/collection-summary"; - -export const sortCollectionSummaries = ( - collectionSummaries: CollectionSummary[], - by: CollectionsSortBy, -) => - collectionSummaries - .sort((a, b) => { - switch (by) { - case "name": - return a.name.localeCompare(b.name); - case "creation-time-asc": - return ( - -1 * - compareCollectionsLatestFile(b.latestFile, a.latestFile) - ); - case "updation-time-desc": - return (b.updationTime ?? 0) - (a.updationTime ?? 0); - } - }) - .sort((a, b) => b.sortPriority - a.sortPriority); - -function compareCollectionsLatestFile( - first: EnteFile | undefined, - second: EnteFile | undefined, -) { - if (!first) { - return 1; - } else if (!second) { - return -1; - } else { - const sortedFiles = sortFiles([first, second]); - if (sortedFiles[0].id !== first.id) { - return 1; - } else { - return -1; - } - } -} diff --git a/web/apps/photos/src/services/upload-manager.ts b/web/apps/photos/src/services/upload-manager.ts index 95087cdde5..b8ef90991b 100644 --- a/web/apps/photos/src/services/upload-manager.ts +++ b/web/apps/photos/src/services/upload-manager.ts @@ -1,3 +1,6 @@ +// TODO: Audit this file +// TODO: Too many null assertions in this file. The types need reworking. +import { ensureLocalUser } from "ente-accounts/services/user"; import { isDesktop } from "ente-base/app"; import { createComlinkCryptoWorker } from "ente-base/crypto"; import { type CryptoWorker } from "ente-base/crypto/worker"; @@ -41,7 +44,6 @@ import { computeNormalCollectionFilesFromSaved } from "ente-new/photos/services/ import { indexNewUpload } from "ente-new/photos/services/ml"; import { wait } from "ente-utils/promise"; import watcher from "services/watch"; -import { getUserOwnedFiles } from "utils/file"; export type FileID = number; @@ -96,18 +98,20 @@ export type UploadItemWithCollection = UploadAsset & { }; class UIService { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore private progressUpdater: ProgressUpdater; // UPLOAD LEVEL STATES private uploadPhase: UploadPhase = "preparing"; private filenames = new Map(); - private hasLivePhoto: boolean = false; - private uploadProgressView: boolean = false; + private hasLivePhoto = false; + private uploadProgressView = false; // STAGE LEVEL STATES - private perFileProgress: number; - private filesUploadedCount: number; - private totalFilesCount: number; + private perFileProgress = 0; + private filesUploadedCount = 0; + private totalFilesCount = 0; private inProgressUploads: InProgressUploads = new Map(); private finishedUploads: FinishedUploads = new Map(); @@ -201,15 +205,14 @@ class UIService { let percentComplete = this.perFileProgress * (this.finishedUploads.size || this.filesUploadedCount); - if (this.inProgressUploads) { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - for (const [_, progress] of this.inProgressUploads) { - // filter negative indicator values during percentComplete calculation - if (progress < 0) { - continue; - } - percentComplete += (this.perFileProgress * progress) / 100; + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + for (const [_, progress] of this.inProgressUploads) { + // filter negative indicator values during percentComplete calculation + if (progress < 0) { + continue; } + percentComplete += (this.perFileProgress * progress) / 100; } setPercentComplete(percentComplete); @@ -232,7 +235,7 @@ class UIService { } } -function convertInProgressUploadsToList(inProgressUploads) { +function convertInProgressUploadsToList(inProgressUploads: InProgressUploads) { return [...inProgressUploads.entries()].map( ([localFileID, progress]) => ({ localFileID, progress }) as InProgressUpload, @@ -243,21 +246,22 @@ const groupByResult = (finishedUploads: FinishedUploads) => { const groups: SegregatedFinishedUploads = new Map(); for (const [localID, result] of finishedUploads) { if (!groups.has(result)) groups.set(result, []); - groups.get(result).push(localID); + groups.get(result)!.push(localID); } return groups; }; class UploadManager { + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment private comlinkCryptoWorkers: ComlinkWorker[] = new Array(maxConcurrentUploads); - private parsedMetadataJSONMap: Map; - private itemsToBeUploaded: ClusteredUploadItem[]; - private failedItems: ClusteredUploadItem[]; - private existingFiles: EnteFile[]; - private onUploadFile: (file: EnteFile) => void; - private collections: Map; - private uploadInProgress: boolean; + private parsedMetadataJSONMap = new Map(); + private itemsToBeUploaded: ClusteredUploadItem[] = []; + private failedItems: ClusteredUploadItem[] = []; + private existingFiles: EnteFile[] = []; + private onUploadFile: ((file: EnteFile) => void) | undefined; + private collections = new Map(); + private uploadInProgress = false; private publicAlbumsCredentials: PublicAlbumsCredentials | undefined; private uploaderName: string | undefined; /** @@ -269,7 +273,7 @@ class UploadManager { private uiService = new UIService(); - public async init( + public init( progressUpdater: ProgressUpdater, onUploadFile: (file: EnteFile) => void, publicAlbumsCredentials: PublicAlbumsCredentials | undefined, @@ -294,6 +298,7 @@ class UploadManager { ) { this.itemsToBeUploaded = []; this.failedItems = []; + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment this.parsedMetadataJSONMap = parsedMetadataJSONMap ?? new Map(); this.uploaderName = undefined; this.shouldUploadBeCancelled = false; @@ -443,9 +448,9 @@ class UploadManager { this.publicAlbumsCredentials.accessToken, ); } else { - this.existingFiles = getUserOwnedFiles( - await computeNormalCollectionFilesFromSaved(), - ); + const files = await computeNormalCollectionFilesFromSaved(); + const userID = ensureLocalUser().id; + this.existingFiles = files.filter((file) => file.ownerID == userID); } this.collections = new Map( collections.map((collection) => [collection.id, collection]), @@ -481,14 +486,14 @@ class UploadManager { await UploadService.setFileCount(mediaItems.length); this.uiService.setUploadPhase("uploading"); - const uploadProcesses = []; + const uploadProcesses = new Array>(); for ( let i = 0; i < maxConcurrentUploads && this.itemsToBeUploaded.length > 0; i++ ) { this.comlinkCryptoWorkers[i] = createComlinkCryptoWorker(); - const worker = await this.comlinkCryptoWorkers[i].remote; + const worker = await this.comlinkCryptoWorkers[i]!.remote; uploadProcesses.push(this.uploadNextItemInQueue(worker)); } await Promise.all(uploadProcesses); @@ -508,9 +513,9 @@ class UploadManager { this.abortIfCancelled(); logAboutMemoryPressureIfNeeded(); - const clusteredItem = this.itemsToBeUploaded.pop(); + const clusteredItem = this.itemsToBeUploaded.pop()!; const { localID, collectionID } = clusteredItem; - const collection = this.collections.get(collectionID); + const collection = this.collections.get(collectionID)!; const uploadableItem = { ...clusteredItem, collection }; uiService.setFileProgress(localID, 0); @@ -571,7 +576,7 @@ class UploadManager { } if (isDesktop && watcher.isUploadRunning()) { - await watcher.onFileUpload(uploadableItem, uploadResult); + watcher.onFileUpload(uploadableItem, uploadResult); } return type == "addedSymlink" ? "uploaded" : type; @@ -605,7 +610,7 @@ class UploadManager { private updateExistingFiles(file: EnteFile) { this.existingFiles.push(file); - this.onUploadFile(file); + this.onUploadFile!(file); } /** @@ -665,11 +670,11 @@ type UploadItemWithCollectionIDAndName = UploadAsset & { const makeUploadItemWithCollectionIDAndName = ( f: UploadItemWithCollection, ): UploadItemWithCollectionIDAndName => ({ - localID: f.localID!, - collectionID: f.collectionID!, - fileName: (f.isLivePhoto - ? uploadItemFileName(f.livePhotoAssets.image) - : uploadItemFileName(f.uploadItem))!, + localID: f.localID, + collectionID: f.collectionID, + fileName: f.isLivePhoto + ? uploadItemFileName(f.livePhotoAssets!.image) + : uploadItemFileName(f.uploadItem!), isLivePhoto: f.isLivePhoto, uploadItem: f.uploadItem, pathPrefix: f.pathPrefix, @@ -689,7 +694,10 @@ const splitMetadataAndMediaItems = ( else media.push(f); return [metadata, media]; }, - [[], []], + [ + new Array(), + new Array(), + ], ); /** @@ -710,22 +718,22 @@ const clusterLivePhotos = async ( .sort((f, g) => f.collectionID - g.collectionID); let index = 0; while (index < items.length - 1) { - const f = items[index]; - const g = items[index + 1]; - const fFileType = potentialFileTypeFromExtension(f.fileName); - const gFileType = potentialFileTypeFromExtension(g.fileName); + const f = items[index]!; + const g = items[index + 1]!; + const fFileType = potentialFileTypeFromExtension(f.fileName)!; + const gFileType = potentialFileTypeFromExtension(g.fileName)!; const fa: PotentialLivePhotoAsset = { fileName: f.fileName, fileType: fFileType, collectionID: f.collectionID, - uploadItem: f.uploadItem, + uploadItem: f.uploadItem!, pathPrefix: f.pathPrefix, }; const ga: PotentialLivePhotoAsset = { fileName: g.fileName, fileType: gFileType, collectionID: g.collectionID, - uploadItem: g.uploadItem, + uploadItem: g.uploadItem!, pathPrefix: g.pathPrefix, }; if (await areLivePhotoAssets(fa, ga, parsedMetadataJSONMap)) { @@ -738,8 +746,8 @@ const clusterLivePhotos = async ( isLivePhoto: true, pathPrefix: image.pathPrefix, livePhotoAssets: { - image: image.uploadItem, - video: video.uploadItem, + image: image.uploadItem!, + video: video.uploadItem!, }, }); index += 2; @@ -763,13 +771,19 @@ const clusterLivePhotos = async ( */ const logAboutMemoryPressureIfNeeded = () => { if (!globalThis.electron) return; + // performance.memory is deprecated in general as a Web standard, and is // also not available in the DOM types provided by TypeScript. However, it // is the method recommended by the Electron team (see the link about the V8 // memory cage). The embedded Chromium supports it fine though, we just need // to goad TypeScript to accept the type. - const heapSize = (performance as any).memory.totalJSHeapSize; - const heapLimit = (performance as any).memory.jsHeapSizeLimit; + + const { memory } = performance as unknown as { + memory: { totalJSHeapSize: number; jsHeapSizeLimit: number }; + }; + + const heapSize = memory.totalJSHeapSize; + const heapLimit = memory.jsHeapSizeLimit; if (heapSize / heapLimit > 0.7) { log.info( `Memory usage (${heapSize} bytes of ${heapLimit} bytes) exceeds the high water mark`, diff --git a/web/apps/photos/src/services/watch.ts b/web/apps/photos/src/services/watch.ts index e9e6270281..45a66c9bbf 100644 --- a/web/apps/photos/src/services/watch.ts +++ b/web/apps/photos/src/services/watch.ts @@ -61,19 +61,23 @@ class FolderWatcher { * * This is passed as a param to {@link init}. */ - private upload: (collectionName: string, filePaths: string[]) => void; + private upload: + | ((collectionName: string, filePaths: string[]) => void) + | undefined; /** * A function to call when we want to trigger a full remote pull. It will * initiate the pull but will not await its completion. * * This is passed as a param to {@link init}. */ - private onTriggerRemotePull: () => void; + private onTriggerRemotePull: (() => void) | undefined; /** A helper function that debounces invocations of {@link runNextEvent}. */ private debouncedRunNextEvent: () => void; constructor() { + // TODO: + // eslint-disable-next-line @typescript-eslint/no-misused-promises this.debouncedRunNextEvent = debounce(() => this.runNextEvent(), 1000); } @@ -92,7 +96,7 @@ class FolderWatcher { this.upload = upload; this.onTriggerRemotePull = onTriggerRemotePull; this.registerListeners(); - this.syncWithDisk(); + this.triggerSyncWithDisk(); } /** Return `true` if we are currently using the uploader. */ @@ -122,7 +126,7 @@ class FolderWatcher { */ resumePausedSync() { this.isPaused = false; - this.syncWithDisk(); + this.triggerSyncWithDisk(); } /** Return the list of folders we are watching for changes. */ @@ -148,7 +152,7 @@ class FolderWatcher { */ async addWatch(folderPath: string, mapping: CollectionMapping) { const watches = await ensureElectron().watch.add(folderPath, mapping); - this.syncWithDisk(); + this.triggerSyncWithDisk(); return watches; } @@ -161,10 +165,13 @@ class FolderWatcher { return await ensureElectron().watch.remove(folderPath); } + private triggerSyncWithDisk() { + void this.syncWithDisk(); + } + private async syncWithDisk() { try { const watches = await this.getWatches(); - if (!watches) return; this.eventQueue = []; const events = await deduceEvents(watches); @@ -223,16 +230,17 @@ class FolderWatcher { if (this.eventQueue.length == 0 || this.activeWatch || this.isPaused) return; + const event = this.dequeueClubbedEvent(); + if (!event) return; + log.info( + `Processing ${event.action} event for folder watch ${event.folderPath} (collectionName ${event.collectionName}, ${event.filePaths.length} files)`, + ); + const skip = (reason: string) => { log.info(`Ignoring event since ${reason}`); this.debouncedRunNextEvent(); }; - const event = this.dequeueClubbedEvent(); - log.info( - `Processing ${event.action} event for folder watch ${event.folderPath} (collectionName ${event.collectionName}, ${event.filePaths.length} files)`, - ); - const watch = (await this.getWatches()).find( (watch) => watch.folderPath == event.folderPath, ); @@ -260,7 +268,7 @@ class FolderWatcher { `Folder watch requested upload of ${paths.length} files to collection ${collectionName}`, ); - this.upload(collectionName, paths); + this.upload!(collectionName, paths); } else { if (this.pruneFileEventsFromDeletedFolderPaths()) { skip("event was from a deleted folder path"); @@ -275,7 +283,7 @@ class FolderWatcher { ).push(syncedFile); return [removed, rest]; }, - [[], []], + [new Array(), []], ); this.activeWatch = watch; @@ -305,7 +313,7 @@ class FolderWatcher { const filePaths = [event.filePath]; while ( this.eventQueue.length > 0 && - event.action === this.eventQueue[0].action && + event.action === this.eventQueue[0]?.action && event.folderPath === this.eventQueue[0].folderPath && event.collectionName === this.eventQueue[0].collectionName ) { @@ -319,10 +327,7 @@ class FolderWatcher { * Callback invoked by the uploader whenever a item we requested to * {@link upload} gets uploaded. */ - async onFileUpload( - item: UploadItemWithCollection, - uploadResult: UploadResult, - ) { + onFileUpload(item: UploadItemWithCollection, uploadResult: UploadResult) { // Re the usage of ensureString: For desktop watch, the only possibility // for a UploadItem is for it to be a string (the absolute path to a // file on disk). @@ -335,11 +340,11 @@ class FolderWatcher { // Done. if (item.isLivePhoto) { this.uploadedFileForPath.set( - ensureString(item.livePhotoAssets.image), + ensureString(item.livePhotoAssets?.image), uploadResult.file, ); this.uploadedFileForPath.set( - ensureString(item.livePhotoAssets.video), + ensureString(item.livePhotoAssets?.video), uploadResult.file, ); } else { @@ -356,10 +361,10 @@ class FolderWatcher { // Non-retriable error. if (item.isLivePhoto) { this.unUploadableFilePaths.add( - ensureString(item.livePhotoAssets.image), + ensureString(item.livePhotoAssets?.image), ); this.unUploadableFilePaths.add( - ensureString(item.livePhotoAssets.video), + ensureString(item.livePhotoAssets?.video), ); } else { this.unUploadableFilePaths.add( @@ -377,7 +382,7 @@ class FolderWatcher { */ async allFileUploadsDone(uploadedItems: UploadAsset[]) { const electron = ensureElectron(); - const watch = this.activeWatch; + const watch = this.activeWatch!; log.debug(() => [ "watch/allFileUploadsDone", @@ -429,8 +434,8 @@ class FolderWatcher { // possibility for a UploadItem is for it to be a string (the // absolute path to a file on disk). if (item.isLivePhoto) { - const imagePath = ensureString(item.livePhotoAssets.image); - const videoPath = ensureString(item.livePhotoAssets.video); + const imagePath = ensureString(item.livePhotoAssets?.image); + const videoPath = ensureString(item.livePhotoAssets?.video); const imageFile = this.uploadedFileForPath.get(imagePath); const videoFile = this.uploadedFileForPath.get(videoPath); @@ -492,7 +497,7 @@ class FolderWatcher { await removeFromOwnCollection(id, files); } - this.onTriggerRemotePull(); + this.onTriggerRemotePull!(); } } diff --git a/web/apps/photos/src/types/gallery/index.ts b/web/apps/photos/src/types/gallery/index.ts deleted file mode 100644 index 12bd92ec9b..0000000000 --- a/web/apps/photos/src/types/gallery/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { FilesDownloadProgressAttributes } from "components/FilesDownloadProgress"; -import { type SelectionContext } from "ente-new/photos/components/gallery"; - -export interface SelectedState { - [k: number]: boolean; - ownCount: number; - count: number; - collectionID: number; - /** - * The context in which the selection was made. Only set by newer code if - * there is an active selection (older code continues to rely on the - * {@link collectionID} logic). - */ - context: SelectionContext | undefined; -} -export type SetSelectedState = React.Dispatch< - React.SetStateAction ->; -export type SetLoading = React.Dispatch>; -export type SetFilesDownloadProgressAttributes = ( - value: - | Partial - | (( - prev: FilesDownloadProgressAttributes, - ) => FilesDownloadProgressAttributes), -) => void; - -export type SetFilesDownloadProgressAttributesCreator = ( - folderName: string, - collectionID?: number, - isHidden?: boolean, -) => SetFilesDownloadProgressAttributes; - -export interface MergedSourceURL { - original: string; - converted: string; -} diff --git a/web/apps/photos/src/utils/collection.ts b/web/apps/photos/src/utils/collection.ts deleted file mode 100644 index 8be190369b..0000000000 --- a/web/apps/photos/src/utils/collection.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { ensureElectron } from "ente-base/electron"; -import { joinPath } from "ente-base/file-name"; -import log from "ente-base/log"; -import { uniqueFilesByID } from "ente-gallery/utils/file"; -import { EnteFile } from "ente-media/file"; -import { - defaultHiddenCollectionUserFacingName, - findDefaultHiddenCollectionIDs, -} from "ente-new/photos/services/collection"; -import { PseudoCollectionID } from "ente-new/photos/services/collection-summary"; -import { - savedCollectionFiles, - savedCollections, -} from "ente-new/photos/services/photos-fdb"; -import { safeDirectoryName } from "ente-new/photos/utils/native-fs"; -import { - SetFilesDownloadProgressAttributes, - type SetFilesDownloadProgressAttributesCreator, -} from "types/gallery"; -import { downloadFilesWithProgress } from "utils/file"; - -export async function downloadCollectionHelper( - collectionID: number, - setFilesDownloadProgressAttributes: SetFilesDownloadProgressAttributes, -) { - try { - const allFiles = await savedCollectionFiles(); - const collectionFiles = allFiles.filter( - (file) => file.collectionID == collectionID, - ); - const allCollections = await savedCollections(); - const collection = allCollections.find( - (collection) => collection.id == collectionID, - ); - if (!collection) { - throw Error("collection not found"); - } - await downloadCollectionFiles( - collection.name, - collectionFiles, - setFilesDownloadProgressAttributes, - ); - } catch (e) { - log.error("download collection failed ", e); - } -} - -export async function downloadDefaultHiddenCollectionHelper( - setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator, -) { - try { - const defaultHiddenCollectionsIDs = findDefaultHiddenCollectionIDs( - await savedCollections(), - ); - const collectionFiles = await savedCollectionFiles(); - const defaultHiddenCollectionFiles = uniqueFilesByID( - collectionFiles.filter((file) => - defaultHiddenCollectionsIDs.has(file.collectionID), - ), - ); - const setFilesDownloadProgressAttributes = - setFilesDownloadProgressAttributesCreator( - defaultHiddenCollectionUserFacingName, - PseudoCollectionID.hiddenItems, - true, - ); - - await downloadCollectionFiles( - defaultHiddenCollectionUserFacingName, - defaultHiddenCollectionFiles, - setFilesDownloadProgressAttributes, - ); - } catch (e) { - log.error("download hidden files failed ", e); - } -} - -export async function downloadCollectionFiles( - collectionName: string, - collectionFiles: EnteFile[], - setFilesDownloadProgressAttributes: SetFilesDownloadProgressAttributes, -) { - if (!collectionFiles.length) { - return; - } - let downloadDirPath: string; - const electron = globalThis.electron; - if (electron) { - const selectedDir = await electron.selectDirectory(); - if (!selectedDir) { - return; - } - downloadDirPath = await createCollectionDownloadFolder( - selectedDir, - collectionName, - ); - } - await downloadFilesWithProgress( - collectionFiles, - downloadDirPath, - setFilesDownloadProgressAttributes, - ); -} - -async function createCollectionDownloadFolder( - downloadDirPath: string, - collectionName: string, -) { - const fs = ensureElectron().fs; - const collectionDownloadName = await safeDirectoryName( - downloadDirPath, - collectionName, - fs.exists, - ); - const collectionDownloadPath = joinPath( - downloadDirPath, - collectionDownloadName, - ); - await fs.mkdirIfNeeded(collectionDownloadPath); - return collectionDownloadPath; -} diff --git a/web/apps/photos/src/utils/file/index.ts b/web/apps/photos/src/utils/file/index.ts index 07930d19a1..6482c3dd63 100644 --- a/web/apps/photos/src/utils/file/index.ts +++ b/web/apps/photos/src/utils/file/index.ts @@ -1,20 +1,8 @@ -import { getData } from "ente-accounts/services/accounts-db"; -import type { LocalUser, User } from "ente-accounts/services/user"; -import { joinPath } from "ente-base/file-name"; -import log from "ente-base/log"; -import { type Electron } from "ente-base/types/ipc"; -import { saveAsFileAndRevokeObjectURL } from "ente-base/utils/web"; -import { downloadManager } from "ente-gallery/services/download"; -import { detectFileTypeInfo } from "ente-gallery/utils/detect-type"; -import { writeStream } from "ente-gallery/utils/native-stream"; -import { EnteFile } from "ente-media/file"; -import { - ItemVisibility, - fileFileName, - isArchivedFile, -} from "ente-media/file-metadata"; -import { FileType } from "ente-media/file-type"; -import { decodeLivePhoto } from "ente-media/live-photo"; +import type { AddSaveGroup } from "ente-gallery/components/utils/save-groups"; +import { downloadAndSaveFiles } from "ente-gallery/services/save"; +import type { EnteFile } from "ente-media/file"; +import { ItemVisibility } from "ente-media/file-metadata"; +import { type SelectionContext } from "ente-new/photos/components/gallery"; import { type FileOp } from "ente-new/photos/components/SelectedFileOptions"; import { addToFavoritesCollection, @@ -23,14 +11,23 @@ import { moveToTrash, } from "ente-new/photos/services/collection"; import { updateFilesVisibility } from "ente-new/photos/services/file"; -import { safeFileName } from "ente-new/photos/utils/native-fs"; -import { wait } from "ente-utils/promise"; import { t } from "i18next"; -import { - SelectedState, - SetFilesDownloadProgressAttributes, - SetFilesDownloadProgressAttributesCreator, -} from "types/gallery"; + +export interface SelectedState { + [k: number]: boolean; + ownCount: number; + count: number; + collectionID: number | undefined; + /** + * The context in which the selection was made. Only set by newer code if + * there is an active selection (older code continues to rely on the + * {@link collectionID} logic). + */ + context: SelectionContext | undefined; +} +export type SetSelectedState = React.Dispatch< + React.SetStateAction +>; export function getSelectedFiles( selected: SelectedState, @@ -46,292 +43,22 @@ export function getSelectedFiles( return files.filter((file) => selectedFilesIDs.has(file.id)); } -export async function getFileFromURL(fileURL: string, name: string) { - const fileBlob = await (await fetch(fileURL)).blob(); - const fileFile = new File([fileBlob], name); - return fileFile; -} - -export async function downloadFilesWithProgress( - files: EnteFile[], - downloadDirPath: string, - setFilesDownloadProgressAttributes: SetFilesDownloadProgressAttributes, -) { - if (!files.length) { - return; - } - const canceller = new AbortController(); - const increaseSuccess = () => { - if (canceller.signal.aborted) return; - setFilesDownloadProgressAttributes((prev) => ({ - ...prev, - success: prev.success + 1, - })); - }; - const increaseFailed = () => { - if (canceller.signal.aborted) return; - setFilesDownloadProgressAttributes((prev) => ({ - ...prev, - failed: prev.failed + 1, - })); - }; - const isCancelled = () => canceller.signal.aborted; - - setFilesDownloadProgressAttributes({ - downloadDirPath, - success: 0, - failed: 0, - total: files.length, - canceller, - }); - - const electron = globalThis.electron; - if (electron) { - await downloadFilesDesktop( - electron, - files, - { increaseSuccess, increaseFailed, isCancelled }, - downloadDirPath, - ); - } else { - await downloadFiles(files, { - increaseSuccess, - increaseFailed, - isCancelled, - }); - } -} - -export async function downloadSelectedFiles( - files: EnteFile[], - setFilesDownloadProgressAttributes: SetFilesDownloadProgressAttributes, -) { - if (!files.length) { - return; - } - let downloadDirPath: string; - const electron = globalThis.electron; - if (electron) { - downloadDirPath = await electron.selectDirectory(); - if (!downloadDirPath) { - return; - } - } - await downloadFilesWithProgress( - files, - downloadDirPath, - setFilesDownloadProgressAttributes, - ); -} - -export async function downloadSingleFile( - file: EnteFile, - setFilesDownloadProgressAttributes: SetFilesDownloadProgressAttributes, -) { - let downloadDirPath: string; - const electron = globalThis.electron; - if (electron) { - downloadDirPath = await electron.selectDirectory(); - if (!downloadDirPath) { - return; - } - } - await downloadFilesWithProgress( - [file], - downloadDirPath, - setFilesDownloadProgressAttributes, - ); -} - -export async function downloadFiles( - files: EnteFile[], - progressBarUpdater: { - increaseSuccess: () => void; - increaseFailed: () => void; - isCancelled: () => boolean; - }, -) { - for (const file of files) { - try { - if (progressBarUpdater?.isCancelled()) { - return; - } - await saveAsFile(file); - progressBarUpdater?.increaseSuccess(); - } catch (e) { - log.error("download fail for file", e); - progressBarUpdater?.increaseFailed(); - } - } -} - -/** - * Save the given {@link EnteFile} as a file in the user's download folder. - */ -const saveAsFile = async (file: EnteFile) => { - const fileBlob = await downloadManager.fileBlob(file); - const fileName = fileFileName(file); - if (file.metadata.fileType == FileType.livePhoto) { - const { imageFileName, imageData, videoFileName, videoData } = - await decodeLivePhoto(fileName, fileBlob); - - await saveBlobPartAsFile(imageData, imageFileName); - - // Downloading multiple works everywhere except, you guessed it, - // Safari. Make up for their incompetence by adding a setTimeout. - await wait(300) /* arbitrary constant, 300ms */; - await saveBlobPartAsFile(videoData, videoFileName); - } else { - await saveBlobPartAsFile(fileBlob, fileName); - } -}; - -/** - * Save the given {@link blob} as a file in the user's download folder. - */ -const saveBlobPartAsFile = async (blobPart: BlobPart, fileName: string) => - createTypedObjectURL(blobPart, fileName).then((url) => - saveAsFileAndRevokeObjectURL(url, fileName), - ); - -const createTypedObjectURL = async (blobPart: BlobPart, fileName: string) => { - const blob = blobPart instanceof Blob ? blobPart : new Blob([blobPart]); - const { mimeType } = await detectFileTypeInfo(new File([blob], fileName)); - return URL.createObjectURL(new Blob([blob], { type: mimeType })); -}; - -async function downloadFilesDesktop( - electron: Electron, - files: EnteFile[], - progressBarUpdater: { - increaseSuccess: () => void; - increaseFailed: () => void; - isCancelled: () => boolean; - }, - downloadPath: string, -) { - for (const file of files) { - try { - if (progressBarUpdater?.isCancelled()) { - return; - } - await downloadFileDesktop(electron, file, downloadPath); - progressBarUpdater?.increaseSuccess(); - } catch (e) { - log.error("download fail for file", e); - progressBarUpdater?.increaseFailed(); - } - } -} - -async function downloadFileDesktop( - electron: Electron, - file: EnteFile, - downloadDir: string, -) { - const fs = electron.fs; - - const stream = await downloadManager.fileStream(file); - const fileName = fileFileName(file); - - if (file.metadata.fileType == FileType.livePhoto) { - const fileBlob = await new Response(stream).blob(); - const { imageFileName, imageData, videoFileName, videoData } = - await decodeLivePhoto(fileName, fileBlob); - const imageExportName = await safeFileName( - downloadDir, - imageFileName, - fs.exists, - ); - const imageStream = new Response(imageData).body; - await writeStream( - electron, - joinPath(downloadDir, imageExportName), - imageStream, - ); - try { - const videoExportName = await safeFileName( - downloadDir, - videoFileName, - fs.exists, - ); - const videoStream = new Response(videoData).body; - await writeStream( - electron, - joinPath(downloadDir, videoExportName), - videoStream, - ); - } catch (e) { - await fs.rm(joinPath(downloadDir, imageExportName)); - throw e; - } - } else { - const fileExportName = await safeFileName( - downloadDir, - fileName, - fs.exists, - ); - await writeStream( - electron, - joinPath(downloadDir, fileExportName), - stream, - ); - } -} - -export const getArchivedFiles = (files: EnteFile[]) => { - return files.filter(isArchivedFile).map((file) => file.id); -}; - -export const getUserOwnedFiles = (files: EnteFile[]) => { - const user: User = getData("user"); - if (!user?.id) { - throw Error("user missing"); - } - return files.filter((file) => file.ownerID === user.id); -}; - -export const shouldShowAvatar = ( - file: EnteFile, - user: LocalUser | undefined, -) => { - if (!file || !user) { - return false; - } - // is Shared file - else if (file.ownerID !== user.id) { - return true; - } - // is public collected file - else if ( - file.ownerID === user.id && - file.pubMagicMetadata?.data?.uploaderName - ) { - return true; - } else { - return false; - } -}; - export const performFileOp = async ( op: FileOp, files: EnteFile[], + onAddSaveGroup: AddSaveGroup, markTempDeleted: (files: EnteFile[]) => void, clearTempDeleted: () => void, markTempHidden: (files: EnteFile[]) => void, clearTempHidden: () => void, fixCreationTime: (files: EnteFile[]) => void, - setFilesDownloadProgressAttributesCreator: SetFilesDownloadProgressAttributesCreator, ) => { switch (op) { case "download": { - const setSelectedFileDownloadProgressAttributes = - setFilesDownloadProgressAttributesCreator( - t("files_count", { count: files.length }), - ); - await downloadSelectedFiles( + await downloadAndSaveFiles( files, - setSelectedFileDownloadProgressAttributes, + t("files_count", { count: files.length }), + onAddSaveGroup, ); break; } diff --git a/web/apps/photos/src/utils/photoFrame/index.ts b/web/apps/photos/src/utils/photoFrame/index.ts index 9f68a08658..5680bd0309 100644 --- a/web/apps/photos/src/utils/photoFrame/index.ts +++ b/web/apps/photos/src/utils/photoFrame/index.ts @@ -1,6 +1,7 @@ +// TODO: Audit this file import type { SelectionContext } from "ente-new/photos/components/gallery"; import type { GalleryBarMode } from "ente-new/photos/components/gallery/reducer"; -import { SetSelectedState, type SelectedState } from "types/gallery"; +import type { SelectedState, SetSelectedState } from "utils/file"; // TODO: All this is unnecessarily complex, and needs reworking. export const handleSelectCreator = @@ -10,14 +11,17 @@ export const handleSelectCreator = userID: number | undefined, activeCollectionID: number, activePersonID: string | undefined, + // @ts-expect-error Need to add types setRangeStart?, ) => ({ id, ownerID }: { id: number; ownerID: number }, index?: number) => (checked: boolean) => { if (typeof index != "undefined") { if (checked) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call setRangeStart(index); } else { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call setRangeStart(undefined); } } @@ -135,7 +139,7 @@ const createSelectedAndContext = ( context: mode == "people" ? { mode, personID: activePersonID! } - : { mode, collectionID: activeCollectionID! }, + : { mode, collectionID: activeCollectionID }, }; } else { // Both mode and context are defined. @@ -148,10 +152,10 @@ const createSelectedAndContext = ( context: mode == "people" ? { mode, personID: activePersonID! } - : { mode, collectionID: activeCollectionID! }, + : { mode, collectionID: activeCollectionID }, }; } else { - if (selected.context?.mode == "people") { + if (selected.context.mode == "people") { if (selected.context.personID != activePersonID) { // Clear selection if person has changed. selected = { @@ -159,7 +163,7 @@ const createSelectedAndContext = ( count: 0, collectionID: 0, context: { - mode: selected.context?.mode, + mode: selected.context.mode, personID: activePersonID!, }, }; @@ -172,8 +176,8 @@ const createSelectedAndContext = ( count: 0, collectionID: 0, context: { - mode: selected.context?.mode, - collectionID: activeCollectionID!, + mode: selected.context.mode, + collectionID: activeCollectionID, }, }; } @@ -185,7 +189,7 @@ const createSelectedAndContext = ( ? undefined : mode == "people" ? { mode, personID: activePersonID! } - : { mode, collectionID: activeCollectionID! }; + : { mode, collectionID: activeCollectionID }; return { selected, newContext }; }; diff --git a/web/apps/photos/src/utils/publicCollectionGallery/index.ts b/web/apps/photos/src/utils/publicCollectionGallery/index.ts deleted file mode 100644 index 58a856e558..0000000000 --- a/web/apps/photos/src/utils/publicCollectionGallery/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { TimeStampListItem } from "components/FileList"; -import type { PublicAlbumsCredentials } from "ente-base/http"; -import { createContext } from "react"; - -export interface PublicCollectionGalleryContextType { - /** - * The {@link PublicAlbumsCredentials} to use. These are guaranteed to be - * set if we are in the context of the public albums app, and will be - * undefined when we're in the default photos app context. - */ - credentials: PublicAlbumsCredentials | undefined; - referralCode: string | null; - photoListHeader: TimeStampListItem; - photoListFooter: TimeStampListItem; -} - -export const PublicCollectionGalleryContext = - createContext({ - credentials: undefined, - referralCode: null, - photoListHeader: null, - photoListFooter: null, - }); diff --git a/web/apps/photos/tests/upload.test.ts b/web/apps/photos/tests/upload.test.ts index 4605d65245..9a2d2ddfe0 100644 --- a/web/apps/photos/tests/upload.test.ts +++ b/web/apps/photos/tests/upload.test.ts @@ -1,4 +1,13 @@ +/* eslint-disable @typescript-eslint/no-unsafe-member-access */ +// TODO: Audit this file +/* eslint-disable @typescript-eslint/no-unsafe-call */ +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ +/* eslint-disable @typescript-eslint/no-unsafe-argument */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ +/* eslint-disable @typescript-eslint/no-base-to-string */ +/* eslint-disable @typescript-eslint/restrict-template-expressions */ /* eslint-disable @typescript-eslint/dot-notation */ +// @ts-nocheck import { parseDateFromDigitGroups, tryParseEpochMicrosecondsFromFileName, @@ -163,13 +172,13 @@ export async function testUpload() { await exifDataParsingCheck(expectedState); await fileDimensionExtractionCheck(expectedState); await googleMetadataReadingCheck(expectedState); - await totalFileCountCheck(expectedState); + totalFileCountCheck(expectedState); } catch (e) { console.log(e); } } -async function totalFileCountCheck(expectedState) { +function totalFileCountCheck(expectedState) { const userDetails = userDetailsSnapshot(); if (expectedState.total_file_count === userDetails.fileCount) { console.log("file count check passed ✅"); diff --git a/web/apps/photos/tsconfig.json b/web/apps/photos/tsconfig.json index 9892dd4883..6360403f00 100644 --- a/web/apps/photos/tsconfig.json +++ b/web/apps/photos/tsconfig.json @@ -2,17 +2,7 @@ "extends": "ente-build-config/tsconfig-next.json", "compilerOptions": { /* Set the base directory from which to resolve bare module names. */ - "baseUrl": "./src", - - /* Override tsconfig-next.json (TODO: Remove all of us) */ - "verbatimModuleSyntax": false, - "noImplicitAny": false, - "noUnusedLocals": false, - "noUnusedParameters": false, - "noImplicitReturns": false, - "noUncheckedIndexedAccess": false, - "strictNullChecks": false, - "useUnknownInCatchVariables": false + "baseUrl": "./src" }, "include": [ "next-env.d.ts", diff --git a/web/packages/accounts/components/LoginContents.tsx b/web/packages/accounts/components/LoginContents.tsx index eae1479346..8b4b471d08 100644 --- a/web/packages/accounts/components/LoginContents.tsx +++ b/web/packages/accounts/components/LoginContents.tsx @@ -1,10 +1,11 @@ import { Input, Stack, TextField, Typography } from "@mui/material"; import { AccountsPageFooter } from "ente-accounts/components/layouts/centered-paper"; import { - getSRPAttributes, + replaceSavedLocalUser, saveSRPAttributes, -} from "ente-accounts/services/srp"; -import { savePartialLocalUser, sendOTT } from "ente-accounts/services/user"; +} from "ente-accounts/services/accounts-db"; +import { getSRPAttributes } from "ente-accounts/services/srp"; +import { sendOTT } from "ente-accounts/services/user"; import { LinkButton } from "ente-base/components/LinkButton"; import { LoadingButton } from "ente-base/components/mui/LoadingButton"; import { isMuseumHTTPError } from "ente-base/http"; @@ -17,16 +18,21 @@ import { z } from "zod/v4"; import { AccountsPageTitleWithCaption } from "./LoginComponents"; interface LoginContentsProps { - /** Called when the user clicks the signup option instead. */ - onSignUp: () => void; - /** Reactive value of {@link customAPIHost}. */ + /** + * Reactive value of {@link customAPIHost}. + */ host: string | undefined; + /** + * Called when the user clicks the signup option instead. + */ + onSignUp: () => void; } /** - * Contents of the "login form", maintained as a separate component so that the - * same code can be used both in the standalone /login page, and also within the - * embedded login form shown on the photos index page. + * A contents of the "login" form. + * + * It is used both on the "/login" page, and as the embedded login form on the + * "/" page where the user can toggle between the signup and login forms inline. */ export const LoginContents: React.FC = ({ onSignUp, @@ -49,10 +55,10 @@ export const LoginContents: React.FC = ({ } throw e; } - savePartialLocalUser({ email }); + replaceSavedLocalUser({ email }); void router.push("/verify"); } else { - savePartialLocalUser({ email }); + replaceSavedLocalUser({ email }); saveSRPAttributes(srpAttributes); void router.push("/credentials"); } diff --git a/web/packages/accounts/components/SignUpContents.tsx b/web/packages/accounts/components/SignUpContents.tsx index 343683c846..b4c3372f06 100644 --- a/web/packages/accounts/components/SignUpContents.tsx +++ b/web/packages/accounts/components/SignUpContents.tsx @@ -14,18 +14,16 @@ import { Typography, } from "@mui/material"; import { + replaceSavedLocalUser, saveJustSignedUp, - setData, + saveOriginalKeyAttributes, stashReferralSource, -} from "ente-accounts/services/accounts-db"; -import { - generateSRPSetupAttributes, stashSRPSetupAttributes, -} from "ente-accounts/services/srp"; +} from "ente-accounts/services/accounts-db"; +import { generateSRPSetupAttributes } from "ente-accounts/services/srp"; import { generateAndSaveInteractiveKeyAttributes, generateKeysAndAttributes, - savePartialLocalUser, sendOTT, type GenerateKeysAndAttributesResult, } from "ente-accounts/services/user"; @@ -57,6 +55,12 @@ interface SignUpContentsProps { host: string | undefined; } +/** + * A contents of the "signup" form. + * + * It is used both on the "/signup" page itself, and as a subcomponent of the + * "/" page where the user can toggle between the signup and login forms inline. + */ export const SignUpContents: React.FC = ({ router, onLogin, @@ -126,7 +130,7 @@ export const SignUpContents: React.FC = ({ throw e; } - savePartialLocalUser({ email }); + replaceSavedLocalUser({ email }); let gkResult: GenerateKeysAndAttributesResult; try { @@ -146,7 +150,7 @@ export const SignUpContents: React.FC = ({ } const { masterKey, kek, keyAttributes } = gkResult; - setData("originalKeyAttributes", keyAttributes); + saveOriginalKeyAttributes(keyAttributes); stashSRPSetupAttributes(await generateSRPSetupAttributes(kek)); await generateAndSaveInteractiveKeyAttributes( password, diff --git a/web/packages/accounts/components/VerifyMasterPasswordForm.tsx b/web/packages/accounts/components/VerifyMasterPasswordForm.tsx index f5ed68553a..c974886508 100644 --- a/web/packages/accounts/components/VerifyMasterPasswordForm.tsx +++ b/web/packages/accounts/components/VerifyMasterPasswordForm.tsx @@ -3,23 +3,41 @@ import { srpVerificationUnauthorizedErrorMessage, type SRPAttributes, } from "ente-accounts/services/srp"; -import type { KeyAttributes, User } from "ente-accounts/services/user"; +import type { KeyAttributes } from "ente-accounts/services/user"; import { LoadingButton } from "ente-base/components/mui/LoadingButton"; import { ShowHidePasswordInputAdornment } from "ente-base/components/mui/PasswordInputAdornment"; -import { sharedCryptoWorker } from "ente-base/crypto"; +import { decryptBox, deriveKey } from "ente-base/crypto"; import log from "ente-base/log"; import { useFormik } from "formik"; import { t } from "i18next"; import { useCallback, useState } from "react"; -import { twoFactorEnabledErrorMessage } from "./utils/second-factor-choice"; export interface VerifyMasterPasswordFormProps { /** - * The user whose password we're trying to verify. + * The email of the user whose password we're trying to verify. */ - user: User | undefined; + userEmail: string; + /** + * The user's SRP attributes. + * + * The SRP attributes are used to derive the KEK from the user's password. + * If they are not present, the {@link keyAttributes} will be used instead. + * + * At least one of {@link srpAttributes} and {@link keyAttributes} must be + * present, otherwise the verification will fail. + */ + srpAttributes?: SRPAttributes; /** * The user's key attributes. + * + * If they are present, they are used to derive the KEK from the user's + * password when {@link srpAttributes} are not present. This is the case + * when the user has already logged in (or signed up) on this client before, + * and is now doing a reauthentication. + * + * If they are not present, then {@link getKeyAttributes} must be present + * and will be used to obtain the user's key attributes. This is the case + * when the user is logging into a new client. */ keyAttributes: KeyAttributes | undefined; /** @@ -30,22 +48,21 @@ export interface VerifyMasterPasswordFormProps { * used for reauthenticating the user after they've already logged in, then * this function will not be provided. * - * @throws A Error with message {@link twoFactorEnabledErrorMessage} to - * signal to the form that some other form of second factor is enabled and - * the user has been redirected to a two factor verification page. + * @returns The user's key attributes obtained from remote, or + * "redirecting-second-factor" if the user has an additional second factor + * verification required and the app is redirecting there. * * @throws A Error with message * {@link srpVerificationUnauthorizedErrorMessage} to signal that either * that the password is incorrect, or no account with the provided email * exists. */ - getKeyAttributes?: (kek: string) => Promise; + getKeyAttributes?: ( + srpAttributes: SRPAttributes, + kek: string, + ) => Promise; /** - * The user's SRP attributes. - */ - srpAttributes?: SRPAttributes; - /** - * The title of the submit button no the form. + * The title of the submit button on the form. */ submitButtonTitle: string; /** @@ -76,11 +93,16 @@ export interface VerifyMasterPasswordFormProps { /** * A form with a text field that can be used to ask the user to verify their * password. + * + * We use it both during the initial authentication (the "/credentials" page, + * shown when logging in, or reopening the web app in a new tab), and when the + * user is trying to perform a sensitive action when already logged in and + * having a session (the {@link AuthenticateUser} component). */ export const VerifyMasterPasswordForm: React.FC< VerifyMasterPasswordFormProps > = ({ - user, + userEmail, keyAttributes, srpAttributes, getKeyAttributes, @@ -118,11 +140,10 @@ export const VerifyMasterPasswordForm: React.FC< password: string, setFieldError: (message: string) => void, ) => { - const cryptoWorker = await sharedCryptoWorker(); let kek: string; if (srpAttributes) { try { - kek = await cryptoWorker.deriveKey( + kek = await deriveKey( password, srpAttributes.kekSalt, srpAttributes.opsLimit, @@ -135,7 +156,7 @@ export const VerifyMasterPasswordForm: React.FC< } } else if (keyAttributes) { try { - kek = await cryptoWorker.deriveKey( + kek = await deriveKey( password, keyAttributes.kekSalt, keyAttributes.opsLimit, @@ -148,24 +169,24 @@ export const VerifyMasterPasswordForm: React.FC< } } else throw new Error("Both SRP and key attributes are missing"); - if (!keyAttributes && typeof getKeyAttributes == "function") { + if (!keyAttributes && getKeyAttributes && srpAttributes) { try { - keyAttributes = await getKeyAttributes(kek); + const result = await getKeyAttributes(srpAttributes, kek); + if (result == "redirecting-second-factor") { + // Two factor enabled, user has been redirected to the + // corresponding second factor verification page. + return; + } else { + keyAttributes = result; + } } catch (e) { - if (e instanceof Error) { - switch (e.message) { - case twoFactorEnabledErrorMessage: - // Two factor enabled, user has been redirected to - // the two-factor verification page. - return; - - case srpVerificationUnauthorizedErrorMessage: - log.error("Incorrect password or no account", e); - setFieldError( - t("incorrect_password_or_no_account"), - ); - return; - } + if ( + e instanceof Error && + e.message == srpVerificationUnauthorizedErrorMessage + ) { + log.error("Incorrect password or no account", e); + setFieldError(t("incorrect_password_or_no_account")); + return; } throw e; } @@ -175,7 +196,7 @@ export const VerifyMasterPasswordForm: React.FC< let key: string; try { - key = await cryptoWorker.decryptBox( + key = await decryptBox( { encryptedData: keyAttributes.encryptedKey, nonce: keyAttributes.keyDecryptionNonce, @@ -197,7 +218,7 @@ export const VerifyMasterPasswordForm: React.FC< name="email" autoComplete="username" type="email" - value={user?.email} + value={userEmail} /> { const router = useRouter(); useEffect(() => { - if (!haveCredentialsInSession()) { + if (!haveMasterKeyInSession()) { stashRedirect(currentPageSlug); void router.push("/"); } diff --git a/web/packages/accounts/eslint.config.mjs b/web/packages/accounts/eslint.config.mjs index f5408898a9..1919c2b05d 100644 --- a/web/packages/accounts/eslint.config.mjs +++ b/web/packages/accounts/eslint.config.mjs @@ -1,15 +1 @@ -import config from "ente-build-config/eslintrc-react.mjs"; - -export default [ - ...config, - { - rules: { - /* TODO: */ - "@typescript-eslint/no-unnecessary-condition": "off", - "@typescript-eslint/no-unsafe-assignment": "off", - "@typescript-eslint/no-unsafe-return": "off", - "@typescript-eslint/no-unsafe-member-access": "off", - "@typescript-eslint/no-unsafe-argument": "off", - }, - }, -]; +export { default } from "ente-build-config/eslintrc-react.mjs"; diff --git a/web/packages/accounts/pages/change-email.tsx b/web/packages/accounts/pages/change-email.tsx index 058c3abb07..0a34465b89 100644 --- a/web/packages/accounts/pages/change-email.tsx +++ b/web/packages/accounts/pages/change-email.tsx @@ -19,6 +19,10 @@ import { useCallback, useState } from "react"; import { Trans } from "react-i18next"; import { z } from "zod/v4"; +/** + * A page that allows a user to change the email address associated with their + * Ente account. + */ const Page: React.FC = () => { useRedirectIfNeedsCredentials("/change-email"); diff --git a/web/packages/accounts/pages/change-password.tsx b/web/packages/accounts/pages/change-password.tsx index 462121a4eb..88b67b42a9 100644 --- a/web/packages/accounts/pages/change-password.tsx +++ b/web/packages/accounts/pages/change-password.tsx @@ -5,11 +5,7 @@ import { AccountsPageTitle, } from "ente-accounts/components/layouts/centered-paper"; import { appHomeRoute, stashRedirect } from "ente-accounts/services/redirect"; -import { - changePassword, - localUser, - type LocalUser, -} from "ente-accounts/services/user"; +import { changePassword, type LocalUser } from "ente-accounts/services/user"; import { LinkButton } from "ente-base/components/LinkButton"; import { LoadingIndicator } from "ente-base/components/loaders"; import { deriveKeyInsufficientMemoryErrorMessage } from "ente-base/crypto/types"; @@ -21,12 +17,15 @@ import { NewPasswordForm, type NewPasswordFormProps, } from "../components/NewPasswordForm"; +import { savedLocalUser } from "../services/accounts-db"; /** * A page that allows a user to reset or change their password. + * + * See: [Note: Login pages] */ const Page: React.FC = () => { - const [user, setUser] = useState(); + const [user, setUser] = useState(undefined); const router = useRouter(); @@ -34,12 +33,12 @@ const Page: React.FC = () => { const isReset = router.query.op == "reset"; useEffect(() => { - const user = localUser(); + const user = savedLocalUser(); if (user) { setUser(user); } else { stashRedirect("/change-password"); - void router.push("/"); + void router.replace("/"); } }, [router]); diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx index 62317d1b59..aab0ae6d1b 100644 --- a/web/packages/accounts/pages/credentials.tsx +++ b/web/packages/accounts/pages/credentials.tsx @@ -6,21 +6,20 @@ import { } from "ente-accounts/components/LoginComponents"; import { SecondFactorChoice } from "ente-accounts/components/SecondFactorChoice"; import { sessionExpiredDialogAttributes } from "ente-accounts/components/utils/dialog"; -import { - twoFactorEnabledErrorMessage, - useSecondFactorChoiceIfNeeded, -} from "ente-accounts/components/utils/second-factor-choice"; +import { useSecondFactorChoiceIfNeeded } from "ente-accounts/components/utils/second-factor-choice"; import { VerifyMasterPasswordForm, type VerifyMasterPasswordFormProps, } from "ente-accounts/components/VerifyMasterPasswordForm"; import { - getData, - getToken, savedIsFirstLogin, + savedKeyAttributes, + savedPartialLocalUser, + savedSRPAttributes, saveIsFirstLogin, - setData, - setLSUser, + saveKeyAttributes, + saveSRPAttributes, + updateSavedLocalUser, } from "ente-accounts/services/accounts-db"; import { openPasskeyVerificationURL, @@ -35,45 +34,65 @@ import { checkSessionValidity } from "ente-accounts/services/session"; import type { SRPAttributes } from "ente-accounts/services/srp"; import { generateSRPSetupAttributes, + getAndSaveSRPAttributes, getSRPAttributes, setupSRP, verifySRP, } from "ente-accounts/services/srp"; import { + decryptAndStoreTokenIfNeeded, generateAndSaveInteractiveKeyAttributes, type KeyAttributes, - type User, } from "ente-accounts/services/user"; -import { decryptAndStoreToken } from "ente-accounts/utils/helpers"; import { LinkButton } from "ente-base/components/LinkButton"; import { LoadingIndicator } from "ente-base/components/loaders"; import { useBaseContext } from "ente-base/context"; import { decryptBox } from "ente-base/crypto"; +import { isDevBuild } from "ente-base/env"; import { clearLocalStorage } from "ente-base/local-storage"; import log from "ente-base/log"; import { - haveAuthenticatedSession, + masterKeyFromSession, saveMasterKeyInSessionAndSafeStore, stashKeyEncryptionKeyInSessionStore, unstashKeyEncryptionKeyFromSession, updateSessionFromElectronSafeStorageIfNeeded, } from "ente-base/session"; +import { saveAuthToken, savedAuthToken } from "ente-base/token"; import { t } from "i18next"; import { useRouter } from "next/router"; import { useCallback, useEffect, useState } from "react"; +/** + * A page that allows the user to authenticate using their password. + * + * It is shown in two cases: + * + * - Initial authentication, when the user is logging in on to a new client. + * + * - Subsequent reauthentication, when the user opens the web app in a new tab. + * Such a tab won't have the user's master key in session storage, so we ask + * the user to reauthenticate using their password. + * + * See: [Note: Login pages] + */ const Page: React.FC = () => { const { logout, showMiniDialog } = useBaseContext(); - const [srpAttributes, setSrpAttributes] = useState(); - const [keyAttributes, setKeyAttributes] = useState(); - const [user, setUser] = useState(); + const [userEmail, setUserEmail] = useState(""); + const [keyAttributes, setKeyAttributes] = useState< + KeyAttributes | undefined + >(undefined); + const [srpAttributes, setSRPAttributes] = useState< + SRPAttributes | undefined + >(undefined); const [passkeyVerificationData, setPasskeyVerificationData] = useState< { passkeySessionID: string; url: string } | undefined - >(); + >(undefined); const [sessionValidityCheck, setSessionValidityCheck] = useState< Promise | undefined - >(); + >(undefined); + const { secondFactorChoiceProps, userVerificationResultAfterResolvingSecondFactorChoice, @@ -94,8 +113,8 @@ const Page: React.FC = () => { case "valid": break; case "validButPasswordChanged": - setData("keyAttributes", session.updatedKeyAttributes); - setData("srpAttributes", session.updatedSRPAttributes); + saveKeyAttributes(session.updatedKeyAttributes); + saveSRPAttributes(session.updatedSRPAttributes); // Set a flag that causes new interactive key attributes to // be generated. saveIsFirstLogin(); @@ -111,27 +130,57 @@ const Page: React.FC = () => { } }, [logout, showMiniDialog]); + const postVerification = useCallback( + async ( + userEmail: string, + masterKey: string, + kek: string, + keyAttributes: KeyAttributes, + ) => { + await saveMasterKeyInSessionAndSafeStore(masterKey); + await decryptAndStoreTokenIfNeeded(keyAttributes, masterKey); + try { + let srpAttributes = savedSRPAttributes(); + if (!srpAttributes) { + srpAttributes = await getSRPAttributes(userEmail); + if (srpAttributes) { + saveSRPAttributes(srpAttributes); + } else { + await setupSRP(await generateSRPSetupAttributes(kek)); + await getAndSaveSRPAttributes(userEmail); + } + } + } catch (e) { + log.error("SRP migration failed", e); + } + void router.push(unstashRedirect() ?? appHomeRoute); + }, + [router], + ); + useEffect(() => { - const main = async () => { - const user: User = getData("user"); - if (!user?.email) { - void router.push("/"); + void (async () => { + const user = savedPartialLocalUser(); + const userEmail = user?.email; + if (!userEmail) { + await router.replace("/"); return; } - setUser(user); + await updateSessionFromElectronSafeStorageIfNeeded(); - if (await haveAuthenticatedSession()) { - void router.push(appHomeRoute); + if ((await masterKeyFromSession()) && (await savedAuthToken())) { + await router.replace(appHomeRoute); return; } + + setUserEmail(userEmail); + if (user.token) setSessionValidityCheck(validateSession()); + const kek = await unstashKeyEncryptionKeyFromSession(); - const keyAttributes: KeyAttributes = getData("keyAttributes"); - const srpAttributes: SRPAttributes = getData("srpAttributes"); - - if (getToken()) { - setSessionValidityCheck(validateSession()); - } + const keyAttributes = savedKeyAttributes(); + // Refreshing an existing tab, or desktop app, or only the token + // needs to decrypted and set. if (kek && keyAttributes) { const masterKey = await decryptBox( { @@ -140,68 +189,65 @@ const Page: React.FC = () => { }, kek, ); - void postVerification(masterKey, kek, keyAttributes); + await postVerification( + userEmail, + masterKey, + kek, + keyAttributes, + ); return; } + // Reauthentication in a new tab on the web app. Use previously + // generated interactive key attributes to verify password. if (keyAttributes) { - if ( - (!user?.token && !user?.encryptedToken) || - (keyAttributes && !keyAttributes.memLimit) - ) { + if (!user.token && !user.encryptedToken) { + // TODO: Why? For now, add a dev mode circuit breaker. + if (isDevBuild) throw new Error("Unexpected case reached"); clearLocalStorage(); - void router.push("/"); + void router.replace("/"); return; } setKeyAttributes(keyAttributes); return; } + // First login on a new client. `getKeyAttributes` from below will + // be used during password verification to generate interactive key + // attributes for subsequent reauthentications. + const srpAttributes = savedSRPAttributes(); if (srpAttributes) { - setSrpAttributes(srpAttributes); - } else { - void router.push("/"); + setSRPAttributes(srpAttributes); + return; } - }; - void main(); - // TODO: validateSession is a dependency, but add that only after we've - // wrapped items from the callback (like logout) in useCallback too. - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + + void router.replace("/"); + })(); + }, [router, validateSession, postVerification]); const getKeyAttributes: VerifyMasterPasswordFormProps["getKeyAttributes"] = - async (kek: string) => { - try { - // Currently the page will get reloaded if any of the attributes - // have changed, so we don't need to worry about the KEK having - // been generated using stale credentials. This await on the - // promise is here to only ensure we're done with the check - // before we let the user in. - if (sessionValidityCheck) await sessionValidityCheck; - + useCallback( + async (srpAttributes: SRPAttributes, kek: string) => { const { - keyAttributes, - encryptedToken, - token, id, + keyAttributes, + token, + encryptedToken, twoFactorSessionID, passkeySessionID, accountsUrl, } = await userVerificationResultAfterResolvingSecondFactorChoice( - await verifySRP(srpAttributes!, kek), + await verifySRP(srpAttributes, kek), ); + + // If we had to ask remote for the key attributes, it is the + // initial login on this client. saveIsFirstLogin(); if (passkeySessionID) { await stashKeyEncryptionKeyInSessionStore(kek); - const user = getData("user"); - await setLSUser({ - ...user, - passkeySessionID, - isTwoFactorEnabled: true, - isTwoFactorPasskeysEnabled: true, - }); + updateSavedLocalUser({ passkeySessionID }); stashRedirect("/"); const url = passkeyVerificationRedirectURL( accountsUrl!, @@ -209,79 +255,68 @@ const Page: React.FC = () => { ); setPasskeyVerificationData({ passkeySessionID, url }); openPasskeyVerificationURL({ passkeySessionID, url }); - throw new Error(twoFactorEnabledErrorMessage); + return "redirecting-second-factor"; } else if (twoFactorSessionID) { await stashKeyEncryptionKeyInSessionStore(kek); - const user = getData("user"); - await setLSUser({ - ...user, - twoFactorSessionID, + updateSavedLocalUser({ isTwoFactorEnabled: true, + twoFactorSessionID, }); void router.push("/two-factor/verify"); - throw new Error(twoFactorEnabledErrorMessage); + return "redirecting-second-factor"; } else { - const user = getData("user"); - await setLSUser({ - ...user, + // In rare cases, if the user hasn't already setup their key + // attributes, we might get the plaintext token from remote. + if (token) await saveAuthToken(token); + updateSavedLocalUser({ + id, token, encryptedToken, - id, - isTwoFactorEnabled: false, + isTwoFactorEnabled: undefined, + twoFactorSessionID: undefined, + passkeySessionID: undefined, }); - if (keyAttributes) setData("keyAttributes", keyAttributes); + if (keyAttributes) saveKeyAttributes(keyAttributes); return keyAttributes; } - } catch (e) { - if ( - e instanceof Error && - e.message != twoFactorEnabledErrorMessage - ) { - log.error("getKeyAttributes failed", e); - } - throw e; - } - }; + }, + [userVerificationResultAfterResolvingSecondFactorChoice, router], + ); const handleVerifyMasterPassword: VerifyMasterPasswordFormProps["onVerify"] = - (key, kek, keyAttributes, password) => { - void (async () => { - const updatedKeyAttributes = savedIsFirstLogin() - ? await generateAndSaveInteractiveKeyAttributes( - password, - keyAttributes, - key, - ) - : keyAttributes; - await postVerification(key, kek, updatedKeyAttributes); - })(); - }; + useCallback( + (key, kek, keyAttributes, password) => { + void (async () => { + // Currently the page will get reloaded if any of the + // attributes have changed, so we don't need to worry about + // the KEK having been generated using stale credentials. + // + // This await on the promise is here to only ensure we're + // done with the check before we let the user in. + if (sessionValidityCheck) await sessionValidityCheck; - const postVerification = async ( - masterKey: string, - kek: string, - keyAttributes: KeyAttributes, - ) => { - await saveMasterKeyInSessionAndSafeStore(masterKey); - await decryptAndStoreToken(keyAttributes, masterKey); - try { - let srpAttributes: SRPAttributes | null | undefined = - getData("srpAttributes"); - if (!srpAttributes && user) { - srpAttributes = await getSRPAttributes(user.email); - if (srpAttributes) { - setData("srpAttributes", srpAttributes); - } - } - log.debug(() => `userSRPSetupPending ${!srpAttributes}`); - if (!srpAttributes) { - await setupSRP(await generateSRPSetupAttributes(kek)); - } - } catch (e) { - log.error("migrate to srp failed", e); - } - void router.push(unstashRedirect() ?? appHomeRoute); - }; + const updatedKeyAttributes = savedIsFirstLogin() + ? await generateAndSaveInteractiveKeyAttributes( + password, + keyAttributes, + key, + ) + : keyAttributes; + + await postVerification( + userEmail, + key, + kek, + updatedKeyAttributes, + ); + })(); + }, + [postVerification, userEmail, sessionValidityCheck], + ); + + if (!userEmail) { + return ; + } if (!keyAttributes && !srpAttributes) { return ; @@ -303,8 +338,8 @@ const Page: React.FC = () => { return ( openPasskeyVerificationURL(passkeyVerificationData) } @@ -313,16 +348,16 @@ const Page: React.FC = () => { ); } - // TODO: Handle the case when user is not present, or exclude that - // possibility using types. return ( - + diff --git a/web/packages/accounts/pages/generate.tsx b/web/packages/accounts/pages/generate.tsx index a40ef0ca53..6d8da16bb1 100644 --- a/web/packages/accounts/pages/generate.tsx +++ b/web/packages/accounts/pages/generate.tsx @@ -6,16 +6,17 @@ import { } from "ente-accounts/components/layouts/centered-paper"; import { RecoveryKey } from "ente-accounts/components/RecoveryKey"; import { - getData, savedJustSignedUp, + savedOriginalKeyAttributes, + savedPartialLocalUser, saveJustSignedUp, } from "ente-accounts/services/accounts-db"; import { appHomeRoute } from "ente-accounts/services/redirect"; import { generateSRPSetupAttributes, + getAndSaveSRPAttributes, setupSRP, } from "ente-accounts/services/srp"; -import type { KeyAttributes, User } from "ente-accounts/services/user"; import { generateAndSaveInteractiveKeyAttributes, generateKeysAndAttributes, @@ -27,89 +28,90 @@ import { useBaseContext } from "ente-base/context"; import { deriveKeyInsufficientMemoryErrorMessage } from "ente-base/crypto/types"; import log from "ente-base/log"; import { - haveCredentialsInSession, + haveMasterKeyInSession, saveMasterKeyInSessionAndSafeStore, } from "ente-base/session"; import { t } from "i18next"; import { useRouter } from "next/router"; -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; import { NewPasswordForm, type NewPasswordFormProps, } from "../components/NewPasswordForm"; +/** + * A page that allows the user to generate key attributes if needed, and shows + * them their recovery key if they just signed up. + * + * See: [Note: Login pages] + */ const Page: React.FC = () => { const { logout, showMiniDialog } = useBaseContext(); - const [user, setUser] = useState(); + const [userEmail, setUserEmail] = useState(""); const [openRecoveryKey, setOpenRecoveryKey] = useState(false); - const [loading, setLoading] = useState(true); const router = useRouter(); useEffect(() => { - const keyAttributes: KeyAttributes = getData("originalKeyAttributes"); - const user: User = getData("user"); - setUser(user); - if (!user?.token) { - void router.push("/"); - } else if (haveCredentialsInSession()) { + const user = savedPartialLocalUser(); + if (!user?.email || !user.token) { + void router.replace("/"); + } else if (haveMasterKeyInSession()) { if (savedJustSignedUp()) { setOpenRecoveryKey(true); - setLoading(false); } else { - void router.push(appHomeRoute); + void router.replace(appHomeRoute); } - } else if (keyAttributes?.encryptedKey) { - void router.push("/credentials"); + } else if (savedOriginalKeyAttributes()) { + void router.replace("/credentials"); } else { - setLoading(false); + setUserEmail(user.email); } }, [router]); - const handleSubmit: NewPasswordFormProps["onSubmit"] = async ( - password, - setPasswordsFieldError, - ) => { - try { - const { masterKey, kek, keyAttributes } = - await generateKeysAndAttributes(password); - await putUserKeyAttributes(keyAttributes); - await setupSRP(await generateSRPSetupAttributes(kek)); - await generateAndSaveInteractiveKeyAttributes( - password, - keyAttributes, - masterKey, - ); - await saveMasterKeyInSessionAndSafeStore(masterKey); - saveJustSignedUp(); - setOpenRecoveryKey(true); - } catch (e) { - log.error("failed to generate password", e); - setPasswordsFieldError( - e instanceof Error && - e.message == deriveKeyInsufficientMemoryErrorMessage - ? t("password_generation_failed") - : t("generic_error"), - ); - } - }; + const handleSubmit: NewPasswordFormProps["onSubmit"] = useCallback( + async (password, setPasswordsFieldError) => { + try { + const { masterKey, kek, keyAttributes } = + await generateKeysAndAttributes(password); + await putUserKeyAttributes(keyAttributes); + await setupSRP(await generateSRPSetupAttributes(kek)); + await getAndSaveSRPAttributes(userEmail); + await generateAndSaveInteractiveKeyAttributes( + password, + keyAttributes, + masterKey, + ); + await saveMasterKeyInSessionAndSafeStore(masterKey); + saveJustSignedUp(); + setOpenRecoveryKey(true); + } catch (e) { + log.error("Could not generate key attributes from password", e); + setPasswordsFieldError( + e instanceof Error && + e.message == deriveKeyInsufficientMemoryErrorMessage + ? t("password_generation_failed") + : t("generic_error"), + ); + } + }, + [userEmail], + ); return ( <> - {loading || !user ? ( - - ) : openRecoveryKey ? ( + {openRecoveryKey ? ( void router.push(appHomeRoute)} showMiniDialog={showMiniDialog} /> - ) : ( + ) : userEmail ? ( {t("set_password")} @@ -118,6 +120,8 @@ const Page: React.FC = () => { {t("go_back")} + ) : ( + )} ); diff --git a/web/packages/accounts/pages/login.tsx b/web/packages/accounts/pages/login.tsx index 0d1618b71f..bfa311a03a 100644 --- a/web/packages/accounts/pages/login.tsx +++ b/web/packages/accounts/pages/login.tsx @@ -1,33 +1,159 @@ import { AccountsPageContents } from "ente-accounts/components/layouts/centered-paper"; import { LoginContents } from "ente-accounts/components/LoginContents"; -import { getData } from "ente-accounts/services/accounts-db"; +import { savedPartialLocalUser } from "ente-accounts/services/accounts-db"; import { LoadingIndicator } from "ente-base/components/loaders"; import { customAPIHost } from "ente-base/origins"; import { useRouter } from "next/router"; -import React, { useEffect, useState } from "react"; +import React, { useCallback, useEffect, useState } from "react"; +/** + * A page that allows the user to login into their existing Ente account. + * + * [Note: Login pages] + * + * There are multiple pages that comprise the login flow, with redirects amongst + * themselves depending on various scenarios and partial login states. + * + * - "/signup" - A page that allows the user to signup for a new Ente account. + * + * - Redirects to "/login" if the user chooses the "already have an account" + * option. + * + * - Redirects to "/verify" if there is already an `email` present in the + * saved partial local user, or after obtaining the email. + * + * - "/login" - A page that allows the user to login into their existing Ente + * account. + * + * - Redirects to "/signup" if the user chooses the "create new account" + * option. + * + * - Redirects to "/verify" if there is already an `email` present in the + * saved partial local user, or after obtaining the email if the user's has + * enabled email verification for their account. + * + * - Redirects to "/credentials" after obtaining the email if the user has not + * enabled email verification for their account. + * + * - "/verify" - A page that allows the user to verify their email. + * + * - Redirects to "/" if there is no `email` present in the saved partial + * local user. + * + * - Redirects to "/credentials" if both saved key attributes and a `token` + * (or `encryptedToken`) in present in the saved partial local user, or if + * email verification is not needed, or when email verification completes + * and remote sent us key attributes (which will happen on login). + * + * - Redirects to "/generate" once email verification is complete and the user + * does not have key attributes (which will happen for new signups). + * + * - Redirects to "/two-factor/verify" when email verification completes and + * the user has setup a TOTP second factor that also needs to be verified. + * + * - Redirects to the passkey app when email verification completes and the + * user has setup a passkey that also needs to be verified. Before + * redirecting, `inflightPasskeySessionID` in saved in session storage. + * + * - "/credentials" - A page that allows the user to enter their password to + * authenticate (initial login) or reauthenticate (new web app tab) + * + * - Redirects to "/" if there is no `email` present in the saved partial + * local user. + * + * - Redirects to "/two-factor/verify" if saved key attributes are not present + * once password is verified and the user has setup a TOTP second factor + * that also needs to be verified. + * + * - Redirects to the passkey app once password is verified if saved key + * attributes are not present if the user has setup a passkey that also + * needs to be verified. Before redirecting, `inflightPasskeySessionID` is + * saved in session storage. + * + * - Redirects to the `appHomeRoute` otherwise (e.g. /gallery). **The flow is + * complete**. + * + * - "/generate" - A page that allows the user to generate key attributes if + * needed, and shows them their recovery key if they just signed up. + * + * - Redirects to "/" if there is no `email` or `token` present in the saved + * partial user. + * + * - Redirects to `appHomeRoute` after viewing the recovery key if they have a + * master key in session, or after setting the password and then viewing the + * recovery key (if they did not have a master key in session store). + * + * - Redirects to "/credentials" if if they don't have a master key in session + * store but have saved original key attributes. + * + * - "/recover" - A page that allows the user to recover their master key using + * their recovery key. + * + * - Redirects to "/" if there is no `email` present in the saved partial + * local user. + * + * - Redirects to "/verify" if there is no `encryptedToken` (or `token`) + * present in the saved partial local user. + * + * - Redirects to "/generate" if there are no saved key attributes. + * + * - Redirects to "/change-password" once the recovery key is verified. + * + * - "/change-password" - A page that allows the user to reset their password. + * + * - Redirects to "/" if there is no `email` present in the saved partial + * user, and after successfully changing the password. + * + * - "/two-factor/verify" - A page that allows the user to verify their TOTP + * based second factor. + * + * - Redirects to "/" if there is no `email` or `twoFactorSessionID` in the + * saved partial local user. + * + * - Redirects to "/credentials" if `isTwoFactorEnabled` is not `true` and + * either of `encryptedToken` or `token` is present in the saved partial + * local user. + * + * - "/passkeys/finish" - A page where the accounts app hands off control back + * to us (the calling app) once the passkey has been verified. + * + * - Redirects to "/" if there is no matching `inflightPasskeySessionID` in + * session storage. + * + * - Redirects to "/credentials" otherwise. + * + * - "/two-factor/recover" and "/passkeys/recover" - Pages that allow the user + * to reset or bypass their second factor if they possess their recovery key. + * Both pages work similarly, except for the second factor they act on. + * + * - Redirect to "/" if there is no `email` or `twoFactorSessionID` / + * `passkeySessionID` in the saved partial local user. + * + * - Redirect to "/generate" if there is an `encryptedToken` or `token` in the + * saved partial local user. + * + * - Redirect to "/credentials" after recovery. + * + */ const Page: React.FC = () => { const [loading, setLoading] = useState(true); - const [host, setHost] = useState(); + const [host, setHost] = useState(undefined); const router = useRouter(); useEffect(() => { void customAPIHost().then(setHost); - const user = getData("user"); - if (user?.email) { - void router.push("/verify"); - } + if (savedPartialLocalUser()?.email) void router.replace("/verify"); setLoading(false); }, [router]); - const onSignUp = () => void router.push("/signup"); + const onSignUp = useCallback(() => void router.push("/signup"), [router]); return loading ? ( ) : ( - + ); }; diff --git a/web/packages/accounts/pages/passkeys/finish.tsx b/web/packages/accounts/pages/passkeys/finish.tsx index b9dadaf7ce..7a1f6ddcf8 100644 --- a/web/packages/accounts/pages/passkeys/finish.tsx +++ b/web/packages/accounts/pages/passkeys/finish.tsx @@ -1,9 +1,13 @@ import { - getData, - setData, - setLSUser, + saveKeyAttributes, + updateSavedLocalUser, } from "ente-accounts/services/accounts-db"; +import { clearInflightPasskeySessionID } from "ente-accounts/services/passkey"; import { unstashRedirect } from "ente-accounts/services/redirect"; +import { + resetSavedLocalUserTokens, + TwoFactorAuthorizationResponse, +} from "ente-accounts/services/user"; import { LoadingIndicator } from "ente-base/components/loaders"; import { fromB64URLSafeNoPadding } from "ente-base/crypto"; import log from "ente-base/log"; @@ -12,6 +16,11 @@ import { useRouter } from "next/router"; import React, { useEffect } from "react"; /** + * The page where the accounts app hands back control to us once the passkey has + * been verified. + * + * See: [Note: Login pages] + * * [Note: Finish passkey flow in the requesting app] * * The passkey finish step needs to happen in the context of the client which @@ -22,14 +31,14 @@ const Page: React.FC = () => { const router = useRouter(); useEffect(() => { - // Extract response from query params + // Extract response from query params. const searchParams = new URLSearchParams(window.location.search); const passkeySessionID = searchParams.get("passkeySessionID"); const response = searchParams.get("response"); if (!passkeySessionID || !response) return; - void saveCredentialsAndNavigateTo(passkeySessionID, response).then( - (slug: string) => router.push(slug), + void saveQueryCredentialsAndNavigateTo(passkeySessionID, response).then( + (slug) => router.replace(slug), ); }, [router]); @@ -51,13 +60,19 @@ export default Page; * * @returns the slug that we should navigate to now. */ -const saveCredentialsAndNavigateTo = async ( +const saveQueryCredentialsAndNavigateTo = async ( passkeySessionID: string, response: string, ) => { + // This function's implementation is on the same lines as that of the + // `saveCredentialsAndNavigateTo` function in passkey utilities. + // + // See: [Note: Ending the passkey flow] + const inflightPasskeySessionID = nullToUndefined( sessionStorage.getItem("inflightPasskeySessionID"), ); + if ( !inflightPasskeySessionID || passkeySessionID != inflightPasskeySessionID @@ -71,32 +86,21 @@ const saveCredentialsAndNavigateTo = async ( return "/"; } - sessionStorage.removeItem("inflightPasskeySessionID"); + clearInflightPasskeySessionID(); // Decode response string (inverse of the steps we perform in // `passkeyAuthenticationSuccessRedirectURL`). - const decodedResponse = JSON.parse( - new TextDecoder().decode(await fromB64URLSafeNoPadding(response)), + const decodedResponse = TwoFactorAuthorizationResponse.parse( + JSON.parse( + new TextDecoder().decode(await fromB64URLSafeNoPadding(response)), + ), ); - // Only one of `encryptedToken` or `token` will be present depending on the - // account's lifetime: - // - // - The plaintext "token" will be passed during fresh signups, where we - // don't yet have keys to encrypt it, the account itself is being created - // as we go through this flow. - // - // TODO: Conceptually this cannot happen. During a _real_ fresh signup - // we'll never enter the passkey verification flow. Remove this code after - // making sure that it doesn't get triggered in cases where an existing - // user goes through the new user flow. - // - // - The encrypted `encryptedToken` will be present otherwise (i.e. if the - // user is signing into an existing account). - const { keyAttributes, encryptedToken, token, id } = decodedResponse; + const { id, keyAttributes, encryptedToken } = decodedResponse; - await setLSUser({ ...getData("user"), token, encryptedToken, id }); - setData("keyAttributes", keyAttributes); + await resetSavedLocalUserTokens(id, encryptedToken); + updateSavedLocalUser({ passkeySessionID: undefined }); + saveKeyAttributes(keyAttributes); return unstashRedirect() ?? "/credentials"; }; diff --git a/web/packages/accounts/pages/recover.tsx b/web/packages/accounts/pages/recover.tsx index 8b9da40e4f..ac4b791e7c 100644 --- a/web/packages/accounts/pages/recover.tsx +++ b/web/packages/accounts/pages/recover.tsx @@ -3,12 +3,17 @@ import { AccountsPageFooter, AccountsPageTitle, } from "ente-accounts/components/layouts/centered-paper"; -import { getData } from "ente-accounts/services/accounts-db"; +import { + savedKeyAttributes, + savedPartialLocalUser, +} from "ente-accounts/services/accounts-db"; import { recoveryKeyFromMnemonic } from "ente-accounts/services/recovery-key"; import { appHomeRoute, stashRedirect } from "ente-accounts/services/redirect"; -import type { KeyAttributes, User } from "ente-accounts/services/user"; -import { sendOTT } from "ente-accounts/services/user"; -import { decryptAndStoreToken } from "ente-accounts/utils/helpers"; +import type { KeyAttributes } from "ente-accounts/services/user"; +import { + decryptAndStoreTokenIfNeeded, + sendOTT, +} from "ente-accounts/services/user"; import { LinkButton } from "ente-base/components/LinkButton"; import { SingleInputForm, @@ -18,74 +23,86 @@ import { useBaseContext } from "ente-base/context"; import { decryptBox } from "ente-base/crypto"; import log from "ente-base/log"; import { - haveCredentialsInSession, + haveMasterKeyInSession, saveMasterKeyInSessionAndSafeStore, } from "ente-base/session"; import { t } from "i18next"; import { useRouter } from "next/router"; -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; +/** + * A page that allows the user to enter their recovery key to recover their + * master key if they've forgotten their password. + * + * See: [Note: Login pages] + */ const Page: React.FC = () => { const { showMiniDialog } = useBaseContext(); const [keyAttributes, setKeyAttributes] = useState< KeyAttributes | undefined - >(); + >(undefined); const router = useRouter(); useEffect(() => { - const user: User = getData("user"); - const keyAttributes: KeyAttributes = getData("keyAttributes"); - if (!user?.email) { - void router.push("/"); - return; - } - if (!user?.encryptedToken && !user?.token) { - void sendOTT(user.email, undefined); - stashRedirect("/recover"); - void router.push("/verify"); - return; - } - if (!keyAttributes) { - void router.push("/generate"); - } else if (haveCredentialsInSession()) { - void router.push(appHomeRoute); - } else { - setKeyAttributes(keyAttributes); - } + void (async () => { + const user = savedPartialLocalUser(); + if (!user?.email) { + await router.replace("/"); + return; + } + + if (!user.encryptedToken && !user.token) { + await sendOTT(user.email, undefined); + stashRedirect("/recover"); + await router.replace("/verify"); + return; + } + + const keyAttributes = savedKeyAttributes(); + if (!keyAttributes) { + await router.replace("/generate"); + } else if (haveMasterKeyInSession()) { + await router.replace(appHomeRoute); + } else { + setKeyAttributes(keyAttributes); + } + })(); }, [router]); - const handleSubmit: SingleInputFormProps["onSubmit"] = async ( - recoveryKeyMnemonic: string, - setFieldError, - ) => { - try { - const keyAttr = keyAttributes!; - const masterKey = await decryptBox( - { - encryptedData: keyAttr.masterKeyEncryptedWithRecoveryKey!, - nonce: keyAttr.masterKeyDecryptionNonce!, - }, - await recoveryKeyFromMnemonic(recoveryKeyMnemonic), - ); - await saveMasterKeyInSessionAndSafeStore(masterKey); - await decryptAndStoreToken(keyAttr, masterKey); + const handleSubmit: SingleInputFormProps["onSubmit"] = useCallback( + async (recoveryKeyMnemonic: string, setFieldError) => { + try { + const keyAttr = keyAttributes!; + const masterKey = await decryptBox( + { + encryptedData: + keyAttr.masterKeyEncryptedWithRecoveryKey!, + nonce: keyAttr.masterKeyDecryptionNonce!, + }, + await recoveryKeyFromMnemonic(recoveryKeyMnemonic), + ); + await saveMasterKeyInSessionAndSafeStore(masterKey); + await decryptAndStoreTokenIfNeeded(keyAttr, masterKey); - void router.push("/change-password?op=reset"); - } catch (e) { - log.error("password recovery failed", e); - setFieldError(t("incorrect_recovery_key")); - } - }; + void router.push("/change-password?op=reset"); + } catch (e) { + log.error("Master key recovery failed", e); + setFieldError(t("incorrect_recovery_key")); + } + }, + [router, keyAttributes], + ); - const showNoRecoveryKeyMessage = () => + const showNoRecoveryKeyMessage = useCallback(() => { showMiniDialog({ title: t("sorry"), message: t("no_recovery_key_message"), continue: { color: "secondary" }, cancel: false, }); + }, [showMiniDialog]); return ( diff --git a/web/packages/accounts/pages/signup.tsx b/web/packages/accounts/pages/signup.tsx index 20aaeb55ed..5d06da4dad 100644 --- a/web/packages/accounts/pages/signup.tsx +++ b/web/packages/accounts/pages/signup.tsx @@ -1,33 +1,35 @@ import { AccountsPageContents } from "ente-accounts/components/layouts/centered-paper"; import { SignUpContents } from "ente-accounts/components/SignUpContents"; -import { getData } from "ente-accounts/services/accounts-db"; +import { savedPartialLocalUser } from "ente-accounts/services/accounts-db"; import { LoadingIndicator } from "ente-base/components/loaders"; import { customAPIHost } from "ente-base/origins"; import { useRouter } from "next/router"; -import React, { useEffect, useState } from "react"; +import React, { useCallback, useEffect, useState } from "react"; +/** + * A page that allows the user to signup for a new Ente account. + * + * See: [Note: Login pages] + */ const Page: React.FC = () => { const [loading, setLoading] = useState(true); - const [host, setHost] = useState(); + const [host, setHost] = useState(undefined); const router = useRouter(); useEffect(() => { void customAPIHost().then(setHost); - const user = getData("user"); - if (user?.email) { - void router.push("/verify"); - } + if (savedPartialLocalUser()?.email) void router.replace("/verify"); setLoading(false); }, [router]); - const onLogin = () => void router.push("/login"); + const onLogin = useCallback(() => void router.push("/login"), [router]); return loading ? ( ) : ( - + ); }; diff --git a/web/packages/accounts/pages/two-factor/recover.tsx b/web/packages/accounts/pages/two-factor/recover.tsx index e8fa006da2..42e9b9f9df 100644 --- a/web/packages/accounts/pages/two-factor/recover.tsx +++ b/web/packages/accounts/pages/two-factor/recover.tsx @@ -4,9 +4,9 @@ import { AccountsPageFooter, AccountsPageTitle, } from "ente-accounts/components/layouts/centered-paper"; -import { getData } from "ente-accounts/services/accounts-db"; +import { savedPartialLocalUser } from "ente-accounts/services/accounts-db"; import { - recoverTwoFactor, + getRecoverTwoFactor, recoverTwoFactorFinish, type TwoFactorRecoveryResponse, type TwoFactorType, @@ -64,20 +64,23 @@ const Page: React.FC = ({ twoFactorType }) => { ); useEffect(() => { - const user = getData("user"); - const sessionID = user.passkeySessionID || user.twoFactorSessionID; - if (!user?.email || !sessionID) { - void router.push("/"); - } else if ( - !(user.isTwoFactorEnabled || user.isTwoFactorEnabledPasskey) && - (user.encryptedToken || user.token) - ) { - void router.push("/generate"); - } else { - setSessionID(sessionID); - void recoverTwoFactor(twoFactorType, sessionID) - .then(setRecoveryResponse) - .catch((e: unknown) => { + void (async () => { + const user = savedPartialLocalUser(); + const sessionID = + twoFactorType == "passkey" + ? user?.passkeySessionID + : user?.twoFactorSessionID; + if (!user?.email || !sessionID) { + await router.replace("/"); + } else if (user.encryptedToken || user.token) { + await router.replace("/generate"); + } else { + setSessionID(sessionID); + try { + setRecoveryResponse( + await getRecoverTwoFactor(twoFactorType, sessionID), + ); + } catch (e) { log.error("Second factor recovery page setup failed", e); if (isHTTPErrorWithStatus(e, 404)) { logout(); @@ -86,8 +89,9 @@ const Page: React.FC = ({ twoFactorType }) => { } else { onGenericError(e); } - }); - } + } + } + })(); }, [ twoFactorType, logout, diff --git a/web/packages/accounts/pages/two-factor/setup.tsx b/web/packages/accounts/pages/two-factor/setup.tsx index 135af20f68..0c20ce93c9 100644 --- a/web/packages/accounts/pages/two-factor/setup.tsx +++ b/web/packages/accounts/pages/two-factor/setup.tsx @@ -124,12 +124,12 @@ const SetupQRMode: React.FC = ({ {t("two_factor_qr_help")} - {!twoFactorSecret ? ( + {twoFactorSecret ? ( + + ) : ( - ) : ( - )} {t("two_factor_manual_entry_title")} diff --git a/web/packages/accounts/pages/two-factor/verify.tsx b/web/packages/accounts/pages/two-factor/verify.tsx index a5badf4043..e0038ef9ae 100644 --- a/web/packages/accounts/pages/two-factor/verify.tsx +++ b/web/packages/accounts/pages/two-factor/verify.tsx @@ -1,17 +1,19 @@ import { Verify2FACodeForm } from "ente-accounts/components/Verify2FACodeForm"; import { - getData, - setData, - setLSUser, + savedPartialLocalUser, + saveKeyAttributes, + updateSavedLocalUser, } from "ente-accounts/services/accounts-db"; -import type { User } from "ente-accounts/services/user"; -import { verifyTwoFactor } from "ente-accounts/services/user"; +import { + resetSavedLocalUserTokens, + verifyTwoFactor, +} from "ente-accounts/services/user"; import { LinkButton } from "ente-base/components/LinkButton"; import { useBaseContext } from "ente-base/context"; import { isHTTPErrorWithStatus } from "ente-base/http"; import { t } from "i18next"; import { useRouter } from "next/router"; -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; import { AccountsPageContents, AccountsPageFooter, @@ -19,52 +21,51 @@ import { } from "../../components/layouts/centered-paper"; import { unstashRedirect } from "../../services/redirect"; +/** + * A page that allows the user to verify their TOTP based second factor. + * + * See: [Note: Login pages] + */ const Page: React.FC = () => { const { logout } = useBaseContext(); - const [sessionID, setSessionID] = useState(""); + const [twoFactorSessionID, setTwoFactorSessionID] = useState(""); const router = useRouter(); useEffect(() => { - const user: User = getData("user"); + const user = savedPartialLocalUser(); if (!user?.email || !user.twoFactorSessionID) { - void router.push("/"); + void router.replace("/"); } else if ( !user.isTwoFactorEnabled && (user.encryptedToken || user.token) ) { - void router.push("/credentials"); + void router.replace("/credentials"); } else { - setSessionID(user.twoFactorSessionID); + setTwoFactorSessionID(user.twoFactorSessionID); } }, [router]); - const handleSubmit = async (otp: string) => { - try { - const { keyAttributes, encryptedToken, id } = await verifyTwoFactor( - otp, - sessionID, - ); - await setLSUser({ - ...getData("user"), - id, - // The original code was parsing an token which is never going - // to be present in the response, so effectively was always - // setting token to undefined. So this works, but is it needed? - token: undefined, - encryptedToken, - }); - setData("keyAttributes", keyAttributes); - await router.push(unstashRedirect() ?? "/credentials"); - } catch (e) { - if (isHTTPErrorWithStatus(e, 404)) { - logout(); - } else { - throw e; + const handleSubmit = useCallback( + async (otp: string) => { + try { + const { keyAttributes, encryptedToken, id } = + await verifyTwoFactor(otp, twoFactorSessionID); + await resetSavedLocalUserTokens(id, encryptedToken); + updateSavedLocalUser({ twoFactorSessionID: undefined }); + saveKeyAttributes(keyAttributes); + await router.push(unstashRedirect() ?? "/credentials"); + } catch (e) { + if (isHTTPErrorWithStatus(e, 404)) { + logout(); + } else { + throw e; + } } - } - }; + }, + [logout, router, twoFactorSessionID], + ); return ( diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsx index a2aa9816fd..7ffcffa231 100644 --- a/web/packages/accounts/pages/verify.tsx +++ b/web/packages/accounts/pages/verify.tsx @@ -8,11 +8,17 @@ import { VerifyingPasskey } from "ente-accounts/components/LoginComponents"; import { SecondFactorChoice } from "ente-accounts/components/SecondFactorChoice"; import { useSecondFactorChoiceIfNeeded } from "ente-accounts/components/utils/second-factor-choice"; import { - getData, + replaceSavedLocalUser, + savedKeyAttributes, + savedOriginalKeyAttributes, + savedPartialLocalUser, + savedSRPAttributes, saveIsFirstLogin, - setData, - setLSUser, + saveKeyAttributes, + saveOriginalKeyAttributes, + unstashAfterUseSRPSetupAttributes, unstashReferralSource, + updateSavedLocalUser, } from "ente-accounts/services/accounts-db"; import { openPasskeyVerificationURL, @@ -23,12 +29,10 @@ import { unstashRedirect, } from "ente-accounts/services/redirect"; import { + getAndSaveSRPAttributes, getSRPAttributes, setupSRP, - unstashAndUseSRPSetupAttributes, - type SRPAttributes, } from "ente-accounts/services/srp"; -import type { KeyAttributes, User } from "ente-accounts/services/user"; import { putUserKeyAttributes, sendOTT, @@ -44,19 +48,28 @@ import { useBaseContext } from "ente-base/context"; import { isHTTPErrorWithStatus } from "ente-base/http"; import log from "ente-base/log"; import { clearSessionStorage } from "ente-base/session"; +import { saveAuthToken } from "ente-base/token"; import { t } from "i18next"; import { useRouter } from "next/router"; -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; import { Trans } from "react-i18next"; +/** + * A page that allows the user to verify their email. + * + * See: [Note: Login pages] + */ const Page: React.FC = () => { const { logout, showMiniDialog } = useBaseContext(); const [email, setEmail] = useState(""); - const [resend, setResend] = useState(0); + const [resend, setResend] = useState<"enable" | "sending" | "sent">( + "enable", + ); const [passkeyVerificationData, setPasskeyVerificationData] = useState< { passkeySessionID: string; url: string } | undefined >(); + const { secondFactorChoiceProps, userVerificationResultAfterResolvingSecondFactorChoice, @@ -65,17 +78,13 @@ const Page: React.FC = () => { const router = useRouter(); useEffect(() => { - const main = async () => { - const user: User = getData("user"); - - const redirect = await redirectionIfNeeded(user); - if (redirect) { - void router.push(redirect); + void redirectionIfNeededOrEmail().then((redirectOrEmail) => { + if (typeof redirectOrEmail == "string") { + void router.replace(redirectOrEmail); } else { - setEmail(user.email); + setEmail(redirectOrEmail.email); } - }; - void main(); + }); }, [router]); const onSubmit: SingleInputFormProps["onSubmit"] = async ( @@ -98,14 +107,12 @@ const Page: React.FC = () => { } = await userVerificationResultAfterResolvingSecondFactorChoice( await verifyEmail(email, ott, cleanedReferral), ); + + // The following flow is similar to (but not the same) as what + // happens after `verifySRP` in the `/credentials` page. + if (passkeySessionID) { - const user = getData("user"); - await setLSUser({ - ...user, - passkeySessionID, - isTwoFactorEnabled: true, - isTwoFactorPasskeysEnabled: true, - }); + updateSavedLocalUser({ passkeySessionID }); saveIsFirstLogin(); const url = passkeyVerificationRedirectURL( accountsUrl!, @@ -114,40 +121,32 @@ const Page: React.FC = () => { setPasskeyVerificationData({ passkeySessionID, url }); openPasskeyVerificationURL({ passkeySessionID, url }); } else if (twoFactorSessionID) { - await setLSUser({ - email, - twoFactorSessionID, + updateSavedLocalUser({ isTwoFactorEnabled: true, + twoFactorSessionID, }); saveIsFirstLogin(); void router.push("/two-factor/verify"); } else { - await setLSUser({ - email, - token, - encryptedToken, - id, - isTwoFactorEnabled: false, - }); + if (token) await saveAuthToken(token); + replaceSavedLocalUser({ id, email, token, encryptedToken }); if (keyAttributes) { - setData("keyAttributes", keyAttributes); - setData("originalKeyAttributes", keyAttributes); + saveKeyAttributes(keyAttributes); + saveOriginalKeyAttributes(keyAttributes); } else { - const originalKeyAttributes = getData( - "originalKeyAttributes", - ); + const originalKeyAttributes = savedOriginalKeyAttributes(); if (originalKeyAttributes) { await putUserKeyAttributes(originalKeyAttributes); } - await unstashAndUseSRPSetupAttributes(setupSRP); + await unstashAfterUseSRPSetupAttributes(setupSRP); + await getAndSaveSRPAttributes(email); } saveIsFirstLogin(); - const redirectURL = unstashRedirect(); - if (keyAttributes?.encryptedKey) { + if (keyAttributes) { clearSessionStorage(); - void router.push(redirectURL ?? "/credentials"); + void router.push(unstashRedirect() ?? "/credentials"); } else { - void router.push(redirectURL ?? "/generate"); + void router.push(unstashRedirect() ?? "/generate"); } } } catch (e) { @@ -162,12 +161,12 @@ const Page: React.FC = () => { } }; - const resendEmail = async () => { - setResend(1); + const resendEmail = useCallback(async () => { + setResend("sending"); await sendOTT(email, undefined); - setResend(2); - setTimeout(() => setResend(0), 3000); - }; + setResend("sent"); + setTimeout(() => setResend("enable"), 3000); + }, [email]); if (!email) { return ; @@ -230,13 +229,13 @@ const Page: React.FC = () => { /> - {resend === 0 && ( + {resend == "enable" && ( {t("resend_code")} )} - {resend === 1 && {t("status_sending")}} - {resend === 2 && {t("status_sent")}} + {resend == "sending" && {t("status_sending")}} + {resend == "sent" && {t("status_sent")}} {t("change_email")} @@ -250,22 +249,23 @@ export default Page; /** * A function called during page load to see if a redirection is required * - * @returns The slug to redirect to, if needed. + * @returns The slug to redirect to, if needed. Otherwise an object containing + * the saved partial user's email. */ -const redirectionIfNeeded = async (user: User | undefined) => { +const redirectionIfNeededOrEmail = async () => { + const user = savedPartialLocalUser(); + const email = user?.email; if (!email) { return "/"; } - const keyAttributes: KeyAttributes = getData("keyAttributes"); - - if (keyAttributes?.encryptedKey && (user.token || user.encryptedToken)) { + if (savedKeyAttributes() && (user.token || user.encryptedToken)) { return "/credentials"; } // If we're coming here during the recover flow, do not redirect. - if (stashedRedirect() == "/recover") return undefined; + if (stashedRedirect() == "/recover") return { email }; // The user might have email verification disabled, but after previously // entering their email on the login screen, they might've closed the tab @@ -278,7 +278,7 @@ const redirectionIfNeeded = async (user: User | undefined) => { // saved them). If they are present and indicate that email verification is // not required, redirect to the password verification page. - const srpAttributes: SRPAttributes = getData("srpAttributes"); + const srpAttributes = savedSRPAttributes(); if (srpAttributes && !srpAttributes.isEmailMFAEnabled) { // Fetch the latest SRP attributes instead of relying on the potentially // stale stored values. This is an infrequent scenario path, so extra @@ -289,5 +289,5 @@ const redirectionIfNeeded = async (user: User | undefined) => { } } - return undefined; + return { email }; }; diff --git a/web/packages/accounts/services/accounts-db.ts b/web/packages/accounts/services/accounts-db.ts index 06b4d81384..effb260d5d 100644 --- a/web/packages/accounts/services/accounts-db.ts +++ b/web/packages/accounts/services/accounts-db.ts @@ -1,20 +1,5 @@ -import { getKVS, removeKV, setKV } from "ente-base/kv"; -import log from "ente-base/log"; -import { nullToUndefined } from "ente-utils/transform"; -import { z } from "zod/v4"; -import { RemoteKeyAttributes, type KeyAttributes } from "./user"; - -export type LocalStorageKey = - | "user" - // See also savedKeyAttributes. - | "keyAttributes" - | "originalKeyAttributes" - // Moved to ente-accounts - // "srpSetupAttributes" - | "srpAttributes"; - /** - * [Note: Accounts DB] + * @file [Note: Accounts DB] * * The accounts package stores various state both during the login / signup * flow, and post login to identify the logged in user. @@ -28,81 +13,176 @@ export type LocalStorageKey = * * - "user" * - "keyAttributes" + * - "originalKeyAttributes" * - "srpAttributes" */ -export const getData = (key: LocalStorageKey) => { - try { - if ( - typeof localStorage == "undefined" || - typeof key == "undefined" || - typeof localStorage.getItem(key) == "undefined" || - localStorage.getItem(key) == "undefined" - ) { - return null; - } - const data = localStorage.getItem(key); - return data && JSON.parse(data); - } catch (e) { - log.error(`Failed to Parse JSON for key ${key}`, e); - } -}; -export const setData = (key: LocalStorageKey, value: object) => - localStorage.setItem(key, JSON.stringify(value)); +import { savedAuthToken } from "ente-base/token"; +import { nullToUndefined } from "ente-utils/transform"; +import { z } from "zod/v4"; +import { + RemoteSRPAttributes, + SRPSetupAttributes, + type SRPAttributes, +} from "./srp"; +import { + RemoteKeyAttributes, + type KeyAttributes, + type LocalUser, +} from "./user"; -// TODO: Migrate this to `local-user.ts`, with (a) more precise optionality -// indication of the constituent fields, (b) moving any fields that need to be -// accessed from web workers to KV DB. -// -// Creating a new function here to act as a funnel point. -export const setLSUser = async (user: object) => { - await migrateKVToken(user); - setData("user", user); +/** + * The local storage data about the user before login or signup is complete. + * + * [Note: Partial local user] + * + * During login or signup, the user object exists in various partial states in + * local storage. + * + * - Initially, there is no user object in local storage. + * + * - When the user enters their email, the email property of the stored object + * is set, but nothing else. + * + * - After they verify their password, we have two cases: if second factor + * verification is not set, and when it is set. + * + * - If second factor verification is not set, then after verifying their + * password their {@link id} and {@link encryptedToken} will get filled in, + * and {@link isTwoFactorEnabled} will be set to false. + * + * - If they have second factor verification set, then after verifying their + * password {@link isTwoFactorEnabled} and {@link twoFactorSessionID} will + * also get filled in. Once they verify their TOTP based second factor, their + * {@link id} and {@link encryptedToken} will also get filled in. + * + * - If they have a passkey set as a second factor set, then after verifying + * their password the {@link passkeySessionID} will be set. + * + * - As the login or signup sequence completes, a {@link token} obtained from + * the {@link encryptedToken} will be written out, and the + * {@link encryptedToken} cleared since it is not needed anymore. + * + * So while the underlying storage is the same, we offer two APIs for code to + * obtain the user: + * + * - Before login is complete, or when it is unknown if login is complete or + * not, then {@link savedPartialLocalUser} can be used to obtain a + * {@link PartialLocalUser} with all of its properties set to be optional (and + * some additional properties not available in the regular user object). + * + * - When we know that the login has completed, we can use either + * {@link savedLocalUser} (which returns `undefined` if our assumption is + * false) or {@link ensureSavedLocalUser} (which throws if our assumption is + * false) to obtain an object with all the properties expected to be present + * for a locally persisted user set to be required. + */ +export interface PartialLocalUser { + id?: number; + email?: string; + token?: string; + encryptedToken?: string; + isTwoFactorEnabled?: boolean; + twoFactorSessionID?: string; + passkeySessionID?: string; +} + +const PartialLocalUser = z.object({ + id: z.number().nullish().transform(nullToUndefined), + email: z.string().nullish().transform(nullToUndefined), + token: z.string().nullish().transform(nullToUndefined), + encryptedToken: z.string().nullish().transform(nullToUndefined), + isTwoFactorEnabled: z.boolean().nullish().transform(nullToUndefined), + twoFactorSessionID: z.string().nullish().transform(nullToUndefined), + passkeySessionID: z.string().nullish().transform(nullToUndefined), +}); + +/** + * Zod schema for the {@link LocalUser} TypeScript type. + * + * The type itself is in `user.ts`. + */ +const LocalUser = z.object({ + id: z.number(), + email: z.string(), + token: z.string(), + isTwoFactorEnabled: z.boolean().nullish().transform(nullToUndefined), +}); + +/** + * Return the local storage value of the user's data. + * + * This function is meant to be called during the login or signup sequence. + * After the user is logged in, use {@link savedLocalUser} or + * {@link ensureLocalUser} instead. + * + * Use {@link replaceSavedLocalUser} to updated the saved value. + */ +export const savedPartialLocalUser = (): PartialLocalUser | undefined => { + const jsonString = localStorage.getItem("user"); + if (!jsonString) return undefined; + const result = PartialLocalUser.parse(JSON.parse(jsonString)); + void ensureTokensMatch(result); + return result; }; /** - * Update the "token" KV with the token (if any) for the given {@link user}. + * Save the users data as we accrue it during the signup or login flow. * - * This is an internal implementation details of {@link setLSUser} and doesn't - * need to exposed conceptually. For now though, we need to call this externally - * at an early point in the app startup to also copy over the token into KV DB - * for existing users. + * See: [Note: Partial local user]. * - * This was added 1 July 2024, can be removed after a while and this code - * inlined into `setLSUser` (tag: Migration). + * This method replaces the existing data. Use {@link updateSavedLocalUser} to + * update selected fields while keeping the other fields as it is. */ -export const migrateKVToken = async (user: unknown) => { - // Throw an error if the data is in local storage but not in IndexedDB. This - // is a pre-cursor to inlining this code. - // TODO: Remove this sanity check eventually when this code is revisited. - const oldLSUser = getData("user"); - const wasMissing = - oldLSUser && - typeof oldLSUser == "object" && - "token" in oldLSUser && - typeof oldLSUser.token == "string" && - !(await getKVS("token")); +export const replaceSavedLocalUser = (partialLocalUser: PartialLocalUser) => + localStorage.setItem("user", JSON.stringify(partialLocalUser)); - // eslint-disable-next-line @typescript-eslint/no-unused-expressions - user && - typeof user == "object" && - "id" in user && - typeof user.id == "number" - ? await setKV("userID", user.id) - : await removeKV("userID"); +/** + * Partially update the saved user data. + * + * This is a delta variant of {@link replaceSavedLocalUser}, which replaces the + * entire saved object, while this function spreads the provided {@link updates} + * onto the currently saved value. + * + * @param updates A subset of {@link PartialLocalUser} fields that we'd like to + * update. The other fields, if present in local storage, remain unchanged. + */ +export const updateSavedLocalUser = (updates: Partial) => + replaceSavedLocalUser({ ...savedPartialLocalUser(), ...updates }); - // eslint-disable-next-line @typescript-eslint/no-unused-expressions - user && - typeof user == "object" && - "token" in user && - typeof user.token == "string" - ? await setKV("token", user.token) - : await removeKV("token"); +/** + * Return data about the logged-in user, if someone is indeed logged in. + * Otherwise return `undefined`. + * + * The user's data is stored in the browser's localStorage. Thus, this function + * only works from the main thread, not from web workers since local storage is + * not accessible to web workers. + * + * There is no setter corresponding to this function since this is only a view + * on data saved using {@link replaceSavedLocalUser} or + * {@link updateSavedLocalUser}. + * + * See: [Note: Partial local user] for more about the whole shebang. + */ +export const savedLocalUser = (): LocalUser | undefined => { + const jsonString = localStorage.getItem("user"); + if (!jsonString) return undefined; + // We might have some data, but not all of it. So do a non-throwing parse. + const { success, data } = LocalUser.safeParse(JSON.parse(jsonString)); + if (success) void ensureTokensMatch(data); + return success ? data : undefined; +}; - if (wasMissing) - throw new Error( - "The user's token was present in local storage but not in IndexedDB", - ); +/** + * Sanity check to ensure that KV token and local storage token are the same. + * + * TODO: Added July 2025, can just be removed soon, there is already a sanity + * check `isLocalStorageAndIndexedDBMismatch` on app start (tag: Migration). + */ +export const ensureTokensMatch = async (user: PartialLocalUser | undefined) => { + if (user?.token !== (await savedAuthToken())) { + throw new Error("Token mismatch"); + } }; /** @@ -111,16 +191,8 @@ export const migrateKVToken = async (user: unknown) => { * This acts a sanity check on IndexedDB by ensuring that if the user has a * token in local storage, then it should also be present in IndexedDB. */ -export const isLocalStorageAndIndexedDBMismatch = async () => { - const oldLSUser = getData("user"); - return ( - oldLSUser && - typeof oldLSUser == "object" && - "token" in oldLSUser && - typeof oldLSUser.token == "string" && - !(await getKVS("token")) - ); -}; +export const isLocalStorageAndIndexedDBMismatch = async () => + savedPartialLocalUser()?.token && !(await savedAuthToken()); /** * Return the user's {@link KeyAttributes} if they are present in local storage. @@ -128,6 +200,8 @@ export const isLocalStorageAndIndexedDBMismatch = async () => { * The key attributes are stored in the browser's localStorage. Thus, this * function only works from the main thread, not from web workers (local storage * is not accessible to web workers). + * + * See also: [Note: Original vs interactive key attributes] */ export const savedKeyAttributes = (): KeyAttributes | undefined => { const jsonString = localStorage.getItem("keyAttributes"); @@ -143,9 +217,96 @@ export const savedKeyAttributes = (): KeyAttributes | undefined => { export const saveKeyAttributes = (keyAttributes: KeyAttributes) => localStorage.setItem("keyAttributes", JSON.stringify(keyAttributes)); -export const getToken = (): string => { - const token = getData("user")?.token; - return token; +/** + * Return the user's original {@link KeyAttributes} if they are present in local + * storage. + * + * [Note: Original vs interactive key attributes] + * + * This function is similar to {@link savedKeyAttributes} except it returns the + * user's "original" key attributes. These are the key attributes that were + * either freshly generated (if the user signed up on this client) or were + * fetched from remote (otherwise). + * + * > NOTE: Currently the code does not guarantee that savedOriginalKeyAttributes + * > will always be set when savedKeyAttributes is set. + * + * In contrast, the regular key attributes get overwritten by the local only + * interactive key attributes for the user's convenience. See the documentation + * of {@link generateAndSaveInteractiveKeyAttributes} for more details. + */ +export const savedOriginalKeyAttributes = (): KeyAttributes | undefined => { + const jsonString = localStorage.getItem("originalKeyAttributes"); + if (!jsonString) return undefined; + return RemoteKeyAttributes.parse(JSON.parse(jsonString)); +}; + +/** + * Save the user's {@link KeyAttributes} in local storage. + * + * Once saved, these values are not replaced (in contrast with the regular key + * attributes which can get overwritten with interactive ones). + * + * Use {@link savedOriginalKeyAttributes} to retrieve them. + */ +export const saveOriginalKeyAttributes = (keyAttributes: KeyAttributes) => + localStorage.setItem( + "originalKeyAttributes", + JSON.stringify(keyAttributes), + ); + +/** + * Return the user's {@link SRPAttributes} if they are present in local storage. + * + * Like key attributes, SRP attributes are also stored in the browser's local + * storage so will not be accessible to web workers. + */ +export const savedSRPAttributes = (): SRPAttributes | undefined => { + const jsonString = localStorage.getItem("srpAttributes"); + if (!jsonString) return undefined; + return RemoteSRPAttributes.parse(JSON.parse(jsonString)); +}; + +/** + * Save the user's {@link SRPAttributes} in local storage. + * + * Use {@link savedSRPAttributes} to retrieve them. + */ +export const saveSRPAttributes = (srpAttributes: SRPAttributes) => + localStorage.setItem("srpAttributes", JSON.stringify(srpAttributes)); + +/** + * Save {@link SRPSetupAttributes} in local storage for later use via + * {@link unstashAfterUseSRPSetupAttributes}. + * + * See: [Note: SRP setup attributes] + */ +export const stashSRPSetupAttributes = ( + srpSetupAttributes: SRPSetupAttributes, +) => + localStorage.setItem( + "srpSetupAttributes", + JSON.stringify(srpSetupAttributes), + ); + +/** + * Retrieve the {@link SRPSetupAttributes}, if any, that were stashed by a + * previous call to {@link stashSRPSetupAttributes}. + * + * - If they are found, then invoke the provided callback ({@link cb}) with the + * value. If the promise returned by the callback fulfills, then remove the + * stashed value from local storage. + * + * - If they are not found, then the callback is not invoked. + */ +export const unstashAfterUseSRPSetupAttributes = async ( + cb: (srpSetupAttributes: SRPSetupAttributes) => Promise, +) => { + const jsonString = localStorage.getItem("srpSetupAttributes"); + if (!jsonString) return; + const srpSetupAttributes = SRPSetupAttributes.parse(JSON.parse(jsonString)); + await cb(srpSetupAttributes); + localStorage.removeItem("srpSetupAttributes"); }; /** @@ -179,7 +340,7 @@ export const savedIsFirstLogin = () => { const jsonString = localStorage.getItem("isFirstLogin"); if (!jsonString) return false; try { - return z.boolean().parse(JSON.parse(jsonString)) ?? false; + return z.boolean().parse(JSON.parse(jsonString)); } catch { return ( LocalLegacyBooleanFlag.parse(JSON.parse(jsonString)).status ?? false @@ -224,7 +385,7 @@ export const savedJustSignedUp = () => { const jsonString = localStorage.getItem("justSignedUp"); if (!jsonString) return false; try { - return z.boolean().parse(JSON.parse(jsonString)) ?? false; + return z.boolean().parse(JSON.parse(jsonString)); } catch { return ( LocalLegacyBooleanFlag.parse(JSON.parse(jsonString)).status ?? false diff --git a/web/packages/accounts/services/passkey.ts b/web/packages/accounts/services/passkey.ts index 9b7bbd0515..0dce3b22bf 100644 --- a/web/packages/accounts/services/passkey.ts +++ b/web/packages/accounts/services/passkey.ts @@ -1,9 +1,11 @@ import { - getData, - setData, - setLSUser, + saveKeyAttributes, + updateSavedLocalUser, } from "ente-accounts/services/accounts-db"; -import { TwoFactorAuthorizationResponse } from "ente-accounts/services/user"; +import { + resetSavedLocalUserTokens, + TwoFactorAuthorizationResponse, +} from "ente-accounts/services/user"; import { clientPackageName, isDesktop } from "ente-base/app"; import { encryptBox, generateKey } from "ente-base/crypto"; import { @@ -243,12 +245,36 @@ export const checkPasskeyVerificationStatus = async ( export const saveCredentialsAndNavigateTo = async ( response: TwoFactorAuthorizationResponse, ) => { - // This method somewhat duplicates `saveCredentialsAndNavigateTo` in the - // /passkeys/finish page. + // [Note: Ending the passkey flow] + // + // The implementation of this function is similar to that of the + // `saveQueryCredentialsAndNavigateTo` on the "/passkeys/finish" page. + // + // This one, `saveCredentialsAndNavigateTo`, is used when the user presses + // the check verification status button on the page that triggered the + // passkey flow (when they're using the desktop app). + // + // The other one, `saveQueryCredentialsAndNavigateTo`, is used when the user + // goes through the passkey flow in the browser itself (when they are using + // the web app). + + clearInflightPasskeySessionID(); + const { id, encryptedToken, keyAttributes } = response; - await setLSUser({ ...getData("user"), encryptedToken, id }); - setData("keyAttributes", keyAttributes); + await resetSavedLocalUserTokens(id, encryptedToken); + updateSavedLocalUser({ passkeySessionID: undefined }); + saveKeyAttributes(keyAttributes); return unstashRedirect() ?? "/credentials"; }; + +/** + * Remove the inflight passkey session ID, if any, present in session storage. + * + * This should be called whenever we get back control from the passkey app to + * clean up after ourselves. + */ +export const clearInflightPasskeySessionID = () => { + sessionStorage.removeItem("inflightPasskeySessionID"); +}; diff --git a/web/packages/accounts/services/recovery-key.ts b/web/packages/accounts/services/recovery-key.ts index 3d2a8be28b..3f2648ee6a 100644 --- a/web/packages/accounts/services/recovery-key.ts +++ b/web/packages/accounts/services/recovery-key.ts @@ -1,15 +1,15 @@ import * as bip39 from "bip39"; -import { getData } from "ente-accounts/services/accounts-db"; -import type { KeyAttributes } from "ente-accounts/services/user"; +import { savedKeyAttributes } from "ente-accounts/services/accounts-db"; import { decryptBox, + encryptBox, fromHex, - sharedCryptoWorker, + generateKey, toHex, } from "ente-base/crypto"; import { ensureMasterKeyFromSession } from "ente-base/session"; import { saveKeyAttributes } from "./accounts-db"; -import { putUserRecoveryKeyAttributes } from "./user"; +import { putUserRecoveryKeyAttributes, type KeyAttributes } from "./user"; // Mobile client library only supports English. bip39.setDefaultWordlist("english"); @@ -67,7 +67,7 @@ export const recoveryKeyToMnemonic = async (recoveryKey: string) => export const getUserRecoveryKey = async () => { const masterKey = await ensureMasterKeyFromSession(); - const keyAttributes: KeyAttributes = getData("keyAttributes"); + const keyAttributes = savedKeyAttributes()!; const { recoveryKeyEncryptedWithMasterKey, recoveryKeyDecryptionNonce } = keyAttributes; @@ -80,7 +80,7 @@ export const getUserRecoveryKey = async () => { masterKey, ); } else { - return createNewRecoveryKey(masterKey); + return createNewRecoveryKey(masterKey, keyAttributes); } }; @@ -93,19 +93,13 @@ export const getUserRecoveryKey = async () => { * * @returns a new base64 encoded recovery key. */ -const createNewRecoveryKey = async (masterKey: string) => { - const existingAttributes = getData("keyAttributes"); - - const cryptoWorker = await sharedCryptoWorker(); - const recoveryKey = await cryptoWorker.generateKey(); - const encryptedMasterKey = await cryptoWorker.encryptBox( - masterKey, - recoveryKey, - ); - const encryptedRecoveryKey = await cryptoWorker.encryptBox( - recoveryKey, - masterKey, - ); +const createNewRecoveryKey = async ( + masterKey: string, + existingKeyAttributes: KeyAttributes, +) => { + const recoveryKey = await generateKey(); + const encryptedMasterKey = await encryptBox(masterKey, recoveryKey); + const encryptedRecoveryKey = await encryptBox(recoveryKey, masterKey); const recoveryKeyAttributes = { masterKeyEncryptedWithRecoveryKey: encryptedMasterKey.encryptedData, @@ -116,7 +110,7 @@ const createNewRecoveryKey = async (masterKey: string) => { await putUserRecoveryKeyAttributes(recoveryKeyAttributes); - saveKeyAttributes({ ...existingAttributes, ...recoveryKeyAttributes }); + saveKeyAttributes({ ...existingKeyAttributes, ...recoveryKeyAttributes }); return recoveryKey; }; diff --git a/web/packages/accounts/services/session.ts b/web/packages/accounts/services/session.ts index e9d30177b1..7d5eeeb22c 100644 --- a/web/packages/accounts/services/session.ts +++ b/web/packages/accounts/services/session.ts @@ -1,9 +1,12 @@ -import { getData } from "ente-accounts/services/accounts-db"; +import { + savedOriginalKeyAttributes, + savedSRPAttributes, +} from "ente-accounts/services/accounts-db"; import type { KeyAttributes } from "ente-accounts/services/user"; import { authenticatedRequestHeaders, HTTPError } from "ente-base/http"; import log from "ente-base/log"; import { apiURL } from "ente-base/origins"; -import { getAuthToken } from "ente-base/token"; +import { savedAuthToken } from "ente-base/token"; import { nullToUndefined } from "ente-utils/transform"; import { z } from "zod/v4"; import { getSRPAttributes, type SRPAttributes } from "./srp"; @@ -24,6 +27,9 @@ type SessionValidity = const SessionValidityResponse = z.object({ hasSetKeys: z.boolean(), + /** + * Will not be present if {@link hasSetKeys} is `false`. + */ keyAttributes: RemoteKeyAttributes.nullish().transform(nullToUndefined), }); @@ -82,15 +88,15 @@ export const checkSessionValidity = async (): Promise => { else throw new HTTPError(res); } - // See if the response contains keyAttributes (they might not for older - // deployments). + // See if the response contains keyAttributes (it will not if `hasSetKeys` + // in the response is `false`). const { keyAttributes } = SessionValidityResponse.parse(await res.json()); if (keyAttributes) { const remoteKeyAttributes = keyAttributes; // We should have these values locally if we reach here. const email = ensureLocalUser().email; - const localSRPAttributes = getData("srpAttributes")!; + const localSRPAttributes = savedSRPAttributes()!; // Fetch the remote SRP attributes. // @@ -111,17 +117,14 @@ export const checkSessionValidity = async (): Promise => { // changed. return { status: "validButPasswordChanged", - // TODO: - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - updatedKeyAttributes: remoteKeyAttributes as KeyAttributes, + updatedKeyAttributes: remoteKeyAttributes, updatedSRPAttributes: remoteSRPAttributes, }; } } } - // The token is still valid (to the best of our ascertainable knowledge). + // The token is still valid. return { status: "valid" }; }; @@ -143,7 +146,7 @@ export const checkSessionValidity = async (): Promise => { * e.g. transient network issues. */ export const isSessionInvalid = async (): Promise => { - const token = await getAuthToken(); + const token = await savedAuthToken(); if (!token) { return true; /* No saved token, session is invalid */ } @@ -159,7 +162,7 @@ export const isSessionInvalid = async (): Promise => { const { hasSetKeys } = SessionValidityResponse.parse(await res.json()); if (!hasSetKeys) { - const originalKeyAttributes = getData("originalKeyAttributes"); + const originalKeyAttributes = savedOriginalKeyAttributes(); if (originalKeyAttributes) await putUserKeyAttributes(originalKeyAttributes); } diff --git a/web/packages/accounts/services/srp.ts b/web/packages/accounts/services/srp.ts index 8618957f89..07930e5780 100644 --- a/web/packages/accounts/services/srp.ts +++ b/web/packages/accounts/services/srp.ts @@ -9,9 +9,11 @@ import { publicRequestHeaders, } from "ente-base/http"; import { apiURL } from "ente-base/origins"; +import { ensure } from "ente-utils/ensure"; import { SRP, SrpClient } from "fast-srp-hap"; import { v4 as uuidv4 } from "uuid"; import { z } from "zod/v4"; +import { saveSRPAttributes } from "./accounts-db"; import { RemoteSRPVerificationResponse, type EmailOrSRPVerificationResponse, @@ -190,7 +192,7 @@ export interface SRPAttributes { * it to local storage, so the same schema describes both the remote type and * the local storage type. */ -const RemoteSRPAttributes = z.object({ +export const RemoteSRPAttributes = z.object({ srpUserID: z.string(), srpSalt: z.string(), memLimit: z.number(), @@ -221,26 +223,6 @@ export const getSRPAttributes = async ( .attributes; }; -/** - * Return the user's {@link SRPAttributes} if they are present in local storage. - * - * Like key attributes, SRP attributes are also stored in the browser's local - * storage so will not be accessible to web workers. - */ -export const savedSRPAttributes = (): SRPAttributes | undefined => { - const jsonString = localStorage.getItem("srpAttributes"); - if (!jsonString) return undefined; - return RemoteSRPAttributes.parse(JSON.parse(jsonString)); -}; - -/** - * Save the user's {@link SRPAttributes} in local storage. - * - * Use {@link savedSRPAttributes} to retrieve them. - */ -export const saveSRPAttributes = (srpAttributes: SRPAttributes) => - localStorage.setItem("srpAttributes", JSON.stringify(srpAttributes)); - /** * A local-only structure holding information required for SRP setup. * @@ -265,7 +247,7 @@ export const saveSRPAttributes = (srpAttributes: SRPAttributes) => * temporarily stash them in local storage using an object that conforms to the * following {@link SRPSetupAttributes} schema. */ -const SRPSetupAttributes = z.object({ +export const SRPSetupAttributes = z.object({ srpUserID: z.string(), srpSalt: z.string(), srpVerifier: z.string(), @@ -321,40 +303,6 @@ const b64ToBuffer = (base64: string) => Buffer.from(base64, "base64"); const bufferToB64 = (buffer: Buffer) => buffer.toString("base64"); -/** - * Save {@link SRPSetupAttributes} in local storage for later use via - * {@link unstashAndUseSRPSetupAttributes}. - * - * See: [Note: SRP setup attributes] - */ -export const stashSRPSetupAttributes = ( - srpSetupAttributes: SRPSetupAttributes, -) => - localStorage.setItem( - "srpSetupAttributes", - JSON.stringify(srpSetupAttributes), - ); - -/** - * Retrieve the {@link SRPSetupAttributes}, if any, that were stashed by a - * previous call to {@link stashSRPSetupAttributes}. - * - * - If they are found, then invoke the provided callback ({@link cb}) with the - * value. If the promise returned by the callback fulfills, then remove the - * stashed value from local storage. - * - * - If they are not found, then the callback is not invoked. - */ -export const unstashAndUseSRPSetupAttributes = async ( - cb: (srpSetupAttributes: SRPSetupAttributes) => Promise, -) => { - const jsonString = localStorage.getItem("srpSetupAttributes"); - if (!jsonString) return; - const srpSetupAttributes = SRPSetupAttributes.parse(JSON.parse(jsonString)); - await cb(srpSetupAttributes); - localStorage.removeItem("srpSetupAttributes"); -}; - /** * Use the provided {@link SRPSetupAttributes} to, well, setup SRP. * @@ -494,6 +442,20 @@ const completeSRPSetup = async ( return CompleteSRPSetupResponse.parse(await res.json()); }; +/** + * Fetch the SRP attributes from remote and use them to update the SRP + * attributes we have saved locally. + * + * This function is intended to be called after {@link srpSetupOrReconfigure} to + * also update our local state to match remote. + * + * @param userEmail The email of the user whose SRP attributes we want to fetch. + * This should be the email address of the logged in user, or the user who is + * going through the login / signup sequence currently. + */ +export const getAndSaveSRPAttributes = async (userEmail: string) => + saveSRPAttributes(ensure(await getSRPAttributes(userEmail))); + /** * The subset of {@link KeyAttributes} that get updated when the user changes * their password. diff --git a/web/packages/accounts/services/user.ts b/web/packages/accounts/services/user.ts index c34a178d07..9f66a92f6f 100644 --- a/web/packages/accounts/services/user.ts +++ b/web/packages/accounts/services/user.ts @@ -1,156 +1,93 @@ import { - getData, + replaceSavedLocalUser, savedKeyAttributes, + savedLocalUser, + savedPartialLocalUser, saveKeyAttributes, - setLSUser, + saveSRPAttributes, + updateSavedLocalUser, } from "ente-accounts/services/accounts-db"; import { generateSRPSetupAttributes, + getAndSaveSRPAttributes, getSRPAttributes, - saveSRPAttributes, updateSRPAndKeyAttributes, type UpdatedKeyAttr, } from "ente-accounts/services/srp"; import { + boxSealOpenBytes, decryptBox, deriveInteractiveKey, deriveSensitiveKey, encryptBox, generateKey, generateKeyPair, + toB64URLSafe, } from "ente-base/crypto"; -import { isDevBuild } from "ente-base/env"; import { authenticatedRequestHeaders, ensureOk, publicRequestHeaders, } from "ente-base/http"; import { apiURL } from "ente-base/origins"; +import { ensureMasterKeyFromSession } from "ente-base/session"; import { - ensureMasterKeyFromSession, - saveMasterKeyInSessionAndSafeStore, -} from "ente-base/session"; -import { getAuthToken } from "ente-base/token"; + removeAuthToken, + saveAuthToken, + savedAuthToken, +} from "ente-base/token"; import { ensure } from "ente-utils/ensure"; import { nullToUndefined } from "ente-utils/transform"; import { z } from "zod/v4"; +import { clearInflightPasskeySessionID } from "./passkey"; import { getUserRecoveryKey, recoveryKeyFromMnemonic } from "./recovery-key"; -export interface User { - id: number; - email: string; - token: string; - encryptedToken: string; - isTwoFactorEnabled: boolean; - twoFactorSessionID: string; -} - /** - * The local storage data about the user after they've logged in. + * The locally persisted data we have about the user after they've logged in. + * + * This type arguably belongs to accounts-db (since that's what persists it and + * its shadow alias, {@link PartialLocalUser}), but since most code that will + * need this will need this after login has completed, and will be using the + * {@link ensureLocalUser} method below, we keep this in the same file to reduce + * the need to import the type from a separate file. */ -const LocalUser = z.object({ +export interface LocalUser { /** * The user's ID. */ - id: z.number(), + id: number; /** - * The user's email. + * The email associated with the user's Ente account. */ - email: z.string(), + email: string; /** * The user's (plaintext) auth token. * * It is used for making API calls on their behalf, by passing this token as * the value of the X-Auth-Token header in the HTTP request. * - * Deprecated, use `getAuthToken()` instead (which fetches it from IDB). + * Usually you shouldn't be needing to access this property; instead use + * {@link savedAuthToken()} which is kept in sync with this value, and lives + * in IndexedDB and thus can also be used in web workers. */ - token: z.string(), -}); + token: string; + /** + * `true` if the TOTP based second factor is enabled for the user. + */ + isTwoFactorEnabled?: boolean; +} /** - * The local storage data about the user after they've logged in. - */ -export type LocalUser = z.infer; - -/** - * The local storage data about the user before login or signup is complete. + * Return the currently logged in {@link LocalUser}, throwing it the user is not + * logged in. * - * [Note: Partial local user] - * - * During login or signup, the user object exists in various partial states in - * local storage. - * - * - Initially, there is no user object in local storage. - * - * - When the user enters their email, the email property of the stored object - * is set, but nothing else. - * - * - After they verify their password, we have two cases: if second factor - * verification is not set, and when it is set. - * - * - If second factor verification is not set, then after verifying their - * password their {@link id} and {@link encryptedToken} will get filled in, - * and {@link isTwoFactorEnabled} will be set to false. - * - * - If they have second factor verification set, then after verifying their - * password {@link isTwoFactorEnabled} and {@link twoFactorSessionID} will - * also get filled in. Once they verify their TOTP based second factor, their - * {@link id} and {@link encryptedToken} will also get filled in. - * - * So while the underlying storage is the same, we offer two APIs for code to - * obtain the user: - * - * - Before login is complete, or when it is unknown if login is complete or - * not, then {@link partialLocalUser} can be used to obtain a - * {@link LocalUser} with all of its properties set to be optional. - * - * - When we know that the login has completed, we can use either - * {@link localUser} (which returns `undefined` if our presumption is false) - * or {@link ensureLocalUser} (which throws if our presumption is false) to - * obtain an object with all the properties expected to be present for a - * locally persisted user set to be required. - */ -export const partialLocalUser = (): Partial | undefined => { - // TODO: duplicate of getData("user") - const s = localStorage.getItem("user"); - if (!s) return undefined; - return LocalUser.partial().parse(JSON.parse(s)); -}; - -/** - * Save the users data as we accrue it during the signup or login flow. - * - * See: [Note: Partial local user]. - * - * TODO: WARNING: This does not update the KV token. The idea is to gradually - * move over uses of setLSUser to this while explicitly setting the KV token - * where needed. - */ -export const savePartialLocalUser = (partialLocalUser: Partial) => - localStorage.setItem("user", JSON.stringify(partialLocalUser)); - -/** - * Return the logged-in user, if someone is indeed logged in. Otherwise return - * `undefined`. - * - * The user's data is stored in the browser's localStorage. Thus, this function - * only works from the main thread, not from web workers (local storage is not - * accessible to web workers). - */ -export const localUser = (): LocalUser | undefined => { - // TODO: duplicate of getData("user") - const s = localStorage.getItem("user"); - if (!s) return undefined; - const { success, data } = LocalUser.safeParse(JSON.parse(s)); - return success ? data : undefined; -}; - -/** - * A wrapper over {@link localUser} with that throws if no one is logged in. + * This is a wrapper over the {@link savedLocalUser} function that throws if no + * one is logged in. A more appropriate name for this function, keeping in line + * with the conventions the other methods follow, would've been + * {@link ensureSavedLocalUser}. The shorter name is for readability. */ export const ensureLocalUser = (): LocalUser => - ensureExpectedLoggedInValue(localUser()); + ensureExpectedLoggedInValue(savedLocalUser()); /** * A function throws an error if a value that is expected to be truthy when the @@ -645,9 +582,9 @@ export const verifyEmail = async ( * Log the user out on remote, if possible and needed. */ export const remoteLogoutIfNeeded = async () => { - if (!(await getAuthToken())) { - // If the logout is attempted during the signup flow itself, then we - // won't have an auth token. + if (!(await savedAuthToken())) { + // If the logout is attempted during the login / signup flow itself, + // then we won't have an auth token. Handle that gracefully. return; } @@ -732,7 +669,7 @@ export const generateAndSaveInteractiveKeyAttributes = async ( */ export const changeEmail = async (email: string, ott: string) => { await postChangeEmail(email, ott); - await setLSUser({ ...getData("user"), email }); + updateSavedLocalUser({ email }); }; /** @@ -783,6 +720,8 @@ export const changePassword = async (password: string) => { ); // Update SRP attributes locally. + await getAndSaveSRPAttributes(user.email); + const srpAttributes = await getSRPAttributes(user.email); saveSRPAttributes(ensure(srpAttributes)); @@ -793,12 +732,72 @@ export const changePassword = async (password: string) => { { ...keyAttributes, ...updatedKeyAttr }, masterKey, ); +}; - // TODO(RE): This shouldn't be needed, remove me. As a soft remove, - // disabling it for dev builds. (tag: Migration) - if (!isDevBuild) { - await saveMasterKeyInSessionAndSafeStore(masterKey); +/** + * Update the {@link id} and {@link encryptedToken} present in the saved partial + * local user. + * + * This function removes the {@link token}, if any, present in the saved partial + * local user and sets the provided {@link encryptedToken}. + * + * It is expected that the code will subsequently redirect to "/credentials", + * which should call {@link decryptAndStoreTokenIfNeeded} which will decrypt the + * newly set {@link encryptedToken} and write out the decrypted value as the + * {@link token} in the saved local user. + * + * @param userID The ID of the user whose token this is. This is also saved to + * the partial local user (after doing a sanity check that we're not replacing + * partial data with a different userID). + * + * @param encryptedToken The newly obtained base64 encoded encrypted token from + * remote (e.g. as a result of the user verifying their email). + */ +export const resetSavedLocalUserTokens = async ( + userID: number, + encryptedToken: string, +) => { + const user = savedPartialLocalUser(); + if (user?.id && user.id != userID) { + throw new Error(`User ID mismatch (${user.id}, ${userID})`); } + replaceSavedLocalUser({ + ...user, + id: userID, + token: undefined, + encryptedToken, + }); + return removeAuthToken(); +}; + +/** + * Decrypt the user's {@link encryptedToken}, if present, and use it to update + * both the locally saved user and the KV DB. + * + * @param keyAttributes The user's key attributes. + * + * @param masterKey The user's master key (base64 encoded). + */ +export const decryptAndStoreTokenIfNeeded = async ( + keyAttributes: KeyAttributes, + masterKey: string, +) => { + const { encryptedToken } = savedPartialLocalUser() ?? {}; + if (!encryptedToken) return; + + const { encryptedSecretKey, secretKeyDecryptionNonce, publicKey } = + keyAttributes; + const privateKey = await decryptBox( + { encryptedData: encryptedSecretKey, nonce: secretKeyDecryptionNonce }, + masterKey, + ); + + const token = await toB64URLSafe( + await boxSealOpenBytes(encryptedToken, { publicKey, privateKey }), + ); + + updateSavedLocalUser({ token, encryptedToken: undefined }); + return saveAuthToken(token); }; const TwoFactorSecret = z.object({ @@ -852,7 +851,7 @@ export const setupTwoFactorFinish = async ( encryptedTwoFactorSecret: box.encryptedData, twoFactorSecretDecryptionNonce: box.nonce, }); - await setLSUser({ ...getData("user"), isTwoFactorEnabled: true }); + updateSavedLocalUser({ isTwoFactorEnabled: true }); }; interface EnableTwoFactorRequest { @@ -961,7 +960,7 @@ export type TwoFactorRecoveryResponse = z.infer< * sends a encrypted recovery secret (see {@link configurePasskeyRecovery}). * * 3. When the user wishes to reset or bypass their second factor, the client - * asks remote for these encrypted secrets (using {@link recoverTwoFactor}). + * asks remote for these encrypted secrets (using {@link getRecoverTwoFactor}). * * 4. User then enters their recovery key, which the client uses to decrypt the * recovery secret and provide it back to remote for verification (using @@ -970,7 +969,7 @@ export type TwoFactorRecoveryResponse = z.infer< * 5. If the recovery secret matches, then remote resets (TOTP based) or bypass * (passkey based) the user's second factor. */ -export const recoverTwoFactor = async ( +export const getRecoverTwoFactor = async ( twoFactorType: TwoFactorType, sessionID: string, ): Promise => { @@ -984,22 +983,23 @@ export const recoverTwoFactor = async ( /** * Finish the second factor recovery / bypass initiated by - * {@link recoverTwoFactor} using the provided recovery key mnemonic entered by - * the user. + * {@link getRecoverTwoFactor} using the provided recovery key mnemonic entered + * by the user. * * See: [Note: Second factor recovery]. * * This completes the recovery process both locally, and on remote. * * @param twoFactorType The second factor type (same value as what would've been - * passed to {@link recoverTwoFactor} for obtaining {@link recoveryResponse}). + * passed to {@link getRecoverTwoFactor} for obtaining + * {@link recoveryResponse}). * * @param sessionID The second factor session ID (same value as what would've - * been passed to {@link recoverTwoFactor} for obtaining + * been passed to {@link getRecoverTwoFactor} for obtaining * {@link recoveryResponse}). * * @param recoveryResponse The response to a previous call to - * {@link recoverTwoFactor}. + * {@link getRecoverTwoFactor}. * * @param recoveryKeyMnemonic The 24-word BIP-39 recovery key mnemonic provided * by the user to complete recovery. @@ -1021,13 +1021,13 @@ export const recoverTwoFactorFinish = async ( sessionID, twoFactorSecret, ); - await setLSUser({ - ...getData("user"), - id, - isTwoFactorEnabled: false, - encryptedToken, - token: undefined, + await resetSavedLocalUserTokens(id, encryptedToken); + updateSavedLocalUser({ + isTwoFactorEnabled: undefined, + twoFactorSessionID: undefined, + passkeySessionID: undefined, }); + if (twoFactorType == "passkey") clearInflightPasskeySessionID(); saveKeyAttributes(keyAttributes); }; diff --git a/web/packages/accounts/tsconfig.json b/web/packages/accounts/tsconfig.json index 032194f233..15dcfedc2b 100644 --- a/web/packages/accounts/tsconfig.json +++ b/web/packages/accounts/tsconfig.json @@ -1,9 +1,5 @@ { "extends": "ente-build-config/tsconfig-next.json", - "compilerOptions": { - /* MUI doesn't work with exactOptionalPropertyTypes yet. */ - "exactOptionalPropertyTypes": false - }, "include": [ ".", "../base/global-electron.d.ts", diff --git a/web/packages/accounts/utils/helpers.ts b/web/packages/accounts/utils/helpers.ts deleted file mode 100644 index 9a980587f4..0000000000 --- a/web/packages/accounts/utils/helpers.ts +++ /dev/null @@ -1,35 +0,0 @@ -// TODO: Audit this file, this can be better. e.g. do we need the Object.assign? - -import { getData, setLSUser } from "ente-accounts/services/accounts-db"; -import { type KeyAttributes } from "ente-accounts/services/user"; -import { boxSealOpenBytes, decryptBox, toB64URLSafe } from "ente-base/crypto"; - -export async function decryptAndStoreToken( - keyAttributes: KeyAttributes, - masterKey: string, -) { - const user = getData("user"); - const { encryptedToken } = user; - - if (encryptedToken && encryptedToken.length > 0) { - const { encryptedSecretKey, secretKeyDecryptionNonce, publicKey } = - keyAttributes; - const privateKey = await decryptBox( - { - encryptedData: encryptedSecretKey, - nonce: secretKeyDecryptionNonce, - }, - masterKey, - ); - - const decryptedToken = await toB64URLSafe( - await boxSealOpenBytes(encryptedToken, { publicKey, privateKey }), - ); - - await setLSUser({ - ...user, - token: decryptedToken, - encryptedToken: null, - }); - } -} diff --git a/web/packages/base/components/Head.tsx b/web/packages/base/components/Head.tsx index 3ada4645a5..9096d4a19d 100644 --- a/web/packages/base/components/Head.tsx +++ b/web/packages/base/components/Head.tsx @@ -1,5 +1,7 @@ import Head from "next/head"; import React from "react"; +import { haveWindow } from "../env"; +import { albumsAppOrigin, isCustomAlbumsAppOrigin } from "../origins"; interface CustomHeadProps { title: string; @@ -23,3 +25,67 @@ export const CustomHead: React.FC = ({ title }) => ( ); + +/** + * A static SSR-ed variant of {@link CustomHead} for use with the albums app + * deployed on production Ente instances for link previews. + * + * In particular, + * + * - Any client side modifications to the document's head will be too late for + * use by the link previews, so the contents of this need to part of the + * static HTML. + * + * - "og:image" needs to be an absolute URL. + * + * To avoid getting in the way of self hosters, we do a deployment URL check + * before inlining this into the build. + */ +export const CustomHeadAlbums: React.FC = () => ( + + Ente Photos + + + + {/* Twitter wants its own thing. */} + + + + +); + +/** + * A convenience fan out to conditionally show one of {@link CustomHead} or + * {@link CustomHeadAlbums}. + * + * 1. This component defaults to {@link CustomHeadAlbums} during SSR unless a + * custom endpoint is defined. + * + * 2. Currently the photos and albums app use the same code. During SSR this + * uses the albums variant, and then does a client side update to the photos + * head when it detects that the origin it is being served on is not the + * albums origin. + * + * The current content of the head is such that it sort of works for both photos + * and public albums, so the client side update is just an enhancement. We + * should not need this component when the photos and public albums app split. + */ +export const CustomHeadPhotosOrAlbums: React.FC = ({ + title, +}) => + isCustomAlbumsAppOrigin || + (haveWindow() && + new URL(window.location.href).origin != albumsAppOrigin()) ? ( + + ) : ( + + ); diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts index 6962c90617..2c1ea3aa14 100644 --- a/web/packages/base/components/utils/theme.ts +++ b/web/packages/base/components/utils/theme.ts @@ -499,13 +499,26 @@ const components: Components = { MuiDialog: { defaultProps: { - // [Note: Overzealous Chrome? Complicated ARIA?] + // [Note: Workarounds for unactionable ARIA warnings] // - // This is required to prevent console errors about aria-hiding a - // focused button when the dialog is closed. + // This is required to prevent console warnings about aria-hiding a + // focused button when the dialog is closed. e.g. Select a file, + // delete it. On closing the confirmation dialog, the error appears. + // + // The default is supposed to already be false, but setting this + // again seems to help. But sometimes we need to set this to `true` + // to prevent the warning. And sometimes neither helps, and we need + // to add random setTimeouts. + // + // Angular, Bootstrap, MUI, shadcn: all seem to be emitting these + // warning (just search the web). I'm don't know if this is just + // someone at Chrome deciding to emit spurious warnings without + // understanding the flow, or if none of these libraries have + // managed to implement the ARIA spec properly yet (which says more + // about the spec than about the libraries). // - // - https://github.com/mui/material-ui/issues/43106#issuecomment-2314809028 // - https://issues.chromium.org/issues/392121909 + // - https://github.com/mui/material-ui/issues/43106#issuecomment-2314809028 closeAfterTransition: false, }, styleOverrides: { diff --git a/web/packages/base/crypto/index.ts b/web/packages/base/crypto/index.ts index 8ffa6dfbb5..cf837db59c 100644 --- a/web/packages/base/crypto/index.ts +++ b/web/packages/base/crypto/index.ts @@ -109,14 +109,17 @@ import type { CryptoWorker } from "./worker"; let _comlinkWorker: ComlinkWorker | undefined; /** - * Lazily created, cached, instance of a CryptoWorker web worker. + * Lazily created, cached, instance of a "shared" CryptoWorker web worker. + * + * Some code which needs to do operations in parallel (e.g. during the upload + * flow) creates its own CryptoWorker web workers. But those are exceptions; the + * rest of the code normally calls the functions in this file, and they all + * implicitly use a default "shared" web worker (unless we're already running in + * the context of a web worker). */ -export const sharedCryptoWorker = () => +const sharedWorker = () => (_comlinkWorker ??= createComlinkCryptoWorker()).remote; -/** A shorter alias of {@link sharedCryptoWorker} for use within this file. */ -const sharedWorker = sharedCryptoWorker; - /** * Create a new instance of a comlink worker that wraps a {@link CryptoWorker} * web worker. diff --git a/web/packages/base/locales/ar-SA/translation.json b/web/packages/base/locales/ar-SA/translation.json index 99b03eba83..13e6a75b41 100644 --- a/web/packages/base/locales/ar-SA/translation.json +++ b/web/packages/base/locales/ar-SA/translation.json @@ -685,5 +685,5 @@ "person_favorites": "مفضلات {{name}}", "shared_favorites": "", "added_by_name": "أضيفت بواسطة {{name}}", - "unowned_files_not_processed": "" + "unowned_files_not_processed": "لم تتم معالجة الملفات المضافة من قبل مستخدمين آخرين" } diff --git a/web/packages/base/locales/fa-IR/translation.json b/web/packages/base/locales/fa-IR/translation.json index 108bdc5291..b1956bcf24 100644 --- a/web/packages/base/locales/fa-IR/translation.json +++ b/web/packages/base/locales/fa-IR/translation.json @@ -4,9 +4,9 @@ "intro_slide_2_title": "", "intro_slide_2": "", "intro_slide_3_title": "", - "intro_slide_3": "", - "login": "", - "sign_up": "", + "intro_slide_3": "اندروید، آی‌اواس، وب، رایانه رومیزی", + "login": "ورود", + "sign_up": "ثبت نام", "new_to_ente": "", "existing_user": "", "enter_email": "", @@ -16,27 +16,27 @@ "email_already_registered": "", "email_sent": "", "check_inbox_hint": "", - "verification_code": "", - "resend_code": "", - "verify": "", - "send_otp": "", - "generic_error": "", - "generic_error_retry": "", + "verification_code": "کد تایید", + "resend_code": "ارسال مجدد کد", + "verify": "تایید", + "send_otp": "ارسال رمز یک‌بار مصرف", + "generic_error": "یک مشکلی پیش آمده", + "generic_error_retry": "مشکلی پیش آمده، لطفا دوباره تلاش کنید", "invalid_code_error": "", - "expired_code_error": "", - "status_sending": "", - "status_sent": "", - "password": "", - "link_password_description": "", - "unlock": "", - "set_password": "", - "sign_in": "", - "incorrect_password": "", - "incorrect_password_or_no_account": "", + "expired_code_error": "کد تایید شما باطل شد", + "status_sending": "در حال ارسال...", + "status_sent": "ارسال شد!", + "password": "رمز عبور", + "link_password_description": "رمز عبور خودرا جهت باز شدن آلبوم بنویسید", + "unlock": "بازکردن", + "set_password": "تنظیم رمز عبور", + "sign_in": "ورود", + "incorrect_password": "رمز عبور نادرست", + "incorrect_password_or_no_account": "رمز عبور نادرست یا ایمیل ثبت نام نشده", "pick_password_hint": "", "pick_password_caution": "", "key_generation_in_progress": "", - "confirm_password": "", + "confirm_password": "تایید رمز عبور", "referral_source_hint": "", "referral_source_info": "", "password_mismatch_error": "", @@ -46,12 +46,12 @@ "new_album": "", "create_albums": "", "album_name": "", - "close": "", - "yes": "", - "no": "", - "nothing_here": "", - "upload": "", - "import": "", + "close": "بستن", + "yes": "بله", + "no": "خیر", + "nothing_here": "هیچی درحال حاضر اینجا نیست", + "upload": "بارگذاری", + "import": "وارد کردن", "add_photos": "", "add_more_photos": "", "add_photos_count_one": "", @@ -79,11 +79,11 @@ "mouse_scroll": "", "pan": "", "pinch": "", - "drag": "", - "tap_inside_image": "", - "tap_outside_image": "", - "shortcuts": "", - "show_shortcuts": "", + "drag": "کشیدن", + "tap_inside_image": "زدن در داخل تصویر", + "tap_outside_image": "زدن در بیرون تصویر", + "shortcuts": "میانبرها", + "show_shortcuts": "نمایش میانبرها", "zoom_preset": "", "toggle_controls": "", "toggle_live": "", diff --git a/web/packages/base/locales/pt-BR/translation.json b/web/packages/base/locales/pt-BR/translation.json index f07b501dd7..ffb09b5b4a 100644 --- a/web/packages/base/locales/pt-BR/translation.json +++ b/web/packages/base/locales/pt-BR/translation.json @@ -162,7 +162,7 @@ "ok": "OK", "success": "Sucesso", "error": "Erro", - "note": "", + "note": "Nota", "offline_message": "Você está sem internet, as memórias em cache estão sendo exibidas", "install": "Instalar", "install_mobile_app": "Instale nosso aplicativo para Android ou iOS para copiar todas suas fotos com segurança", @@ -685,5 +685,5 @@ "person_favorites": "Favoritos de {{name}}", "shared_favorites": "Favoritos compartilhados", "added_by_name": "Adicionado por {{name}}", - "unowned_files_not_processed": "" + "unowned_files_not_processed": "Não processou os arquivos adicionados por outros usuários" } diff --git a/web/packages/base/locales/ru-RU/translation.json b/web/packages/base/locales/ru-RU/translation.json index 9479460f08..39401daefc 100644 --- a/web/packages/base/locales/ru-RU/translation.json +++ b/web/packages/base/locales/ru-RU/translation.json @@ -9,8 +9,8 @@ "sign_up": "Регистрация", "new_to_ente": "Новенький в Ente", "existing_user": "Существующий пользователь", - "enter_email": "Введите ваш email адрес", - "invalid_email_error": "Введите действительный email адрес", + "enter_email": "Введите адрес электронной почты", + "invalid_email_error": "Введите действительный адрес электронной почты", "required": "Обязательное поле", "email_not_registered": "Такой email не зарегистрирован", "email_already_registered": "Такой email уже зарегистрирован", @@ -32,7 +32,7 @@ "set_password": "Установить пароль", "sign_in": "Зарегистрироваться", "incorrect_password": "Неверный пароль", - "incorrect_password_or_no_account": "", + "incorrect_password_or_no_account": "Неверный пароль или электронная почта не зарегистрирована", "pick_password_hint": "Пожалуйста, введите пароль, который мы можем использовать для шифрования ваших данных", "pick_password_caution": "Мы не храним ваш пароль, поэтому, если вы его забудете, мы ничем не сможем вам помочьдля восстановления ваших данных без пароля.", "key_generation_in_progress": "Генерируем ключи шифрования...", @@ -40,7 +40,7 @@ "referral_source_hint": "Как вы узнали о Ente? (необязательно)", "referral_source_info": "Будет полезно, если вы укажете, где вы узнали о нас, так как мы не отслеживаем установки приложения!", "password_mismatch_error": "Пароли не совпадают", - "show_or_hide_password": "", + "show_or_hide_password": "Показать или скрыть пароль", "welcome_to_ente_title": "Добро пожаловать в ", "welcome_to_ente_subtitle": "Сквозное зашифрованное хранение фотографий и общий доступ к ним", "new_album": "Новый альбом", @@ -59,11 +59,11 @@ "select_photos": "Выбрать фотографии", "file_upload": "Загрузка файла", "preparing": "Подготовка", - "processed_counts": "", - "upload_reading_metadata_files": "", + "processed_counts": "{{count, number}} / {{total, number}}", + "upload_reading_metadata_files": "Чтение файлов метаданных", "upload_cancelling": "Отмена оставшихся загрузок", - "upload_done": "", - "upload_skipped": "", + "upload_done": "{{count, number}} загружено", + "upload_skipped": "{{count, number}} пропущено", "initial_load_delay_warning": "Первая загрузка может занять некоторое время", "no_account": "У меня нет учетной записи", "existing_account": "Уже есть аккаунт", @@ -74,28 +74,28 @@ "download_favorites": "Скачать избранные", "download_uncategorized": "Скачать без категорий", "download_hidden_items": "Скачать скрытые элементы", - "audio": "", - "more": "", - "mouse_scroll": "", - "pan": "", - "pinch": "", - "drag": "", - "tap_inside_image": "", - "tap_outside_image": "", - "shortcuts": "", - "show_shortcuts": "", - "zoom_preset": "", - "toggle_controls": "", - "toggle_live": "", - "toggle_audio": "", - "toggle_favorite": "", - "toggle_archive": "", - "view_info": "", + "audio": "Аудио", + "more": "Ещё", + "mouse_scroll": "Прокрутка мышью", + "pan": "Pan", + "pinch": "Pinch", + "drag": "Drag", + "tap_inside_image": "Нажмите внутри изображения", + "tap_outside_image": "Нажмите снаружи изображения", + "shortcuts": "Ярлыки", + "show_shortcuts": "Показать ярлыки", + "zoom_preset": "Предустановленный масштаб", + "toggle_controls": "Переключить управление", + "toggle_live": "Переключить прямую трансляцию", + "toggle_audio": "Переключить аудио", + "toggle_favorite": "Переключить избранное", + "toggle_archive": "Переключить архив", + "view_info": "Посмотреть информацию", "copy_as_png": "Скопировать как PNG", "toggle_fullscreen": "Полноэкранный режим", - "exit_fullscreen": "", - "go_fullscreen": "", - "zoom": "", + "exit_fullscreen": "Выйти из полноэкранного режима", + "go_fullscreen": "Перейти в полноэкранный режим", + "zoom": "Увеличить", "play": "Воспроизведение", "pause": "Пауза", "previous": "Предыдущий", @@ -132,7 +132,7 @@ "password_changed_elsewhere": "Пароль изменен в другом месте", "password_changed_elsewhere_message": "Пожалуйста, войдите снова на этом устройстве, чтобы использовать новый пароль для аутентификации.", "go_back": "Вернуться назад", - "account": "", + "account": "Аккаунт", "recovery_key": "Ключ восстановления", "do_this_later": "Сделать позже", "save_key": "Сохранить ключ", @@ -148,9 +148,9 @@ "no_recovery_key_message": "Из-за природы нашего сквозного протокола шифрования ваши данные не могут быть расшифрованы без вашего пароля или ключа восстановления", "no_two_factor_recovery_key_message": "Пожалуйста, отправьте электронное письмо на адрес {{emailID}} с вашего зарегистрированного адреса электронной почты", "contact_support": "Связаться с поддержкой", - "help": "", - "ente_help": "", - "blog": "", + "help": "Помощь", + "ente_help": "Ente Помощь", + "blog": "Блог", "request_feature": "Запросить функцию", "support": "Поддержка", "cancel": "Отменить", @@ -158,11 +158,11 @@ "logout_message": "Вы уверены, что хотите выйти?", "delete_account": "Удалить аккаунт", "delete_account_manually_message": "

Пожалуйста, отправьте письмо по адресу {{emailID}} с вашего зарегистрированного адреса электронной почты.

Ваш запрос будет обработан в течение 72 часов

", - "change_email": "Изменить email адрес", + "change_email": "Изменить адрес электронной почты", "ok": "ОК", "success": "Успешно", "error": "Ошибка", - "note": "", + "note": "Заметка", "offline_message": "Вы не в сети, кэшированные воспоминания отображаются", "install": "Устанавливать", "install_mobile_app": "Установите наше приложение Android или iOS для автоматического резервного копирования всех ваших фотографий", @@ -226,11 +226,11 @@ "delete_photos": "Удалить фото", "keep_photos": "Оставить фото", "share_album": "Поделиться альбомом", - "sharing_with_self": "", - "sharing_already_shared": "", + "sharing_with_self": "Вы не можете поделиться с самим собой", + "sharing_already_shared": "Вы уже поделились этим с {{email}}", "sharing_album_not_allowed": "Делиться альбомом запрещено", "sharing_disabled_for_free_accounts": "Совместное использование отключено для бесплатных аккаунтов", - "sharing_user_does_not_exist": "", + "sharing_user_does_not_exist": "Пользователь с такой электронной почтой не найден", "search": "Поиск", "search_results": "Результаты поиска", "no_results": "Ничего не найдено", @@ -246,9 +246,9 @@ "terms_and_conditions": "Я согласен с тем, что условия и политика конфиденциальности", "people": "Люди", "indexing_scheduled": "Индексация запланирована...", - "indexing_photos": "", - "indexing_fetching": "", - "indexing_people": "", + "indexing_photos": "Обновление индексов...", + "indexing_fetching": "Синхронизация индексов...", + "indexing_people": "Синхронизация людей...", "syncing_wait": "Синхронизация...", "people_empty_too_few": "Люди будут показаны здесь, когда будет достаточно фотографий человека", "unnamed_person": "Безымянный человек", @@ -371,7 +371,7 @@ "leave_shared_album": "Да, уходи", "confirm_remove_message": "Выбранные элементы будут удалены из этого альбома. Элементы, которые есть только в этом альбоме, будут перемещены в раздел Без категории.", "confirm_remove_incl_others_message": "Некоторые из удаляемых вами элементов были добавлены другими пользователями, и вы потеряете к ним доступ.", - "oldest": "Старейший", + "oldest": "Самые старые", "last_updated": "Последнее обновление", "name": "Имя", "fix_creation_time": "Назначьте время", @@ -388,7 +388,7 @@ "sharing_details": "Обмен подробностями", "modify_sharing": "Изменить общий доступ", "add_collaborators": "Добавление соавторов", - "add_new_email": "Добавить новый email адрес", + "add_new_email": "Добавить новую электронную почту", "shared_with_people_count_zero": "Делитесь с конкретными людьми", "shared_with_people_count_one": "Совместно с 1 человеком", "shared_with_people_count": "Поделился с {{count, number}} люди", @@ -495,8 +495,8 @@ "stop_watching_folder_message": "Ваши существующие файлы не будут удалены, но Ente прекратит автоматическое обновление связанного альбома Ente при внесении изменений в эту папку.", "yes_stop": "Да, остановись", "change_folder": "Изменить папку", - "view_logs": "", - "view_logs_message": "", + "view_logs": "Просмотреть логи", + "view_logs_message": "

При этом будут показаны журналы отладки, которые вы можете отправить нам по электронной почте, чтобы помочь в устранении вашей проблемы.

Обратите внимание, что будут указаны имена файлов, которые помогут отслеживать проблемы с конкретными файлами.

", "weak_device_hint": "Используемый вами веб-браузер недостаточно мощный, чтобы зашифровать ваши фотографии. Пожалуйста, попробуйте войти в Ente на своем компьютере или загрузить мобильное/настольное приложение Ente.", "drag_and_drop_hint": "Или перетащите в основное окно", "authenticate": "Проверка подлинности", @@ -595,8 +595,8 @@ "image": "Изображение", "video": "Видео", "live_photo": "Живое фото", - "live": "", - "edit_image": "", + "live": "Прямая трансляция", + "edit_image": "Редактировать изображение", "photo_editor": "Редактор фото", "confirm_editor_close": "Вы уверены, что хотите закрыть редактор?", "confirm_editor_close_message": "Загрузите отредактированное изображение или сохраните копию в ente, чтобы сохранить внесенные изменения.", @@ -625,9 +625,9 @@ "reset": "Сбросить", "faster_upload": "Более быстрая загрузка данных", "faster_upload_description": "Загрузка маршрута через близлежащие серверы", - "open_ente_on_startup": "", + "open_ente_on_startup": "Открывать Enter при запуске", "cast_album_to_tv": "Воспроизвести альбом на ТВ", - "cast_to_tv": "", + "cast_to_tv": "Воспроизвести на ТВ", "enter_cast_pin_code": "Введите код, который вы видите на экране телевизора ниже, чтобы выполнить сопряжение с этим устройством.", "code": "Код", "pair_device_to_tv": "Сопряжение устройств", @@ -639,7 +639,7 @@ "pair_with_pin": "Соединение с помощью булавки", "pair_with_pin_description": "Пара с PIN-кодом работает с любым экраном, на котором вы хотите посмотреть ваш альбом.", "visit_cast_url": "Перейдите на страницу {{url}} на устройстве, которое вы хотите подключить.", - "passkeys": "Passkeys", + "passkeys": "Ключ доступа", "passkey_fetch_failed": "Не удалось получить ваши ключи.", "manage_passkey": "Управление ключами", "delete_passkey": "Удалить пароль", @@ -675,15 +675,15 @@ "server_endpoint": "Конечная точка сервера", "more_information": "Дополнительная информация", "save": "Сохранить", - "theme": "", - "system": "", - "light": "", - "dark": "", - "streamable_videos": "", - "processing_videos_status": "", - "share_favorites": "", - "person_favorites": "", - "shared_favorites": "", - "added_by_name": "", - "unowned_files_not_processed": "" + "theme": "Тема", + "system": "Системная", + "light": "Светлая", + "dark": "Тёмная", + "streamable_videos": "Потоковое видео", + "processing_videos_status": "Обработка видео...", + "share_favorites": "Поделиться избранными", + "person_favorites": "{{name}} избранных", + "shared_favorites": "Общие избранные", + "added_by_name": "Добавлено {{name}}", + "unowned_files_not_processed": "Файлы, добавленные другими пользователями, не были обработаны" } diff --git a/web/packages/base/locales/vi-VN/translation.json b/web/packages/base/locales/vi-VN/translation.json index 6b3904aca7..6212bc57a2 100644 --- a/web/packages/base/locales/vi-VN/translation.json +++ b/web/packages/base/locales/vi-VN/translation.json @@ -1,19 +1,19 @@ { "intro_slide_1_title": "Sao lưu riêng tư
cho những kỷ niệm của bạn", - "intro_slide_1": "Mã hóa đầu cuối mặc định", - "intro_slide_2_title": "Lưu trữ an toàn
tại nơi trú ẩn", - "intro_slide_2": "Được thiết kế để tồn tại lâu dài", + "intro_slide_1": "Mã hóa đầu cuối theo mặc định", + "intro_slide_2_title": "Lưu trữ an toàn
ở hầm trú ẩn hạt nhân", + "intro_slide_2": "Được thiết kế để trường tồn", "intro_slide_3_title": "Có sẵn
mọi nơi", "intro_slide_3": "Android, iOS, Web, Desktop", "login": "Đăng nhập", "sign_up": "Đăng ký", - "new_to_ente": "Mới đến Ente", - "existing_user": "Người dùng hiện tại", + "new_to_ente": "Mới dùng Ente", + "existing_user": "Đã có tài khoản", "enter_email": "Nhập địa chỉ email", "invalid_email_error": "Nhập một email hợp lệ", "required": "Bắt buộc", "email_not_registered": "Email chưa được đăng kí", - "email_already_registered": "Email đã được đăng kí", + "email_already_registered": "Email đã được đăng ký", "email_sent": "Mã xác minh đã được gửi đến {{email}}", "check_inbox_hint": "Vui lòng kiểm tra hộp thư đến (và thư rác) để hoàn tất xác minh", "verification_code": "Mã xác minh", @@ -32,15 +32,15 @@ "set_password": "Đặt mật khẩu", "sign_in": "Đăng nhập", "incorrect_password": "Mật khẩu không chính xác", - "incorrect_password_or_no_account": "", - "pick_password_hint": "Vui lòng nhập mật khẩu mà chúng tôi có thể sử dụng để mã hóa dữ liệu của bạn", - "pick_password_caution": "Chúng tôi không lưu trữ mật khẩu của bạn, vì vậy nếu bạn quên, chúng tôi sẽ không thể giúp bạn khôi phục dữ liệu mà không có khóa khôi phục.", - "key_generation_in_progress": "Đang tạo khóa mã hóa...", + "incorrect_password_or_no_account": "Sai mật khẩu hoặc email chưa được đăng ký", + "pick_password_hint": "Vui lòng nhập một mật khẩu dùng để mã hóa dữ liệu của bạn", + "pick_password_caution": "Chúng tôi không lưu trữ mật khẩu của bạn, nên nếu bạn quên, chúng tôi sẽ không thể giúp bạn khôi phục dữ liệu nếu không có mã khôi phục.", + "key_generation_in_progress": "Đang mã hóa...", "confirm_password": "Xác nhận mật khẩu", - "referral_source_hint": "Bạn đã nghe về Ente từ đâu? (tùy chọn)", - "referral_source_info": "Chúng tôi không theo dõi cài đặt ứng dụng, sẽ rất hữu ích nếu bạn cho chúng tôi biết bạn đã tìm thấy chúng tôi ở đâu!", + "referral_source_hint": "Bạn biết Ente từ đâu? (tùy chọn)", + "referral_source_info": "Chúng tôi không theo dõi cài đặt ứng dụng, nên nếu bạn bật mí bạn tìm thấy chúng tôi từ đâu sẽ rất hữu ích!", "password_mismatch_error": "Mật khẩu không khớp", - "show_or_hide_password": "", + "show_or_hide_password": "Ẩn hoặc hiện mật khẩu", "welcome_to_ente_title": "Chào mừng đến với ", "welcome_to_ente_subtitle": "Lưu trữ và chia sẻ ảnh được mã hóa đầu cuối", "new_album": "Album mới", @@ -53,222 +53,222 @@ "upload": "Tải lên", "import": "Nhập", "add_photos": "Thêm ảnh", - "add_more_photos": "Thêm nhiều ảnh hơn", + "add_more_photos": "Thêm ảnh", "add_photos_count_one": "Thêm 1 mục", "add_photos_count": "Thêm {{count, number}} mục", "select_photos": "Chọn ảnh", "file_upload": "Tải tệp lên", - "preparing": "", - "processed_counts": "", - "upload_reading_metadata_files": "", - "upload_cancelling": "Hủy bỏ các tải lên còn lại", - "upload_done": "", - "upload_skipped": "", - "initial_load_delay_warning": "Tải lần đầu có thể mất một chút thời gian", - "no_account": "Không có tài khoản", + "preparing": "Đang chuẩn bị", + "processed_counts": "{{count, number}} / {{total, number}}", + "upload_reading_metadata_files": "Đang đọc siêu dữ liệu", + "upload_cancelling": "Hủy bỏ các lượt tải lên còn lại", + "upload_done": "Đã tải lên {{count, number}}", + "upload_skipped": "{{count, number}} bị bỏ qua", + "initial_load_delay_warning": "Lần đầu tải có thể mất một ít thời gian", + "no_account": "Chưa có tài khoản", "existing_account": "Đã có tài khoản", "create": "Tạo", - "files_count": "", + "files_count": "{{count, number}} tệp", "download": "Tải xuống", "download_album": "Tải xuống album", "download_favorites": "Tải xuống mục yêu thích", - "download_uncategorized": "Tải xuống chưa phân loại", - "download_hidden_items": "Tải xuống các mục ẩn", - "audio": "", - "more": "", - "mouse_scroll": "", - "pan": "", - "pinch": "", - "drag": "", - "tap_inside_image": "", - "tap_outside_image": "", - "shortcuts": "", - "show_shortcuts": "", - "zoom_preset": "", - "toggle_controls": "", - "toggle_live": "", - "toggle_audio": "", - "toggle_favorite": "", - "toggle_archive": "", - "view_info": "", - "copy_as_png": "Sao chép dưới dạng PNG", - "toggle_fullscreen": "Chuyển đổi chế độ toàn màn hình", - "exit_fullscreen": "", - "go_fullscreen": "", - "zoom": "", - "play": "", - "pause": "", + "download_uncategorized": "Tải xuống mục chưa phân loại", + "download_hidden_items": "Tải xuống mục ẩn", + "audio": "Âm thanh", + "more": "Thêm", + "mouse_scroll": "Cuộn chuột", + "pan": "Lia qua", + "pinch": "Chụm 2 ngón", + "drag": "Kéo", + "tap_inside_image": "Nhấn lên ảnh", + "tap_outside_image": "Nhấn ngoài ảnh", + "shortcuts": "Phím tắt", + "show_shortcuts": "Hiện phím tắt", + "zoom_preset": "Phóng to chi tiết", + "toggle_controls": "Bật/tắt điều khiển", + "toggle_live": "Bật/tắt Live", + "toggle_audio": "Bật/tắt âm thanh", + "toggle_favorite": "Thích/bỏ thích", + "toggle_archive": "Lưu trữ/bỏ lưu trữ", + "view_info": "Xem thông tin", + "copy_as_png": "Sao chép dạng PNG", + "toggle_fullscreen": "Chế độ toàn màn hình", + "exit_fullscreen": "Thoát toàn màn hình", + "go_fullscreen": "Toàn màn hình", + "zoom": "Thu phóng", + "play": "Phát", + "pause": "Dừng", "previous": "Trước", - "next": "Tiếp theo", - "video_seek": "", - "quality": "", - "auto": "", - "original": "", - "speed": "", - "title_photos": "Ảnh Ente", - "title_auth": "Xác thực Ente", + "next": "Kế tiếp", + "video_seek": "Tua video", + "quality": "Chất lượng", + "auto": "Tự động", + "original": "Gốc", + "speed": "Tốc độ", + "title_photos": "Ente Photos", + "title_auth": "Ente Auth", "title_accounts": "Tài khoản Ente", "upload_first_photo": "Tải lên ảnh đầu tiên của bạn", - "import_your_folders": "Nhập các thư mục của bạn", - "upload_dropzone_hint": "Thả để sao lưu các tệp của bạn", - "watch_folder_dropzone_hint": "Thả để thêm thư mục theo dõi", - "trash_files_title": "Xóa tệp?", + "import_your_folders": "Nhập thư mục của bạn", + "upload_dropzone_hint": "Kéo thả để sao lưu tệp của bạn", + "watch_folder_dropzone_hint": "Kéo thả để thêm thư mục theo dõi", + "trash_files_title": "Xóa các tệp?", "trash_file_title": "Xóa tệp?", "delete_files_title": "Xóa ngay lập tức?", "delete_files_message": "Các tệp đã chọn sẽ bị xóa vĩnh viễn khỏi tài khoản Ente của bạn.", - "selected_count": "{{selected, number}} đã chọn", - "selected_and_yours_count": "{{selected, number}} đã chọn {{yours, number}} của bạn", + "selected_count": "{{selected, number}} mục đã chọn", + "selected_and_yours_count": "{{selected, number}} mục đã chọn, trong đó {{yours, number}} là của bạn", "delete": "Xóa", - "favorite": "Yêu thích", + "favorite": "Thích", "convert": "Chuyển đổi", "multi_folder_upload": "Phát hiện nhiều thư mục", - "upload_to_choice": "Bạn có muốn tải chúng vào", + "upload_to_choice": "Bạn có muốn tải chúng thành", "upload_to_single_album": "Một album duy nhất", - "upload_to_album_per_folder": "Album riêng biệt", + "upload_to_album_per_folder": "Các album riêng biệt", "session_expired": "Phiên đã hết hạn", "session_expired_message": "Phiên của bạn đã hết hạn, vui lòng đăng nhập lại để tiếp tục", - "password_generation_failed": "Trình duyệt của bạn không thể tạo một khóa mạnh đáp ứng tiêu chuẩn mã hóa của Ente, vui lòng thử sử dụng ứng dụng di động hoặc trình duyệt khác", + "password_generation_failed": "Trình duyệt của bạn không thể tạo một mã mạnh đáp ứng tiêu chuẩn mã hóa của Ente, vui lòng dùng ứng dụng di động hoặc trình duyệt khác", "change_password": "Đổi mật khẩu", "password_changed_elsewhere": "Mật khẩu đã được thay đổi ở nơi khác", - "password_changed_elsewhere_message": "Vui lòng đăng nhập lại trên thiết bị này để sử dụng mật khẩu mới của bạn để xác thực.", + "password_changed_elsewhere_message": "Vui lòng đăng nhập lại trên thiết bị này và dùng mật khẩu mới của bạn.", "go_back": "Quay lại", - "account": "", - "recovery_key": "Khóa khôi phục", - "do_this_later": "Làm điều này sau", - "save_key": "Lưu khóa", - "recovery_key_description": "Nếu bạn quên mật khẩu của mình, cách duy nhất để khôi phục dữ liệu của bạn là với khóa này.", - "key_not_stored_note": "Chúng tôi không lưu trữ khóa này, vì vậy hãy lưu nó ở một nơi an toàn", - "recovery_key_generation_failed": "Mã khôi phục không thể được tạo, vui lòng thử lại", + "account": "Tài khoản", + "recovery_key": "Mã khôi phục", + "do_this_later": "Để sau", + "save_key": "Lưu mã", + "recovery_key_description": "Nếu bạn quên mật khẩu, cách duy nhất để khôi phục dữ liệu của bạn là dùng mã này.", + "key_not_stored_note": "Chúng tôi không lưu trữ mã này, nên hãy lưu nó ở một nơi an toàn", + "recovery_key_generation_failed": "Không tạo được mã khôi phục, vui lòng thử lại", "forgot_password": "Quên mật khẩu", "recover_account": "Khôi phục tài khoản", "recover": "Khôi phục", - "no_recovery_key_title": "Không có khóa khôi phục?", - "incorrect_recovery_key": "Khóa khôi phục không chính xác", - "sorry": "Xin lỗi", - "no_recovery_key_message": "Do tính chất của giao thức mã hóa đầu cuối của chúng tôi, dữ liệu của bạn không thể được giải mã mà không có mật khẩu hoặc khóa khôi phục của bạn", + "no_recovery_key_title": "Không có mã khôi phục?", + "incorrect_recovery_key": "Mã khôi phục không chính xác", + "sorry": "Rất tiếc", + "no_recovery_key_message": "Do tính chất của giao thức mã hóa đầu cuối, không thể giải mã dữ liệu của bạn mà không có mật khẩu hoặc mã khôi phục", "no_two_factor_recovery_key_message": "Vui lòng gửi email đến {{emailID}} từ địa chỉ email đã đăng ký của bạn", "contact_support": "Liên hệ hỗ trợ", - "help": "", - "ente_help": "", - "blog": "", - "request_feature": "Yêu cầu tính năng", + "help": "Trợ giúp", + "ente_help": "Trợ giúp Ente", + "blog": "Blog", + "request_feature": "Đề xuất tính năng", "support": "Hỗ trợ", "cancel": "Hủy", "logout": "Đăng xuất", - "logout_message": "Bạn có chắc chắn muốn đăng xuất không?", + "logout_message": "Bạn có chắc muốn đăng xuất không?", "delete_account": "Xóa tài khoản", "delete_account_manually_message": "

Vui lòng gửi email đến {{emailID}} từ địa chỉ email đã đăng ký của bạn.

Yêu cầu của bạn sẽ được xử lý trong vòng 72 giờ.

", "change_email": "Đổi email", "ok": "OK", "success": "Thành công", "error": "Lỗi", - "note": "", - "offline_message": "Bạn đang ngoại tuyến, các kỷ niệm đã được lưu vào bộ nhớ cache đang được hiển thị", + "note": "Ghi chú", + "offline_message": "Bạn đang ngoại tuyến, các kỷ niệm hiển thị là từ bộ nhớ đệm", "install": "Cài đặt", "install_mobile_app": "Cài đặt ứng dụng Android hoặc iOS của chúng tôi để tự động sao lưu tất cả ảnh của bạn", - "download_app": "Tải xuống ứng dụng desktop", - "download_app_message": "Xin lỗi, thao tác này hiện chỉ được hỗ trợ trên ứng dụng desktop của chúng tôi", + "download_app": "Tải xuống ứng dụng máy tính", + "download_app_message": "Rất tiếc, thao tác này hiện chỉ hỗ trợ trên ứng dụng máy tính", "subscription": "Gói đăng ký", "manage_payment_method": "Quản lý phương thức thanh toán", "manage_family": "Quản lý gia đình", "family_plan": "Gói gia đình", "leave_family_plan": "Rời khỏi gói gia đình", "leave": "Rời", - "leave_family_plan_confirm": "Bạn có chắc chắn muốn rời khỏi gói gia đình không?", + "leave_family_plan_confirm": "Bạn có chắc muốn rời khỏi gói gia đình không?", "choose_plan": "Chọn gói của bạn", - "manage_plan": "Quản lý đăng ký của bạn", - "current_usage": "Sử dụng hiện tại là {{usage}}", - "two_months_free": "Nhận 2 tháng miễn phí với các gói hàng năm", - "free_plan_option": "Tiếp tục với gói miễn phí", - "free_plan_description": "{{storage}} miễn phí mãi mãi", + "manage_plan": "Quản lý gói đăng ký", + "current_usage": "Hiện dùng {{usage}}", + "two_months_free": "Nhận 2 tháng miễn phí với các gói theo năm", + "free_plan_option": "Dùng tiếp gói miễn phí", + "free_plan_description": "{{storage}} miễn phí vĩnh viễn", "active": "Hoạt động", - "subscription_info_free": "Bạn đang ở gói miễn phí", - "subscription_info_family": "Bạn đang ở gói gia đình do", - "subscription_info_expired": "Gói đăng ký của bạn đã hết hạn, vui lòng gia hạn", - "subscription_info_renewal_cancelled": "Gói đăng ký của bạn sẽ bị hủy vào {{date, date}}", - "subscription_info_storage_quota_exceeded": "Bạn đã vượt quá hạn mức lưu trữ của mình, vui lòng nâng cấp", + "subscription_info_free": "Bạn đang dùng gói miễn phí", + "subscription_info_family": "Bạn đang dùng gói gia đình của", + "subscription_info_expired": "Gói của bạn đã hết hạn, vui lòng gia hạn", + "subscription_info_renewal_cancelled": "Gói của bạn sẽ bị hủy vào {{date, date}}", + "subscription_info_storage_quota_exceeded": "Bạn đã vượt hạn mức lưu trữ của mình, vui lòng nâng cấp", "subscription_status_renewal_active": "Gia hạn vào {{date, date}}", "subscription_status_renewal_cancelled": "Kết thúc vào {{date, date}}", "add_on_valid_till": "Gói bổ sung {{storage}} của bạn có hiệu lực đến {{date, date}}", "subscription_expired": "Gói đăng ký đã hết hạn", - "storage_quota_exceeded": "Đã vượt quá giới hạn lưu trữ", - "subscription_purchase_success": "

Chúng tôi đã nhận được thanh toán của bạn

Gói đăng ký của bạn có hiệu lực đến {{date, date}}

", + "storage_quota_exceeded": "Đã vượt hạn mức lưu trữ", + "subscription_purchase_success": "

Chúng tôi đã nhận được thanh toán

Gói của bạn có hiệu lực đến {{date, date}}

", "subscription_purchase_cancelled": "Giao dịch của bạn đã bị hủy, vui lòng thử lại nếu bạn muốn đăng ký", - "subscription_purchase_failed": "Giao dịch đăng ký không thành công, vui lòng thử lại", - "subscription_verification_error": "Xác minh gói đăng ký không thành công", - "update_payment_method_message": "Chúng tôi xin lỗi, thanh toán không thành công khi chúng tôi cố gắng tính phí thẻ của bạn, vui lòng cập nhật phương thức thanh toán của bạn và thử lại", + "subscription_purchase_failed": "Giao dịch không thành công, vui lòng thử lại", + "subscription_verification_error": "Xác minh gói không thành công", + "update_payment_method_message": "Rất tiếc, thẻ của bạn thanh toán không thành công, vui lòng cập nhật phương thức thanh toán và thử lại", "payment_method_authentication_failed": "Chúng tôi không thể xác thực phương thức thanh toán của bạn. Vui lòng chọn phương thức thanh toán khác và thử lại", "update_payment_method": "Cập nhật phương thức thanh toán", - "monthly": "Hàng tháng", - "yearly": "Hàng năm", - "month_short": "th", + "monthly": "Theo tháng", + "yearly": "Theo năm", + "month_short": "tháng", "year": "năm", "update_subscription": "Thay đổi gói", "update_subscription_title": "Xác nhận thay đổi gói", - "update_subscription_message": "Bạn có chắc chắn muốn thay đổi gói của mình không?", - "cancel_subscription": "Hủy đăng ký", - "cancel_subscription_message": "

Tất cả dữ liệu của bạn sẽ bị xóa khỏi máy chủ của chúng tôi vào cuối kỳ thanh toán này.

Bạn có chắc chắn muốn hủy đăng ký của mình không?

", - "cancel_subscription_with_addon_message": "

Bạn có chắc chắn muốn hủy đăng ký của mình không?

", - "subscription_cancel_success": "Hủy đăng ký thành công", - "reactivate_subscription": "Kích hoạt lại đăng ký", - "reactivate_subscription_message": "Khi được kích hoạt lại, bạn sẽ bị tính phí vào {{date, date}}", - "subscription_activate_success": "Kích hoạt đăng ký thành công", + "update_subscription_message": "Bạn có chắc muốn thay đổi gói của mình không?", + "cancel_subscription": "Hủy gói", + "cancel_subscription_message": "

Toàn bộ dữ liệu của bạn sẽ bị xóa khỏi máy chủ của chúng tôi vào cuối kỳ thanh toán này.

Bạn có chắc muốn hủy gói của mình không?

", + "cancel_subscription_with_addon_message": "

Bạn có chắc muốn hủy gói của mình không?

", + "subscription_cancel_success": "Hủy gói thành công", + "reactivate_subscription": "Kích hoạt lại gói", + "reactivate_subscription_message": "Khi kích hoạt lại, bạn sẽ bị tính phí vào {{date, date}}", + "subscription_activate_success": "Kích hoạt gói thành công ", "thank_you": "Cảm ơn bạn", - "cancel_subscription_on_mobile": "Hủy đăng ký di động", - "cancel_subscription_on_mobile_message": "Vui lòng hủy đăng ký của bạn từ ứng dụng di động để kích hoạt một đăng ký ở đây", - "mail_to_manage_subscription": "Vui lòng liên hệ với chúng tôi tại {{emailID}} để quản lý đăng ký của bạn", + "cancel_subscription_on_mobile": "Hủy gói trên điện thoại", + "cancel_subscription_on_mobile_message": "Vui lòng hủy gói của bạn từ ứng dụng di động để kích hoạt một gói ở đây", + "mail_to_manage_subscription": "Vui lòng liên hệ với chúng tôi qua {{emailID}} để quản lý gói của bạn", "rename": "Đổi tên", "rename_file": "Đổi tên tệp", "rename_album": "Đổi tên album", "delete_album": "Xóa album", "delete_album_title": "Xóa album?", - "delete_album_message": "Có xóa các bức ảnh (và video) có trong album này từ tất cả các album khác mà chúng là một phần không?", + "delete_album_message": "Xóa luôn các tấm ảnh (và video) có trong album này khỏi toàn bộ album khác cũng đang chứa chúng?", "delete_photos": "Xóa ảnh", "keep_photos": "Giữ ảnh", "share_album": "Chia sẻ album", - "sharing_with_self": "", - "sharing_already_shared": "", + "sharing_with_self": "Bạn không thể chia sẻ với chính mình", + "sharing_already_shared": "Bạn đã chia sẻ với {{email}} rồi", "sharing_album_not_allowed": "Chia sẻ album không được phép", - "sharing_disabled_for_free_accounts": "Chia sẻ bị vô hiệu hóa cho các tài khoản miễn phí", - "sharing_user_does_not_exist": "", + "sharing_disabled_for_free_accounts": "Tài khoản miễn phí không thể chia sẻ", + "sharing_user_does_not_exist": "Không tìm thấy người dùng với email này", "search": "Tìm kiếm", "search_results": "Kết quả tìm kiếm", "no_results": "Không tìm thấy kết quả", - "search_hint": "Tìm kiếm album, ngày tháng, mô tả, ...", + "search_hint": "Tìm album, ngày chụp, mô tả,...", "album": "Album", "date": "Ngày", "description": "Mô tả", "file_type": "Loại tệp", "magic": "Ma thuật", - "photos_count_zero": "Không có kỷ niệm", - "photos_count_one": "1 kỷ niệm", - "photos_count": "{{count, number}} kỷ niệm", - "terms_and_conditions": "Tôi đồng ý với các điều khoảnchính sách bảo mật", + "photos_count_zero": "Chưa có ảnh nào", + "photos_count_one": "1 ảnh", + "photos_count": "{{count, number}} ảnh", + "terms_and_conditions": "Tôi đồng ý điều khoảnchính sách bảo mật", "people": "Người", - "indexing_scheduled": "Lập chỉ mục đã được lên lịch...", - "indexing_photos": "", - "indexing_fetching": "", - "indexing_people": "", + "indexing_scheduled": "Đã lên lịch lập chỉ mục...", + "indexing_photos": "Đang cập nhật chỉ mục...", + "indexing_fetching": "Đang đồng bộ chỉ mục...", + "indexing_people": "Đang đồng bộ người...", "syncing_wait": "Đang đồng bộ...", - "people_empty_too_few": "Người sẽ được hiển thị ở đây khi có đủ ảnh của một người", - "unnamed_person": "Người không tên", + "people_empty_too_few": "Sẽ hiện người ở đây khi có ảnh của một người", + "unnamed_person": "Chưa đặt tên", "add_a_name": "Thêm một tên", "new_person": "Người mới", "add_name": "Thêm tên", "rename_person": "Đổi tên người", "reset_person_confirm": "Đặt lại người?", - "reset_person_confirm_message": "Tên, nhóm khuôn mặt và gợi ý cho người này sẽ được đặt lại", + "reset_person_confirm_message": "Tên, nhóm khuôn mặt và những gợi ý cho người này sẽ bị đặt lại", "ignore": "Bỏ qua", "ignore_person_confirm": "Bỏ qua người?", "ignore_person_confirm_message": "Nhóm khuôn mặt này sẽ không được hiển thị trong danh sách người", "ignored": "Đã bỏ qua", "show_person": "Hiển thị người", - "review_suggestions": "Xem xét gợi ý", + "review_suggestions": "Xem qua gợi ý", "saved_choices": "Lựa chọn đã lưu", "discard_changes": "Bỏ qua thay đổi", "discard_changes_confirm_message": "Bạn có thay đổi chưa được lưu. Những thay đổi này sẽ bị mất nếu bạn đóng mà không lưu", - "people_suggestions_finding": "Tìm kiếm khuôn mặt tương tự...", - "people_suggestions_empty": "Không còn gợi ý nào cho bây giờ", + "people_suggestions_finding": "Tìm khuôn mặt tương tự...", + "people_suggestions_empty": "Không còn gợi ý nào", "info": "Thông tin", "file_name": "Tên tệp", "caption_placeholder": "Thêm mô tả", @@ -277,79 +277,79 @@ "map": "Bản đồ", "enable_map": "Bật bản đồ", "enable_maps_confirm": "Bật bản đồ?", - "enable_maps_confirm_message": "

Điều này sẽ hiển thị ảnh của bạn trên bản đồ thế giới.

Bản đồ được lưu trữ bởi OpenStreetMap, và vị trí chính xác của ảnh của bạn sẽ không bao giờ được chia sẻ.

Bạn có thể tắt tính năng này bất cứ lúc nào từ Cài đặt.

", + "enable_maps_confirm_message": "

Ảnh của bạn sẽ hiển thị trên bản đồ thế giới.

Bản đồ được lưu trữ bởi OpenStreetMap, và vị trí chính xác ảnh của bạn không bao giờ được chia sẻ.

Bạn có thể tắt tính năng này bất cứ lúc nào từ Cài đặt.

", "disable_map": "Tắt bản đồ", "disable_maps_confirm": "Tắt bản đồ?", - "disable_maps_confirm_message": "

Điều này sẽ tắt hiển thị ảnh của bạn trên bản đồ thế giới.

Bạn có thể bật tính năng này bất cứ lúc nào từ Cài đặt.

", + "disable_maps_confirm_message": "

Ảnh của bạn sẽ thôi hiển thị trên bản đồ thế giới.

Bạn có thể bật tính năng này bất cứ lúc nào từ Cài đặt.

", "details": "Chi tiết", - "view_exif": "Xem tất cả dữ liệu Exif", - "no_exif": "Không có dữ liệu Exif", + "view_exif": "Xem thông số Exif", + "no_exif": "No Exif data", "exif": "Exif", - "two_factor": "Xác thực hai yếu tố", - "two_factor_authentication": "Xác thực hai yếu tố", + "two_factor": "Xác thực 2 bước", + "two_factor_authentication": "Xác thực 2 bước", "two_factor_qr_help": "Quét mã QR bên dưới bằng ứng dụng xác thực yêu thích của bạn", "two_factor_manual_entry_title": "Nhập mã thủ công", "two_factor_manual_entry_message": "Vui lòng nhập mã này vào ứng dụng xác thực yêu thích của bạn", - "scan_qr_title": "Quét mã QR thay thế", - "enable_two_factor": "Bật xác thực hai yếu tố", + "scan_qr_title": "Quét mã QR", + "enable_two_factor": "Bật xác thực 2 bước", "enable": "Bật", "enabled": "Đã bật", - "lost_2fa_device": "Thiết bị xác thực hai yếu tố bị mất", + "lost_2fa_device": "Mất thiết bị xác thực 2 bước", "incorrect_code": "Mã không chính xác", - "two_factor_info": "Thêm một lớp bảo mật bổ sung bằng cách yêu cầu nhiều hơn email và mật khẩu của bạn để đăng nhập vào tài khoản của bạn", + "two_factor_info": "Thêm một lớp bảo mật bổ sung bằng cách yêu cầu nhiều hơn email và mật khẩu của bạn để đăng nhập", "disable": "Tắt", "reconfigure": "Cấu hình lại", "reconfigure_two_factor_hint": "Cập nhật thiết bị xác thực của bạn", - "update_two_factor": "Cập nhật xác thực hai yếu tố", - "update_two_factor_message": "Tiếp tục sẽ làm vô hiệu hóa bất kỳ thiết bị xác thực nào đã được cấu hình trước đó", + "update_two_factor": "Cập nhật xác thực 2 bước", + "update_two_factor_message": "Tiếp tục sẽ khiến mọi thiết bị xác thực được cấu hình trước đó bị vô hiệu hóa", "update": "Cập nhật", - "disable_two_factor": "Tắt xác thực hai yếu tố", - "disable_two_factor_message": "Bạn có chắc chắn muốn tắt xác thực hai yếu tố của mình không", + "disable_two_factor": "Tắt xác thực 2 bước", + "disable_two_factor_message": "Bạn có chắc muốn tắt xác thực 2 bước không", "export_data": "Xuất dữ liệu", "select_folder": "Chọn thư mục", "select_zips": "Chọn tệp zip", "faq": "Câu hỏi thường gặp", - "takeout_hint": "Giải nén tất cả các tệp zip vào cùng một thư mục và tải lên. Hoặc tải lên các tệp zip trực tiếp. Xem Câu hỏi thường gặp để biết chi tiết.", - "destination": "Điểm đến", + "takeout_hint": "Giải nén tất cả tệp zip vào cùng một thư mục và tải lên. Hoặc tải lên trực tiếp các tệp zip. Xem Câu hỏi thường gặp để biết thêm.", + "destination": "Đích đến", "start": "Bắt đầu", - "last_export_time": "Thời gian xuất cuối cùng", + "last_export_time": "Thời gian xuất gần nhất", "export_again": "Đồng bộ lại", - "local_storage_not_accessible": "Trình duyệt của bạn hoặc một tiện ích mở rộng đang chặn Ente không lưu dữ liệu vào bộ nhớ cục bộ", + "local_storage_not_accessible": "Trình duyệt của bạn hoặc một tiện ích mở rộng đang chặn Ente lưu dữ liệu vào bộ nhớ thiết bị", "email_already_taken": "Email đã được sử dụng", "live_photos_detected": "Các tệp ảnh và video từ Live Photos của bạn đã được gộp thành một tệp duy nhất", "ignored_uploads": "Tải lên đã bị bỏ qua", - "ignored_uploads_hint": "Bỏ qua những tệp này vì có tệp có tên và nội dung trùng khớp trong cùng một album", + "ignored_uploads_hint": "Những tệp này bị bỏ qua vì có tên và nội dung trùng khớp trong cùng một album", "file_not_uploaded_list": "Các tệp sau không được tải lên", "failed_uploads": "Tải lên không thành công", - "failed_uploads_hint": "Sẽ có một tùy chọn để thử lại khi việc tải lên hoàn tất", - "retry_failed_uploads": "Thử lại các tệp tải lên không thành công", + "failed_uploads_hint": "Sẽ có tùy chọn thử lại sau khi việc tải lên hoàn tất", + "retry_failed_uploads": "Thử tải lên lại các tệp không thành công", "thumbnail_generation_failed": "Tạo hình thu nhỏ không thành công", "thumbnail_generation_failed_hint": "Các tệp này đã được tải lên, nhưng rất tiếc chúng tôi không thể tạo hình thu nhỏ cho chúng.", "unsupported_files": "Tệp không được hỗ trợ", "unsupported_files_hint": "Ente chưa hỗ trợ các định dạng tệp này", "blocked_uploads": "Tải lên bị chặn", - "blocked_uploads_hint": "Trình duyệt của bạn hoặc một tiện ích mở rộng đang ngăn Ente sử dụng eTags để tải lên các tệp lớn.", + "blocked_uploads_hint": "Trình duyệt của bạn hoặc một tiện ích mở rộng đang chặn Ente sử dụng eTags để tải lên các tệp lớn.", "large_files": "Tệp lớn", - "large_files_hint": "Các tệp này đã không được tải lên vì chúng vượt quá giới hạn kích thước tệp tối đa của chúng tôi", + "large_files_hint": "Các tệp này không thể tải lên vì chúng vượt quá dung lượng tệp tối đa của chúng tôi", "insufficient_storage": "Không đủ dung lượng lưu trữ", - "insufficient_storage_hint": "Các tệp này đã không được tải lên vì chúng vượt quá giới hạn kích thước tối đa cho gói lưu trữ của bạn", - "uploads_in_progress": "Tải lên đang tiến hành", + "insufficient_storage_hint": "Các tệp này không thể tải lên vì chúng vượt quá dung lượng tối đa gói của bạn", + "uploads_in_progress": "Đang tải lên", "successful_uploads": "Tải lên thành công", "upload_to_album": "Tải lên album", "add_to_album": "Thêm vào album", "move_to_album": "Di chuyển đến album", - "unhide_to_album": "Hiện lại vào album", + "unhide_to_album": "Hiện lại trong album", "restore_to_album": "Khôi phục vào album", "section_all": "Tất cả", "section_uncategorized": "Chưa phân loại", "section_archive": "Lưu trữ", "section_hidden": "Ẩn", "section_trash": "Thùng rác", - "favorites": "Yêu thích", + "favorites": "Đã thích", "archive": "Lưu trữ", "archive_album": "Lưu trữ album", - "unarchive": "Khôi phục lưu trữ", - "unarchive_album": "Khôi phục lưu trữ album", + "unarchive": "Bỏ lưu trữ", + "unarchive_album": "Bỏ lưu trữ album", "hide_collection": "Ẩn album", "unhide_collection": "Hiện lại album", "move": "Di chuyển", @@ -357,28 +357,28 @@ "remove": "Xóa", "yes_remove": "Có, xóa", "remove_from_album": "Xóa khỏi album", - "move_to_trash": "Di chuyển vào thùng rác", - "trash_files_message": "Các tệp đã chọn sẽ bị xóa khỏi tất cả các album và di chuyển vào thùng rác.", - "trash_file_message": "Tệp sẽ bị xóa khỏi tất cả các album và di chuyển vào thùng rác.", + "move_to_trash": "Cho vào thùng rác", + "trash_files_message": "Các tệp đã chọn sẽ bị xóa khỏi tất cả album và cho vào thùng rác.", + "trash_file_message": "Tệp sẽ bị xóa khỏi tất cả album và cho vào thùng rác.", "delete_permanently": "Xóa vĩnh viễn", "restore": "Khôi phục", - "empty_trash": "Làm rỗng thùng rác", - "empty_trash_title": "Làm rỗng thùng rác?", + "empty_trash": "Xóa sạch thùng rác", + "empty_trash_title": "Xóa sạch thùng rác?", "empty_trash_message": "Các tệp này sẽ bị xóa vĩnh viễn khỏi tài khoản Ente của bạn.", "leave_album": "Rời album", - "leave_shared_album_title": "Rời album chia sẻ?", - "leave_shared_album_message": "Bạn sẽ rời album, và nó sẽ không còn hiển thị cho bạn.", + "leave_shared_album_title": "Rời album được chia sẻ?", + "leave_shared_album_message": "Bạn sẽ rời album, và nó sẽ không còn hiển thị với bạn.", "leave_shared_album": "Có, rời", "confirm_remove_message": "Các mục đã chọn sẽ bị xóa khỏi album này. Các mục chỉ có trong album này sẽ được chuyển đến Chưa phân loại.", - "confirm_remove_incl_others_message": "Một số mục bạn đang xóa đã được thêm bởi người khác, và bạn sẽ mất quyền truy cập vào chúng.", + "confirm_remove_incl_others_message": "Vài mục mà bạn đang xóa được thêm bởi người khác, và bạn sẽ mất quyền truy cập vào chúng.", "oldest": "Cũ nhất", - "last_updated": "Cập nhật lần cuối", + "last_updated": "Mới cập nhật", "name": "Tên", "fix_creation_time": "Sửa thời gian", "fix_creation_time_in_progress": "Đang sửa thời gian", "fix_creation_time_file_updated": "Thời gian tệp đã được cập nhật", "fix_creation_time_completed": "Đã cập nhật thành công tất cả các tệp", - "fix_creation_time_completed_with_errors": "Cập nhật thời gian tệp không thành công cho một số tệp, vui lòng thử lại", + "fix_creation_time_completed_with_errors": "Cập nhật thời gian một số tệp không thành công, vui lòng thử lại", "fix_creation_time_options": "Chọn tùy chọn bạn muốn sử dụng", "exif_date_time_original": "Exif:DateTimeOriginal", "exif_date_time_digitized": "Exif:DateTimeDigitized", @@ -396,7 +396,7 @@ "participants_count_one": "1 người tham gia", "participants_count": "{{count, number}} người tham gia", "add_viewers": "Thêm người xem", - "change_permission_to_viewer": "

{{selectedEmail}} sẽ không thể thêm nhiều ảnh hơn vào album

Họ vẫn có thể xóa ảnh đã thêm bởi họ

", + "change_permission_to_viewer": "

{{selectedEmail}} sẽ không thể thêm ảnh vào album

Họ vẫn có thể xóa ảnh đã thêm bởi họ

", "change_permission_to_collaborator": "{{selectedEmail}} sẽ có thể thêm ảnh vào album", "change_permission_title": "Thay đổi quyền?", "confirm_convert_to_viewer": "Có, chuyển thành người xem", @@ -417,10 +417,10 @@ "link_expired": "Liên kết đã hết hạn", "link_expired_message": "Liên kết này đã hết hạn hoặc đã bị vô hiệu hóa", "manage_link": "Quản lý liên kết", - "link_request_limit_exceeded": "Album này đã được xem trên quá nhiều thiết bị", + "link_request_limit_exceeded": "Album này đang được xem trên quá nhiều thiết bị", "allow_downloads": "Cho phép tải xuống", "allow_adding_photos": "Cho phép thêm ảnh", - "allow_adding_photos_hint": "Cho phép người có liên kết cũng thêm ảnh vào album chia sẻ.", + "allow_adding_photos_hint": "Cho phép người có liên kết thêm ảnh vào album chia sẻ.", "device_limit": "Giới hạn thiết bị", "none": "Không", "link_expiry": "Hết hạn liên kết", @@ -440,30 +440,30 @@ "public_link_created": "Liên kết công khai đã được tạo", "public_link_enabled": "Liên kết công khai đã được bật", "collect_photos": "Thu thập ảnh", - "disable_file_download": "Vô hiệu hóa tải xuống", - "disable_file_download_message": "

Bạn có chắc chắn muốn vô hiệu hóa nút tải xuống cho các tệp không?

Người xem vẫn có thể chụp ảnh màn hình hoặc lưu bản sao của ảnh của bạn bằng các công cụ bên ngoài.

", + "disable_file_download": "Tắt tải xuống", + "disable_file_download_message": "

Bạn có chắc muốn tắt nút tải xuống các tệp không?

Người xem vẫn có thể chụp ảnh màn hình hoặc sao chép ảnh của bạn bằng các công cụ bên ngoài.

", "shared_using": "Chia sẻ bằng {{url}}", - "sharing_referral_code": "Sử dụng mã {{referralCode}} để nhận 10 GB miễn phí", + "sharing_referral_code": "Dùng mã {{referralCode}} để nhận 10 GB miễn phí", "disable_password": "Vô hiệu hóa khóa mật khẩu", - "disable_password_message": "Bạn có chắc chắn muốn vô hiệu hóa khóa mật khẩu không?", + "disable_password_message": "Bạn có chắc muốn vô hiệu hóa khóa mật khẩu không?", "password_lock": "Khóa mật khẩu", "lock": "Khóa", "file": "Tệp", "folder": "Thư mục", - "google_takeout": "Google takeout", - "deduplicate_files": "Xóa trùng tệp", - "remove_duplicates": "", - "total_size": "", - "count": "", - "deselect_all": "", - "no_duplicates": "", - "duplicate_group_description": "", - "remove_duplicates_button_count": "", + "google_takeout": "Google Takeout", + "deduplicate_files": "Xóa tệp trùng", + "remove_duplicates": "Xóa trùng lặp", + "total_size": "Tổng dung lượng", + "count": "Số lượng", + "deselect_all": "Bỏ chọn tất cả", + "no_duplicates": "Không có trùng lặp", + "duplicate_group_description": "{{count}} mục, {{itemSize}} mỗi mục", + "remove_duplicates_button_count": "Xóa {{count, number}} mục", "stop_uploads_title": "Dừng tải lên?", - "stop_uploads_message": "Bạn có chắc chắn muốn dừng tất cả các tải lên đang diễn ra không?", + "stop_uploads_message": "Bạn có chắc muốn dừng tất cả mục đang tải lên không?", "yes_stop_uploads": "Có, dừng tải lên", "stop_downloads_title": "Dừng tải xuống?", - "stop_downloads_message": "Bạn có chắc chắn muốn dừng tất cả các tải xuống đang diễn ra không?", + "stop_downloads_message": "Bạn có chắc muốn dừng tất cả mục đang tải xuống không?", "yes_stop_downloads": "Có, dừng tải xuống", "albums": "Album", "albums_count_one": "1 Album", @@ -478,14 +478,14 @@ "upgrade_now": "Nâng cấp ngay", "renew_now": "Gia hạn ngay", "storage": "Lưu trữ", - "used": "đã sử dụng", + "used": "đã dùng", "you": "Bạn", "family": "Gia đình", "free": "miễn phí", "of": "của", "watch_folders": "Theo dõi thư mục", "watched_folders": "Thư mục đã theo dõi", - "no_folders_added": "Chưa có thư mục nào được thêm", + "no_folders_added": "Chưa thêm thư mục nào", "watch_folders_hint_1": "Các thư mục bạn thêm ở đây sẽ được theo dõi tự động", "watch_folders_hint_2": "Tải lên tệp mới vào Ente", "watch_folders_hint_3": "Xóa tệp đã xóa khỏi Ente", @@ -495,51 +495,51 @@ "stop_watching_folder_message": "Các tệp hiện có của bạn sẽ không bị xóa, nhưng Ente sẽ ngừng tự động cập nhật album Ente liên kết khi có thay đổi trong thư mục này.", "yes_stop": "Có, dừng lại", "change_folder": "Thay đổi Thư mục", - "view_logs": "", - "view_logs_message": "", - "weak_device_hint": "Trình duyệt web bạn đang sử dụng không đủ mạnh để mã hóa ảnh của bạn. Vui lòng thử đăng nhập vào Ente trên máy tính của bạn, hoặc tải xuống ứng dụng di động/desktop của Ente.", - "drag_and_drop_hint": "Hoặc kéo và thả vào cửa sổ Ente", + "view_logs": "Xem log", + "view_logs_message": "

Tải xuống nhật ký lỗi, để bạn có thể gửi qua email cho chúng tôi.

Lưu ý rằng, trong nhật ký lỗi sẽ bao gồm tên các tệp để giúp theo dõi vấn đề với từng tệp cụ thể.

", + "weak_device_hint": "Trình duyệt bạn đang sử dụng không đủ mạnh để mã hóa ảnh. Vui lòng dùng Ente trên máy tính, hoặc tải xuống ứng dụng di động/máy tính của Ente.", + "drag_and_drop_hint": "Hoặc kéo thả vào cửa sổ Ente", "authenticate": "Xác thực", "uploaded_to_single_collection": "Đã tải lên một bộ sưu tập", "uploaded_to_separate_collections": "Đã tải lên các bộ sưu tập riêng biệt", "nevermind": "Không sao", - "update_available": "Cập nhật có sẵn", - "update_installable_message": "Một phiên bản mới của Ente đã sẵn sàng để được cài đặt.", + "update_available": "Phiên bản mới", + "update_installable_message": "Ente có một phiên bản mới, sẵn sàng để cài đặt.", "install_now": "Cài đặt ngay", - "install_on_next_launch": "Cài đặt khi khởi động tiếp theo", - "update_available_message": "Một phiên bản mới của Ente đã được phát hành, nhưng không thể tự động tải xuống và cài đặt.", + "install_on_next_launch": "Cài đặt trong lần khởi động sau", + "update_available_message": "Ente có một phiên bản mới, nhưng không thể tự động tải xuống và cài đặt.", "download_and_install": "Tải xuống và cài đặt", "ignore_this_version": "Bỏ qua phiên bản này", "today": "Hôm nay", "yesterday": "Hôm qua", "enter_name": "Nhập tên", - "uploader_name_hint": "Thêm một tên để bạn bè biết ai là người đáng cảm ơn cho những bức ảnh tuyệt vời này!", + "uploader_name_hint": "Thêm một tên để bạn bè biết ai là người chụp những tấm ảnh tuyệt vời này!", "name_placeholder": "Tên...", "more_details": "Thêm chi tiết", "ml_search": "Học máy", - "ml_search_description": "Ente hỗ trợ học máy trên thiết bị cho nhận diện khuôn mặt, tìm kiếm kỳ diệu và các tính năng tìm kiếm nâng cao khác", - "ml_search_footnote": "Tìm kiếm kỳ diệu cho phép tìm kiếm ảnh theo nội dung của chúng, ví dụ: 'xe hơi', 'xe hơi đỏ', 'Ferrari'", + "ml_search_description": "Ente hỗ trợ học máy trên-thiết-bị nhằm nhận diện khuôn mặt, tìm kiếm vi diệu và các tính năng tìm kiếm nâng cao khác", + "ml_search_footnote": "Tìm kiếm vi diệu cho phép tìm ảnh theo nội dung của chúng, ví dụ: 'xe hơi', 'xe hơi đỏ', 'Ferrari'", "indexing": "Đang lập chỉ mục", "processed": "Đã xử lý", "indexing_status_running": "Đang chạy", "indexing_status_fetching": "Đang lấy", "indexing_status_scheduled": "Đã lên lịch", "indexing_status_done": "Đã hoàn thành", - "ml_search_disable": "Vô hiệu hóa học máy", - "ml_search_disable_confirm": "Bạn có muốn vô hiệu hóa học máy trên tất cả các thiết bị của bạn không?", + "ml_search_disable": "Tắt học máy", + "ml_search_disable_confirm": "Bạn có muốn tắt học máy trên tất cả các thiết bị của bạn không?", "ml_consent": "Bật học máy", "ml_consent_title": "Bật học máy?", - "ml_consent_description": "

Nếu bạn bật học máy, Ente sẽ trích xuất thông tin như hình dạng khuôn mặt từ các tệp, bao gồm cả những tệp được chia sẻ với bạn.

Điều này sẽ xảy ra trên thiết bị của bạn, và bất kỳ thông tin sinh trắc học nào được tạo ra sẽ được mã hóa đầu cuối.

Vui lòng nhấp vào đây để biết thêm chi tiết về tính năng này trong chính sách quyền riêng tư của chúng tôi

", + "ml_consent_description": "

Nếu bạn bật học máy, Ente sẽ trích xuất thông tin như hình dạng khuôn mặt từ các tệp, gồm cả những tệp mà bạn được chia sẻ.

Việc này sẽ diễn ra trên thiết bị của bạn, với mọi thông tin sinh trắc học tạo ra đều được mã hóa đầu cuối.

Vui lòng nhấn vào đây để biết thêm chi tiết về tính năng này trong chính sách quyền riêng tư của chúng tôi

", "ml_consent_confirmation": "Tôi hiểu và muốn bật học máy", - "labs": "Phòng thí nghiệm", + "labs": "Thử nghiệm", "password_strength_weak": "Độ mạnh mật khẩu: Yếu", "password_strength_moderate": "Độ mạnh mật khẩu: Trung bình", "password_strength_strong": "Độ mạnh mật khẩu: Mạnh", - "preferences": "Tùy chọn", + "preferences": "Thiết lập", "language": "Ngôn ngữ", "advanced": "Nâng cao", "export_directory_does_not_exist": "Thư mục xuất không hợp lệ", - "export_directory_does_not_exist_message": "

Thư mục xuất mà bạn đã chọn không tồn tại.

Vui lòng chọn một thư mục hợp lệ.

", + "export_directory_does_not_exist_message": "

Thư mục xuất mà bạn đã chọn không tồn tại.

Vui lòng chọn một thư mục khác.

", "storage_unit": { "b": "B", "kb": "KB", @@ -549,33 +549,33 @@ }, "stop": "Dừng", "sync_continuously": "Đồng bộ liên tục", - "export_starting": "Xuất bắt đầu...", + "export_starting": "Bắt đầu xuất...", "export_preparing": "Đang chuẩn bị...", "export_renaming_album_folders": "Đang đổi tên thư mục album...", - "export_trashing_deleted_files": "Đang xóa tệp đã xóa...", - "export_trashing_deleted_albums": "Đang xóa album đã xóa...", + "export_trashing_deleted_files": "Đang xóa vĩnh viễn các tệp...", + "export_trashing_deleted_albums": "Đang xóa vĩnh viễn các album...", "export_progress": "{{progress.success, number}} / {{progress.total, number}} mục đã đồng bộ", "pending_items": "Mục đang chờ", "delete_account_reason_label": "Lý do chính bạn xóa tài khoản là gì?", "delete_account_reason_placeholder": "Chọn một lý do", "delete_reason": { "missing_feature": "Thiếu một tính năng quan trọng mà tôi cần", - "behaviour": "Ứng dụng hoặc một tính năng nhất định không hoạt động như tôi nghĩ nó nên", - "found_another_service": "Tôi đã tìm thấy một dịch vụ khác mà tôi thích hơn", - "not_listed": "Lý do của tôi không có trong danh sách" + "behaviour": "Ứng dụng hoặc một tính năng nhất định không hoạt động như tôi muốn", + "found_another_service": "Tôi tìm thấy một dịch vụ khác mà tôi thích hơn", + "not_listed": "Lý do không có trong danh sách" }, "delete_account_feedback_label": "Chúng tôi rất tiếc khi thấy bạn ra đi. Vui lòng giải thích lý do bạn rời đi để giúp chúng tôi cải thiện.", "delete_account_feedback_placeholder": "Phản hồi", - "delete_account_confirm_checkbox_label": "Có, tôi muốn xóa tài khoản này và tất cả dữ liệu của nó vĩnh viễn", + "delete_account_confirm_checkbox_label": "Có, tôi muốn xóa vĩnh viễn tài khoản này và tất cả dữ liệu của nó", "delete_account_confirm": "Xác nhận xóa tài khoản", - "delete_account_confirm_message": "

Tài khoản này được liên kết với các ứng dụng Ente khác, nếu bạn sử dụng bất kỳ.

Dữ liệu bạn đã tải lên, trên tất cả các ứng dụng Ente, sẽ được lên lịch để xóa, và tài khoản của bạn sẽ bị xóa vĩnh viễn.

", - "feedback_required": "Xin vui lòng giúp chúng tôi với thông tin này", + "delete_account_confirm_message": "

Tài khoản này được liên kết với các ứng dụng Ente khác, nếu bạn có dùng.

Dữ liệu bạn đã tải lên, trên tất cả ứng dụng Ente, sẽ được lên lịch để xóa, và tài khoản của bạn sẽ bị xóa vĩnh viễn.

", + "feedback_required": "Mong bạn giúp chúng tôi thông tin này", "feedback_required_found_another_service": "Dịch vụ khác làm tốt hơn điều gì?", - "recover_two_factor": "Khôi phục xác thực hai yếu tố", + "recover_two_factor": "Khôi phục xác thực 2 bước", "at": "tại", "auth_next": "tiếp theo", "auth_download_mobile_app": "Tải xuống ứng dụng di động của chúng tôi để quản lý bí mật của bạn", - "no_codes_added_yet": "Chưa có mã nào được thêm", + "no_codes_added_yet": "Chưa thêm mã nào", "hide": "Ẩn", "unhide": "Hiện", "sort_by": "Sắp xếp theo", @@ -583,30 +583,30 @@ "oldest_first": "Cũ nhất trước", "pin_album": "Ghim album", "unpin_album": "Bỏ ghim album", - "unpreviewable_file_message": "Tệp này không thể được xem trước", - "download_complete": "Tải xuống hoàn tất", + "unpreviewable_file_message": "Không thể xem trước tệp này", + "download_complete": "Tải xuống xong", "downloading_album": "Đang tải xuống {{name}}", "download_failed": "Tải xuống thất bại", "download_progress": "{{count, number}} / {{total, number}} tệp", - "christmas": "Giáng sinh", - "christmas_eve": "Đêm Giáng sinh", - "new_year": "Năm mới", - "new_year_eve": "Đêm giao thừa", + "christmas": "Giáng Sinh", + "christmas_eve": "Đêm Thánh", + "new_year": "Năm Mới", + "new_year_eve": "Đêm Giao Thừa", "image": "Hình ảnh", "video": "Video", - "live_photo": "Ảnh trực tiếp", - "live": "", - "edit_image": "", + "live_photo": "Ảnh Live", + "live": "Live", + "edit_image": "Chỉnh sửa ảnh", "photo_editor": "Trình chỉnh sửa ảnh", - "confirm_editor_close": "Bạn có chắc chắn muốn đóng trình chỉnh sửa không?", - "confirm_editor_close_message": "Tải xuống hình ảnh đã chỉnh sửa của bạn hoặc lưu bản sao vào Ente để giữ lại các thay đổi của bạn.", + "confirm_editor_close": "Bạn có chắc muốn đóng trình chỉnh sửa không?", + "confirm_editor_close_message": "Tải xuống hình ảnh đã chỉnh sửa hoặc lưu bản sao vào Ente để giữ các thay đổi của bạn.", "brightness": "Độ sáng", "contrast": "Độ tương phản", "saturation": "Độ bão hòa", - "blur": "Mờ", + "blur": "Độ mờ", "transform": "Biến đổi", "crop": "Cắt", - "aspect_ratio": "Tỷ lệ khung hình", + "aspect_ratio": "Tỉ lệ khung hình", "square": "Hình vuông", "freehand": "Vẽ tự do", "apply_crop": "Áp dụng cắt", @@ -614,27 +614,27 @@ "rotate_left": "Xoay trái", "rotate_right": "Xoay phải", "flip": "Lật", - "flip_vertically": "Lật theo chiều dọc", - "flip_horizontally": "Lật theo chiều ngang", + "flip_vertically": "Lật dọc", + "flip_horizontally": "Lật ngang", "download_edited": "Tải xuống đã chỉnh sửa", "save_a_copy_to_ente": "Lưu một bản sao vào Ente", "restore_original": "Khôi phục gốc", - "photo_edit_required_to_save": "Ít nhất một biến đổi hoặc điều chỉnh màu sắc phải được thực hiện trước khi lưu.", + "photo_edit_required_to_save": "Phải thực hiện ít nhất một biến đổi hoặc điều chỉnh màu sắc trước khi lưu.", "colors": "Màu sắc", "invert_colors": "Đảo ngược màu", "reset": "Đặt lại", "faster_upload": "Tải lên nhanh hơn", - "faster_upload_description": "Định tuyến tải lên qua các máy chủ gần đó", - "open_ente_on_startup": "", + "faster_upload_description": "Tải lên các máy chủ gần bạn", + "open_ente_on_startup": "Mở Ente khi khởi động", "cast_album_to_tv": "Phát album trên TV", - "cast_to_tv": "", + "cast_to_tv": "Phát trên TV", "enter_cast_pin_code": "Nhập mã bạn thấy trên TV bên dưới để ghép nối thiết bị này.", "code": "Mã", "pair_device_to_tv": "Ghép nối thiết bị", "tv_not_found": "Không tìm thấy TV. Bạn đã nhập mã PIN đúng chưa?", "cast_auto_pair": "Ghép nối tự động", "cast_auto_pair_description": "Ghép nối tự động chỉ hoạt động với các thiết bị hỗ trợ Chromecast.", - "choose_device_from_browser": "Chọn một thiết bị tương thích với phát từ cửa sổ trình duyệt.", + "choose_device_from_browser": "Chọn một thiết bị phát tương thích từ cửa sổ trình duyệt.", "cast_auto_pair_failed": "Ghép nối tự động Chromecast thất bại. Vui lòng thử lại.", "pair_with_pin": "Ghép nối bằng PIN", "pair_with_pin_description": "Ghép nối bằng PIN hoạt động với bất kỳ màn hình nào bạn muốn xem album của mình.", @@ -643,29 +643,29 @@ "passkey_fetch_failed": "Không thể lấy khóa truy cập của bạn.", "manage_passkey": "Quản lý khóa truy cập", "delete_passkey": "Xóa khóa truy cập", - "delete_passkey_confirmation": "Bạn có chắc chắn muốn xóa khóa truy cập này không? Hành động này không thể hoàn tác.", + "delete_passkey_confirmation": "Bạn có chắc muốn xóa khóa truy cập này không? Hành động này không thể hoàn tác.", "rename_passkey": "Đổi tên khóa truy cập", "add_passkey": "Thêm khóa truy cập", "enter_passkey_name": "Nhập tên khóa truy cập", - "passkeys_description": "Khóa truy cập là một yếu tố thứ hai hiện đại và an toàn cho tài khoản Ente của bạn. Chúng sử dụng xác thực sinh trắc học trên thiết bị để tiện lợi và an toàn.", - "created_at": "Được tạo vào", + "passkeys_description": "Khóa truy cập là một yếu tố bảo mật hiện đại cho tài khoản Ente của bạn. Chúng sử dụng xác thực sinh trắc học trên thiết bị để tiện lợi và an toàn.", + "created_at": "Đã tạo vào", "passkey_add_failed": "Không thể thêm khóa truy cập", "passkey_login_failed": "Đăng nhập bằng khóa truy cập thất bại", "passkey_login_invalid_url": "URL đăng nhập không hợp lệ.", "passkey_login_already_claimed_session": "Phiên này đã được xác minh.", "passkey_login_generic_error": "Đã xảy ra lỗi khi đăng nhập bằng khóa truy cập.", "passkey_login_credential_hint": "Nếu khóa truy cập của bạn ở trên thiết bị khác, bạn có thể mở trang này trên thiết bị đó để xác minh.", - "passkeys_not_supported": "Khóa truy cập không được hỗ trợ trong trình duyệt này", + "passkeys_not_supported": "Khóa truy cập không được hỗ trợ trên trình duyệt này", "try_again": "Thử lại", "check_status": "Kiểm tra trạng thái", "passkey_login_instructions": "Thực hiện các bước từ trình duyệt của bạn để tiếp tục đăng nhập.", "passkey_login": "Đăng nhập bằng khóa truy cập", "totp_login": "Đăng nhập bằng TOTP", - "passkey": "Mã khóa", - "passkey_verify_description": "Xác minh mã khóa của bạn để đăng nhập vào tài khoản.", + "passkey": "Khóa truy cập", + "passkey_verify_description": "Xác minh khóa truy cập của bạn để đăng nhập vào tài khoản.", "waiting_for_verification": "Đang chờ xác minh...", "verification_still_pending": "Xác minh vẫn đang chờ", - "passkey_verified": "Mã khóa đã được xác minh", + "passkey_verified": "Khóa truy cập đã được xác minh", "redirecting_back_to_app": "Đang chuyển hướng bạn trở lại ứng dụng...", "redirect_close_instructions": "Bạn có thể đóng cửa sổ này sau khi ứng dụng mở.", "redirect_again": "Chuyển hướng lại", @@ -675,15 +675,15 @@ "server_endpoint": "Điểm cuối máy chủ", "more_information": "Thêm thông tin", "save": "Lưu", - "theme": "", - "system": "", - "light": "", - "dark": "", - "streamable_videos": "", - "processing_videos_status": "", - "share_favorites": "", - "person_favorites": "", - "shared_favorites": "", - "added_by_name": "", - "unowned_files_not_processed": "" + "theme": "Chủ đề", + "system": "Giống hệ thống", + "light": "Sáng", + "dark": "Tối", + "streamable_videos": "Video có thể phát", + "processing_videos_status": "Đang xử lý video...", + "share_favorites": "Chia sẻ những mục thích", + "person_favorites": "{{name}} đã thích", + "shared_favorites": "Những mục thích đã chia sẻ", + "added_by_name": "Được thêm bởi {{name}}", + "unowned_files_not_processed": "Các tệp được thêm bởi người dùng khác không được xử lý" } diff --git a/web/packages/base/locales/zh-CN/translation.json b/web/packages/base/locales/zh-CN/translation.json index 95b6ff8d84..0bfb3cce8e 100644 --- a/web/packages/base/locales/zh-CN/translation.json +++ b/web/packages/base/locales/zh-CN/translation.json @@ -32,7 +32,7 @@ "set_password": "设置密码", "sign_in": "登录", "incorrect_password": "密码错误", - "incorrect_password_or_no_account": "", + "incorrect_password_or_no_account": "密码错误或邮箱未注册", "pick_password_hint": "请输入我们可以用来加密您数据的密码", "pick_password_caution": "我们不会存储您的密码,因此如果您忘记密码, 我们将无法帮助您在没有恢复密钥的情况下恢复您的数据。", "key_generation_in_progress": "正在生成加密密钥...", @@ -40,7 +40,7 @@ "referral_source_hint": "您是如何知道Ente的? (可选的)", "referral_source_info": "我们不跟踪应用程序安装情况,如果您告诉我们您是在哪里找到我们的,将会有所帮助!", "password_mismatch_error": "两次输入的密码不一致", - "show_or_hide_password": "", + "show_or_hide_password": "显示或隐藏密码", "welcome_to_ente_title": "欢迎来到 ", "welcome_to_ente_subtitle": "端到端加密的照片存储和共享", "new_album": "新建相册", @@ -58,12 +58,12 @@ "add_photos_count": "添加 {{count, number}} 个项目", "select_photos": "选择照片", "file_upload": "上传文件", - "preparing": "", - "processed_counts": "", - "upload_reading_metadata_files": "", + "preparing": "准备中", + "processed_counts": "{{count, number}} / {{total, number}}", + "upload_reading_metadata_files": "正在读取元数据文件", "upload_cancelling": "正在取消剩余的上传内容", - "upload_done": "", - "upload_skipped": "", + "upload_done": "{{count, number}} 个已上传", + "upload_skipped": "{{count, number}} 个已跳过", "initial_load_delay_warning": "第一次加载可能需要一些时间", "no_account": "没有账号", "existing_account": "已有账号", @@ -96,15 +96,15 @@ "exit_fullscreen": "退出全屏", "go_fullscreen": "全屏显示", "zoom": "缩放", - "play": "", - "pause": "", + "play": "播放", + "pause": "暂停", "previous": "上一个", "next": "下一个", - "video_seek": "", - "quality": "", - "auto": "", - "original": "", - "speed": "", + "video_seek": "视频跳转", + "quality": "质量", + "auto": "自动", + "original": "原始", + "speed": "速度", "title_photos": "Ente 照片", "title_auth": "Ente 验证器", "title_accounts": "Ente 账户", @@ -162,7 +162,7 @@ "ok": "确定", "success": "成功", "error": "错误", - "note": "", + "note": "提示", "offline_message": "您处于离线状态,正在显示已缓存的回忆", "install": "安装", "install_mobile_app": "安装我们的 AndroidiOS 应用程序来自动备份您的所有照片", @@ -225,7 +225,7 @@ "delete_album_message": "也删除此相册中存在的照片(和视频),从 他们所加入的所有 个其他相册?", "delete_photos": "删除照片", "keep_photos": "保留照片", - "share_album": "分享相册", + "share_album": "共享相册", "sharing_with_self": "您不能与自己共享", "sharing_already_shared": "您已经与 {{email}} 共享了", "sharing_album_not_allowed": "不允许分享相册", @@ -389,7 +389,7 @@ "modify_sharing": "更改共享", "add_collaborators": "添加协作者", "add_new_email": "添加新的电子邮件", - "shared_with_people_count_zero": "与特定人员分享", + "shared_with_people_count_zero": "与特定人员共享", "shared_with_people_count_one": "已与1个人共享", "shared_with_people_count": "已与 {count, number} 个人共享", "participants_count_zero": "暂无参与者", @@ -442,7 +442,7 @@ "collect_photos": "收集照片", "disable_file_download": "禁止下载", "disable_file_download_message": "

您确定要禁用文件下载按钮吗?

观看者仍然可以使用外部工具进行屏幕截图或保存您的照片副本。

", - "shared_using": "分享方式 {{url}}", + "shared_using": "共享方式 {{url}}", "sharing_referral_code": "使用代码 {{referralCode}} 获得 10 GB 免费空间", "disable_password": "禁用密码锁", "disable_password_message": "您确定要禁用密码锁吗?", @@ -627,7 +627,7 @@ "faster_upload_description": "通过附近的服务器路由上传", "open_ente_on_startup": "启动时打开 Ente", "cast_album_to_tv": "在电视上播放相册", - "cast_to_tv": "", + "cast_to_tv": "在电视上播放", "enter_cast_pin_code": "输入您在下面的电视上看到的代码来配对此设备。", "code": "代码", "pair_device_to_tv": "配对设备", @@ -679,11 +679,11 @@ "system": "系统", "light": "浅色", "dark": "深色", - "streamable_videos": "", - "processing_videos_status": "", - "share_favorites": "", - "person_favorites": "", - "shared_favorites": "", - "added_by_name": "", - "unowned_files_not_processed": "" + "streamable_videos": "可流媒体播放的视频", + "processing_videos_status": "正在处理视频...", + "share_favorites": "共享收藏", + "person_favorites": "{{name}}的收藏", + "shared_favorites": "已共享的收藏", + "added_by_name": "由{{name}}添加", + "unowned_files_not_processed": "由其他用户添加的文件未被处理" } diff --git a/web/packages/base/origins.ts b/web/packages/base/origins.ts index 597eb5b908..8e1ef1ddac 100644 --- a/web/packages/base/origins.ts +++ b/web/packages/base/origins.ts @@ -81,6 +81,13 @@ export const customAPIHost = async () => { export const uploaderOrigin = async () => (await customAPIOrigin()) ?? "https://uploader.ente.io"; +/** + * A static build time constant that is `true` if {@link albumsAppOrigin} has + * been customized. + */ +export const isCustomAlbumsAppOrigin = + !!process.env.NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT; + /** * Return the origin that serves public albums. * diff --git a/web/packages/base/session.ts b/web/packages/base/session.ts index 0adc3003ed..077e6d3271 100644 --- a/web/packages/base/session.ts +++ b/web/packages/base/session.ts @@ -1,7 +1,6 @@ import { z } from "zod/v4"; import { decryptBox, encryptBox, generateKey } from "./crypto"; import log from "./log"; -import { getAuthToken } from "./token"; /** * Remove all data stored in session storage (data tied to the browser tab). @@ -51,7 +50,7 @@ export const ensureMasterKeyFromSession = async () => { * have credentials at hand or not, however it doesn't attempt to verify that * the key present in the session can actually be decrypted. */ -export const haveCredentialsInSession = () => +export const haveMasterKeyInSession = () => !!sessionStorage.getItem("encryptionKey"); /** @@ -140,7 +139,7 @@ export const updateSessionFromElectronSafeStorageIfNeeded = async () => { const electron = globalThis.electron; if (!electron) return; - if (haveCredentialsInSession()) return; + if (haveMasterKeyInSession()) return; let masterKey: string | undefined; try { @@ -154,13 +153,6 @@ export const updateSessionFromElectronSafeStorageIfNeeded = async () => { } }; -/** - * Return true if we both have a usable user's master key in session storage, - * and their auth token in KV DB. - */ -export const haveAuthenticatedSession = async () => - (await masterKeyFromSession()) && !!(await getAuthToken()); - /** * Save the user's encypted key encryption key ("key") in session store * temporarily, until we get back here after completing the second factor. diff --git a/web/packages/base/token.ts b/web/packages/base/token.ts index f23d7866c7..109322b339 100644 --- a/web/packages/base/token.ts +++ b/web/packages/base/token.ts @@ -1,25 +1,42 @@ -import { getKVS } from "./kv"; - -/** - * Return the user's auth token, if present. - * - * The user's auth token is stored in KV DB after they have successfully logged - * in. This function returns that saved auth token. - * - * The underlying data is stored in IndexedDB, and can be accessed from web - * workers. - */ -export const getAuthToken = () => getKVS("token"); +import { getKVS, removeKV, setKV } from "./kv"; /** * Return the user's auth token, or throw an error. * - * The user's auth token can be retrieved using {@link getAuthToken}. This + * The user's auth token can be retrieved using {@link savedAuthToken}. This * function is a wrapper which throws an error if the token is not found (which * should only happen if the user is not logged in). */ export const ensureAuthToken = async () => { - const token = await getAuthToken(); + const token = await savedAuthToken(); if (!token) throw new Error("Not logged in"); return token; }; + +/** + * Return the user's auth token, if available. + * + * The user's auth token is stored in KV DB using {@link saveAuthToken} during + * the login / signup flow. This function returns that saved auth token. + * + * The underlying data is stored in IndexedDB, and can be accessed from web + * workers. + * + * If your code is running in a context where the user is already expected to be + * logged in, use {@link ensureAuthToken} instead. + */ +export const savedAuthToken = () => getKVS("token"); + +/** + * Save the user's auth token in KV DB. + * + * This is the setter corresponding to {@link savedAuthToken}. + */ +export const saveAuthToken = (token: string) => setKV("token", token); + +/** + * Remove the user's auth token from KV DB. + * + * See {@link saveAuthToken}. + */ +export const removeAuthToken = () => removeKV("token"); diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx index 80a9014e01..177c2876e6 100644 --- a/web/packages/gallery/components/FileInfo.tsx +++ b/web/packages/gallery/components/FileInfo.tsx @@ -215,7 +215,7 @@ export const FileInfo: React.FC = ({ const annotatedExif = useMemo(() => annotateExif(exif), [exif]); useEffect(() => { - if (!isMLEnabled()) return; + if (!isMLEnabled()) return undefined; // Take a dependency on open so that we refresh the list of people by // calling `getAnnotatedFacesForFile` again when the file info dialog is @@ -230,7 +230,7 @@ export const FileInfo: React.FC = ({ // Since the `file` hasn't changed, this hook wouldn't rerun. So we also // take a dependency on the open state of the dialog, causing us to // rerun whenever reopened (even if for the same file). - if (!open) return; + if (!open) return undefined; let didCancel = false; @@ -451,8 +451,8 @@ const FileInfoSidebar = styled( + total == success + failed; + +/** + * Return `true` if there are no files in this save group that are pending, but + * one or more files had failed to download. + */ +export const isSaveCompleteWithErrors = (group: SaveGroup) => + group.failed > 0 && isSaveComplete(group); + +/** + * Return `true` if this save was cancelled on a user request. + */ +export const isSaveCancelled = (group: SaveGroup) => + group.canceller.signal.aborted; + +/** + * A function that can be used to add a save group. + * + * It returns a function that can subsequently be used to update the save group + * by applying a transform to it (see {@link UpdateSaveGroup}). The UI will + * react and update itself on updates done this way. + */ +export type AddSaveGroup = ( + group: Pick< + SaveGroup, + | "title" + | "collectionSummaryID" + | "isHiddenCollectionSummary" + | "downloadDirPath" + | "total" + | "canceller" + >, +) => UpdateSaveGroup; + +/** + * A function that can be used to update a instance of a save group by applying + * the provided transform. + * + * This is obtained by a call to an instance of {@link AddSaveGroup}. The UI + * will update itself to reflect the changes made by the transform. + */ +export type UpdateSaveGroup = ( + tranform: (prev: SaveGroup) => SaveGroup, +) => void; + +/** + * A function that can be used to remove a save group. + * + * Save groups can be removed both on user actions - if the user presses the + * close button to discard the notification showing the status of the save group + * (cancelling it if needed) - or programmatically, if it is found that there + * are no files that need saving for a particular request. + */ +export type RemoveSaveGroup = (saveGroup: SaveGroup) => void; + +/** + * A custom React hook that manages a list of active {@link SaveGroup}s, and + * provides functions to add and remove entries to the list. + */ +export const useSaveGroups = () => { + const [saveGroups, setSaveGroups] = useState([]); + + const handleAddSaveGroup: AddSaveGroup = useCallback((saveGroup) => { + const id = Math.random(); + setSaveGroups((groups) => [ + ...groups, + { ...saveGroup, id, success: 0, failed: 0 }, + ]); + return (tx: (group: SaveGroup) => SaveGroup) => { + setSaveGroups((groups) => + groups.map((g) => (g.id == id ? tx(g) : g)), + ); + }; + }, []); + + const handleRemoveSaveGroup: RemoveSaveGroup = useCallback( + ({ id }) => setSaveGroups((groups) => groups.filter((g) => g.id != id)), + [], + ); + + return { + saveGroups, + onAddSaveGroup: handleAddSaveGroup, + onRemoveSaveGroup: handleRemoveSaveGroup, + }; +}; diff --git a/web/packages/gallery/components/utils/use-file-input.ts b/web/packages/gallery/components/utils/use-file-input.ts index 7aec8d3d6e..a137b34ad3 100644 --- a/web/packages/gallery/components/utils/use-file-input.ts +++ b/web/packages/gallery/components/utils/use-file-input.ts @@ -62,7 +62,7 @@ export const useFileInput = ({ onSelect, onCancel, }: UseFileInputParams): UseFileInputResult => { - const inputRef = useRef(undefined); + const inputRef = useRef(null); useEffect(() => { // React (as of 19) doesn't support attaching the onCancel event handler diff --git a/web/packages/gallery/components/viewer/data-source.ts b/web/packages/gallery/components/viewer/data-source.ts index f13df294b4..2325584b27 100644 --- a/web/packages/gallery/components/viewer/data-source.ts +++ b/web/packages/gallery/components/viewer/data-source.ts @@ -723,15 +723,15 @@ export const updateFileInfoExifIfNeeded = async (itemData: ItemData) => { // We already have it available. if (_state.fileInfoExifByFileID.has(fileID)) return; - const updateNotifyAndReturn = (exifData: FileInfoExif) => { + const update = (exifData: FileInfoExif) => { _state.fileInfoExifByFileID.set(fileID, exifData); _state.exifObserverByFileID.get(fileID)?.(exifData); - return exifData; }; // For videos, insert a placeholder. if (fileType == FileType.video) { - return updateNotifyAndReturn(createPlaceholderFileInfoExif()); + update(createPlaceholderFileInfoExif()); + return; } // This is not a video, but the original image is not available yet. @@ -741,12 +741,12 @@ export const updateFileInfoExifIfNeeded = async (itemData: ItemData) => { const file = new File([originalImageBlob], ""); const tags = await extractRawExif(file); const parsed = parseExif(tags); - return updateNotifyAndReturn({ tags, parsed }); + update({ tags, parsed }); } catch (e) { log.error("Failed to extract exif", e); // Save the empty placeholder exif corresponding to the file, no point // in unnecessarily retrying this, it will deterministically fail again. - return updateNotifyAndReturn(createPlaceholderFileInfoExif()); + update(createPlaceholderFileInfoExif()); } }; diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts index 0dbc902122..bd4151d68a 100644 --- a/web/packages/gallery/components/viewer/photoswipe.ts +++ b/web/packages/gallery/components/viewer/photoswipe.ts @@ -233,8 +233,8 @@ export class FileViewerPhotoSwipe { // leave this at the default (true) and then swipe between slides // fast, or show MUI drawers etc. // - // See: [Note: Overzealous Chrome? Complicated ARIA?], but time with - // a different library. + // See: [Note: Workarounds for unactionable ARIA warnings], but time + // with a different library. trapFocus: false, // Set the index within files that we should open to. Subsequent // updates to the index will be tracked by PhotoSwipe internally. diff --git a/web/packages/gallery/services/download.ts b/web/packages/gallery/services/download.ts index fc90ed99fb..a4fb2e1b02 100644 --- a/web/packages/gallery/services/download.ts +++ b/web/packages/gallery/services/download.ts @@ -198,7 +198,9 @@ class DownloadManager { * Set the credentials that should be used for download files when we're * running in the context of the public albums app. */ - setPublicAlbumsCredentials(credentials: PublicAlbumsCredentials) { + setPublicAlbumsCredentials( + credentials: PublicAlbumsCredentials | undefined, + ) { this.publicAlbumsCredentials = credentials; } diff --git a/web/packages/gallery/services/save.ts b/web/packages/gallery/services/save.ts new file mode 100644 index 0000000000..72cf8cd021 --- /dev/null +++ b/web/packages/gallery/services/save.ts @@ -0,0 +1,252 @@ +import { assertionFailed } from "ente-base/assert"; +import { joinPath } from "ente-base/file-name"; +import log from "ente-base/log"; +import { type Electron } from "ente-base/types/ipc"; +import { saveAsFileAndRevokeObjectURL } from "ente-base/utils/web"; +import { downloadManager } from "ente-gallery/services/download"; +import { detectFileTypeInfo } from "ente-gallery/utils/detect-type"; +import { writeStream } from "ente-gallery/utils/native-stream"; +import type { EnteFile } from "ente-media/file"; +import { fileFileName } from "ente-media/file-metadata"; +import { FileType } from "ente-media/file-type"; +import { decodeLivePhoto } from "ente-media/live-photo"; +import { + safeDirectoryName, + safeFileName, +} from "ente-new/photos/utils/native-fs"; +import { wait } from "ente-utils/promise"; +import type { AddSaveGroup } from "../components/utils/save-groups"; + +/** + * Save the given {@link files} to the user's device. + * + * If we're running in the context of the web app, the files will be saved to + * the user's download folder. If we're running in the context of our desktop + * app, the user will be prompted to select a directory on their file system and + * the files will be saved therein. + * + * @param files The files to save. + * + * @param title A title to show in the UI notification that indicates the + * progress of the save. + * + * @param onAddSaveGroup A function that can be used to create a save group + * associated with the save. The newly added save group will correspond to a + * notification shown in the UI, and the progress and status of the save can be + * communicated by updating the save group's state using the updater function + * obtained when adding the save group. + */ +export const downloadAndSaveFiles = ( + files: EnteFile[], + title: string, + onAddSaveGroup: AddSaveGroup, +) => downloadAndSave(files, title, onAddSaveGroup); + +/** + * Save all the files of a collection to the user's device. + * + * This is a variant of {@link downloadAndSaveFiles}, except instead of taking a + * list of files to save, this variant is tailored for saving saves all the + * files that belong to a collection. Otherwise, it broadly behaves similarly; + * see that method's documentation for more details. + * + * When running in the context of the desktop app, instead of saving the files + * in the directory selected by the user, files are saved in a directory with + * the same name as the collection. + * + * @param isHiddenCollectionSummary `true` if the collection is associated with + * a "hidden" collection or pseudo-collection in the app. Only relevant when + * running in the context of the photos app, can be `undefined` otherwise. + */ +export const downloadAndSaveCollectionFiles = async ( + collectionSummaryName: string, + collectionSummaryID: number, + files: EnteFile[], + isHiddenCollectionSummary: boolean | undefined, + onAddSaveGroup: AddSaveGroup, +) => + downloadAndSave( + files, + collectionSummaryName, + onAddSaveGroup, + collectionSummaryName, + collectionSummaryID, + isHiddenCollectionSummary, + ); + +/** + * The lower level primitive that the public API of this module delegates to. + */ +const downloadAndSave = async ( + files: EnteFile[], + title: string, + onAddSaveGroup: AddSaveGroup, + collectionSummaryName?: string, + collectionSummaryID?: number, + isHiddenCollectionSummary?: boolean, +) => { + const electron = globalThis.electron; + + const total = files.length; + if (!files.length) { + // Nothing to download. + assertionFailed(); + return; + } + + let downloadDirPath: string | undefined; + if (electron) { + downloadDirPath = await electron.selectDirectory(); + if (!downloadDirPath) { + // The user cancelled on the directory selection dialog. + return; + } + if (collectionSummaryName) { + downloadDirPath = await mkdirCollectionDownloadFolder( + electron, + downloadDirPath, + collectionSummaryName, + ); + } + } + + const canceller = new AbortController(); + + const updateSaveGroup = onAddSaveGroup({ + title, + collectionSummaryID, + isHiddenCollectionSummary, + downloadDirPath, + total, + canceller, + }); + + for (const file of files) { + if (canceller.signal.aborted) break; + try { + if (electron && downloadDirPath) { + await saveFileDesktop(electron, file, downloadDirPath); + } else { + await saveAsFile(file); + } + updateSaveGroup((g) => ({ ...g, success: g.success + 1 })); + } catch (e) { + log.error("File download failed", e); + updateSaveGroup((g) => ({ ...g, failed: g.failed + 1 })); + } + } +}; + +/** + * Save the given {@link EnteFile} as a file in the user's download folder. + */ +const saveAsFile = async (file: EnteFile) => { + const fileBlob = await downloadManager.fileBlob(file); + const fileName = fileFileName(file); + if (file.metadata.fileType == FileType.livePhoto) { + const { imageFileName, imageData, videoFileName, videoData } = + await decodeLivePhoto(fileName, fileBlob); + + await saveBlobPartAsFile(imageData, imageFileName); + + // Downloading multiple works everywhere except, you guessed it, + // Safari. Make up for their incompetence by adding a setTimeout. + await wait(300) /* arbitrary constant, 300ms */; + await saveBlobPartAsFile(videoData, videoFileName); + } else { + await saveBlobPartAsFile(fileBlob, fileName); + } +}; + +/** + * Save the given {@link blob} as a file in the user's download folder. + */ +const saveBlobPartAsFile = async (blobPart: BlobPart, fileName: string) => + createTypedObjectURL(blobPart, fileName).then((url) => + saveAsFileAndRevokeObjectURL(url, fileName), + ); + +const createTypedObjectURL = async (blobPart: BlobPart, fileName: string) => { + const blob = blobPart instanceof Blob ? blobPart : new Blob([blobPart]); + const { mimeType } = await detectFileTypeInfo(new File([blob], fileName)); + return URL.createObjectURL(new Blob([blob], { type: mimeType })); +}; + +/** + * Create a new directory on the user's file system with the same name as the + * provided {@link collectionName} under the provided {@link downloadDirPath}, + * and return the full path to the created directory. + * + * This function can be used only when running in the context of our desktop + * app, and so such requires an {@link Electron} instance as the witness. + */ +const mkdirCollectionDownloadFolder = async ( + { fs }: Electron, + downloadDirPath: string, + collectionName: string, +) => { + const collectionDownloadName = await safeDirectoryName( + downloadDirPath, + collectionName, + fs.exists, + ); + const collectionDownloadPath = joinPath( + downloadDirPath, + collectionDownloadName, + ); + await fs.mkdirIfNeeded(collectionDownloadPath); + return collectionDownloadPath; +}; + +/** + * Save a file to the given {@link directoryPath} using native filesystem APIs. + * + * This is a sibling of {@link saveAsFile} for use when we are running in the + * context of our desktop app. Unlike the browser, the desktop app can use + * native file system APIs to efficiently write the files on disk without + * needing to prompt the user for each write. + * + * @param electron An {@link Electron} instance, a witness to the fact that + * we're running in the desktop app. + * + * @param file The {@link EnteFile} whose contents we want to save to the user's + * file system. + * + * @param directoryPath The file system directory in which to save the file. + */ +const saveFileDesktop = async ( + electron: Electron, + file: EnteFile, + directoryPath: string, +) => { + const fs = electron.fs; + + const createExportName = (fileName: string) => + safeFileName(directoryPath, fileName, fs.exists); + + const writeStreamToFile = ( + exportName: string, + stream: ReadableStream | null, + ) => writeStream(electron, joinPath(directoryPath, exportName), stream); + + const stream = await downloadManager.fileStream(file); + const fileName = fileFileName(file); + + if (file.metadata.fileType == FileType.livePhoto) { + const { imageFileName, imageData, videoFileName, videoData } = + await decodeLivePhoto(fileName, await new Response(stream).blob()); + const imageExportName = await createExportName(imageFileName); + await writeStreamToFile(imageExportName, new Response(imageData).body); + try { + await writeStreamToFile( + await createExportName(videoFileName), + new Response(videoData).body, + ); + } catch (e) { + await fs.rm(joinPath(directoryPath, imageExportName)); + throw e; + } + } else { + await writeStreamToFile(await createExportName(fileName), stream); + } +}; diff --git a/web/packages/gallery/services/video.ts b/web/packages/gallery/services/video.ts index 68e129099b..61561ffc72 100644 --- a/web/packages/gallery/services/video.ts +++ b/web/packages/gallery/services/video.ts @@ -349,14 +349,7 @@ export const hlsPlaylistDataForFile = async ( playlist: playlistTemplate, width, height, - } = await decryptPlaylistJSON( - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - playlistFileData, - file, - ); + } = await decryptPlaylistJSON(playlistFileData, file); // A playlist format the current client does not understand. if (type != "hls_video") return undefined; diff --git a/web/packages/gallery/utils/native-stream.ts b/web/packages/gallery/utils/native-stream.ts index e5a7160595..f52aa7319d 100644 --- a/web/packages/gallery/utils/native-stream.ts +++ b/web/packages/gallery/utils/native-stream.ts @@ -91,7 +91,7 @@ const readNumericHeader = (res: Response, key: string) => { export const writeStream = async ( _: Electron, path: string, - stream: ReadableStream, + stream: ReadableStream | null, ) => { const params = new URLSearchParams({ path }); const url = new URL(`stream://write?${params.toString()}`); diff --git a/web/packages/media/collection.ts b/web/packages/media/collection.ts index 81d90909e6..b8412a6d65 100644 --- a/web/packages/media/collection.ts +++ b/web/packages/media/collection.ts @@ -529,13 +529,7 @@ export const decryptRemoteCollection = async ( owner: parseRemoteCollectionUser(owner), name, sharees: sharees.map(parseRemoteCollectionUser), - // TODO: - // - // See: [Note: strict mode migration] - // - // We need to add the cast here, otherwise we get a tsc error when this - // file is imported in the photos app. - publicURLs: rest.publicURLs as PublicURL[], + publicURLs: rest.publicURLs, magicMetadata, pubMagicMetadata, sharedMagicMetadata, diff --git a/web/packages/media/file.ts b/web/packages/media/file.ts index 12ab7bbed4..9ede63ab24 100644 --- a/web/packages/media/file.ts +++ b/web/packages/media/file.ts @@ -381,10 +381,6 @@ export const decryptRemoteFile = async ( collectionKey, ); - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore const metadataJSON = await decryptMetadataJSON(encryptedMetadata, key); const metadata = FileMetadata.parse( transformDecryptedMetadataJSON(id, metadataJSON), diff --git a/web/packages/new/README.md b/web/packages/new/README.md index 5e375b7597..820f68831f 100644 --- a/web/packages/new/README.md +++ b/web/packages/new/README.md @@ -1,9 +1,8 @@ ## ente-new -This package only exists so that we can write code that works with TypeScript -strict mode. This provides a gradual way of migrating the existing apps code to -strict mode. Once there is sufficient gravity here, we can flip the switch and -move these back to where they came from. +This package is only transient. Once the remaining files in apps/photos have +been revisited for clarity, and the albums app has been split into a separate +folder, this package will not exist. ### Packaging diff --git a/web/packages/new/albums/components/UploaderNameInput.tsx b/web/packages/new/albums/components/UploaderNameInput.tsx index 7aa31b7b0f..8d951bd0c3 100644 --- a/web/packages/new/albums/components/UploaderNameInput.tsx +++ b/web/packages/new/albums/components/UploaderNameInput.tsx @@ -29,7 +29,7 @@ type UploaderNameInput = ModalVisibilityProps & { /** * Callback invoked when the user presses submit after entering a name. */ - onSubmit: (name: string) => Promise; + onSubmit: (name: string) => void | Promise; }; /** diff --git a/web/packages/new/albums/services/public-albums-fdb.ts b/web/packages/new/albums/services/public-albums-fdb.ts index 5e940ced6a..429a294901 100644 --- a/web/packages/new/albums/services/public-albums-fdb.ts +++ b/web/packages/new/albums/services/public-albums-fdb.ts @@ -20,15 +20,9 @@ import { z } from "zod/v4"; * Use {@link savePublicCollections} to update the database. */ const savedPublicCollections = async (): Promise => - // TODO: - // - // See: [Note: strict mode migration] - // - // We need to add the cast here, otherwise we get a tsc error when this - // file is imported in the photos app. LocalCollections.parse( (await localForage.getItem("public-collections")) ?? [], - ) as Collection[]; + ); /** * Replace the list of public collections stored in our local database. diff --git a/web/packages/new/photos/components/DeleteAccount.tsx b/web/packages/new/photos/components/DeleteAccount.tsx index abf3980c30..4bc8ad3584 100644 --- a/web/packages/new/photos/components/DeleteAccount.tsx +++ b/web/packages/new/photos/components/DeleteAccount.tsx @@ -47,7 +47,11 @@ export const DeleteAccount: React.FC = ({ ); -// See: [Note: MUI dialog state reset] +/** + * The contents of the {@link DeleteAccount} dialog. + * + * See: [Note: MUI dialog state] for why this is a separate component. + */ const DeleteAccountDialogContents: React.FC< Omit > = ({ onClose, onAuthenticateUser }) => { diff --git a/web/packages/new/photos/components/SearchBar.tsx b/web/packages/new/photos/components/SearchBar.tsx index f242aee020..2c97d044ec 100644 --- a/web/packages/new/photos/components/SearchBar.tsx +++ b/web/packages/new/photos/components/SearchBar.tsx @@ -83,7 +83,7 @@ export interface SearchBarProps { /** * Called when the user selects a person shown in the empty state view. */ - onSelectPerson: (personID: string | undefined) => void; + onSelectPerson: (personID: string) => void; } /** @@ -210,7 +210,7 @@ const SearchInput: React.FC> = ({ onSelectPeople(); }; - const handleSelectPerson = (personID: string | undefined) => { + const handleSelectPerson = (personID: string) => { resetSearch(); onSelectPerson(personID); }; diff --git a/web/packages/new/photos/components/Tiles.tsx b/web/packages/new/photos/components/Tiles.tsx index 2572257453..bf8318d832 100644 --- a/web/packages/new/photos/components/Tiles.tsx +++ b/web/packages/new/photos/components/Tiles.tsx @@ -66,7 +66,7 @@ export const ItemCard: React.FC> = ({ const [coverImageURL, setCoverImageURL] = useState(); useEffect(() => { - if (!coverFile) return; + if (!coverFile) return undefined; let didCancel = false; diff --git a/web/packages/new/photos/components/gallery/BarImpl.tsx b/web/packages/new/photos/components/gallery/BarImpl.tsx index 27198b86dc..757032f998 100644 --- a/web/packages/new/photos/components/gallery/BarImpl.tsx +++ b/web/packages/new/photos/components/gallery/BarImpl.tsx @@ -146,7 +146,7 @@ export const GalleryBarImpl: React.FC = ({ >( (ref) => { listContainerRef.current = ref; - if (!ref) return; + if (!ref) return undefined; // Listen for scrolls and resize. ref.addEventListener("scroll", updateScrollState); diff --git a/web/packages/new/photos/components/gallery/ListHeader.tsx b/web/packages/new/photos/components/gallery/ListHeader.tsx index 91838f3852..1979ff5fe5 100644 --- a/web/packages/new/photos/components/gallery/ListHeader.tsx +++ b/web/packages/new/photos/components/gallery/ListHeader.tsx @@ -38,8 +38,8 @@ interface GalleryItemsSummaryProps { } /** - * A component suitable for being used as a (non-sticky) summary displayed on - * top of the of a list of photos (or other items) shown in the gallery. + * A component suitable for being used as a summary displayed on top of the of a + * list of photos (or other items) shown in the gallery. */ export const GalleryItemsSummary: React.FC = ({ name, diff --git a/web/packages/new/photos/components/gallery/helpers.ts b/web/packages/new/photos/components/gallery/helpers.ts index b3d69197fc..749393ad08 100644 --- a/web/packages/new/photos/components/gallery/helpers.ts +++ b/web/packages/new/photos/components/gallery/helpers.ts @@ -46,17 +46,26 @@ export const validateKey = async () => { /** * Return the {@link Collection} (from amongst {@link collections}) with the - * given {@link collectionSummaryID}. As a special case, if the given - * {@link collectionSummaryID} is the ID of the placeholder uncategorized - * collection, create a new uncategorized collection and then return it. + * given {@link collectionSummaryID}. + * + * As a special case, if the given {@link collectionSummaryID} is the ID of the + * placeholder uncategorized collection, create a new uncategorized collection + * and then return it. + * + * This is used in the context of the collection summary, so one of the two + * cases must be true. */ export const findCollectionCreatingUncategorizedIfNeeded = async ( collections: Collection[], collectionSummaryID: number, -): Promise => +): Promise => collectionSummaryID == PseudoCollectionID.uncategorizedPlaceholder ? createUncategorizedCollection() - : collections.find(({ id }) => id == collectionSummaryID); + : // Null assert since the collection selector should only + // show "selectable" normalCollectionSummaries. + // + // See: [Note: Picking from selectable collection summaries]. + collections.find(({ id }) => id == collectionSummaryID)!; /** * Perform a "collection operation" on the selected file(s). diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.ts index 741ffc39d2..d7aedfc0cb 100644 --- a/web/packages/new/photos/components/gallery/reducer.ts +++ b/web/packages/new/photos/components/gallery/reducer.ts @@ -1,4 +1,4 @@ -import type { User } from "ente-accounts/services/user"; +import { type LocalUser } from "ente-accounts/services/user"; import { groupFilesByCollectionID, sortFiles, @@ -38,7 +38,7 @@ import { } from "../../services/collection-summary"; import type { PeopleState, Person } from "../../services/ml/people"; import type { SearchSuggestion } from "../../services/search/types"; -import type { FamilyData } from "../../services/user-details"; +import type { FamilyData, UserDetails } from "../../services/user-details"; /** * Specifies what the bar at the top of the gallery is displaying currently. @@ -108,15 +108,15 @@ export interface GalleryState { /*--< Mostly static state >--*/ /** - * The logged in {@link User}. + * The logged in {@link LocalUser}. * * This is expected to be undefined only for a brief duration until the code * for the initial "mount" runs (If we're not logged in, then the gallery * will redirect the user to an appropriate authentication page). */ - user: User | undefined; + user: LocalUser | undefined; /** - * Family plan related information for the logged in {@link User}. + * Family plan related information for the logged in {@link LocalUser}. */ familyData: FamilyData | undefined; @@ -449,12 +449,13 @@ export interface GalleryState { export type GalleryAction = | { type: "mount"; - user: User; + user: LocalUser; familyData: FamilyData | undefined; collections: Collection[]; collectionFiles: EnteFile[]; trashItems: TrashItem[]; } + | { type: "setUserDetails"; userDetails: UserDetails } | { type: "setCollections"; collections: Collection[] } | { type: "setCollectionFiles"; collectionFiles: EnteFile[] } | { type: "uploadFile"; file: EnteFile } @@ -623,6 +624,32 @@ const galleryReducer: React.Reducer = ( }); } + case "setUserDetails": { + // While user details have more state that can change, the only + // changes that affect the reducer's state (so far) are if the + // user's own email changes, or the list of their family members + // changes. + // + // Both of these affect only the list of share suggestion emails. + + let user = state.user!; + const { email, familyData } = action.userDetails; + if (email != user.email) { + user = { ...user, email }; + } + + return { + ...state, + user, + familyData, + shareSuggestionEmails: createShareSuggestionEmails( + user, + familyData, + state.collections, + ), + }; + } + case "setCollections": { const collections = action.collections; @@ -1225,7 +1252,7 @@ const deriveArchivedFileIDs = ( * Compute favorite file IDs from their dependencies. */ const deriveFavoriteFileIDs = ( - user: User, + user: LocalUser, collections: GalleryState["collections"], collectionFiles: GalleryState["collectionFiles"], unsyncedFavoriteUpdates: GalleryState["unsyncedFavoriteUpdates"], @@ -1278,7 +1305,7 @@ const createFileCollectionIDs = (files: EnteFile[]) => */ const deriveNormalCollectionSummaries = ( normalCollections: Collection[], - user: User, + user: LocalUser, trashItems: GalleryState["trashItems"], collectionFiles: GalleryState["collectionFiles"], hiddenFileIDs: GalleryState["hiddenFileIDs"], @@ -1378,7 +1405,7 @@ const pseudoCollectionOptionsForLatestFileAndCount = ( */ const deriveHiddenCollectionSummaries = ( hiddenCollections: Collection[], - user: User, + user: LocalUser, collectionFiles: GalleryState["collectionFiles"], ) => { const hiddenCollectionSummaries = createCollectionSummaries( @@ -1414,7 +1441,7 @@ const deriveUncategorizedCollectionSummaryID = ( PseudoCollectionID.uncategorizedPlaceholder; const createCollectionSummaries = ( - user: User, + user: LocalUser, collections: Collection[], collectionFiles: EnteFile[], ) => { @@ -1968,7 +1995,7 @@ const enqueuePendingSearchSuggestionsIfNeeded = ( * users who have shared a collection with the user. */ const constructUserIDToEmailMap = ( - user: User, + user: LocalUser, collections: GalleryState["collections"], ): Map => { const userIDToEmail = new Map(); @@ -1990,7 +2017,7 @@ const constructUserIDToEmailMap = ( * are trying to share albums with specific users. */ const createShareSuggestionEmails = ( - user: User, + user: LocalUser, familyData: FamilyData | undefined, collections: Collection[], ): string[] => [ diff --git a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx index badbe850b6..c20f378f7b 100644 --- a/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx +++ b/web/packages/new/photos/components/sidebar/TwoFactorSettings.tsx @@ -1,6 +1,9 @@ import LockIcon from "@mui/icons-material/Lock"; import { Stack, Typography } from "@mui/material"; -import { getData, setLSUser } from "ente-accounts/services/accounts-db"; +import { + savedPartialLocalUser, + updateSavedLocalUser, +} from "ente-accounts/services/accounts-db"; import { RowButton, RowButtonGroup, @@ -24,12 +27,9 @@ export const TwoFactorSettings: React.FC< const [isTwoFactorEnabled, setIsTwoFactorEnabled] = useState(false); useEffect(() => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const isTwoFactorEnabled = - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access - getData("user").isTwoFactorEnabled ?? false; - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument - setIsTwoFactorEnabled(isTwoFactorEnabled); + if (savedPartialLocalUser()?.isTwoFactorEnabled) { + setIsTwoFactorEnabled(true); + } }, []); useEffect(() => { @@ -37,11 +37,7 @@ export const TwoFactorSettings: React.FC< void (async () => { const isEnabled = await get2FAStatus(); setIsTwoFactorEnabled(isEnabled); - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument - await setLSUser({ - ...getData("user"), - isTwoFactorEnabled: isEnabled, - }); + updateSavedLocalUser({ isTwoFactorEnabled: isEnabled }); })(); }, [open]); @@ -112,8 +108,7 @@ const ManageDrawerContents: React.FC = ({ onRootClose }) => { const disable = async () => { await disable2FA(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument - await setLSUser({ ...getData("user"), isTwoFactorEnabled: false }); + updateSavedLocalUser({ isTwoFactorEnabled: undefined }); onRootClose(); }; diff --git a/web/packages/new/photos/components/utils/use-loading-bar.ts b/web/packages/new/photos/components/utils/use-loading-bar.ts index 6297443e73..c5c7152fed 100644 --- a/web/packages/new/photos/components/utils/use-loading-bar.ts +++ b/web/packages/new/photos/components/utils/use-loading-bar.ts @@ -12,7 +12,7 @@ import { type LoadingBarRef } from "react-top-loading-bar"; * loading bar. This hook returns these functions (and the ref). */ export const useLoadingBar = () => { - const loadingBarRef = useRef(undefined); + const loadingBarRef = useRef(null); const showLoadingBar = useCallback(() => { loadingBarRef.current?.continuousStart(); diff --git a/web/packages/new/photos/services/collection-summary.ts b/web/packages/new/photos/services/collection-summary.ts index a735dc8114..2876e305e1 100644 --- a/web/packages/new/photos/services/collection-summary.ts +++ b/web/packages/new/photos/services/collection-summary.ts @@ -19,8 +19,8 @@ export type CollectionSummaryAttribute = | "sharedIncomingCollaborator" | "sharedOnlyViaLink" | "system" - | "hideFromCollectionBar" | "archived" + | "hideFromCollectionBar" | "pinned"; /** diff --git a/web/packages/new/photos/services/collection.ts b/web/packages/new/photos/services/collection.ts index 6eeb0b1b5a..f231c64f70 100644 --- a/web/packages/new/photos/services/collection.ts +++ b/web/packages/new/photos/services/collection.ts @@ -1390,10 +1390,6 @@ export const createPublicURL = async ( body: JSON.stringify({ collectionID, ...attributes }), }); ensureOk(res); - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore return z.object({ result: RemotePublicURL }).parse(await res.json()).result; }; @@ -1429,10 +1425,6 @@ export const updatePublicURL = async ( body: JSON.stringify({ collectionID, ...updates }), }); ensureOk(res); - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore return z.object({ result: RemotePublicURL }).parse(await res.json()).result; }; diff --git a/web/packages/new/photos/services/export.ts b/web/packages/new/photos/services/export.ts index 33d24d9779..4654866fdb 100644 --- a/web/packages/new/photos/services/export.ts +++ b/web/packages/new/photos/services/export.ts @@ -172,7 +172,7 @@ interface CancellationStatus { class ExportService { private exportSettings: ExportSettings | undefined; // @ts-ignore - private exportInProgress: RequestCanceller = null; + private exportInProgress: RequestCanceller | null = null; private resync = true; private reRunNeeded = false; private exportRecordUpdater = new PromiseQueue(); @@ -336,7 +336,7 @@ class ExportService { async stopRunningExport() { try { log.info("user requested export cancellation"); - this.exportInProgress.exec(); + this.exportInProgress?.exec(); // @ts-ignore this.exportInProgress = null; this.reRunNeeded = false; diff --git a/web/packages/new/photos/services/file.ts b/web/packages/new/photos/services/file.ts index b25e8c782c..2c62346027 100644 --- a/web/packages/new/photos/services/file.ts +++ b/web/packages/new/photos/services/file.ts @@ -27,13 +27,13 @@ import { savedCollectionFiles } from "./photos-fdb"; const requestBatchSize = 1000; /** - * Perform an operation on batches, concurrently. + * Perform an operation on batches, serially. * * The given {@link items} are split into batches, each of * {@link requestBatchSize}. The provided operation is called on all these - * batches, in parallel, by using `Promise.all`. When all the operations are - * complete, the function returns with an array of results (one from each batch - * promise resolution). + * batches, one after the other. When all the operations are complete, the + * function returns with an array of results (one from each batch promise + * resolution). * * @param items The arbitrary items to break into {@link requestBatchSize} * batches. @@ -41,15 +41,16 @@ const requestBatchSize = 1000; * @param op The operation to perform on each batch. * * @returns A promise for an array of results, one from each batch operation. If - * any operations fails, then the promise rejects with the first failure reason. - * - * For more details see the documentation for the `Promise.all` primitive which - * this function uses. + * any operations fails, then the promise rejects with its failure reason. */ -export const batched = ( +export const batched = async ( items: T[], op: (batchItems: T[]) => Promise, -): Promise => Promise.all(batch(items, requestBatchSize).map(op)); +): Promise => { + const result: U[] = []; + for (const b of batch(items, requestBatchSize)) result.push(await op(b)); + return result; +}; /** * Return all normal (non-hidden) files present in our local database. diff --git a/web/packages/new/photos/services/ml/ml-data.ts b/web/packages/new/photos/services/ml/ml-data.ts index 28271ec65e..370e4002f9 100644 --- a/web/packages/new/photos/services/ml/ml-data.ts +++ b/web/packages/new/photos/services/ml/ml-data.ts @@ -171,10 +171,6 @@ export const fetchMLData = async ( try { const decryptedBytes = await decryptBlobBytes( remoteFileData, - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore file.key, ); const jsonString = await gunzip(decryptedBytes); @@ -199,14 +195,6 @@ const remoteMLDataFromJSONString = ( ) => { const raw = RawRemoteMLData.parse(JSON.parse(jsonString)); const parseResult = ParsedRemoteMLData.safeParse(raw); - // TODO: [Note: strict mode migration] - // - // This code is included in apps/photos where it causes spurious tsc failure - // since the photos app currently does not have the TypeScript strict mode - // enabled (unlike the current file). - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore const parsed = parseResult.success ? (parseResult.data as ParsedRemoteMLData) : undefined; diff --git a/web/packages/new/photos/services/photos-fdb.ts b/web/packages/new/photos/services/photos-fdb.ts index 357a30d909..a02b21a0a3 100644 --- a/web/packages/new/photos/services/photos-fdb.ts +++ b/web/packages/new/photos/services/photos-fdb.ts @@ -22,15 +22,7 @@ import type { TrashItem } from "./trash"; * Use {@link saveCollections} to update the database. */ export const savedCollections = async (): Promise => - // TODO: - // - // See: [Note: strict mode migration] - // - // We need to add the cast here, otherwise we get a tsc error when this - // file is imported in the photos app. - LocalCollections.parse( - (await localForage.getItem("collections")) ?? [], - ) as Collection[]; + LocalCollections.parse((await localForage.getItem("collections")) ?? []); /** * Replace the list of collections stored in our local database. diff --git a/web/packages/new/photos/services/search/worker.ts b/web/packages/new/photos/services/search/worker.ts index b088eef50f..8a3bee99cb 100644 --- a/web/packages/new/photos/services/search/worker.ts +++ b/web/packages/new/photos/services/search/worker.ts @@ -431,10 +431,6 @@ const defaultCityRadius = 10; const kmsPerDegree = 111.16; const isInsideLocationTag = (location: Location, locationTag: LocationTag) => - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore isWithinRadius(location, locationTag.centerPoint, locationTag.radius); const isInsideCity = (location: Location, city: City) => diff --git a/web/packages/new/photos/services/settings.ts b/web/packages/new/photos/services/settings.ts index d5ae3bf14d..aedda42384 100644 --- a/web/packages/new/photos/services/settings.ts +++ b/web/packages/new/photos/services/settings.ts @@ -2,7 +2,7 @@ * @file Storage (in-memory, local, remote) and update of various settings. */ -import { partialLocalUser } from "ente-accounts/services/user"; +import { savedPartialLocalUser } from "ente-accounts/services/accounts-db"; import { isDevBuild } from "ente-base/env"; import log from "ente-base/log"; import { updateShouldDisableCFUploadProxy } from "ente-gallery/services/upload"; @@ -195,10 +195,8 @@ const setSettingsSnapshot = (snapshot: Settings) => { */ export const isDevBuildAndUser = () => isDevBuild && isDevUserViaEmail(); -const isDevUserViaEmail = () => { - const user = partialLocalUser(); - return !!user?.email?.endsWith("@ente.io"); -}; +const isDevUserViaEmail = () => + !!savedPartialLocalUser()?.email?.endsWith("@ente.io"); /** * Persist the user's map enabled preference both locally and on remote. diff --git a/web/packages/new/photos/services/user-details.ts b/web/packages/new/photos/services/user-details.ts index 4d48d7449e..596112b8a1 100644 --- a/web/packages/new/photos/services/user-details.ts +++ b/web/packages/new/photos/services/user-details.ts @@ -1,4 +1,4 @@ -import { getData, setLSUser } from "ente-accounts/services/accounts-db"; +import { updateSavedLocalUser } from "ente-accounts/services/accounts-db"; import { ensureLocalUser } from "ente-accounts/services/user"; import { isDesktop } from "ente-base/app"; import { authenticatedRequestHeaders, ensureOk } from "ente-base/http"; @@ -177,18 +177,22 @@ export const logoutUserDetails = () => { }; /** - * Read in the locally persisted settings into memory, otherwise initiate a - * network requests to fetch the latest values (but don't wait for it to - * complete). + * Read in the locally persisted user details into memory and return them. + * + * If there are no locally persisted values, initiate a network requests to + * fetch the latest values (but don't wait for it to complete). * * This assumes that the user is already logged in. */ -export const initUserDetailsOrTriggerPull = async () => { +export const savedUserDetailsOrTriggerPull = async () => { const saved = await getKV("userDetails"); if (saved) { - setUserDetailsSnapshot(UserDetails.parse(saved)); + const userDetails = UserDetails.parse(saved); + setUserDetailsSnapshot(userDetails); + return userDetails; } else { void pullUserDetails(); + return undefined; } }; @@ -234,14 +238,39 @@ const setUserDetailsSnapshot = (snapshot: UserDetails) => { export const pullUserDetails = async () => { const userDetails = await getUserDetails(); await setKV("userDetails", userDetails); - setUserDetailsSnapshot(userDetails); // Update the email for the local storage user if needed (the user might've // changed their email on a different client). - if (ensureLocalUser().email != userDetails.email) { + const { email } = userDetails; + if (ensureLocalUser().email != email) { log.info("Updating user email to match fetched user details"); - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument - await setLSUser({ ...getData("user"), email: userDetails.email }); + updateSavedLocalUser({ email }); + } + + // The gallery listens for updates to userDetails, so a special case, do a + // deep equality check so as to not rerender it on redundant updates. + // + // [Note: Deep equal check] + // + // React uses `Object.is` to detect changes, which changes for arrays, + // objects and combinations thereof even if the underlying data is the same. + // + // In many cases, the code can be restructured to avoid this being a + // problem, or the rerender might be infrequent enough that it is not a + // problem. + // + // However, when used with useSyncExternalStore, there is an easy way to + // prevent this, by doing a preflight deep equality comparison. + // + // There are arguably faster libraries out there that'll do the deep + // equality check for us, but since it is an infrequent pattern in our code + // base currently, we just use the JSON serialization. + // + // Mark all cases that do this using this note's title so we can audit them + // if we move to a deep equality comparison library in the future. + + if (JSON.stringify(userDetails) != JSON.stringify(userDetailsSnapshot())) { + setUserDetailsSnapshot(userDetails); } }; diff --git a/web/packages/new/photos/services/user-entity/db.ts b/web/packages/new/photos/services/user-entity/db.ts index bc3e870c04..f9fa86ce39 100644 --- a/web/packages/new/photos/services/user-entity/db.ts +++ b/web/packages/new/photos/services/user-entity/db.ts @@ -53,10 +53,6 @@ export const saveEntities = (type: EntityType, items: LocalUserEntity[]) => export const savedEntities = async ( type: EntityType, ): Promise => - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore LocalUserEntity.array().parse((await getKV(entitiesKey(type))) ?? []); /** diff --git a/web/packages/new/photos/services/user-entity/index.ts b/web/packages/new/photos/services/user-entity/index.ts index ca9f50ac27..dd4de714fa 100644 --- a/web/packages/new/photos/services/user-entity/index.ts +++ b/web/packages/new/photos/services/user-entity/index.ts @@ -102,10 +102,6 @@ export type CGroup = Omit & { * Return the list of locally available cgroup user entities. */ export const savedCGroups = (): Promise => - // See: [Note: strict mode migration] - // - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore savedEntities("cgroup").then((es) => es.map((e) => ({ ...e, data: RemoteCGroupData.parse(e.data) })), );