diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..58ecbe99a --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +fastlane/metadata/**/images/**/*.png filter=lfs diff=lfs merge=lfs -text diff --git a/.github/actions/flutter-common/action.yml b/.github/actions/flutter-common/action.yml index cfeeac9b3..5978ee073 100644 --- a/.github/actions/flutter-common/action.yml +++ b/.github/actions/flutter-common/action.yml @@ -9,7 +9,7 @@ runs: uses: subosito/flutter-action@v2 with: channel: stable - flutter-version: 3.35.5 + flutter-version: 3.38.9 cache: true - name: Install Flutter dependencies diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5d11748ca..d7003cd2e 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,3 +1,7 @@ + + + + # Proposed Changes - @@ -5,13 +9,10 @@ ## Related Issue(s) -If applicable, please link to any related issues (`Closes #123`, -`Closes wger-project/other-repo#123`, `See also #123`, etc.) + + ## Please check that the PR fulfills these requirements - [ ] Tests for the changes have been added (for bug fixes / features) -- [ ] Set a 100 character limit in your editor/IDE to avoid white space diffs in the PR - (run `dart format .`) -- [ ] Updated/added relevant documentation (doc comments with `///`). -- [ ] Added relevant reviewers. +- [ ] Set a 100-character limit to avoid white space diffs (run `dart format .`) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index f07a7066e..c72d8e6f7 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} @@ -36,7 +36,7 @@ jobs: - name: Build APK run: flutter build apk --release - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-apk path: build/app/outputs/flutter-apk/app-release.apk @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} @@ -67,7 +67,7 @@ jobs: - name: Build AAB run: flutter build appbundle --release - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-aab path: build/app/outputs/bundle/release/app-release.aab \ No newline at end of file diff --git a/.github/workflows/build-apple.yml b/.github/workflows/build-apple.yml index 4faa73137..504680b62 100644 --- a/.github/workflows/build-apple.yml +++ b/.github/workflows/build-apple.yml @@ -11,16 +11,14 @@ jobs: runs-on: macos-latest steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} - # This seems to be related to https://github.com/actions/runner-images/issues/12758 - # Select appropriate Xcode version from - # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md#xcode - name: Xcode setup - run: | - sudo xcode-select --switch /Applications/Xcode_16.4.app + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable - name: Common flutter setup uses: ./.github/actions/flutter-common @@ -31,7 +29,7 @@ jobs: cd build/ios/iphoneos zip -r Runner.app.zip Runner.app - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-ios path: build/ios/iphoneos/Runner.app.zip @@ -41,7 +39,7 @@ jobs: runs-on: macos-latest steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} @@ -61,7 +59,7 @@ jobs: cd build/ios/archive zip -r Runner.xcarchive.zip Runner.xcarchive - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-ipa path: build/ios/archive/Runner.xcarchive.zip @@ -71,7 +69,7 @@ jobs: runs-on: macos-latest steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} @@ -84,7 +82,7 @@ jobs: cd build/macos/Build/Products/Release zip -r wger.app.zip wger.app - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-macos path: build/macos/Build/Products/Release/wger.app.zip \ No newline at end of file diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index a3d3e4616..84e01dd5f 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -25,7 +25,7 @@ jobs: # runner: ubuntu-24.04-arm steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} @@ -39,7 +39,7 @@ jobs: sudo apt install -y pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev --no-install-recommends flutter build linux --release tar -zcvf linux-${{ matrix.platform }}.tar.gz build/linux/${{ matrix.platform }}/release/bundle - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-linux path: | @@ -56,25 +56,30 @@ jobs: steps: - name: Checkout flatpak-flathub repo - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: repository: wger-project/de.wger.flutter - name: Bump version and update manifest run: | - pip install pyyaml toml packaging - git clone https://github.com/TheAppgineer/flatpak-flutter.git --branch 0.7.3 ../flatpak-flutter + git clone https://github.com/TheAppgineer/flatpak-flutter.git --branch 0.11.0 ../flatpak-flutter + pip install -r ../flatpak-flutter/requirements.txt python bump-wger-version.py ${{ inputs.ref }} ../flatpak-flutter/flatpak-flutter.py --app-module wger flatpak-flutter.json - - name: Push updated config to flathub repository - uses: cpina/github-action-push-to-another-repository@main - env: - SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} - with: - destination-github-username: wger-project - destination-repository-name: de.wger.flutter - user-email: github-actions@github.com - target-branch: release-${{ inputs.ref }} - create-target-branch-if-needed: true - commit-message: Update to ${{ inputs.ref }} + # TODO: this is currently commented out because it seems the action used below + # doesn't work anymore. This is probably not all that surprising as it + # isn't being developed anymore. This should be update so that the process + # works automatically again, till then this can be done manually. + + #- name: Push updated config to flathub repository + # uses: cpina/github-action-push-to-another-repository@main + # env: + # SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + # with: + # destination-github-username: wger-project + # destination-repository-name: de.wger.flutter + # user-email: github-actions@github.com + # target-branch: release-${{ inputs.ref }} + # create-target-branch-if-needed: true + # commit-message: Update to ${{ inputs.ref }} diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index adc64f809..56eb0947c 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -15,7 +15,7 @@ jobs: runs-on: windows-latest steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} @@ -25,7 +25,7 @@ jobs: - name: Build .exe run: flutter build windows --release - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: builds-windows path: build\windows\x64\runner\Release\wger.exe \ No newline at end of file diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 55efba777..eade216d9 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 # needed to push changes token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fe851a38..c1c1235f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,10 @@ on: pull_request: branches: [ master, ] paths: - - '**.dart' + - '**/*.dart' - 'pubspec.yaml' + - '.github/actions/flutter-common/action.yml' + - '.github/workflows/ci.yml' workflow_call: workflow_dispatch: @@ -16,8 +18,10 @@ jobs: test: name: Run tests runs-on: ubuntu-latest + env: + TZ: Europe/Berlin steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Common flutter setup uses: ./.github/actions/flutter-common diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 1b5b5f9a1..9afec0a30 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -61,12 +61,13 @@ jobs: - build_linux steps: - name: Checkout application - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: + lfs: true ref: ${{ github.event.inputs.version }} - name: Download builds - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v7 with: path: /tmp/ @@ -105,7 +106,7 @@ jobs: # - build_apple # steps: # - name: Checkout application - # uses: actions/checkout@v5 + # uses: actions/checkout@v6 # with: # ref: feature/build-process # # ref: ${{ github.event.inputs.version }} @@ -114,7 +115,7 @@ jobs: # uses: ./.github/actions/flutter-common # # - name: Download builds - # uses: actions/download-artifact@v5 + # uses: actions/download-artifact@v7 # with: # path: /tmp/ # @@ -133,7 +134,7 @@ jobs: steps: - name: Download builds - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v7 - name: Make Github release uses: softprops/action-gh-release@v2 diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml new file mode 100644 index 000000000..d3fba326c --- /dev/null +++ b/.github/workflows/screenshots.yml @@ -0,0 +1,157 @@ +name: Update screenshots +on: + workflow_dispatch: + +jobs: + screenshots_apple: + name: 'iOS' + runs-on: macos-latest + steps: + - uses: actions/checkout@v6 + + - name: Common flutter setup + uses: ./.github/actions/flutter-common + + - name: Install CocoaPods + run: | + cd ios + pod install || true + cd .. + + - name: Boot iOS simulator + id: boot + run: | + SIMULATOR=$(xcrun simctl list devices available | awk -F '[()]' '/iPhone 17/{print $2; exit}') + echo "SIMULATOR=$SIMULATOR" >> $GITHUB_ENV + xcrun simctl boot "$SIMULATOR" || true + open -a Simulator || true + n=0; until xcrun simctl bootstatus "$SIMULATOR" -b || [ $n -ge 60 ]; do sleep 1; n=$((n+1)); done + + - name: Generate screenshots + run: | + flutter drive --driver=test_driver/screenshot_driver.dart --target=integration_test/make_screenshots_test.dart --dart-define=DEVICE_TYPE=iOSPhoneBig -d "$SIMULATOR" + + - name: Upload screenshots + uses: actions/upload-artifact@v6 + with: + name: screenshots-ios + path: fastlane/metadata/ios/**/images/iPhone 6.9/*.png + + screenshots_android: + name: 'Android - ${{ matrix.device.name }}' + runs-on: ubuntu-latest + strategy: + matrix: + device: + - name: "Phone" + profile: pixel_7_pro + device_type: androidPhone + folder: phoneScreenshots + - name: "Tablet 7in" + profile: 7in WSVGA (Tablet) + device_type: androidTabletSmall + folder: sevenInchScreenshots + - name: "Tablet 10in" + profile: pixel_tablet + device_type: androidTabletBig + folder: tenInchScreenshots + steps: + - uses: actions/checkout@v6 + + - name: Common flutter setup + uses: ./.github/actions/flutter-common + + - name: Enable KVM + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm + + - name: Accept Android SDK licenses + run: yes | sdkmanager --licenses || true + + # Free up disk space on the runner. List taken from + # https://github.com/flathub-infra/vorarbeiter/blob/main/.github/workflows/build.yml + # + # If needed, consult the list of available software for other candidates to remove: + # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md + - name: Free up disk space + run: | + sudo swapoff -a || true + sudo rm -rf /opt/ghc /usr/local/.ghcup || true + sudo rm -rf /opt/hostedtoolcache/CodeQL || true + sudo rm -rf /opt/hostedtoolcache/PyPy + sudo rm -rf /usr/local/julia* /usr/share/java /usr/share/kotlinc + sudo rm -rf /opt/hostedtoolcache/go /opt/az /opt/microsoft /opt/pipx + sudo rm -rf /usr/share/miniconda /home/runner/.rustup /home/packer/.rustup /home/runneradmin/.rustup + sudo rm -rf /etc/skel/.rustup /opt/hostedtoolcache/node /opt/google-cloud-sdk + sudo rm -rf /usr/share/az_* /opt/google /usr/lib/firefox /usr/local/aws-* + sudo rm -rf /usr/libexec/gcc /opt/actionarchivecache /opt/hostedtoolcache/Ruby + sudo rm -rf /var/lib/mysql /usr/local/n + sudo rm -rf /swapfile || true + sudo rm -rf /usr/share/dotnet /usr/share/swift + sudo rm -rf /usr/local/share/boost /usr/local/share/powershell + sudo rm -rf /usr/lib/google-cloud-sdk + sudo rm -rf /usr/local/graalvm /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + sudo rm -rf /usr/lib/dotnet /usr/lib/php /usr/share/mysql + sudo rm -rf /usr/lib/llvm-* + sudo rm -rf /usr/lib/mono + sudo apt-get clean || true + sudo rm -rf /var/lib/apt/lists/* + + - name: Generate screenshots + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 36 + target: google_apis + arch: x86_64 + profile: ${{ matrix.device.profile }} + emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + disable-animations: true + script: | + flutter drive --driver=test_driver/screenshot_driver.dart --target=integration_test/make_screenshots_test.dart --dart-define=DEVICE_TYPE=${{ matrix.device.device_type }} + + - name: Upload screenshots + uses: actions/upload-artifact@v6 + with: + name: screenshots-android-${{ matrix.device.folder }} + path: fastlane/metadata/android/**/images/${{ matrix.device.folder }}/*.png + + commit_screenshots: + name: 'Commit and push' + needs: + - screenshots_apple + - screenshots_android + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Download all screenshot artifacts + uses: actions/download-artifact@v7 + with: + path: screenshots + + - name: Merge artifacts into fastlane/metadata + run: | + set -euo pipefail + rsync --archive --checksum --itemize-changes "screenshots/screenshots-android-phoneScreenshots/" fastlane/metadata/android/ + rsync --archive --checksum --itemize-changes "screenshots/screenshots-android-sevenInchScreenshots/" fastlane/metadata/android/ + rsync --archive --checksum --itemize-changes "screenshots/screenshots-android-tenInchScreenshots/" fastlane/metadata/android/ + rsync --archive --checksum --itemize-changes "screenshots/screenshots-ios/" fastlane/metadata/ios/ + + - name: Commit screenshots to repository + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add fastlane/metadata/android fastlane/metadata/ios || true + if git diff --staged --quiet; then + echo "No new or changed screenshots to commit." + else + BRANCH=$(git rev-parse --abbrev-ref HEAD) + git commit -m "Update screenshots" + git push origin HEAD:"${BRANCH}" + fi \ No newline at end of file diff --git a/AUTHORS.md b/AUTHORS.md index 43571c487..12f2f5229 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -2,22 +2,58 @@ Thank you all for contributing to the project, you are true heroes! 🫶 +*Generated on 2026-01-18* + +--- + ## Contributors -- thisisyoussef - [https://github.com/thisisyoussef](https://github.com/thisisyoussef) - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Yashas H Majmudar - [https://github.com/yashas-hm](https://github.com/yashas-hm) - Github-actions - [https://github.com/invalid-email-address](https://github.com/invalid-email-address) +- unknown - [https://github.com/elias170105](https://github.com/elias170105) +- Diya Hituvalli - [https://github.com/dhituval](https://github.com/dhituval) +- dhituval - [https://github.com/dhituval](https://github.com/dhituval) +- john +- ImgBotApp - [https://github.com/ImgBotApp](https://github.com/ImgBotApp) +- DhruvSingh19 - [https://github.com/DhruvSingh19](https://github.com/DhruvSingh19) +- Anupthor007 - [https://github.com/Anupthor007](https://github.com/Anupthor007) +- lenka369 +- lenka369 - [https://github.com/lenka369](https://github.com/lenka369) +- Branislav Nohaj +- Branislav Nohaj - [https://github.com/Oknarb258](https://github.com/Oknarb258) +- Kyle Hekkers - [https://github.com/List0734](https://github.com/List0734) +- GhostInTheNN - [https://github.com/GhostInTheNN](https://github.com/GhostInTheNN) +- Arthur De Neyer - [https://github.com/GaecKo](https://github.com/GaecKo) +- Arthur De Neyer +- Max Pylypenko - [https://github.com/3mpee3mpee](https://github.com/3mpee3mpee) +- rishad.n - [https://github.com/rishadn-gif](https://github.com/rishadn-gif) +- Nelumbo Nucifera - [https://github.com/nelumboy](https://github.com/nelumboy) +- Patrik - [https://github.com/P4TR1K1305](https://github.com/P4TR1K1305) +- Iman Karimian - [https://github.com/IK7D3](https://github.com/IK7D3) +- Afzal Momin - [https://github.com/afzal09](https://github.com/afzal09) +- Ninguém Mesmo +- Dieter Plaetinck - [https://github.com/Dieterbe](https://github.com/Dieterbe) +- RahulShaw321 +- shravya - [https://github.com/shraavv](https://github.com/shraavv) +- kobo +- burny0202 - [https://github.com/Shininess8816](https://github.com/Shininess8816) +- Rohitdhall987 - [https://github.com/Rohitdhall987](https://github.com/Rohitdhall987) +- Yashas H Majmudar - [https://github.com/yashas-hm](https://github.com/yashas-hm) +- Yashas H Majmudar - [https://github.com/yashas-hm](https://github.com/yashas-hm) +- thisisyoussef - [https://github.com/thisisyoussef](https://github.com/thisisyoussef) +- Peter Thaler - Christijan - [https://github.com/ChrispyM](https://github.com/ChrispyM) - Jackpkn - [https://github.com/Jackpkn](https://github.com/Jackpkn) - sangharshdeveloper - [https://github.com/Sangharshdeveloper](https://github.com/Sangharshdeveloper) -- ImgBotApp - [https://github.com/ImgBotApp](https://github.com/ImgBotApp) -- தமிழ்நேரம் - [https://github.com/TamilNeram](https://github.com/TamilNeram) +- Ayush Sourav Jagaty - [https://github.com/AyushJagaty](https://github.com/AyushJagaty) +- eyjhb - [https://github.com/eyJhb](https://github.com/eyJhb) +- AyushJagaty - [https://github.com/AyushJagaty](https://github.com/AyushJagaty) +- Ayush Sourav Jagaty +- தமிழ்நேரம் - Xianglin Zeng - [https://github.com/FutureYL3](https://github.com/FutureYL3) - Arya Pratap Singh - [https://github.com/ARYPROGRAMMER](https://github.com/ARYPROGRAMMER) - ARYPROGRAMMER - [https://github.com/ARYPROGRAMMER](https://github.com/ARYPROGRAMMER) -- Dieter Plaetinck - [https://github.com/Dieterbe](https://github.com/Dieterbe) -- szalas - [https://github.com/szalas](https://github.com/szalas) +- szalas - dan - [https://github.com/sizzlesloth](https://github.com/sizzlesloth) - DVPeer - [https://github.com/Denpeer](https://github.com/Denpeer) - Marco Rimoldi - [https://github.com/marcor](https://github.com/marcor) @@ -29,7 +65,7 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Milksheyke - [https://github.com/sheyaln](https://github.com/sheyaln) - Abhishek Saini - [https://github.com/Abhisheksainii](https://github.com/Abhisheksainii) - dimii27 - [https://github.com/dimii27](https://github.com/dimii27) -- Antonis-geo - [https://github.com/Antonis-geo](https://github.com/Antonis-geo) +- Antonis-geo - artchiee - [https://github.com/artchiee](https://github.com/artchiee) - artchiee - [https://github.com/artchiee](https://github.com/artchiee) - Jigar Prajapati - [https://github.com/Jiggy9](https://github.com/Jiggy9) @@ -89,7 +125,7 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Thilina Herath - [https://github.com/thilinatnt](https://github.com/thilinatnt) - ToldYouThat - Yair Chen - [https://github.com/chenyair](https://github.com/chenyair) -- henok3878 - [https://github.com/henok3878](https://github.com/henok3878) +- henok3878 - [https://github.com/h3nock](https://github.com/h3nock) - Patrick Witter - [https://github.com/patrickwitter](https://github.com/patrickwitter) - ton-An - [https://github.com/ton-An](https://github.com/ton-An) - Prakash Shekhar - [https://github.com/prakash-shekhar](https://github.com/prakash-shekhar) @@ -104,61 +140,174 @@ Thank you all for contributing to the project, you are true heroes! 🫶 ## Translators +### Amharic + +- henok3878 - [https://github.com/h3nock](https://github.com/h3nock) + +### Arabic + +- Jaafer Mahfoud - [https://github.com/mysterI0s](https://github.com/mysterI0s) +- Yrooma - [https://github.com/Yrooma](https://github.com/Yrooma) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Hanaa - [https://github.com/hn-n](https://github.com/hn-n) +- Ahmed zein - [https://github.com/Ahmed-Zein](https://github.com/Ahmed-Zein) + +### Catalan + +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Zixu Sun - [https://github.com/ziixu](https://github.com/ziixu) +- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) + +### Chinese (Simplified Han script) + +- KW Lam - [https://github.com/loksonlkw](https://github.com/loksonlkw) +- Wen QI - [https://github.com/kevinwenyu](https://github.com/kevinwenyu) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Herb Huang + +### Chinese (Simplified) + +- 纪颖志 - [https://github.com/yingzhi0808](https://github.com/yingzhi0808) +- Yi-Han Hsiung - [https://github.com/AaronHsiung](https://github.com/AaronHsiung) +- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) +- Eddie Tang - [https://github.com/EDED2314](https://github.com/EDED2314) +- Jing - [https://github.com/jingcheng16](https://github.com/jingcheng16) +- sr-c - [https://github.com/sr-c](https://github.com/sr-c) +- tony - [https://github.com/tonyxxliu](https://github.com/tonyxxliu) +- yiter + ### Chinese (Traditional Han script) +- Chia Wen Tsai - [https://github.com/cjwind](https://github.com/cjwind) +- Paulkit - [https://github.com/Paulkit](https://github.com/Paulkit) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) - Peter Dave Hello - [https://github.com/PeterDaveHello](https://github.com/PeterDaveHello) -### Polish +### Chinese (Traditional) -- Karol Solecki - [https://github.com/karolsol](https://github.com/karolsol) -- Piotr Strebski - [https://github.com/strebski](https://github.com/strebski) -- Dawid Panyło -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Marcin Schoenknecht -- Patryk - [https://github.com/byakurau](https://github.com/byakurau) -- Michał Homza - [https://github.com/HagiaHaya](https://github.com/HagiaHaya) -- Jacob - [https://github.com/devzom](https://github.com/devzom) - -### Serbian - -- Mladen Trišić - [https://github.com/mtrisic](https://github.com/mtrisic) - -### Dutch - -- Joey Haalboom - [https://github.com/JoeyHaalboom](https://github.com/JoeyHaalboom) - -### Russian - -- Алексей Курышко - [https://github.com/alexkuryshko](https://github.com/alexkuryshko) -- lightningcpu - [https://github.com/lightningcpu](https://github.com/lightningcpu) -- Кирилл Александрович Злобин - [https://github.com/gungstarbeiter](https://github.com/gungstarbeiter) -- Ivan Katkov - [https://github.com/Porphyrion](https://github.com/Porphyrion) -- Nikita Epifanov +- hugoalh +- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) +- Chung-Wei Chung - [https://github.com/webb790709](https://github.com/webb790709) +- HY Cheng ### Croatian - Milo Ivir - [https://github.com/milotype](https://github.com/milotype) +- Neno Horvat - [https://github.com/ness993](https://github.com/ness993) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - SMilohanic - [https://github.com/sandimilohanic](https://github.com/sandimilohanic) -### Portuguese +### Czech -- Edson Wolf - [https://github.com/edsonblwolf](https://github.com/edsonblwolf) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Wilton Rodrigues -- Guilherme Salomão - [https://github.com/salomaoparkour](https://github.com/salomaoparkour) -- Bruno de Moura - [https://github.com/bruunomooura](https://github.com/bruunomooura) -- Dalton Scavassa -- Stefan Taiguara - [https://github.com/Teitei011](https://github.com/Teitei011) -- Eduardo Menges Mattje - [https://github.com/EduMenges](https://github.com/EduMenges) -- Edu Cavalheiro - [https://github.com/EduCavalheiro](https://github.com/EduCavalheiro) -- João Goulart - [https://github.com/usehalter](https://github.com/usehalter) +- Fjuro - [https://github.com/Fjuro](https://github.com/Fjuro) +- Fjuro +- CaptainDolphy - [https://github.com/CaptainDolphy](https://github.com/CaptainDolphy) +- Roman Kalivoda - [https://github.com/RKCZ](https://github.com/RKCZ) + +### Dutch + +- Floris C +- Joey Haalboom - [https://github.com/JoeyHaalboom](https://github.com/JoeyHaalboom) + +### English + +- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) +- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) + +### Filipino + +- john + +### French + +- Benjamin Voisin - [https://github.com/benjamin-voisin](https://github.com/benjamin-voisin) +- Justin Pinheiro - [https://github.com/justin-pinheiro](https://github.com/justin-pinheiro) +- Paul Bonneau - [https://github.com/paulbonneau](https://github.com/paulbonneau) +- Martin Derleth +- Vocatis - [https://github.com/Vocatis](https://github.com/Vocatis) +- Kilian +- Enzo Besnainou +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- William - [https://github.com/WilliamR312](https://github.com/WilliamR312) +- florent4014 - [https://github.com/florent4014](https://github.com/florent4014) +- Xav Basco +- David Olewski - [https://github.com/Arigowin](https://github.com/Arigowin) +- yoyomax80400 - [https://github.com/yoyomax80400](https://github.com/yoyomax80400) +- loued - [https://github.com/Loued](https://github.com/Loued) +- Célian +- MrSniikyz - [https://github.com/BabyGeek](https://github.com/BabyGeek) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- J. Lavoie +- Antoine Vibien - [https://github.com/r1llettes](https://github.com/r1llettes) +- Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) + +### German + +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- Elias Lang - [https://github.com/elias170105](https://github.com/elias170105) +- Panoloo - [https://github.com/Panoloo](https://github.com/Panoloo) +- johannes heintz - [https://github.com/Randalix](https://github.com/Randalix) +- Tobias Maschek - [https://github.com/jemx](https://github.com/jemx) +- Richard Mrosk - [https://github.com/EtheriousNight](https://github.com/EtheriousNight) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- BlinderUhu - [https://github.com/BlinderUhu](https://github.com/BlinderUhu) +- kvnrmnn - [https://github.com/rmnn92](https://github.com/rmnn92) +- Victor Jouhoff - [https://github.com/jouhoffv](https://github.com/jouhoffv) +- m4skedbyte +- Axel Steinbrecher +- Christoph Suesser - [https://github.com/TheFitzZZ](https://github.com/TheFitzZZ) +- Luis Lüscher - [https://github.com/lslschr](https://github.com/lslschr) +- mondstern +- J. Lavoie +- Marvin M - [https://github.com/M123-dev](https://github.com/M123-dev) +- Lydia +- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) + +### Greek + +- Dimitrys Meliates +- Antonis-geo + +### Hebrew + +- Omer I.S - [https://github.com/omeritzics](https://github.com/omeritzics) +- n,rdo +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Tomer Ben Rachel - [https://github.com/TomerPacific](https://github.com/TomerPacific) + +### Hindi + +- pavan arun bagwe - [https://github.com/pavanb0](https://github.com/pavanb0) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Debayan Sutradhar - [https://github.com/rnayabed](https://github.com/rnayabed) + +### Hungarian + +- Greg + +### Indonesian + +- Nurfitra Pujo Santiko - [https://github.com/NurfitraPujo](https://github.com/NurfitraPujo) +- Arga Pandika - [https://github.com/argakast](https://github.com/argakast) +- aryakdaniswara - [https://github.com/aryakdaniswara](https://github.com/aryakdaniswara) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Debi Maulana Ahsan Halla +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) ### Italian +- Alessio - [https://github.com/menitz](https://github.com/menitz) +- Federico - [https://github.com/FedericoVaga](https://github.com/FedericoVaga) +- Luca Galli - [https://github.com/Lvcaa](https://github.com/Lvcaa) +- clafalco - [https://github.com/clafalco](https://github.com/clafalco) +- adriano onorati - [https://github.com/banphi](https://github.com/banphi) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Matteo Morari - [https://github.com/matteomorari](https://github.com/matteomorari) - Antenore Gatta - [https://github.com/antenore](https://github.com/antenore) - Gab Gat -- Anonymous - [https://github.com/weblate](https://github.com/weblate) - Federico Pierantoni - [https://github.com/F3FFO](https://github.com/F3FFO) - oarion - [https://github.com/oarion](https://github.com/oarion) - Alessandro Faucci - [https://github.com/Dhy19971](https://github.com/Dhy19971) @@ -171,38 +320,69 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - mondstern - Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) -### French +### Japanese -- William - [https://github.com/WilliamR312](https://github.com/WilliamR312) -- florent4014 - [https://github.com/florent4014](https://github.com/florent4014) +- Ryohei Morimoto - [https://github.com/Ryohei-Caulked](https://github.com/Ryohei-Caulked) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Xav Basco -- David Olewski - [https://github.com/Arigowin](https://github.com/Arigowin) -- yoyomax80400 - [https://github.com/yoyomax80400](https://github.com/yoyomax80400) -- loued - [https://github.com/Loued](https://github.com/Loued) -- Célian -- MrSniikyz - [https://github.com/BabyGeek](https://github.com/BabyGeek) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- J. Lavoie -- Antoine Vibien - [https://github.com/r1llettes](https://github.com/r1llettes) -- Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) +- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) +- sasukeiscool - [https://github.com/sasukeiscool](https://github.com/sasukeiscool) +- yiter -### Ukrainian +### Korean -- Максим Горпиніч - [https://github.com/Maksim2005UA](https://github.com/Maksim2005UA) +- jyk0619 - [https://github.com/jyk0619](https://github.com/jyk0619) +- kobo + +### Norwegian Bokmål + +- Morten R. Bjørklund - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Максим Горпиніч +- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) + +### Persian + +- Mahmuoud Salehi + +### Polish + +- saalaataa - [https://github.com/saalaataa](https://github.com/saalaataa) +- Kamil Maciąg +- Y - [https://github.com/dioxyg](https://github.com/dioxyg) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Dan - [https://github.com/Kefir2105](https://github.com/Kefir2105) -- Dan -- Tymofii Lytvynenko -- Artem - [https://github.com/defaultpage](https://github.com/defaultpage) +- Karol Solecki - [https://github.com/karolsol](https://github.com/karolsol) +- Piotr Strebski - [https://github.com/strebski](https://github.com/strebski) +- Dawid Panyło +- Marcin Schoenknecht +- Patryk - [https://github.com/byakurau](https://github.com/byakurau) +- Michał Homza - [https://github.com/HagiaHaya](https://github.com/HagiaHaya) +- Jacob - [https://github.com/devzom](https://github.com/devzom) + +### Portuguese + +- Ninguém Mesmo +- caue Antunes Siqueira - [https://github.com/caue-siqueira](https://github.com/caue-siqueira) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- The_Quintino - [https://github.com/paqgamer](https://github.com/paqgamer) +- Edson Wolf - [https://github.com/edsonblwolf](https://github.com/edsonblwolf) +- Wilton Rodrigues +- Guilherme Salomão - [https://github.com/salomaoparkour](https://github.com/salomaoparkour) +- Bruno de Moura - [https://github.com/bruunomooura](https://github.com/bruunomooura) +- Dalton Scavassa +- Stefan Taiguara - [https://github.com/Teitei011](https://github.com/Teitei011) +- Eduardo Menges Mattje - [https://github.com/EduMenges](https://github.com/EduMenges) +- Edu Cavalheiro - [https://github.com/EduCavalheiro](https://github.com/EduCavalheiro) +- João Goulart - [https://github.com/usehalter](https://github.com/usehalter) ### Portuguese (Brazil) +- Diego Menezes +- Rafael Acurcio - [https://github.com/faellacurcio](https://github.com/faellacurcio) +- Marina Aranha - [https://github.com/mariaranha](https://github.com/mariaranha) +- faciolihenrique - [https://github.com/faciolihenrique](https://github.com/faciolihenrique) +- Jênisson Alves de Andrade +- Anonymous - [https://github.com/weblate](https://github.com/weblate) - Ricardo Lima - [https://github.com/rhrlima](https://github.com/rhrlima) - Clerton Araujo - [https://github.com/clertonraf](https://github.com/clertonraf) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) - Wilton Rodrigues - Nao interessa - Lucas Mezêncio - [https://github.com/lucasmezencio](https://github.com/lucasmezencio) @@ -210,102 +390,50 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Luigi Henrick Feitoza Silva - [https://github.com/luigihenrick](https://github.com/luigihenrick) - João Hortêncio Moraes - [https://github.com/joaohortencio](https://github.com/joaohortencio) -### Tamil +### Portuguese (Portugal) -- தமிழ்நேரம் - [https://github.com/TamilNeram](https://github.com/TamilNeram) - -### Chinese (Simplified Han script) - -- Herb Huang - -### Hindi - -- pavan arun bagwe - [https://github.com/pavanb0](https://github.com/pavanb0) +- Ruben Sardinha +- Ninguém Mesmo +- FilipeAb - [https://github.com/FilipeAb](https://github.com/FilipeAb) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Debayan Sutradhar - [https://github.com/rnayabed](https://github.com/rnayabed) -### Turkish +### Romanian -- Oğuz Ersen - [https://github.com/oersen](https://github.com/oersen) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Cem Avcı - [https://github.com/cem256](https://github.com/cem256) -- Oğuz Ersen -- Cenk Cidecio - [https://github.com/ccidecio](https://github.com/ccidecio) -- ToldYouThat +- Vlad Bejenaru - [https://github.com/vladbejenaru](https://github.com/vladbejenaru) +- Bogdan Bujor - [https://github.com/qSharpy](https://github.com/qSharpy) +- dimii27 - [https://github.com/dimii27](https://github.com/dimii27) -### German +### Russian -- kvnrmnn - [https://github.com/rmnn92](https://github.com/rmnn92) +- Iskander - [https://github.com/iskanderCabbie](https://github.com/iskanderCabbie) +- Aleksandr - [https://github.com/alexmikheen](https://github.com/alexmikheen) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Victor Jouhoff - [https://github.com/jouhoffv](https://github.com/jouhoffv) -- m4skedbyte -- Axel Steinbrecher -- Christoph Suesser - [https://github.com/TheFitzZZ](https://github.com/TheFitzZZ) -- Luis Lüscher - [https://github.com/lslschr](https://github.com/lslschr) -- mondstern -- J. Lavoie -- Marvin M - [https://github.com/M123-dev](https://github.com/M123-dev) -- Lydia -- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) +- Алексей Курышко - [https://github.com/alexkuryshko](https://github.com/alexkuryshko) +- lightningcpu - [https://github.com/lightningcpu](https://github.com/lightningcpu) +- Кирилл Александрович Злобин - [https://github.com/gungstarbeiter](https://github.com/gungstarbeiter) +- Ivan Katkov - [https://github.com/Porphyrion](https://github.com/Porphyrion) +- Nikita Epifanov -### Indonesian - -- aryakdaniswara - [https://github.com/aryakdaniswara](https://github.com/aryakdaniswara) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Debi Maulana Ahsan Halla -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - -### Catalan - -- Zixu Sun - [https://github.com/ziixu](https://github.com/ziixu) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) - -### Chinese (Simplified) - -- 纪颖志 - [https://github.com/jiyingzhi](https://github.com/jiyingzhi) -- Yi-Han Hsiung - [https://github.com/AaronHsiung](https://github.com/AaronHsiung) -- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) -- Eddie Tang - [https://github.com/EDED2314](https://github.com/EDED2314) -- Jing - [https://github.com/jingcheng16](https://github.com/jingcheng16) -- sr-c - [https://github.com/sr-c](https://github.com/sr-c) -- tony - [https://github.com/tonyxxliu](https://github.com/tonyxxliu) -- yiter - -### Greek - -- Dimitrys Meliates -- Antonis-geo - [https://github.com/Antonis-geo](https://github.com/Antonis-geo) - -### Czech - -- Fjuro - [https://github.com/Fjuro](https://github.com/Fjuro) -- Fjuro -- CaptainDolphy - [https://github.com/CaptainDolphy](https://github.com/CaptainDolphy) -- Roman Kalivoda - [https://github.com/RKCZ](https://github.com/RKCZ) - -### Arabic +### Serbian - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Hanaa - [https://github.com/hn-n](https://github.com/hn-n) -- Ahmed zein - [https://github.com/Ahmed-Zein](https://github.com/Ahmed-Zein) +- Mladen Trišić - [https://github.com/mtrisic](https://github.com/mtrisic) -### Hebrew +### Slovak -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- n,rdo -- Tomer Ben Rachel - [https://github.com/TomerPacific](https://github.com/TomerPacific) - -### Japanese - -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) -- sasukeiscool - [https://github.com/sasukeiscool](https://github.com/sasukeiscool) -- yiter +- Patrik - [https://github.com/P4TR1K1305](https://github.com/P4TR1K1305) ### Spanish +- MarcMeRu11 - [https://github.com/marcmeru11](https://github.com/marcmeru11) +- v7mbz +- Pablo Sarabia Ortiz - [https://github.com/psarabiaortiz](https://github.com/psarabiaortiz) +- Daniel +- Alejandro Castro +- SirWerto +- Jose David Villegas (JoseDv1) - [https://github.com/JoseDv1](https://github.com/JoseDv1) +- Marco Diaz - [https://github.com/maditmx](https://github.com/maditmx) +- Oscar González - [https://github.com/ogrydc](https://github.com/ogrydc) - Anonymous - [https://github.com/weblate](https://github.com/weblate) - Roberto Iglesias - [https://github.com/iglesiasroberto14](https://github.com/iglesiasroberto14) - c06c3abb8f @@ -317,33 +445,35 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - martingetzel - [https://github.com/martingetzel](https://github.com/martingetzel) -### Chinese (Traditional) - -- hugoalh -- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) -- Chung-Wei Chung - [https://github.com/webb790709](https://github.com/webb790709) -- HY Cheng - -### Portuguese (Portugal) +### Tamil +- தமிழ்நேரம் - Anonymous - [https://github.com/weblate](https://github.com/weblate) -### Romanian +### Thai -- Bogdan Bujor - [https://github.com/qSharpy](https://github.com/qSharpy) -- dimii27 - [https://github.com/dimii27](https://github.com/dimii27) +- Wiputdanai Pinkaew (Kang) - [https://github.com/kknownn](https://github.com/kknownn) -### English +### Turkish -- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) -- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Oğuz Ersen - [https://github.com/oersen](https://github.com/oersen) - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- Cem Avcı - [https://github.com/cem256](https://github.com/cem256) +- Oğuz Ersen +- Cenk Cidecio - [https://github.com/ccidecio](https://github.com/ccidecio) +- ToldYouThat -### Norwegian Bokmål +### Ukrainian +- Максим Горпиніч - [https://github.com/maksim2005UKR](https://github.com/maksim2005UKR) +- Максим Горпиніч - [https://github.com/Maksim2005UA2](https://github.com/Maksim2005UA2) +- Максим Горпиніч - [https://github.com/Maksim2005UA](https://github.com/Maksim2005UA) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Максим Горпиніч - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) - -### Amharic - -- henok3878 - [https://github.com/henok3878](https://github.com/henok3878) +- Максим Горпиніч +- Dan - [https://github.com/Kefir2105](https://github.com/Kefir2105) +- Dan +- Tymofii Lytvynenko +- Artem - [https://github.com/defaultpage](https://github.com/defaultpage) diff --git a/Gemfile.lock b/Gemfile.lock index a12426e74..fb27ec6d1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,18 +1,15 @@ GEM remote: https://rubygems.org/ specs: - CFPropertyList (3.0.7) - base64 - nkf - rexml + CFPropertyList (3.0.8) abbrev (0.1.2) - addressable (2.8.7) - public_suffix (>= 2.0.2, < 7.0) + addressable (2.8.8) + public_suffix (>= 2.0.2, < 8.0) artifactory (3.0.17) atomos (0.1.3) aws-eventstream (1.4.0) - aws-partitions (1.1163.0) - aws-sdk-core (3.232.0) + aws-partitions (1.1216.0) + aws-sdk-core (3.242.0) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.992.0) aws-sigv4 (~> 1.9) @@ -20,23 +17,25 @@ GEM bigdecimal jmespath (~> 1, >= 1.6.1) logger - aws-sdk-kms (1.112.0) - aws-sdk-core (~> 3, >= 3.231.0) + aws-sdk-kms (1.122.0) + aws-sdk-core (~> 3, >= 3.241.4) aws-sigv4 (~> 1.5) - aws-sdk-s3 (1.199.0) - aws-sdk-core (~> 3, >= 3.231.0) + aws-sdk-s3 (1.213.0) + aws-sdk-core (~> 3, >= 3.241.4) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.5) aws-sigv4 (1.12.1) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) - base64 (0.3.0) - bigdecimal (3.2.3) + base64 (0.2.0) + benchmark (0.5.0) + bigdecimal (4.0.1) claide (1.1.0) colored (1.2) colored2 (3.1.2) commander (4.6.0) highline (~> 2.0.0) + csv (3.3.5) declarative (0.0.20) digest-crc (0.7.0) rake (>= 12.0.0, < 14.0.0) @@ -44,7 +43,7 @@ GEM dotenv (2.8.1) emoji_regex (3.2.3) excon (0.112.0) - faraday (1.10.4) + faraday (1.10.5) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) @@ -56,14 +55,14 @@ GEM faraday-rack (~> 1.0) faraday-retry (~> 1.0) ruby2_keywords (>= 0.0.4) - faraday-cookie_jar (0.0.7) + faraday-cookie_jar (0.0.8) faraday (>= 0.8.0) - http-cookie (~> 1.0.0) + http-cookie (>= 1.0.0) faraday-em_http (1.0.0) faraday-em_synchrony (1.0.1) faraday-excon (1.1.0) faraday-httpclient (1.0.1) - faraday-multipart (1.1.1) + faraday-multipart (1.2.0) multipart-post (~> 2.0) faraday-net_http (1.0.2) faraday-net_http_persistent (1.2.0) @@ -73,15 +72,19 @@ GEM faraday_middleware (1.2.1) faraday (~> 1.0) fastimage (2.4.0) - fastlane (2.228.0) + fastlane (2.232.1) CFPropertyList (>= 2.3, < 4.0.0) + abbrev (~> 0.1.2) addressable (>= 2.8, < 3.0.0) artifactory (~> 3.0) - aws-sdk-s3 (~> 1.0) + aws-sdk-s3 (~> 1.197) babosa (>= 1.0.3, < 2.0.0) - bundler (>= 1.12.0, < 3.0.0) + base64 (~> 0.2.0) + benchmark (>= 0.1.0) + bundler (>= 1.17.3, < 5.0.0) colored (~> 1.2) commander (~> 4.6) + csv (~> 3.3) dotenv (>= 2.1.1, < 3.0.0) emoji_regex (>= 0.1, < 4.0) excon (>= 0.71.0, < 1.0.0) @@ -93,16 +96,20 @@ GEM gh_inspector (>= 1.1.2, < 2.0.0) google-apis-androidpublisher_v3 (~> 0.3) google-apis-playcustomapp_v1 (~> 0.1) - google-cloud-env (>= 1.6.0, < 2.0.0) + google-cloud-env (>= 1.6.0, <= 2.1.1) google-cloud-storage (~> 1.31) highline (~> 2.0) http-cookie (~> 1.0.5) json (< 3.0.0) jwt (>= 2.1.0, < 3) + logger (>= 1.6, < 2.0) mini_magick (>= 4.9.4, < 5.0.0) multipart-post (>= 2.0.0, < 3.0.0) + mutex_m (~> 0.3.0) naturally (~> 2.2) + nkf (~> 0.2.0) optparse (>= 0.1.1, < 1.0.0) + ostruct (>= 0.1.0) plist (>= 3.1.0, < 4.0.0) rubyzip (>= 2.0.0, < 3.0.0) security (= 0.1.5) @@ -119,38 +126,40 @@ GEM fastlane-sirp (1.0.0) sysrandom (~> 1.0) gh_inspector (1.1.3) - google-apis-androidpublisher_v3 (0.54.0) - google-apis-core (>= 0.11.0, < 2.a) - google-apis-core (0.11.3) + google-apis-androidpublisher_v3 (0.96.0) + google-apis-core (>= 0.15.0, < 2.a) + google-apis-core (0.18.0) addressable (~> 2.5, >= 2.5.1) - googleauth (>= 0.16.2, < 2.a) - httpclient (>= 2.8.1, < 3.a) + googleauth (~> 1.9) + httpclient (>= 2.8.3, < 3.a) mini_mime (~> 1.0) + mutex_m representable (~> 3.0) retriable (>= 2.0, < 4.a) - rexml - google-apis-iamcredentials_v1 (0.17.0) - google-apis-core (>= 0.11.0, < 2.a) - google-apis-playcustomapp_v1 (0.13.0) - google-apis-core (>= 0.11.0, < 2.a) - google-apis-storage_v1 (0.31.0) - google-apis-core (>= 0.11.0, < 2.a) + google-apis-iamcredentials_v1 (0.26.0) + google-apis-core (>= 0.15.0, < 2.a) + google-apis-playcustomapp_v1 (0.17.0) + google-apis-core (>= 0.15.0, < 2.a) + google-apis-storage_v1 (0.60.0) + google-apis-core (>= 0.15.0, < 2.a) google-cloud-core (1.8.0) google-cloud-env (>= 1.0, < 3.a) google-cloud-errors (~> 1.0) - google-cloud-env (1.6.0) - faraday (>= 0.17.3, < 3.0) + google-cloud-env (2.1.1) + faraday (>= 1.0, < 3.a) google-cloud-errors (1.5.0) - google-cloud-storage (1.47.0) + google-cloud-storage (1.58.0) addressable (~> 2.8) digest-crc (~> 0.4) - google-apis-iamcredentials_v1 (~> 0.1) - google-apis-storage_v1 (~> 0.31.0) + google-apis-core (>= 0.18, < 2) + google-apis-iamcredentials_v1 (~> 0.18) + google-apis-storage_v1 (>= 0.42) google-cloud-core (~> 1.6) - googleauth (>= 0.16.2, < 2.a) + googleauth (~> 1.9) mini_mime (~> 1.0) - googleauth (1.8.1) - faraday (>= 0.17.3, < 3.a) + googleauth (1.11.2) + faraday (>= 1.0, < 3.a) + google-cloud-env (~> 2.1) jwt (>= 1.4, < 3.0) multi_json (~> 1.11) os (>= 0.9, < 2.0) @@ -161,28 +170,29 @@ GEM httpclient (2.9.0) mutex_m jmespath (1.6.2) - json (2.15.0) + json (2.18.1) jwt (2.10.2) base64 logger (1.7.0) mini_magick (4.13.2) mini_mime (1.1.5) - multi_json (1.17.0) + multi_json (1.19.1) multipart-post (2.4.1) mutex_m (0.3.0) nanaimo (0.4.0) naturally (2.3.0) nkf (0.2.0) - optparse (0.6.0) + optparse (0.8.1) os (1.1.4) + ostruct (0.6.3) plist (3.7.2) - public_suffix (6.0.2) - rake (13.3.0) + public_suffix (7.0.2) + rake (13.3.1) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) uber (< 0.2.0) - retriable (3.1.2) + retriable (3.2.1) rexml (3.4.4) rouge (3.28.0) ruby2_keywords (0.0.5) @@ -225,6 +235,7 @@ PLATFORMS arm64-darwin-22 arm64-darwin-23 arm64-darwin-24 + arm64-darwin-25 x86_64-linux DEPENDENCIES @@ -235,4 +246,4 @@ DEPENDENCIES mutex_m BUNDLED WITH - 2.6.9 + 2.7.2 diff --git a/analysis_options.yaml b/analysis_options.yaml index b7abc7073..79c8d7cad 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -14,15 +14,16 @@ analyzer: # Allow self-reference to deprecated members (we do this because otherwise we have # to annotate every member in every test, assert, etc, when we deprecate something) deprecated_member_use_from_same_package: ignore - # Ignore analyzer hints for updating pubspecs when using Future or - # Stream and not importing dart:async - # Please see https://github.com/flutter/flutter/pull/24528 for details. - sdk_version_async_exported_from_core: ignore + plugins: + - riverpod_lint formatter: page_width: 100 trailing_commas: preserve +plugins: + riverpod_lint: 3.1.0 + linter: rules: # These rules are documented on and in the same order as diff --git a/android/app/build.gradle b/android/app/build.gradle index da8fd1dc7..1f912e63b 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -39,7 +39,7 @@ android { defaultConfig { // Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "de.wger.flutter" - minSdkVersion = flutter.minSdkVersion + minSdkVersion flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName diff --git a/android/build.gradle b/android/build.gradle index ddb8ad0bd..0069540ff 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -17,19 +17,19 @@ subprojects { afterEvaluate { project -> if (project.extensions.findByName("android") != null) { Integer pluginCompileSdk = project.android.compileSdk - if (pluginCompileSdk != null && pluginCompileSdk < 31) { + if (pluginCompileSdk != null && pluginCompileSdk < 34) { project.logger.error( "Warning: Overriding compileSdk version in Flutter plugin: " + project.name + " from " + pluginCompileSdk - + " to 31 (to work around https://issuetracker.google.com/issues/199180389)." + + " to 36 (to work around https://issuetracker.google.com/issues/199180389)." + "\nIf there is not a new version of " + project.name + ", consider filing an issue against " + project.name + " to increase their compileSdk to the latest (otherwise try updating to the latest version)." ) project.android { - compileSdk 34 + compileSdk 36 } } } diff --git a/android/gradle.properties b/android/gradle.properties index 399dfe116..f622fd8f5 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,4 +1,3 @@ org.gradle.jvmargs=-Xmx2048M -android.enableR8=true android.useAndroidX=true android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index d5ce57cba..472e5d511 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-all.zip \ No newline at end of file diff --git a/android/settings.gradle b/android/settings.gradle index ed68c2f27..d7f1a0449 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -18,8 +18,8 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.6.0" apply false - id "org.jetbrains.kotlin.android" version "2.1.20" apply false + id "com.android.application" version "8.13.1" apply false + id "org.jetbrains.kotlin.android" version "2.2.21" apply false } include ":app" diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/ar/images/phoneScreenshots/01 - dashboard.png index 8eb00d169..f4f248bf1 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/ar/images/phoneScreenshots/02 - workout detail.png index 58eae4117..7412654aa 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/ar/images/phoneScreenshots/03 - gym mode.png index 612cd926e..133ea34aa 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/ar/images/phoneScreenshots/04 - measurements.png index efa1a8448..81f964835 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ar/images/phoneScreenshots/05 - nutritional plan.png index 1c4efb403..226dd530e 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/ar/images/phoneScreenshots/06 - weight.png index 055c9baa7..4ddfba629 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ar/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ar/images/sevenInchScreenshots/01 - dashboard.png index 0dec5182f..0f1cca491 100644 Binary files a/fastlane/metadata/android/ar/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ar/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ar/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ar/images/sevenInchScreenshots/02 - workout detail.png index b4df3945f..eb50f0b87 100644 Binary files a/fastlane/metadata/android/ar/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ar/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ar/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ar/images/sevenInchScreenshots/03 - gym mode.png index a3ae957c3..731cdc67f 100644 Binary files a/fastlane/metadata/android/ar/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ar/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ar/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ar/images/sevenInchScreenshots/04 - measurements.png index 598ac9e13..1aed17078 100644 Binary files a/fastlane/metadata/android/ar/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ar/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ar/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ar/images/sevenInchScreenshots/05 - nutritional plan.png index d839cb6db..c44f5a7c9 100644 Binary files a/fastlane/metadata/android/ar/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ar/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ar/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ar/images/sevenInchScreenshots/06 - weight.png index 072019067..1c64c0c42 100644 Binary files a/fastlane/metadata/android/ar/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ar/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ar/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ar/images/tenInchScreenshots/01 - dashboard.png index a6ff13b7f..0ed17dedb 100644 Binary files a/fastlane/metadata/android/ar/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ar/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ar/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ar/images/tenInchScreenshots/02 - workout detail.png index 8cbe77bbd..192c5b045 100644 Binary files a/fastlane/metadata/android/ar/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ar/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ar/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ar/images/tenInchScreenshots/03 - gym mode.png index 283e811a3..1b182728e 100644 Binary files a/fastlane/metadata/android/ar/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ar/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ar/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ar/images/tenInchScreenshots/04 - measurements.png index 4cafbbdb8..c3782fc0e 100644 Binary files a/fastlane/metadata/android/ar/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ar/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ar/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ar/images/tenInchScreenshots/05 - nutritional plan.png index 8bd892d8a..8c9c177c6 100644 Binary files a/fastlane/metadata/android/ar/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ar/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ar/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ar/images/tenInchScreenshots/06 - weight.png index 38ec821b1..9a18f7ce4 100644 Binary files a/fastlane/metadata/android/ar/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ar/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ca/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/ca/images/phoneScreenshots/01 - dashboard.png index 39025648e..82b709835 100644 Binary files a/fastlane/metadata/android/ca/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ca/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ca/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/ca/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/ca/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ca/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ca/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/ca/images/phoneScreenshots/03 - gym mode.png index 4b8639680..f291ba069 100644 Binary files a/fastlane/metadata/android/ca/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ca/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ca/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/ca/images/phoneScreenshots/04 - measurements.png index cb69065f6..bd2ac86b2 100644 Binary files a/fastlane/metadata/android/ca/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/ca/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ca/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ca/images/phoneScreenshots/05 - nutritional plan.png index cc1193b57..c0a1184bb 100644 Binary files a/fastlane/metadata/android/ca/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ca/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ca/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/ca/images/phoneScreenshots/06 - weight.png index 6c0edb307..e5bc69d37 100644 Binary files a/fastlane/metadata/android/ca/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/ca/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ca/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ca/images/sevenInchScreenshots/01 - dashboard.png index 98aafa06e..8d1a6f766 100644 Binary files a/fastlane/metadata/android/ca/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ca/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ca/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ca/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/ca/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ca/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ca/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ca/images/sevenInchScreenshots/03 - gym mode.png index 397b822c0..22f138968 100644 Binary files a/fastlane/metadata/android/ca/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ca/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ca/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ca/images/sevenInchScreenshots/04 - measurements.png index 30f8b3fad..29c53468b 100644 Binary files a/fastlane/metadata/android/ca/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ca/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ca/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ca/images/sevenInchScreenshots/05 - nutritional plan.png index 0fa2f6ebd..4b112b32b 100644 Binary files a/fastlane/metadata/android/ca/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ca/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ca/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ca/images/sevenInchScreenshots/06 - weight.png index 08b0ef86a..14582b308 100644 Binary files a/fastlane/metadata/android/ca/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ca/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ca/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ca/images/tenInchScreenshots/01 - dashboard.png index 6414d7f16..f8a6475c3 100644 Binary files a/fastlane/metadata/android/ca/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ca/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ca/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ca/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/ca/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ca/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ca/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ca/images/tenInchScreenshots/03 - gym mode.png index 2e4a8ac04..886e97acc 100644 Binary files a/fastlane/metadata/android/ca/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ca/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ca/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ca/images/tenInchScreenshots/04 - measurements.png index 6b4a3f5de..8d3a33fb0 100644 Binary files a/fastlane/metadata/android/ca/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ca/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ca/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ca/images/tenInchScreenshots/05 - nutritional plan.png index c4f54fff4..ebc2d0a9a 100644 Binary files a/fastlane/metadata/android/ca/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ca/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ca/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ca/images/tenInchScreenshots/06 - weight.png index 99fe9f20d..77849fcea 100644 Binary files a/fastlane/metadata/android/ca/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ca/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/cs-CZ/full_description.txt b/fastlane/metadata/android/cs-CZ/full_description.txt index e19ae29b2..5ac83153f 100644 --- a/fastlane/metadata/android/cs-CZ/full_description.txt +++ b/fastlane/metadata/android/cs-CZ/full_description.txt @@ -1,39 +1,40 @@ -Od milovníků fitness, pro milovníky fitness – organizujte své zdraví s aplikací WGER, vaším workout managerem! +Od milovníků fitness pro milovníky fitness – dejte svému zdraví řád s aplikací WGER, vaším Workout Managerem! -Už máte svou oblíbenou fitness aplikaci a máte rádi vytváření vlastních sportovních plánů? Nezáleží, jaký typ sportovce jste – všichni máme jednu věc společnou: rádi sledujeme své zdraví <3 +Už jste našli svou fitness aplikaci číslo jedna a baví vás vytvářet si vlastní tréninkové rutiny? Nezáleží na tom, jaký typ sportovního nadšence jste – všichni máme něco společného: rádi sledujeme svá zdravotní data <3 -Takže vás neodsuzujeme za to, že si stále vedete svou fitness cestu se svým praktickým tréninkovým deníkem, ale vítáme vás ve 21. století! +Neodsuzujeme vás za to, že si svou fitness cestu stále vedete v papírovém tréninkovém deníku, ale vítejte v roce 2026! -Vyvinuli jsme 100% svobodný digitální fitness tracker vašeho zdraví, který obsahuje pouze to důležité, abychom vám ulehčili život. Začněte, trénujte a sledujte svůj pokrok! +Vyvinuli jsme pro vás 100% bezplatný digitální fitness tracker, který obsahuje jen ty nejdůležitější funkce, aby vám usnadnil život. Začněte, trénujte a oslavujte svůj pokrok! -wger je open-source projekt, kterému záleží na následujícím: -* Vaše tělo -* Vaše tréninky -* Váš postup -* Vaše data +wger je open-source projekt, kterému záleží na: + +* Vašem těle +* Vašich trénincích +* Vašem pokroku +* Vašich datech Vaše tělo: -Přestaňte googlit recepty vašich oblíbených pokrmů – zvolte si svá denní jídla z více než 78 000 produktů a sledujte jejich výživové hodnoty. Přidávejte jídla do svého výživového plánu a kontrolujte svou dietu v kalendáři. +Už nemusíte googlit složení svých oblíbených dobrot – vyberte si svá denní jídla z více než 78 000 produktů a sledujte jejich nutriční hodnoty. Přidávejte jídla do výživového plánu a udržujte si přehled o své dietě v kalendáři. Vaše tréninky: -Jen vy víte, co je nejlepší pro vaše tělo. Vytvářejte vlastní tréninky z více než 200 různých cvičení. Použijte režim posilovny, který vás provede vaším tréninkem, a zaznamenávejte svou váhu jediným klepnutím. - -Váš postup: -Už nikdy neztratíte přehled o svých cílech. Sledujte svou váhu a ukládejte si statistiky. +Vy sami nejlépe víte, co vaše tělo potřebuje. Sestavte si vlastní tréninky z neustále rostoucí nabídky více než 200 různých cviků. Poté využijte „Gym Mode“, který vás provede tréninkem, zatímco si budete zaznamenávat váhy jediným klepnutím. +Váš pokrok: +Už nikdy neztraťte své cíle z dohledu. Sledujte svou hmotnost a veďte si statistiky. Vaše data: -wger je váš personalizovaný fitness deník – vaše data jsou ale opravdu vaše. Použijte rozhraní REST API pro přístup a vytvořte s ním něco skvělého! -Upozorňujeme: toto je bezplatná aplikace založená na dodatečném financování a nežádáme vás o peníze. Více než to je navíc aplikace komunitním projektem, který neustále roste. Buďte tedy připraveni na nové funkce! +wger je váš osobní fitness deník – ale vaše data patří jen vám. Využijte REST API pro přístup k nim a tvořte s nimi úžasné věci! -#OpenSource – co to znamená? +Upozornění: Tato bezplatná aplikace není financována z externích zdrojů a nežádáme vás o peníze. Navíc se jedná o komunitní projekt, který neustále roste. Buďte tedy připraveni na nové funkce v podstatě kdykoliv! +#OpenSource – co to vlastně znamená? -Open Source znamená, že je celý zdrojový kód této aplikace a serveru, se kterým komunikuje, kompletně otevřený a dostupný komukoli: -* Chcete spustit wger na vlastním serveru nebo ve vaší místní posilovně? Hurá do toho! -* Chybí vám funkce a chtěli byste ji implementovat? Žádný problém! -* Chcete si zkontrolovat, že vaše data neposíláme nikam pryč? Samozřejmě! +Open Source znamená, že celý zdrojový kód této aplikace i serveru, se kterým komunikuje, je volně dostupný komukoli: -Připojte se k naší komunitě a staňte se součástí nadšenců do sportu a IT nerdů z celého světa. Na aplikaci neustále pracujeme a upravujeme a optimalizujeme ji pro naše potřeby. Moc rádi uslyšíme váš názor, kdykoli se tedy můžete připojit a přispět svými nápady a přáními! +* Chcete provozovat wger na vlastním serveru pro sebe nebo svou místní posilovnu? Do toho! +* Chybí vám nějaká funkce a chcete ji sami naprogramovat? Začněte hned! +* Chcete si ověřit, že se vaše data nikam neodesílají? Můžete! --> zdrojové kódy najdete zde: https://github.com/wger-project --> zeptejte se na cokoli nebo nás jen pozdravte na našem Discord serveru: https://discord.gg/rPWFv6W +Připojte se k naší komunitě a staňte se součástí světa sportovních nadšenců a IT geeků. Neustále pracujeme na úpravách a optimalizaci aplikace podle našich potřeb. Budeme nadšení za vaši zpětnou vazbu – klidně se kdykoliv zapojte a přispějte svými nápady a přáními! + +-> Zdrojový kód najdete zde: https://github.com/wger-project +-> Zeptejte se na cokoli nebo nás jen pozdravte na Discordu: https://discord.gg/rPWFv6W diff --git a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/01 - dashboard.png index e08a11443..d18caf07b 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/03 - gym mode.png index eee98421a..8d483e037 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/04 - measurements.png index 52a5ced7e..d210d2d5f 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/05 - nutritional plan.png index afb31f54f..d28125f4e 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/06 - weight.png index 48159e4b5..8ec1ccbb4 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/cs-CZ/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/01 - dashboard.png index 85f6530ee..f8c13cf1a 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/03 - gym mode.png index ee6e10133..194957a5e 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/04 - measurements.png index 53814b4bc..30b54fea8 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/05 - nutritional plan.png index ce95448ab..9adfd4e90 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/06 - weight.png index 3ff9b25aa..50bcfe6b7 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/cs-CZ/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/01 - dashboard.png index 444c00e9d..9011abf53 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/03 - gym mode.png index e0b1bb7fd..392de33e9 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/04 - measurements.png index 51ba6ad07..185273542 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/05 - nutritional plan.png index 5ad0b00f8..ec4d2450c 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/06 - weight.png index db0dceba7..eec398529 100644 Binary files a/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/cs-CZ/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/01 - dashboard.png index 0254ffc59..dec81da1f 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/02 - workout detail.png index 93071ff8e..1bb224df7 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/03 - gym mode.png index c2b4159b3..c612c64e4 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/04 - measurements.png index f3521ca67..a805f3d84 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/05 - nutritional plan.png index d44812b0d..8ee5db080 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/06 - weight.png index e7f3711a4..45676e780 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/01 - dashboard.png index 7f9ab10d1..78484d313 100644 Binary files a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/02 - workout detail.png index 2ed363537..0160410b4 100644 Binary files a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/03 - gym mode.png index 36d05986c..65b704c8d 100644 Binary files a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/04 - measurements.png index b03ac571b..eafd2fde4 100644 Binary files a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/05 - nutritional plan.png index f85c55ea0..8db07e932 100644 Binary files a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/06 - weight.png index 92154af37..c62585d13 100644 Binary files a/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/de-DE/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/01 - dashboard.png index b1a9020ef..f70cf320e 100644 Binary files a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/02 - workout detail.png index 9c38dd788..d6fc014f8 100644 Binary files a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/03 - gym mode.png index 9e251576a..4a2df199b 100644 Binary files a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/04 - measurements.png index 32e2b06d4..3010c03f4 100644 Binary files a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/05 - nutritional plan.png index abfaa4cff..d1e5a2855 100644 Binary files a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/06 - weight.png index 35f9b9b06..65fdaf12a 100644 Binary files a/fastlane/metadata/android/de-DE/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/de-DE/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/el-GR/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/el-GR/images/phoneScreenshots/01 - dashboard.png index 6f78cbed6..095f3b20a 100644 Binary files a/fastlane/metadata/android/el-GR/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/el-GR/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/el-GR/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/el-GR/images/phoneScreenshots/02 - workout detail.png index 278bcebe4..81a0eb870 100644 Binary files a/fastlane/metadata/android/el-GR/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/el-GR/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/el-GR/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/el-GR/images/phoneScreenshots/03 - gym mode.png index 991026317..d921e51f4 100644 Binary files a/fastlane/metadata/android/el-GR/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/el-GR/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/el-GR/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/el-GR/images/phoneScreenshots/04 - measurements.png index 2a7eb1e99..b3b66e289 100644 Binary files a/fastlane/metadata/android/el-GR/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/el-GR/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/el-GR/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/el-GR/images/phoneScreenshots/05 - nutritional plan.png index 51130f48e..d94539a02 100644 Binary files a/fastlane/metadata/android/el-GR/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/el-GR/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/el-GR/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/el-GR/images/phoneScreenshots/06 - weight.png index fd079f02e..89e015199 100644 Binary files a/fastlane/metadata/android/el-GR/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/el-GR/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/01 - dashboard.png index ff81630be..2a07bbf09 100644 Binary files a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/02 - workout detail.png index 220793e73..809bd7f12 100644 Binary files a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/03 - gym mode.png index 91c92b49c..756a238b1 100644 Binary files a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/04 - measurements.png index 281361282..5660c25a9 100644 Binary files a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/05 - nutritional plan.png index d6910c55a..59b9a8808 100644 Binary files a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/06 - weight.png index a452de1c6..87600380b 100644 Binary files a/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/el-GR/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/01 - dashboard.png index 264c899b4..334aa7edb 100644 Binary files a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/02 - workout detail.png index a1404272c..afde1632b 100644 Binary files a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/03 - gym mode.png index 0b631fe1d..900761de1 100644 Binary files a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/04 - measurements.png index 54fd3dfe4..f36928b0e 100644 Binary files a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/05 - nutritional plan.png index c4702dc80..cdd4b45af 100644 Binary files a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/06 - weight.png index f6c034b89..403cdd324 100644 Binary files a/fastlane/metadata/android/el-GR/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/el-GR/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/en-US/images/icon.png b/fastlane/metadata/android/en-US/images/icon.png index b3f0f84c1..8ae9257aa 100644 Binary files a/fastlane/metadata/android/en-US/images/icon.png and b/fastlane/metadata/android/en-US/images/icon.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/01 - dashboard.png index 5f66b00a4..bc9c147d9 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/03 - gym mode.png index 475be41d2..15c479160 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/04 - measurements.png index 6f43309ac..46a842ba0 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/05 - nutritional plan.png index 41c0d2008..a3e102420 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/06 - weight.png index 4b6ad3b87..66cb69d1a 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/01 - dashboard.png index 4e56a3faf..bc2c9b20b 100644 Binary files a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/03 - gym mode.png index 191f32fe4..eb5b3f6e7 100644 Binary files a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/04 - measurements.png index 4e7d43bd5..e6dffb7ae 100644 Binary files a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/05 - nutritional plan.png index 7adc9b6b7..43b62e876 100644 Binary files a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/06 - weight.png index de1b35bc3..1441e7f1f 100644 Binary files a/fastlane/metadata/android/en-US/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/en-US/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/en-US/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/en-US/images/tenInchScreenshots/01 - dashboard.png index 72a6bd5d2..f8ef53566 100644 Binary files a/fastlane/metadata/android/en-US/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/en-US/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/en-US/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/en-US/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/en-US/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/en-US/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/en-US/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/en-US/images/tenInchScreenshots/03 - gym mode.png index 5fb16610c..7e734e7e8 100644 Binary files a/fastlane/metadata/android/en-US/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/en-US/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/en-US/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/en-US/images/tenInchScreenshots/04 - measurements.png index 6d1575cd7..7109717e0 100644 Binary files a/fastlane/metadata/android/en-US/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/en-US/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/en-US/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/en-US/images/tenInchScreenshots/05 - nutritional plan.png index deed19699..6f30413e0 100644 Binary files a/fastlane/metadata/android/en-US/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/en-US/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/en-US/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/en-US/images/tenInchScreenshots/06 - weight.png index aeeabd16d..ee4fbed7b 100644 Binary files a/fastlane/metadata/android/en-US/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/en-US/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/es-ES/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/es-ES/images/phoneScreenshots/01 - dashboard.png index 59fa1c1b2..d8bbc4978 100644 Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/es-ES/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/es-ES/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/es-ES/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/es-ES/images/phoneScreenshots/03 - gym mode.png index a240130b3..7c20aa941 100644 Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/es-ES/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/es-ES/images/phoneScreenshots/04 - measurements.png index 0af0d6ef7..3dd7ba1e7 100644 Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/es-ES/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/es-ES/images/phoneScreenshots/05 - nutritional plan.png index dc4bea3fd..3c74701a3 100644 Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/es-ES/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/es-ES/images/phoneScreenshots/06 - weight.png index 7e2d07cc1..d84ce58b2 100644 Binary files a/fastlane/metadata/android/es-ES/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/es-ES/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/01 - dashboard.png index 9513da98a..a4564cfb6 100644 Binary files a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/03 - gym mode.png index 4080120d7..cf6dc3466 100644 Binary files a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/04 - measurements.png index 42c0a3ed4..127edf6fa 100644 Binary files a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/05 - nutritional plan.png index 5cfc09fc6..7948dd3b6 100644 Binary files a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/06 - weight.png index 8883ab314..5c270e395 100644 Binary files a/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/es-ES/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/01 - dashboard.png index 2c2e0ab1d..ae162306f 100644 Binary files a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/03 - gym mode.png index 4da9907b7..08bf74926 100644 Binary files a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/04 - measurements.png index aa86ff02f..10bc36448 100644 Binary files a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/05 - nutritional plan.png index 109ca1abb..bb34cae86 100644 Binary files a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/06 - weight.png index 9d05c13b6..1bd42aae4 100644 Binary files a/fastlane/metadata/android/es-ES/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/es-ES/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/fa-IR/full_description.txt b/fastlane/metadata/android/fa-IR/full_description.txt new file mode 100644 index 000000000..06ac653fe --- /dev/null +++ b/fastlane/metadata/android/fa-IR/full_description.txt @@ -0,0 +1,57 @@ +از طرف ما علاقمندان به تناسب اندام، به شما علاقمندان دیگر! +سلامتتون رو با برنامه مدیریت ورزش WGER، متحول کنید. + +آیا اپلیکیشن موردعلاقه‌تون رو پیدا کردید و دوست دارید برنامه ورزشی مخصوص به خودتون رو درست کنید؟ +مهم نیست چه جور ورزشکاری هستید، ما همه در یک چیز مشترکیم: عاشق اینیم که پیشرفت و داده‌های سلامتی‌مون رو دنبال کنیم! 3> + +ما شما رو به خاطر اینکه هنوز هم سفر ورزشیتون رو با یک دفترچه کوچک پیش می‌برید قضاوت نمی‌کنیم... +اما خب، سلام به قرن ۲۰ ام! + +ما یک اپلیکیشن شمارشگر و گزارش وضعیت سلامت و تناسب اندام ۱۰۰٪ رایگان برای شما ساخته‌ایم +که با خلاصه شدن در مهم‌ترین قابلیت‌ها، زندگی رو براتون ساده می‌کنه. +شروع کنید، به ورزش ادامه بدید و پیشرفتتون رو جشن بگیرید! + +WGER یک پروژه متن‌باز است و همه‌چیز درباره این چهار مورد است: + +بدن شما + +تمرین‌های شما + +پیشرفت شما + +داده‌های شما + +بدن شما: +دیگه نیازی نیست مواد تشکیل‌دهنده خوراکی موردعلاقه‌تون رو گوگل کنید! +وعده‌های غذایی روزانه‌تون رو از بین بیش از ۷۸,۰۰۰ محصول انتخاب کنید و ارزش غذایی آن‌ها رو ببینید. وعده‌ها رو به برنامه غذایی اضافه کنید و در تقویم، یک نمای کلی از رژیم‌تون داشته باشید. + +تمرین‌های شما: +شما بهتر می‌دونید چه چیزی برای بدنتون مناسبه. +تمرین‌های شخصی خودتون رو از بین ۲۰۰ حرکت متنوع و در حال افزایش بسازید. +بعدش از "حالت باشگاه" استفاده کنید تا شما رو قدم‭ ‬به قدم در طول تمرین راهنمایی کند، در حالی که با یک کلیک وزن‌هایی که زدید رو ثبت می‌کنید. + +پیشرفت شما: +هیچ‌وقت هدف‌هاتون رو فراموش نکنید. +وزن‌تون رو زیر نظر بگیرید و آمار پیشرفت‌تون رو ذخیره کنید. + +داده‌های شما: +WGER دفترچه خاطرات ورزشی شخصی‌شده شماست – اما این شما هستید که صاحب داده‌هایتان هستید. +از REST API استفاده کنید و با داده‌هاتون کارهای فوق‌العاده انجام بدید. + +یک نکته مهم: این اپ رایگان بر اساس بودجه اضافی نیست و از شما کمک مالی نمی‌خواهیم. +بلکه یک پروژه جامعه‌محور است که دائماً در حال رشد است. پس خودتون رو برای قابلیت‌های جدید هیجان‌زده کنید! + +متن‌باز – این یعنی چی؟ +یعنی تمام کد این برنامه و سرورش رایگان است و در دسترس همه قرار دارد: + +می‌خواهید WGER رو روی سرور خودتون برای باشگاه محل اجرا کنید؟ حله! + +یک قابلیت خاص کمه و می‌خواهید خودتون اضافهش کنید؟ از همین امروز شروع کنید! + +می‌خواهید مطمئن بشوید که اطلاعاتی جایی فرستاده نمی‌شه؟ می‌توانید بررسی کنید! + +به جامعه ما بپیوندید! بخشی از علاقه‌مندان به ورزش و متخصصان فناوری از سراسر جهان شوید. +ما دائماً در حال تنظیم و بهینه‌سازی اپلیکیشن متناسب با نیازهایمون هستیم. عاشق مشارکت و نظرات شما هستیم، پس در هر زمانی خوش آمدید که به ما ملحق شوید و آرزوها و ایده‌هاتون رو با ما در میان بگذارید! + +-> کد منبع را در اینجا پیدا کنید: https://github.com/wger-project +-> سوال بپرسید یا فقط سلامی بکنید، سرور دیسکورد ما: https://discord.gg/rPWFv6W diff --git a/fastlane/metadata/android/fa-IR/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/01 - dashboard.png new file mode 100644 index 000000000..d717b65d8 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0b27ab74a55746fbbf922e05e71fbfc18b8f88572a6fccf8bc1b0bd24414b5d +size 190320 diff --git a/fastlane/metadata/android/fa-IR/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/02 - workout detail.png new file mode 100644 index 000000000..29b37f6ef --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:938a0afc358c213445ff3a468dd95646da41d39dd0a0ac108fdeea72edccea3a +size 201871 diff --git a/fastlane/metadata/android/fa-IR/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/03 - gym mode.png new file mode 100644 index 000000000..abebb2b19 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36077cee7807fc7ef45d056eca4219a6400abe17a41df198bf7884414cb1ca85 +size 161885 diff --git a/fastlane/metadata/android/fa-IR/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/04 - measurements.png new file mode 100644 index 000000000..e971ec7c8 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb7992868cc6c99f7ae24fe91da8f1f099da4d638f446be995cb093b23bea050 +size 90511 diff --git a/fastlane/metadata/android/fa-IR/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/05 - nutritional plan.png new file mode 100644 index 000000000..658c4d192 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:331e2e36cb1137a104e7052aa4f54422600a2ca642ede1a68a02461c7b089e31 +size 196174 diff --git a/fastlane/metadata/android/fa-IR/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/06 - weight.png new file mode 100644 index 000000000..986002710 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/phoneScreenshots/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5bb31787ef8ec907114f8709ba47f2ca6614fa752538506072598867319bb37 +size 179208 diff --git a/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/01 - dashboard.png new file mode 100644 index 000000000..361f59f5c --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f4eb5f12b5e89761d5873f3439e09176a553b6748247f3df306e511224fab82 +size 66401 diff --git a/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/02 - workout detail.png new file mode 100644 index 000000000..161757d71 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d5aff5c0b946c5c23cc92eacccda91faca508bfd80089b9ff20c936189b1550 +size 46900 diff --git a/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/03 - gym mode.png new file mode 100644 index 000000000..5d754e9e2 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54b6d7d8317cd23058a0ce2ed184d29d0fbfb64a513cb0262e3edc3733d64012 +size 30485 diff --git a/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/04 - measurements.png new file mode 100644 index 000000000..32b2e9d3c --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5918fb78ecbfdcd489d5c4a169d28436856fc1db54292a3f917f3bc568adfa6 +size 21461 diff --git a/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/05 - nutritional plan.png new file mode 100644 index 000000000..1489cd66a --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9d7f2f6b7c7e5a82c266dc37180665e2e88c23254cce8096db81fea193a6da0 +size 38689 diff --git a/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/06 - weight.png new file mode 100644 index 000000000..b778dcd05 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/sevenInchScreenshots/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:657414d70a23aa0c4afc0694f5d689de97ff72673068c3e8f2cb61f6eea77007 +size 30993 diff --git a/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/01 - dashboard.png new file mode 100644 index 000000000..6915c2a38 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05762248092aeec4a79c97c34aff79fafc8ee497000fc724081c6ec52ec3abfc +size 201522 diff --git a/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/02 - workout detail.png new file mode 100644 index 000000000..d6b85b5f2 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76cfe1f18c212d4f2bc146ce42226fa4246d6daa5b2d1e664417cc0cd038d7b3 +size 121848 diff --git a/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/03 - gym mode.png new file mode 100644 index 000000000..a56868573 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7904ee090a2145f6d9a3de12e0324db86df9b08366e09d460d4e9251883b98bb +size 91499 diff --git a/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/04 - measurements.png new file mode 100644 index 000000000..973e2bbac --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b61cb01abcbf172aa2aec4723ade6226789c65d7198437309c1fb586f61dcd2e +size 58983 diff --git a/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/05 - nutritional plan.png new file mode 100644 index 000000000..98aacf1f0 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:908ad3f5ad8a2270609ce781e0b5dc36732f0a6012b6ca1207141ac638b2983d +size 113138 diff --git a/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/06 - weight.png new file mode 100644 index 000000000..664735479 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/images/tenInchScreenshots/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe1a99c39fb8607eaed384205254df6cd9778aa2ab4cab3dfc514e2bcf13ecc9 +size 100713 diff --git a/fastlane/metadata/android/fa-IR/short_description.txt b/fastlane/metadata/android/fa-IR/short_description.txt new file mode 100644 index 000000000..1f0e2405f --- /dev/null +++ b/fastlane/metadata/android/fa-IR/short_description.txt @@ -0,0 +1 @@ +شمارنده تناسب اندام/ورزش، تغذیه و وزن diff --git a/fastlane/metadata/android/fa-IR/title.txt b/fastlane/metadata/android/fa-IR/title.txt new file mode 100644 index 000000000..d35e40870 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/title.txt @@ -0,0 +1 @@ +wger Workout Manager diff --git a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/01 - dashboard.png index 1a3e3d6ea..68627468c 100644 Binary files a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/02 - workout detail.png index ac7ca088d..c6a826eba 100644 Binary files a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/03 - gym mode.png index 71d958de9..077471715 100644 Binary files a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/04 - measurements.png index 5320ab0b7..35ee2bbb5 100644 Binary files a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/05 - nutritional plan.png index 800bac479..abc139497 100644 Binary files a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/06 - weight.png index e1c81f7d4..e9c42b821 100644 Binary files a/fastlane/metadata/android/fr-FR/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/fr-FR/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/01 - dashboard.png index f51e2438a..035994eda 100644 Binary files a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/02 - workout detail.png index bd2864ad3..c08e5d6c4 100644 Binary files a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/03 - gym mode.png index d4d52f2a0..f32fb38fd 100644 Binary files a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/04 - measurements.png index 14d5548aa..d87ea991f 100644 Binary files a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/05 - nutritional plan.png index ee514acb2..3aa7d201e 100644 Binary files a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/06 - weight.png index 81be25d8e..a98934391 100644 Binary files a/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/fr-FR/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/01 - dashboard.png index 54b55d558..f38a64cd9 100644 Binary files a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/02 - workout detail.png index 890ac6049..0c550b539 100644 Binary files a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/03 - gym mode.png index 17f44405e..afcd09320 100644 Binary files a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/04 - measurements.png index 7cecf5e72..8b3088d0e 100644 Binary files a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/05 - nutritional plan.png index ff1990668..c6faad757 100644 Binary files a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/06 - weight.png index 69c43686a..3e10c5f11 100644 Binary files a/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/fr-FR/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/01 - dashboard.png index 450d52a5c..ba02806da 100644 Binary files a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/03 - gym mode.png index d9d0f5a14..fac706a66 100644 Binary files a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/04 - measurements.png index 2d923626e..895f3c048 100644 Binary files a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/05 - nutritional plan.png index c9ea957ec..bf488ece3 100644 Binary files a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/06 - weight.png index ff34ccdb2..433f1c521 100644 Binary files a/fastlane/metadata/android/hi-IN/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/hi-IN/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/01 - dashboard.png index e09796df5..1885f59c4 100644 Binary files a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/03 - gym mode.png index f1a4792d6..1a7b576ae 100644 Binary files a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/04 - measurements.png index 7d0477dbd..411526979 100644 Binary files a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/05 - nutritional plan.png index 6839cba66..a2f58d12f 100644 Binary files a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/06 - weight.png index fb998641e..1ba69105b 100644 Binary files a/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/hi-IN/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/01 - dashboard.png index 09b2ec585..fbd4563a0 100644 Binary files a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/03 - gym mode.png index eff913ca1..56e924cfb 100644 Binary files a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/04 - measurements.png index 3415d6d67..664961bc7 100644 Binary files a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/05 - nutritional plan.png index f2eec02c1..d311c3333 100644 Binary files a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/06 - weight.png index 27be1f222..3cac060d4 100644 Binary files a/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/hi-IN/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/hr/full_description.txt b/fastlane/metadata/android/hr/full_description.txt index 9f3ffff2f..61420ce67 100644 --- a/fastlane/metadata/android/hr/full_description.txt +++ b/fastlane/metadata/android/hr/full_description.txt @@ -1,10 +1,10 @@ Od ljubitelja fitnessa za ljubitelje fitnessa – organiziraj svoje zdravlje s WGER, tvojim upravljačem treninga! -Već si pronašao/la omiljeni program za fitness i voliš stvarati vlastite sportske rutine? Bez obzira na vrstu sportske zvijeri – svi imamo nešto zajedničko: Volimo pratiti naše zdravstvene podatke <3 +Već si pronašao/la omiljeni program za fitness i voliš stvarati vlastite sportske rutine? Bez obzira na vrstu sporta kojim se baviš – svi imamo nešto zajedničko: Volimo pratiti naše zdravstvene podatke <3 Stoga te ne osuđujemo što još uvijek upravljaš svojim fitnessom sa svojim praktičnim malim dnevnikom vježbanja, ali nalazimo se u 2025. godini! -Razvili smo 100 % besplatan program za digitalno praćenje zdravlja i fitnessa, s najrelevantnijim funkcijama koje će ti olakšati život. Započni, nastavi trenirati i proslavi svoj napredak! +Razvili smo 100 % besplatan program za digitalno praćenje zdravlja i fitnessa, s najrelevantnijim funkcijama koje će ti olakšati život. Započni i nastavi trenirati te slavi svoj napredak! wger je projekt otvorenog koda za: * Tvoje tijelo @@ -28,12 +28,12 @@ Napomena: Ovaj besplatni program ne temelji se na dodatnim sredstvima i ne traž #Otvoreni kod – što to znači? -Otvoreni kod znači da je cijeli izvorni kod za ovaj program i poslužitelj s kojim razgovara besplatan i dostupan svima: -* Želiš pokrenuti wger na vlastitom poslužitelju za sebe ili lokalnu teretanu? Izvoli! +Otvoreni kod znači da je cijeli izvorni kod za ovaj program i server s kojim razgovara besplatan i dostupan svima: +* Želiš pokrenuti wger na vlastitom serveru za sebe ili lokalnu teretanu? Izvoli! * Nedostaje ti funkcija i želiš je implementirati? Počni odmah! * Želiš provjeriti da se nigdje ništa ne šalje? Možeš! Pridruži se našoj zajednici i postani dio sportskih entuzijasta i IT geekova iz cijelog svijeta. Nastavljamo raditi na prilagodbi i optimizaciji programa prilagođen našim potrebama. Volimo tvoj doprinos, stoga se slobodno uključi u bilo koje vrijeme i predloži tvoje želje i ideje! -> pronađi izvorni kod na https://github.com/wger-project --> postavljaj pitanja ili se jednostavno predstavi na našem Discord poslužitelju https://discord.gg/rPWFv6W +-> postavljaj pitanja ili se jednostavno predstavi na našem Discord serveru https://discord.gg/rPWFv6W diff --git a/fastlane/metadata/android/hr/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/hr/images/phoneScreenshots/01 - dashboard.png index 3bf4a29ae..f4308a011 100644 Binary files a/fastlane/metadata/android/hr/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/hr/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/hr/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/hr/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/hr/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/hr/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/hr/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/hr/images/phoneScreenshots/03 - gym mode.png index 72287f012..e3ade3e8a 100644 Binary files a/fastlane/metadata/android/hr/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/hr/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/hr/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/hr/images/phoneScreenshots/04 - measurements.png index 78243b850..b51883d96 100644 Binary files a/fastlane/metadata/android/hr/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/hr/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/hr/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/hr/images/phoneScreenshots/05 - nutritional plan.png index add06c9b8..6e46d8382 100644 Binary files a/fastlane/metadata/android/hr/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/hr/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/hr/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/hr/images/phoneScreenshots/06 - weight.png index 1b9257f67..8388ce24c 100644 Binary files a/fastlane/metadata/android/hr/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/hr/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/hr/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/hr/images/sevenInchScreenshots/01 - dashboard.png index 004c61044..66b2416db 100644 Binary files a/fastlane/metadata/android/hr/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/hr/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/hr/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/hr/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/hr/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/hr/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/hr/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/hr/images/sevenInchScreenshots/03 - gym mode.png index f8a496a05..20cab7e1a 100644 Binary files a/fastlane/metadata/android/hr/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/hr/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/hr/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/hr/images/sevenInchScreenshots/04 - measurements.png index 6dddd6213..a79f50066 100644 Binary files a/fastlane/metadata/android/hr/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/hr/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/hr/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/hr/images/sevenInchScreenshots/05 - nutritional plan.png index 17b2b755a..84659f94a 100644 Binary files a/fastlane/metadata/android/hr/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/hr/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/hr/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/hr/images/sevenInchScreenshots/06 - weight.png index 1b59831a4..f60d71b76 100644 Binary files a/fastlane/metadata/android/hr/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/hr/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/hr/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/hr/images/tenInchScreenshots/01 - dashboard.png index 424a02c58..aef27b8d5 100644 Binary files a/fastlane/metadata/android/hr/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/hr/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/hr/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/hr/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/hr/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/hr/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/hr/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/hr/images/tenInchScreenshots/03 - gym mode.png index 921485ced..6845be2a8 100644 Binary files a/fastlane/metadata/android/hr/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/hr/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/hr/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/hr/images/tenInchScreenshots/04 - measurements.png index c4975a514..e4584aa5c 100644 Binary files a/fastlane/metadata/android/hr/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/hr/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/hr/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/hr/images/tenInchScreenshots/05 - nutritional plan.png index cc5e92582..f4ad155b8 100644 Binary files a/fastlane/metadata/android/hr/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/hr/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/hr/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/hr/images/tenInchScreenshots/06 - weight.png index 3c4e84223..79e584974 100644 Binary files a/fastlane/metadata/android/hr/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/hr/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/it-IT/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/it-IT/images/phoneScreenshots/01 - dashboard.png index c0e8d59dd..9e0d28b83 100644 Binary files a/fastlane/metadata/android/it-IT/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/it-IT/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/it-IT/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/it-IT/images/phoneScreenshots/02 - workout detail.png index 2cb7d62f0..cedb79616 100644 Binary files a/fastlane/metadata/android/it-IT/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/it-IT/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/it-IT/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/it-IT/images/phoneScreenshots/03 - gym mode.png index a0e9da7d7..d2a6a056d 100644 Binary files a/fastlane/metadata/android/it-IT/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/it-IT/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/it-IT/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/it-IT/images/phoneScreenshots/04 - measurements.png index 3b1995643..303c3d6c2 100644 Binary files a/fastlane/metadata/android/it-IT/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/it-IT/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/it-IT/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/it-IT/images/phoneScreenshots/05 - nutritional plan.png index a7ea034b5..7d5db587f 100644 Binary files a/fastlane/metadata/android/it-IT/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/it-IT/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/it-IT/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/it-IT/images/phoneScreenshots/06 - weight.png index 481b9f138..2bb6effbf 100644 Binary files a/fastlane/metadata/android/it-IT/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/it-IT/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/01 - dashboard.png index fb441cee9..16efb9cbb 100644 Binary files a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/02 - workout detail.png index 10b37dc1b..45dc61aa9 100644 Binary files a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/03 - gym mode.png index aa2d2826c..e0df2959b 100644 Binary files a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/04 - measurements.png index 225bb48ee..565635144 100644 Binary files a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/05 - nutritional plan.png index ab71db56d..a8e7c672a 100644 Binary files a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/06 - weight.png index 075718e1d..12c637ddc 100644 Binary files a/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/it-IT/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/01 - dashboard.png index cb939489d..877342f88 100644 Binary files a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/02 - workout detail.png index 6fc37ca40..a3015077c 100644 Binary files a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/03 - gym mode.png index 1208ef0e4..338e9e562 100644 Binary files a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/04 - measurements.png index c163d53df..49c18ee18 100644 Binary files a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/05 - nutritional plan.png index 1f084a954..4bb429f76 100644 Binary files a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/06 - weight.png index 64ded0468..46117e43f 100644 Binary files a/fastlane/metadata/android/it-IT/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/it-IT/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/iw-IL/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/01 - dashboard.png new file mode 100644 index 000000000..b9ffc360b --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6ebb85fd047a0a6ca01488fd14d34644bbf8f4eb96e181d80e56befe02e1820 +size 176535 diff --git a/fastlane/metadata/android/iw-IL/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/02 - workout detail.png new file mode 100644 index 000000000..29b37f6ef --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:938a0afc358c213445ff3a468dd95646da41d39dd0a0ac108fdeea72edccea3a +size 201871 diff --git a/fastlane/metadata/android/iw-IL/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/03 - gym mode.png new file mode 100644 index 000000000..4f5259c68 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d761b5f91948cc6b2b88890bc49c5554497a1e0e5a3156f6977e5afb34067f91 +size 159158 diff --git a/fastlane/metadata/android/iw-IL/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/04 - measurements.png new file mode 100644 index 000000000..f0cd7ff83 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dec28012ee800c3a3efc31b742c7f591895713521ef89a5aec5946674759ffc7 +size 74672 diff --git a/fastlane/metadata/android/iw-IL/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/05 - nutritional plan.png new file mode 100644 index 000000000..fdb443efd --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7f3c79e98bb6d3b98cdf1b2deef7b1f11fb45a8c8674f873da9ed4f56831695 +size 184966 diff --git a/fastlane/metadata/android/iw-IL/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/06 - weight.png new file mode 100644 index 000000000..a85b60ea6 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/phoneScreenshots/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6847cdaeb2c8634b4f963f7965e97b4c09d5ef46392838b615bfdd7054376fc +size 171067 diff --git a/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/01 - dashboard.png new file mode 100644 index 000000000..6f448e747 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ddb367584523aa644dea398f93d7dc44ad5ba423544e115eb2c224cabdb5021 +size 59927 diff --git a/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/02 - workout detail.png new file mode 100644 index 000000000..161757d71 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d5aff5c0b946c5c23cc92eacccda91faca508bfd80089b9ff20c936189b1550 +size 46900 diff --git a/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/03 - gym mode.png new file mode 100644 index 000000000..b93107924 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c177b3d09a7dd1ffec1ac5f1d6f29aa24fe4cc7d4c21f99f836ae71e4c39e82 +size 32560 diff --git a/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/04 - measurements.png new file mode 100644 index 000000000..171237571 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b869cd9e6909056a392be63b8a88ab5ec78849771d2d16c37cd7bbbbbdbb4aaa +size 18173 diff --git a/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/05 - nutritional plan.png new file mode 100644 index 000000000..ace496be9 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cc27f63c9c335c6b7b1a3ea0433a92d17345cbdd2b62a705ee5d442c6a7d668 +size 38293 diff --git a/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/06 - weight.png new file mode 100644 index 000000000..be7f70019 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/sevenInchScreenshots/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6887efe0ca4ddf886361b56cda5c59ec2a88c7aefd1de53252f42d42ad425077 +size 33942 diff --git a/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/01 - dashboard.png new file mode 100644 index 000000000..b5a264c65 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b6837f2abb4cfe4c66c8aa9f4b73ecb9c5fb8d4a2e72378dc8f9ffc14e75b3b +size 175217 diff --git a/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/02 - workout detail.png new file mode 100644 index 000000000..d6b85b5f2 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76cfe1f18c212d4f2bc146ce42226fa4246d6daa5b2d1e664417cc0cd038d7b3 +size 121848 diff --git a/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/03 - gym mode.png new file mode 100644 index 000000000..58324b239 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c63135d940addfc7a1fd162ebf8cb64931231f2a8d0b599765b2c81f6bf58bbd +size 90919 diff --git a/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/04 - measurements.png new file mode 100644 index 000000000..3d738e093 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ce79483bd7ea5ea35e3e187149f1357f18d2c6e665343d2511e23b2c21c1bdd +size 50119 diff --git a/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/05 - nutritional plan.png new file mode 100644 index 000000000..deb5f63d7 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0c33c3c1ddb5566e21e859d43c4845d0840785ba2ab7847ded7169528f6d2a1 +size 114755 diff --git a/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/06 - weight.png new file mode 100644 index 000000000..fb17dcff9 --- /dev/null +++ b/fastlane/metadata/android/iw-IL/images/tenInchScreenshots/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2147ed14baa735dc712e51db5b7d48fdac2b0d5fd1f8a9132a0529be41603ea9 +size 101093 diff --git a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/01 - dashboard.png index acb447806..5d4e6a15a 100644 Binary files a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/03 - gym mode.png index 618792990..adb039746 100644 Binary files a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/04 - measurements.png index 5ca2095bf..09e9c038e 100644 Binary files a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/05 - nutritional plan.png index 2419c66c9..63087ca60 100644 Binary files a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/06 - weight.png index 641061a6e..290040a0d 100644 Binary files a/fastlane/metadata/android/ko-KR/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/ko-KR/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/01 - dashboard.png index 5fc40ad5f..0d2016833 100644 Binary files a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/03 - gym mode.png index 9e3558aa6..a3eea87db 100644 Binary files a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/04 - measurements.png index 5bd7b7955..bdb3ff407 100644 Binary files a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/05 - nutritional plan.png index 8c94e518d..d8d0746d2 100644 Binary files a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/06 - weight.png index e03543768..9605e9635 100644 Binary files a/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ko-KR/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/01 - dashboard.png index 06b7e5674..a8093dafb 100644 Binary files a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/03 - gym mode.png index d3af3e724..1bba3c26d 100644 Binary files a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/04 - measurements.png index 4fe9be63c..b002da2e7 100644 Binary files a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/05 - nutritional plan.png index 20d7a01c7..24f278a95 100644 Binary files a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/06 - weight.png index 030065cc7..65f395f8d 100644 Binary files a/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ko-KR/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/01 - dashboard.png index f47d99311..1d77d02a7 100644 Binary files a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/03 - gym mode.png index 475be41d2..15c479160 100644 Binary files a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/04 - measurements.png index 9a96c782a..70ca1cf82 100644 Binary files a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/05 - nutritional plan.png index e027379ac..0a0456be8 100644 Binary files a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/06 - weight.png index de3fb7599..da5c6f6e7 100644 Binary files a/fastlane/metadata/android/nb-NO/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/nb-NO/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/01 - dashboard.png index f3a4aadba..eab797b6e 100644 Binary files a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/03 - gym mode.png index 191f32fe4..eb5b3f6e7 100644 Binary files a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/04 - measurements.png index 01e77fc73..b6c530ef7 100644 Binary files a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/05 - nutritional plan.png index 24dab8254..58acafed7 100644 Binary files a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/06 - weight.png index 73c58d5b8..219f5b959 100644 Binary files a/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/nb-NO/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/01 - dashboard.png index db1b88f4e..191db8db7 100644 Binary files a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/03 - gym mode.png index 5fb16610c..7e734e7e8 100644 Binary files a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/04 - measurements.png index 35c2cf86e..d792677eb 100644 Binary files a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/05 - nutritional plan.png index 170d49053..9de1717ff 100644 Binary files a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/06 - weight.png index 72bcd37b2..81bff779c 100644 Binary files a/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/nb-NO/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/nl-NL/full_description.txt b/fastlane/metadata/android/nl-NL/full_description.txt new file mode 100644 index 000000000..8ed66c1af --- /dev/null +++ b/fastlane/metadata/android/nl-NL/full_description.txt @@ -0,0 +1,39 @@ +Van fitness liefhebbers, vóór fitness liefhebbers - krijg inzicht in je sport progressie en voeding met WGER, jouw workout manager! + +Heb je je favoriete fitnessapp al gevonden en vind je het leuk om je eigen sportroutines te creëren? Wat voor sportbeest je ook bent, we hebben allemaal iets gemeen: we houden graag onze gezondheidsgegevens bij. + +Dus we beoordelen je niet om het feit dat je je fitness reis nog met een workout logboekje bijhoudt, maar verwelkomen je graag naar 2025! + +We hebben een 100% gratis digitale gezondheids- en fitnesstracker-app voor je ontwikkeld, met de meest relevante functies om je leven makkelijker te maken. Ga aan de slag, blijf trainen en vier je voortgang! + +wger is een open-sourceproject en draait om: +* Jouw lichaam +* Jouw trainingen +* Jouw voortgang +* Jouw gegevens + +Jouw lichaam: +Je hoeft niet te googelen naar de ingrediënten van je favoriete lekkernijen – kies je dagelijkse maaltijden uit meer dan 78.000 producten en bekijk de voedingswaarden. Voeg maaltijden toe aan het voedingsplan en houd een overzicht van je dieet in de kalender. + +Jouw trainingen: +Jij weet wat het beste is voor je lichaam. Stel je eigen trainingen samen uit een groeiend aanbod van 200 verschillende oefeningen. Gebruik vervolgens de sportschoolmodus om je door de training te begeleiden terwijl je je gewichten met één tik registreert. + +Jouw voortgang: +Verlies je doelen nooit uit het oog. Volg je gewicht en houd je statistieken bij. + +Jouw gegevens: +wger is jouw persoonlijke fitnessdagboek – maar jij bent de eigenaar van je gegevens. Gebruik de REST API om er toegang toe te krijgen en er fantastische dingen mee te doen. + +Let op: Deze gratis app is niet gebaseerd op extra financiering en we vragen je niet om geld te doneren. Sterker nog, het is een communityproject dat constant groeit. Wees dus altijd voorbereid op nieuwe functies! + +#OpenSource – wat betekent dat? + +OpenSource betekent dat de volledige broncode voor deze app en de server waarmee deze communiceert gratis en voor iedereen beschikbaar is: +* Wil je wger op je eigen server draaien voor jezelf of je lokale sportschool? Ga je gang! +* Mis je een functie en wil je die implementeren? Begin nu! +* Wil je controleren of er niets wordt verzonden? Dat kan! + +Word lid van onze community en sluit je aan bij sportliefhebbers en IT-nerds van over de hele wereld. We blijven werken aan het aanpassen en optimaliseren van de app, afgestemd op onze behoeften. Wij stellen uw inbreng op prijs, dus u kunt op elk gewenst moment meedoen en uw wensen en ideeën met ons delen! + +-> vind de source code op https://github.com/wger-project +-> voor vragen, of om simpelweg hallo te zeggen kan je terecht op onze Discord server https://discord.gg/rPWFv6W diff --git a/fastlane/metadata/android/nl-NL/short_description.txt b/fastlane/metadata/android/nl-NL/short_description.txt new file mode 100644 index 000000000..e31bba81b --- /dev/null +++ b/fastlane/metadata/android/nl-NL/short_description.txt @@ -0,0 +1 @@ +Fitness/workout, voeding- en gewichts tracker diff --git a/fastlane/metadata/android/nl-NL/title.txt b/fastlane/metadata/android/nl-NL/title.txt new file mode 100644 index 000000000..d35e40870 --- /dev/null +++ b/fastlane/metadata/android/nl-NL/title.txt @@ -0,0 +1 @@ +wger Workout Manager diff --git a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/01 - dashboard.png index a3c72bda5..022bedc7c 100644 Binary files a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/03 - gym mode.png index a269a0f1c..b822351ce 100644 Binary files a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/04 - measurements.png index eb206a3ce..7bfec18d4 100644 Binary files a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/05 - nutritional plan.png index a3f97e16f..ee1df4c1f 100644 Binary files a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/06 - weight.png index 415c43c02..3545836ae 100644 Binary files a/fastlane/metadata/android/pl-PL/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/pl-PL/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/01 - dashboard.png index 8c5720368..c5d3b670e 100644 Binary files a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/03 - gym mode.png index b67cb1e4f..22e19a17e 100644 Binary files a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/04 - measurements.png index 3f33dde77..ce4fea6a8 100644 Binary files a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/05 - nutritional plan.png index 7fce499b7..d3f92e182 100644 Binary files a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/06 - weight.png index d9be69f1a..65c5a799f 100644 Binary files a/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/pl-PL/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/01 - dashboard.png index d3e687874..f958769c8 100644 Binary files a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/03 - gym mode.png index d08199923..c019fd10e 100644 Binary files a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/04 - measurements.png index 91645cf68..a9e4c7973 100644 Binary files a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/05 - nutritional plan.png index abea98ee9..6666aa138 100644 Binary files a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/06 - weight.png index 6fb439e74..43c211c69 100644 Binary files a/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/pl-PL/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pt-BR/full_description.txt b/fastlane/metadata/android/pt-BR/full_description.txt index 8938e1dc8..309af9f02 100644 --- a/fastlane/metadata/android/pt-BR/full_description.txt +++ b/fastlane/metadata/android/pt-BR/full_description.txt @@ -2,7 +2,7 @@ De amantes de fitness a amantes de fitness - organize sua saúde com WGER, seu W Você já encontrou seu aplicativo de fitness n.º 1 e adora criar suas próprias rotinas esportivas? Não importa que tipo de animal esportivo você seja - todos nós temos algo em comum: adoramos acompanhar nossos dados de saúde <3 -Portanto, não o julgamos por você ainda gerenciar sua jornada de condicionamento físico com seu pequeno livro de registro de treino, mas bem-vindo a 2022! +Portanto, não o julgamos por você ainda gerenciar sua jornada de condicionamento físico com seu pequeno livro de registro de treino, mas bem-vindo a 2025! Desenvolvemos um aplicativo rastreador digital de saúde e condicionamento físico 100% gratuito para você, dimensionado para os recursos mais relevantes para facilitar sua vida. Comece, continue treinando, e comemore seu progresso! diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/01 - dashboard.png index 116ddfc0a..0465288fc 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/02 - workout detail.png index d5ce12283..545d5d80f 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/03 - gym mode.png index 0acfaee85..731573e1a 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/04 - measurements.png index 7274ecba0..36a80f3ee 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/05 - nutritional plan.png index c75ef0948..b0bbc44c3 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/06 - weight.png index f6273a2f3..f0a746854 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/01 - dashboard.png index 4b54d6187..9a5b8ee7d 100644 Binary files a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/02 - workout detail.png index 201918e1a..8af1a22c6 100644 Binary files a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/03 - gym mode.png index ca551f015..767740b38 100644 Binary files a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/04 - measurements.png index 93de968e1..74a668794 100644 Binary files a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/05 - nutritional plan.png index 3707a49bd..53f3efaeb 100644 Binary files a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/06 - weight.png index d6dcf30d1..30c0fbbef 100644 Binary files a/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/pt-BR/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/01 - dashboard.png index 49e6120f5..0598f156b 100644 Binary files a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/02 - workout detail.png index 1d1860bae..fb20e94fe 100644 Binary files a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/03 - gym mode.png index 73a0fdca2..1dc7b08a7 100644 Binary files a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/04 - measurements.png index 8497f1cb6..3b7aca6b5 100644 Binary files a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/05 - nutritional plan.png index fff2dd823..562c46831 100644 Binary files a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/06 - weight.png index 8fd84c6fa..a44e78425 100644 Binary files a/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/pt-BR/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/01 - dashboard.png index 4f8969177..30b5cea8b 100644 Binary files a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/02 - workout detail.png index d5ce12283..545d5d80f 100644 Binary files a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/03 - gym mode.png index 0acfaee85..731573e1a 100644 Binary files a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/04 - measurements.png index 7274ecba0..9cd362cd7 100644 Binary files a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/05 - nutritional plan.png index 779fde405..fea28ed33 100644 Binary files a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/06 - weight.png index f6273a2f3..df26f4d21 100644 Binary files a/fastlane/metadata/android/pt-PT/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/pt-PT/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/01 - dashboard.png index 1faf1bc54..368e3c95c 100644 Binary files a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/02 - workout detail.png index 201918e1a..8af1a22c6 100644 Binary files a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/03 - gym mode.png index ca551f015..767740b38 100644 Binary files a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/04 - measurements.png index 93de968e1..1c270125b 100644 Binary files a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/05 - nutritional plan.png index 1d7c226e2..369cd0951 100644 Binary files a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/06 - weight.png index d6dcf30d1..f7da49419 100644 Binary files a/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/pt-PT/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/01 - dashboard.png index 24c1f1b7c..a6faac068 100644 Binary files a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/02 - workout detail.png index 1d1860bae..fb20e94fe 100644 Binary files a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/03 - gym mode.png index 73a0fdca2..1dc7b08a7 100644 Binary files a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/04 - measurements.png index 8497f1cb6..860145be7 100644 Binary files a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/05 - nutritional plan.png index 33aad2ef8..14206c51c 100644 Binary files a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/06 - weight.png index 8fd84c6fa..3c10f756c 100644 Binary files a/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/pt-PT/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/01 - dashboard.png index 0b1279407..8267a7bd7 100644 Binary files a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/03 - gym mode.png index 45f69c0c8..cf753b33b 100644 Binary files a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/04 - measurements.png index 796640b05..58f2b1d4d 100644 Binary files a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/05 - nutritional plan.png index f14d1abea..4133b06bd 100644 Binary files a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/06 - weight.png index 547fd053a..5e8bfcb44 100644 Binary files a/fastlane/metadata/android/ru-RU/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/ru-RU/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/01 - dashboard.png index f52bbb2bb..be3ea3348 100644 Binary files a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/03 - gym mode.png index e0aef9f2d..f9c520f31 100644 Binary files a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/04 - measurements.png index 334819865..0a7bac0a3 100644 Binary files a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/05 - nutritional plan.png index 4d7710785..0b0eac642 100644 Binary files a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/06 - weight.png index 0eaf67c3e..946f89792 100644 Binary files a/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ru-RU/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/01 - dashboard.png index f3c49874f..d83b16fc6 100644 Binary files a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/03 - gym mode.png index 817629838..83555c6b4 100644 Binary files a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/04 - measurements.png index b7cfc899c..0165da232 100644 Binary files a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/05 - nutritional plan.png index 7b49a4527..34226a559 100644 Binary files a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/06 - weight.png index 9bcbe5718..de5121a2c 100644 Binary files a/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ru-RU/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/sr/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/sr/images/phoneScreenshots/01 - dashboard.png index 1856628b0..2e5e24ac0 100644 Binary files a/fastlane/metadata/android/sr/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/sr/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/sr/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/sr/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/sr/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/sr/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/sr/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/sr/images/phoneScreenshots/03 - gym mode.png index 475be41d2..15c479160 100644 Binary files a/fastlane/metadata/android/sr/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/sr/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/sr/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/sr/images/phoneScreenshots/04 - measurements.png index 6f43309ac..46a842ba0 100644 Binary files a/fastlane/metadata/android/sr/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/sr/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/sr/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/sr/images/phoneScreenshots/05 - nutritional plan.png index 93643df45..f0efb57e3 100644 Binary files a/fastlane/metadata/android/sr/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/sr/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/sr/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/sr/images/phoneScreenshots/06 - weight.png index 4b6ad3b87..66cb69d1a 100644 Binary files a/fastlane/metadata/android/sr/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/sr/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/sr/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/sr/images/sevenInchScreenshots/01 - dashboard.png index 30866e69c..3a236f0c8 100644 Binary files a/fastlane/metadata/android/sr/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/sr/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/sr/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/sr/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/sr/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/sr/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/sr/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/sr/images/sevenInchScreenshots/03 - gym mode.png index 191f32fe4..eb5b3f6e7 100644 Binary files a/fastlane/metadata/android/sr/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/sr/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/sr/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/sr/images/sevenInchScreenshots/04 - measurements.png index 4e7d43bd5..e6dffb7ae 100644 Binary files a/fastlane/metadata/android/sr/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/sr/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/sr/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/sr/images/sevenInchScreenshots/05 - nutritional plan.png index 182370184..dcb2bcbff 100644 Binary files a/fastlane/metadata/android/sr/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/sr/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/sr/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/sr/images/sevenInchScreenshots/06 - weight.png index de1b35bc3..1441e7f1f 100644 Binary files a/fastlane/metadata/android/sr/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/sr/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/sr/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/sr/images/tenInchScreenshots/01 - dashboard.png index c9320d521..f8ef53566 100644 Binary files a/fastlane/metadata/android/sr/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/sr/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/sr/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/sr/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/sr/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/sr/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/sr/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/sr/images/tenInchScreenshots/03 - gym mode.png index 5fb16610c..7e734e7e8 100644 Binary files a/fastlane/metadata/android/sr/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/sr/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/sr/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/sr/images/tenInchScreenshots/04 - measurements.png index 6d1575cd7..7109717e0 100644 Binary files a/fastlane/metadata/android/sr/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/sr/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/sr/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/sr/images/tenInchScreenshots/05 - nutritional plan.png index 2982318fb..f1efa6d49 100644 Binary files a/fastlane/metadata/android/sr/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/sr/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/sr/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/sr/images/tenInchScreenshots/06 - weight.png index aeeabd16d..ee4fbed7b 100644 Binary files a/fastlane/metadata/android/sr/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/sr/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/01 - dashboard.png index 4c4dbb860..2b40076f6 100644 Binary files a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/03 - gym mode.png index 6111c6a01..274a31df8 100644 Binary files a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/04 - measurements.png index 874b9b5d3..9d9bc632a 100644 Binary files a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/05 - nutritional plan.png index 901fd50b3..667e1f5de 100644 Binary files a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/06 - weight.png index 012d97e03..61fe0e370 100644 Binary files a/fastlane/metadata/android/ta-IN/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/ta-IN/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/01 - dashboard.png index a61136d51..0af4c79fd 100644 Binary files a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/03 - gym mode.png index ded8f1671..23200c47b 100644 Binary files a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/04 - measurements.png index 39d1ace86..bc9645299 100644 Binary files a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/05 - nutritional plan.png index b32fba6ce..381a150a3 100644 Binary files a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/06 - weight.png index a877cae79..079ca97db 100644 Binary files a/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ta-IN/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/01 - dashboard.png index ea851fca5..9d4083080 100644 Binary files a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/03 - gym mode.png index 27fa6426e..02c56478e 100644 Binary files a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/04 - measurements.png index 1bb9c2722..acdf893d0 100644 Binary files a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/05 - nutritional plan.png index 951a9652c..53c7c11f2 100644 Binary files a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/06 - weight.png index 01792d7f6..7f3a74f68 100644 Binary files a/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/ta-IN/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/01 - dashboard.png index e0ac786b9..61e3c5855 100644 Binary files a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/02 - workout detail.png index 936873033..1da37f937 100644 Binary files a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/03 - gym mode.png index 7f6a551fa..e8b7c4807 100644 Binary files a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/04 - measurements.png index 8b62755ea..189562b2d 100644 Binary files a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/05 - nutritional plan.png index f46e87a59..b5bb24bd6 100644 Binary files a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/06 - weight.png index 7922288b3..a44a26670 100644 Binary files a/fastlane/metadata/android/tr-TR/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/tr-TR/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/01 - dashboard.png index 25f6bc985..adb2fbec2 100644 Binary files a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/02 - workout detail.png index fd38e9587..e212fe3cb 100644 Binary files a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/03 - gym mode.png index 0a150ca40..562989177 100644 Binary files a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/04 - measurements.png index 1d688d9b5..b71c05ee3 100644 Binary files a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/05 - nutritional plan.png index a32357507..4c1b20473 100644 Binary files a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/06 - weight.png index 117dd8655..6b2601523 100644 Binary files a/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/tr-TR/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/01 - dashboard.png index 4cc651a91..2fbe29fae 100644 Binary files a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/02 - workout detail.png index 9959ccb8b..f3934ca6e 100644 Binary files a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/03 - gym mode.png index e539343b7..a662f80c9 100644 Binary files a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/04 - measurements.png index 5e74455e7..c1b70f179 100644 Binary files a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/05 - nutritional plan.png index 9f83a1f3d..1229cdbee 100644 Binary files a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/06 - weight.png index b968b3f53..84c2b2ea3 100644 Binary files a/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/tr-TR/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/uk/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/uk/images/phoneScreenshots/01 - dashboard.png index d890a911a..3c87fe60f 100644 Binary files a/fastlane/metadata/android/uk/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/uk/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/uk/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/uk/images/phoneScreenshots/02 - workout detail.png index f76fa96cd..43d755b57 100644 Binary files a/fastlane/metadata/android/uk/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/uk/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/uk/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/uk/images/phoneScreenshots/03 - gym mode.png index 1361b510d..971149572 100644 Binary files a/fastlane/metadata/android/uk/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/uk/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/uk/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/uk/images/phoneScreenshots/04 - measurements.png index b9b4092ff..a23cb675e 100644 Binary files a/fastlane/metadata/android/uk/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/uk/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/uk/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/uk/images/phoneScreenshots/05 - nutritional plan.png index 939fc93ed..50ae98b78 100644 Binary files a/fastlane/metadata/android/uk/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/uk/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/uk/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/uk/images/phoneScreenshots/06 - weight.png index defce40c3..206934039 100644 Binary files a/fastlane/metadata/android/uk/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/uk/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/uk/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/uk/images/sevenInchScreenshots/01 - dashboard.png index bd0403bda..7cd1e6ab3 100644 Binary files a/fastlane/metadata/android/uk/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/uk/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/uk/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/uk/images/sevenInchScreenshots/02 - workout detail.png index 7faf5e2d4..22efc4107 100644 Binary files a/fastlane/metadata/android/uk/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/uk/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/uk/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/uk/images/sevenInchScreenshots/03 - gym mode.png index 0484fbb22..6b523ae7d 100644 Binary files a/fastlane/metadata/android/uk/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/uk/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/uk/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/uk/images/sevenInchScreenshots/04 - measurements.png index 9b701a55b..401068d2b 100644 Binary files a/fastlane/metadata/android/uk/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/uk/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/uk/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/uk/images/sevenInchScreenshots/05 - nutritional plan.png index a8d782ef6..4f67797f3 100644 Binary files a/fastlane/metadata/android/uk/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/uk/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/uk/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/uk/images/sevenInchScreenshots/06 - weight.png index 11ba55043..1a11c0161 100644 Binary files a/fastlane/metadata/android/uk/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/uk/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/uk/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/uk/images/tenInchScreenshots/01 - dashboard.png index 9271eaa83..252d9dcc0 100644 Binary files a/fastlane/metadata/android/uk/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/uk/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/uk/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/uk/images/tenInchScreenshots/02 - workout detail.png index 244f29b11..3dcab885b 100644 Binary files a/fastlane/metadata/android/uk/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/uk/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/uk/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/uk/images/tenInchScreenshots/03 - gym mode.png index f13e11a4a..f9f6ae8ca 100644 Binary files a/fastlane/metadata/android/uk/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/uk/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/uk/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/uk/images/tenInchScreenshots/04 - measurements.png index 92f46bb0a..d9a40ef35 100644 Binary files a/fastlane/metadata/android/uk/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/uk/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/uk/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/uk/images/tenInchScreenshots/05 - nutritional plan.png index fce72fddc..b2545cc44 100644 Binary files a/fastlane/metadata/android/uk/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/uk/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/uk/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/uk/images/tenInchScreenshots/06 - weight.png index 26cb47934..248f6de8f 100644 Binary files a/fastlane/metadata/android/uk/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/uk/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/01 - dashboard.png index eb115a18f..10d5a41a6 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/02 - workout detail.png index 72a9b75fc..7e031ba81 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/03 - gym mode.png index 19d75a833..c266e5826 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/04 - measurements.png index bd21ea453..12d1a2019 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/05 - nutritional plan.png index 5ef6afe25..036b6c22c 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/06 - weight.png index 58e8a3f87..efd6d004a 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/01 - dashboard.png index b3d17505a..f8b8eb2d2 100644 Binary files a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/02 - workout detail.png index fe112a703..e8e969783 100644 Binary files a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/03 - gym mode.png index 7d59de742..1cc227a9c 100644 Binary files a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/04 - measurements.png index 838436c91..c1b26a6c0 100644 Binary files a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/05 - nutritional plan.png index 9b2eb7f57..51b47ff65 100644 Binary files a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/06 - weight.png index c4e17457d..73ea6c2de 100644 Binary files a/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/zh-CN/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/01 - dashboard.png index 7bab9d072..1a0259d48 100644 Binary files a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/02 - workout detail.png index ad2a57189..0b9097b48 100644 Binary files a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/03 - gym mode.png index 2bbed93ac..c902bef87 100644 Binary files a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/04 - measurements.png index 0568cf18e..1cc13880a 100644 Binary files a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/05 - nutritional plan.png index 388873646..625dd47c9 100644 Binary files a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/06 - weight.png index 56f91e0ff..620ba84ce 100644 Binary files a/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/zh-CN/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/01 - dashboard.png b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/01 - dashboard.png index 520bbe0b6..f96f660ad 100644 Binary files a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/01 - dashboard.png and b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/02 - workout detail.png b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/02 - workout detail.png index 72a9b75fc..7e031ba81 100644 Binary files a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/02 - workout detail.png and b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/03 - gym mode.png b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/03 - gym mode.png index 19d75a833..c266e5826 100644 Binary files a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/03 - gym mode.png and b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/04 - measurements.png b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/04 - measurements.png index bd21ea453..12d1a2019 100644 Binary files a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/04 - measurements.png and b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/05 - nutritional plan.png index 84ce8c1a0..d6129460f 100644 Binary files a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/06 - weight.png b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/06 - weight.png index 58e8a3f87..efd6d004a 100644 Binary files a/fastlane/metadata/android/zh-TW/images/phoneScreenshots/06 - weight.png and b/fastlane/metadata/android/zh-TW/images/phoneScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/01 - dashboard.png index f60586b65..da260acc5 100644 Binary files a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/02 - workout detail.png index fe112a703..e8e969783 100644 Binary files a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/03 - gym mode.png index 7d59de742..1cc227a9c 100644 Binary files a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/04 - measurements.png index 838436c91..c1b26a6c0 100644 Binary files a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/05 - nutritional plan.png index 17a621118..fd213332e 100644 Binary files a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/06 - weight.png b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/06 - weight.png index c4e17457d..73ea6c2de 100644 Binary files a/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/zh-TW/images/sevenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/01 - dashboard.png b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/01 - dashboard.png index 729a65cfd..9334ff1e7 100644 Binary files a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/01 - dashboard.png and b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/01 - dashboard.png differ diff --git a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/02 - workout detail.png b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/02 - workout detail.png index ad2a57189..0b9097b48 100644 Binary files a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/02 - workout detail.png and b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/02 - workout detail.png differ diff --git a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/03 - gym mode.png b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/03 - gym mode.png index 2bbed93ac..c902bef87 100644 Binary files a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/03 - gym mode.png and b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/03 - gym mode.png differ diff --git a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/04 - measurements.png b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/04 - measurements.png index 0568cf18e..1cc13880a 100644 Binary files a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/04 - measurements.png and b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/04 - measurements.png differ diff --git a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/05 - nutritional plan.png b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/05 - nutritional plan.png index 160b798f0..8b3107185 100644 Binary files a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/05 - nutritional plan.png and b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/05 - nutritional plan.png differ diff --git a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/06 - weight.png b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/06 - weight.png index 56f91e0ff..620ba84ce 100644 Binary files a/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/06 - weight.png and b/fastlane/metadata/android/zh-TW/images/tenInchScreenshots/06 - weight.png differ diff --git a/fastlane/metadata/ios/ar/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/ar/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..89bf25691 --- /dev/null +++ b/fastlane/metadata/ios/ar/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e410ce8ab36b4ac6b6408c3658de535bbc27ee0083281f9cc67802570e89a38 +size 213462 diff --git a/fastlane/metadata/ios/ar/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/ar/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..48c7a26e7 --- /dev/null +++ b/fastlane/metadata/ios/ar/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a228f0d419e009e0c9c17dad743a5751d1cc28659f75a4f0caa9efc26342eff4 +size 207178 diff --git a/fastlane/metadata/ios/ar/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/ar/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..e329fbcdb --- /dev/null +++ b/fastlane/metadata/ios/ar/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b97b51234925b34cb29c94c9608337a161aa89462e24d8081574a5b2c5f4387 +size 199388 diff --git a/fastlane/metadata/ios/ar/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/ar/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..9f9f7d042 --- /dev/null +++ b/fastlane/metadata/ios/ar/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:524e620d636a2ff00524c35fbf396c928c926247081673786fe9aed3c461605d +size 142919 diff --git a/fastlane/metadata/ios/ar/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/ar/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..10e0c9868 --- /dev/null +++ b/fastlane/metadata/ios/ar/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2f79a062a23b16f51afa6bf6586427b1fcfef065321a4ff2b45ec009fd5b8c1 +size 218016 diff --git a/fastlane/metadata/ios/ar/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/ar/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..de6660d72 --- /dev/null +++ b/fastlane/metadata/ios/ar/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ff222c08c42e325b1fb6e402f19ed66146d9ad124b9b5e72b6fa5149ae19a97 +size 219047 diff --git a/fastlane/metadata/ios/ca/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/ca/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..ab04ad725 --- /dev/null +++ b/fastlane/metadata/ios/ca/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8aed2bca9992964d12b8e940eca1760bcb0c3203da24efd17b9a5749bb17557 +size 222486 diff --git a/fastlane/metadata/ios/ca/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/ca/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/ca/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/ca/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/ca/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..e41a9340b --- /dev/null +++ b/fastlane/metadata/ios/ca/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:869392c168c669e7656c9fc3cf596d7eb6eecc89681fb4a4ae381b65020fb5c2 +size 191725 diff --git a/fastlane/metadata/ios/ca/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/ca/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..5a3e9f564 --- /dev/null +++ b/fastlane/metadata/ios/ca/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1244635be2a66bba0a3851ec6ed04defa8d827a2a42db7cae2058eac8157d9a5 +size 149463 diff --git a/fastlane/metadata/ios/ca/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/ca/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..695e4de0d --- /dev/null +++ b/fastlane/metadata/ios/ca/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d56c8bff3b2e0f6340683e10e01b853f549740bce07ddd6861ba492c058968b6 +size 217268 diff --git a/fastlane/metadata/ios/ca/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/ca/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..db66ee509 --- /dev/null +++ b/fastlane/metadata/ios/ca/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:733eb37ccbd5fd588f3291a00fe8b262f34ae9c9265bc4fb8dff77eac588e966 +size 227538 diff --git a/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..2618c53cc --- /dev/null +++ b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:947d1ac3fc7289570f9032910bdf14a2f2ca7de47358a7b3b9036e8a9f38e355 +size 225464 diff --git a/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..46300cb6f --- /dev/null +++ b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ef5c8fe31be93c11f76efd6b3cb795f5f5db6acc289ab3146b8ae060f7bc87b +size 193462 diff --git a/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..4b361b6af --- /dev/null +++ b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f7b8612952f106406c2022dd786e47e0a4dbd3a01602e64a3464f9affe3c8e6 +size 148583 diff --git a/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..510758a31 --- /dev/null +++ b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3767c67281716cfd0506529469d2c5015a282dcf521e68292567552c801e0303 +size 217143 diff --git a/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..6d41b16e4 --- /dev/null +++ b/fastlane/metadata/ios/cs-CZ/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3acb867c0a9b47982159d8a0a6e93145e6b8bf5d16925c5584d88a656b7c5aaf +size 227028 diff --git a/fastlane/metadata/ios/de-DE/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..c8fb09587 --- /dev/null +++ b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d643b0a5f843d3ceb469641080bdb0049202cc7055663d8a17b9397f4d6380cf +size 223245 diff --git a/fastlane/metadata/ios/de-DE/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..53a1690e5 --- /dev/null +++ b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ffdc83ae1d22614b7235fa6446b797a80da3ae938c4fe79f94b337931693ae7 +size 206446 diff --git a/fastlane/metadata/ios/de-DE/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..1eaac361e --- /dev/null +++ b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:760869613be749b6866c6b676fc66366cb10ef4de638a71d5ec9f6b04d80bf04 +size 195023 diff --git a/fastlane/metadata/ios/de-DE/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..8ad819cf4 --- /dev/null +++ b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e51c5f1e3b1489a13945b21ca33cde20219673476f5e33aa7566c16277be0f08 +size 148967 diff --git a/fastlane/metadata/ios/de-DE/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..2cff0e65a --- /dev/null +++ b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c28f4fbf3741f2289bdfd5e7b74b39b87f32a7d8c9b48c24c46b2ba812cad7f6 +size 217237 diff --git a/fastlane/metadata/ios/de-DE/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..539a9c989 --- /dev/null +++ b/fastlane/metadata/ios/de-DE/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4063c9a108f5bda96f41aef775673fd7c26279485ac41f78d5fc22697d93cd9d +size 244462 diff --git a/fastlane/metadata/ios/el-GR/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..44d5bae65 --- /dev/null +++ b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b6bc86ae94b512106df26e5c1b6647e510be3561f6f8780525e5f7424fc86ab +size 220190 diff --git a/fastlane/metadata/ios/el-GR/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7ec809016 --- /dev/null +++ b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45e728e29004d4a7f3df8572ef6e0b6d93a3fd1233da058217d2593a61e3ce9a +size 215178 diff --git a/fastlane/metadata/ios/el-GR/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..4434e1914 --- /dev/null +++ b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41ca9707d23f1c8af80dd9d8f182fc3c3fdd2c5768e1829077e3c844fddf8315 +size 194981 diff --git a/fastlane/metadata/ios/el-GR/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..6f27a5c95 --- /dev/null +++ b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:542cf6f6a82a4e2dff1faa8fed1f67d30d4fa66f24e41bde2f973c74d32c69ea +size 149145 diff --git a/fastlane/metadata/ios/el-GR/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..1418d0f83 --- /dev/null +++ b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1aaaf8f9f8837b03c3b407eb8c5ffca6d08f526349cc919ca3830acef24b945 +size 217147 diff --git a/fastlane/metadata/ios/el-GR/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..1a63e4ce8 --- /dev/null +++ b/fastlane/metadata/ios/el-GR/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:191a9812ef8317be0c5cbad651ad99709a7df9efb392a712d2561cd69098e939 +size 234613 diff --git a/fastlane/metadata/ios/en-US/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/en-US/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..c94cb5666 --- /dev/null +++ b/fastlane/metadata/ios/en-US/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74a6879303b00cccec7a13b178aef9d94f5e3a91d772aadd6931cae4e8f95224 +size 219657 diff --git a/fastlane/metadata/ios/en-US/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/en-US/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/en-US/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/en-US/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/en-US/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..4790c00e1 --- /dev/null +++ b/fastlane/metadata/ios/en-US/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15efd4cf50392c7838fb2025d9634aa514a24eeabd6f351377dccd33937ba37a +size 193932 diff --git a/fastlane/metadata/ios/en-US/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/en-US/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..c6670ad0d --- /dev/null +++ b/fastlane/metadata/ios/en-US/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d1e239a39f9bdaf5742d9aba7d5e2c9be8fde64efcf307196abf763eeb2ea3f +size 148759 diff --git a/fastlane/metadata/ios/en-US/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/en-US/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..d0ac9cb48 --- /dev/null +++ b/fastlane/metadata/ios/en-US/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb2cd837505b3fb2c712a494ab0604edb7b6d0a6c2297dcf719b0b9d0644e106 +size 219873 diff --git a/fastlane/metadata/ios/en-US/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/en-US/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..b0f5274c3 --- /dev/null +++ b/fastlane/metadata/ios/en-US/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c63e07415bec822aafc486bbbedfea9737451ebbea70f3bf79633c35c7e645b7 +size 235527 diff --git a/fastlane/metadata/ios/es-ES/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..bdc0b6a70 --- /dev/null +++ b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c4d8c22f50161e3eb323153ea63bb9e018653e465f1731db851fc9720f2b0a8 +size 221132 diff --git a/fastlane/metadata/ios/es-ES/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/es-ES/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..9ed71a23e --- /dev/null +++ b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1445a14c4d730fd14a83c3047d4bac21f9067eeb534ec8e1ddc1edeed58b6d76 +size 195943 diff --git a/fastlane/metadata/ios/es-ES/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..5f7354df4 --- /dev/null +++ b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8488ae601fc08352446911f780f1607874fc3246158a4712c23a5129aa4e5ff8 +size 148617 diff --git a/fastlane/metadata/ios/es-ES/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..154162bee --- /dev/null +++ b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efe6461dc91297ca6c211f6d633094f4502c308d404b7713896dd1ab78f318e7 +size 219161 diff --git a/fastlane/metadata/ios/es-ES/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..48ae11194 --- /dev/null +++ b/fastlane/metadata/ios/es-ES/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a94cacb55f44149f0370af0dcb835e205ddae2d2d6afc79628eaf371beab0cc +size 234839 diff --git a/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..a0ae3d1bd --- /dev/null +++ b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3195c3ccf414b76643241e298b0d95b18fdcb8cb6f7c1456033880012418a747 +size 214966 diff --git a/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..85fbba972 --- /dev/null +++ b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d17a3a3df8f384856354a6783371169f973b1812a726e1c3abc10f3d1a978611 +size 207607 diff --git a/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..709a7db15 --- /dev/null +++ b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d49edf24fc8e2e3ed9482694711890e4efda19a7626ad562b2c6c66b8fd7cfb +size 194293 diff --git a/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..e3a54f4f3 --- /dev/null +++ b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:934db173855f9a704388ee1ba49995c855d1ac549e7e736fdfedd9225d8be8ea +size 145127 diff --git a/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..244b57864 --- /dev/null +++ b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3f668eb5fdc5842512251cd0e7535d999a999216137301f0524b6fbec417efd +size 215186 diff --git a/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..f713cb863 --- /dev/null +++ b/fastlane/metadata/ios/fa-IR/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:944f5e052d2fe0f87ef12cf51e5b6aff14679ac00b94a7477c1511350430dea2 +size 218052 diff --git a/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..f4c49554e --- /dev/null +++ b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5af0258b4749c4ef0c37a257c59243354edee81390357a5568ddd8431d688df1 +size 222273 diff --git a/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..ad8f74498 --- /dev/null +++ b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70c1cbb5bd4dd7539efb5b1753fa65cb5812714d5542b2cc2995b96f7234b0ce +size 210225 diff --git a/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..509a07d18 --- /dev/null +++ b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd37d4d38f9d6307f54a76814bc856711c123d4eb5da22de7856b0bf0d3649ec +size 194789 diff --git a/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..55396a4f0 --- /dev/null +++ b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e126138066862aa7c58b6e6e02c88cd02ad7eb6f05bffd739213dbe5aecb8abb +size 149531 diff --git a/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..d1f963c02 --- /dev/null +++ b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea8b4bd1670235ddd207d4f86fb30c4a81ae3bfc4207e94bbf15854aef23180d +size 220067 diff --git a/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..bf1481e18 --- /dev/null +++ b/fastlane/metadata/ios/fr-FR/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2650fd7ef8cb4d0e4c378baf969fdf303b42a2344c112f4740edbac73fa5408 +size 240738 diff --git a/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..75185fb8c --- /dev/null +++ b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73d2cd646d6046e3379df849e5ed2b871de36843b608de291f117b3ca6c8ff54 +size 212730 diff --git a/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..2c691ed95 --- /dev/null +++ b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48ca2435c7838227ecd139ee9f909c4b95addd07fa8883ff36e0858191a90b2f +size 194395 diff --git a/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..e43fd7b3f --- /dev/null +++ b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9c1bc6ca647693d9c8a0a71c0b11fb4c103dca3b16c99dfdc66d32d94a3f7bf +size 141498 diff --git a/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..13fb8ec55 --- /dev/null +++ b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3f539a8618002ddf530e8827cb044671357ad84524006415943c652d7e97a35 +size 222332 diff --git a/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..e48d4905a --- /dev/null +++ b/fastlane/metadata/ios/hi-IN/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e40d76c051f9f20db0db1c65020bcb1341a0134beb853cc8cc33d05cc0abc1e +size 224516 diff --git a/fastlane/metadata/ios/hr/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/hr/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..e46c6df0b --- /dev/null +++ b/fastlane/metadata/ios/hr/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a616cf26b3efc9761192f5a7ee0170434f1f273faa33a631af237c40b59e603 +size 224179 diff --git a/fastlane/metadata/ios/hr/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/hr/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/hr/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/hr/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/hr/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..9c00c45de --- /dev/null +++ b/fastlane/metadata/ios/hr/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68b85f5c5a40c80238ea9c9182e929f524304ceb59cfd2f1891f78c34e8fa5f1 +size 195150 diff --git a/fastlane/metadata/ios/hr/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/hr/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..4e1eae456 --- /dev/null +++ b/fastlane/metadata/ios/hr/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:419b62b1635d31b689240037ed38ec76dad5a8fdd94d8cb6ce13adac31dca47c +size 148813 diff --git a/fastlane/metadata/ios/hr/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/hr/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..3abfaa21c --- /dev/null +++ b/fastlane/metadata/ios/hr/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b630b846a3c4474e31dcff106d84be9964e86fe887bcc9a94c7bc4046d233c19 +size 219900 diff --git a/fastlane/metadata/ios/hr/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/hr/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..be3bed53e --- /dev/null +++ b/fastlane/metadata/ios/hr/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12d0ec40f664648429f46c52ef0ddb2d9b9df75c22eb01197d94eab9b5f011b3 +size 238940 diff --git a/fastlane/metadata/ios/it-IT/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..63febad23 --- /dev/null +++ b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22eb4001241a90b7ab235e479c803137e02e47954b62e6c18a1b641fe960ca67 +size 222702 diff --git a/fastlane/metadata/ios/it-IT/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..ff5a6b9b0 --- /dev/null +++ b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96e3f2cc19b85344fcbd082bbdbab1552a254c6db8006a5ae0e90bd966f683d4 +size 217358 diff --git a/fastlane/metadata/ios/it-IT/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..8275d314e --- /dev/null +++ b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:268d046445b287a5b597e6f1c74eb147a35e9b2dfdf5a37879af34e940c3f53f +size 199059 diff --git a/fastlane/metadata/ios/it-IT/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..8b382081f --- /dev/null +++ b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a9b45745c1c142e9290b08e495ca1d748ba465f697e01e9e6175a10e86489c1 +size 149067 diff --git a/fastlane/metadata/ios/it-IT/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..c3b8263ef --- /dev/null +++ b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b35363872d730232798436ac98b2b4ae407cfc9b74cc8077ef8aa62c2b1b5ee +size 216722 diff --git a/fastlane/metadata/ios/it-IT/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..b9d293f21 --- /dev/null +++ b/fastlane/metadata/ios/it-IT/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4b5947a659d4af5f22b9c1900ca42d9e0eacf46930c7ceafce8ecbd63d7c545 +size 235990 diff --git a/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..8d11ed618 --- /dev/null +++ b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f637cf6c16ebced81b5a98ca92d78423ac94eb3badad2561ad40f9859754a696 +size 204565 diff --git a/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..85fbba972 --- /dev/null +++ b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d17a3a3df8f384856354a6783371169f973b1812a726e1c3abc10f3d1a978611 +size 207607 diff --git a/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..0ea24df08 --- /dev/null +++ b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd90d4518ad8de9fb984912b2365b30b302cb33c79c73d3fbc7b1b6eb55a9605 +size 191463 diff --git a/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..45215e3c4 --- /dev/null +++ b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:059e496929b50cc4bfbca35fc105215b13bbb41713aec5034cf91df62c553bc5 +size 137209 diff --git a/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..32db05986 --- /dev/null +++ b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d32f291ffd1a5afbfa173f12018007bbb45111dc1a380de15cd6e0ac815e7bd7 +size 207253 diff --git a/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..f59fb61e9 --- /dev/null +++ b/fastlane/metadata/ios/iw-IL/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:045c98612b5461d355bb6cb9f7c4ec1cb8f086e138971c72b03c485cab2877b7 +size 215268 diff --git a/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..d17cec609 --- /dev/null +++ b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8b74fffbe8671569d173ff90a8aa2af4dfb12253feeefa6741dcfa1f3644d79 +size 208242 diff --git a/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..ac3c269d4 --- /dev/null +++ b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c647bcb2dab6adb3a1394e3c34c72f6d5c417025c8ccd5527845e84bb5058790 +size 186975 diff --git a/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..778ef3d4d --- /dev/null +++ b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69b4423a794abad726092cd8c0116f2dd87c0beaba5ffa3fabecbe2ace4df15a +size 141833 diff --git a/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..21c503193 --- /dev/null +++ b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1d59c6c0ddf7863964f9d4f2e0fdb570c59121a7c1ed6daaa2c0730a3572610 +size 209815 diff --git a/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..4aa356368 --- /dev/null +++ b/fastlane/metadata/ios/ko-KR/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a6089d011f481864f85ca32239eb411934a9a0a35f78ae401d45ee6e8229733 +size 220866 diff --git a/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..fb16d00fc --- /dev/null +++ b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23a3c9719f9b0c00e861e90dfd75239ff3b23dfb4d03e72f6b7ce3b8650d8ff4 +size 216917 diff --git a/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..4790c00e1 --- /dev/null +++ b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15efd4cf50392c7838fb2025d9634aa514a24eeabd6f351377dccd33937ba37a +size 193932 diff --git a/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..873e5e7d1 --- /dev/null +++ b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39835ca2f9493d25f417f71d68bedbfe93c4e31570f9d8e4f05062624cba24d3 +size 148286 diff --git a/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..c8d8d5cb8 --- /dev/null +++ b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03b8d21aa0a36a6c34427511b851903716228d28ed035755fad281b2cb7c3cfd +size 215619 diff --git a/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..7e8a2eb76 --- /dev/null +++ b/fastlane/metadata/ios/nb-NO/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1956109ce4f00474509a6f732de86d3f1ff04f300cc384e05f7fb4eb83d97e68 +size 228867 diff --git a/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..77925a157 --- /dev/null +++ b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b415216ed0213226417a1833b9261a18a44fb3c374c1cdb9dc84a3a34f5ea7d4 +size 226556 diff --git a/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..0a44e9f2e --- /dev/null +++ b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87cc601b09ab9fff95a2bf3da402766d30a58932af4ceb2073bdd47e0fb28fdb +size 196269 diff --git a/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..453ab4b7f --- /dev/null +++ b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16b38d42f01955db5feb3b4207e2325c604ab5358f108da7d75dea1626c00e59 +size 147064 diff --git a/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..3af3b0268 --- /dev/null +++ b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97925e3bf864305149006ffee71fc413c1888ada5ed2a4c9d7d8a8474f6384c1 +size 219887 diff --git a/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..b6c05e9ca --- /dev/null +++ b/fastlane/metadata/ios/pl-PL/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22995ca36bb7094d5b544ebfcd43f8c475cd7d579eef685a87abb4494d23bc53 +size 237013 diff --git a/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..a4151b9b5 --- /dev/null +++ b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1533955172414f89cd4ddc04a7701d07111280c81b2f17c3616dbcefb52f5f4 +size 222777 diff --git a/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..5114ac1c2 --- /dev/null +++ b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa960b87772df06f7f1d648c97e537226c6b10c96c1ca373f0288d1ae238f65d +size 212003 diff --git a/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..fc88d6bf5 --- /dev/null +++ b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a58c1e7f68dccb835a46d36da9671e0662241420fc73fd4a265905972f80002 +size 195959 diff --git a/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..f196d30fd --- /dev/null +++ b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ea0c7cb7fb177ddbf8d2c9168e9181dc72f72bbb4542b91f18a681176a9e860 +size 149900 diff --git a/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..997f7de97 --- /dev/null +++ b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8fa718f5e5b123b67d7bc9f1fbe570007dcec4033cab9619bf2d08833be5c16 +size 220475 diff --git a/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..f7efaedc5 --- /dev/null +++ b/fastlane/metadata/ios/pt-BR/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f21b2009c040214c5ba3a58696969e553e1d6b9ce7e8397c120f611270e3f762 +size 231411 diff --git a/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..0d4879e4f --- /dev/null +++ b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40fcad9ba5cf8eb42143a2e91945f7a1c7801a04ab72529b996cc71bf8df627b +size 224028 diff --git a/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..5114ac1c2 --- /dev/null +++ b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa960b87772df06f7f1d648c97e537226c6b10c96c1ca373f0288d1ae238f65d +size 212003 diff --git a/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..fc88d6bf5 --- /dev/null +++ b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a58c1e7f68dccb835a46d36da9671e0662241420fc73fd4a265905972f80002 +size 195959 diff --git a/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..5581f6944 --- /dev/null +++ b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:decf519ed848c247e4e7ae91186a239c054ffee1dd8bf7de165971d81f18d491 +size 151329 diff --git a/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..fb7dce35e --- /dev/null +++ b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c10b24f56fbddfeccfdfc3f40f5e34efb4a02a9407ee1df3ecec2a311d320678 +size 222562 diff --git a/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..6acb7e4ab --- /dev/null +++ b/fastlane/metadata/ios/pt-PT/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcc4aaac6e8253362414eaba2892aab4e740c84e7e03dcb760c2347abfd8639b +size 233124 diff --git a/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..36d21a4e0 --- /dev/null +++ b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c51319d4e36a1fe397dbe63a9000ec73719a025143bfc6489a50942206f2c062 +size 222203 diff --git a/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..f4f3f88d6 --- /dev/null +++ b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5b37130a5ba5f5b7fbccfba22e8a006584e2d5161230adf37ab037e530c7207 +size 190581 diff --git a/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..02a563eb1 --- /dev/null +++ b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:959e77000c633e84bd121632a72bd2ca9898c6640152896970d6882ad76fcd30 +size 149300 diff --git a/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..a2a5b7118 --- /dev/null +++ b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:963746ee00245e63c7994ea911536b5eabfab4b29ae1462cdb73429f8eb7c7b6 +size 214943 diff --git a/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..6c5c4ec01 --- /dev/null +++ b/fastlane/metadata/ios/ru-RU/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94d55b164351886b336b3595a8ac5dc9168fa3a1f901ceaf74be1909acf3a03c +size 228026 diff --git a/fastlane/metadata/ios/sr/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/sr/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..b89f4b564 --- /dev/null +++ b/fastlane/metadata/ios/sr/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47d13ed73dd319fefee50bb979c29115ad7eb8733d861e73f7ceb1e87e5606a8 +size 220182 diff --git a/fastlane/metadata/ios/sr/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/sr/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/sr/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/sr/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/sr/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..4790c00e1 --- /dev/null +++ b/fastlane/metadata/ios/sr/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15efd4cf50392c7838fb2025d9634aa514a24eeabd6f351377dccd33937ba37a +size 193932 diff --git a/fastlane/metadata/ios/sr/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/sr/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..c6670ad0d --- /dev/null +++ b/fastlane/metadata/ios/sr/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d1e239a39f9bdaf5742d9aba7d5e2c9be8fde64efcf307196abf763eeb2ea3f +size 148759 diff --git a/fastlane/metadata/ios/sr/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/sr/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..f8faf89e6 --- /dev/null +++ b/fastlane/metadata/ios/sr/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36f54171bfb543737ca722f4c2cdec48e88008b99f5b169f92f0cdfe74855baf +size 218578 diff --git a/fastlane/metadata/ios/sr/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/sr/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..b0f5274c3 --- /dev/null +++ b/fastlane/metadata/ios/sr/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c63e07415bec822aafc486bbbedfea9737451ebbea70f3bf79633c35c7e645b7 +size 235527 diff --git a/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..952abcbbf --- /dev/null +++ b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f1950d1b3c92bf17ef02dafb161db932a2e541a1893c2877841b6eaf85e80ba +size 236979 diff --git a/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..3e573e2b5 --- /dev/null +++ b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a381d141fcff5432b41ecb15aa25ac58c3bddac179ab277726b8a47c6485261c +size 205684 diff --git a/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..f91c8bd4d --- /dev/null +++ b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eee1bff71bf774224f42e2f286a2f76a9be368323eaccfbc3eab10cd7cfba7a8 +size 156805 diff --git a/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..77f7d3fdd --- /dev/null +++ b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9ae2ca0edce4ecf5f396016b4ceb37b8824da8b90dbd758943bd10790189a9d +size 240751 diff --git a/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..679c6ae98 --- /dev/null +++ b/fastlane/metadata/ios/ta-IN/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a05b0aba7fe0e4610ef17f9f72a8c69275f53cdbca9f22a52de03e7dbf514cc +size 260697 diff --git a/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..2f70697a6 --- /dev/null +++ b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3eb6b0c5272a05e23c3e4c4f8ac1f28f6b87bb48cd60f6271f3eb8ab9dcf4988 +size 223625 diff --git a/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..6d2729548 --- /dev/null +++ b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24d8f81b4978b842646b13a3eef80fcf5e9fc71b1ec0526af3469b3cddc2ce5c +size 207833 diff --git a/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..16f73d3fb --- /dev/null +++ b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73a191ceac26029bd23ad10fa7ee95f49fabd0b4700d7202b4236c1d7a5ab64f +size 194525 diff --git a/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..3dcd088f5 --- /dev/null +++ b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b801d69b434e269bb2736d2c88a93720aa2cad10946efc223bbef82611b17542 +size 147291 diff --git a/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..0159da99b --- /dev/null +++ b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bcfe1296d7ad475769b5a25f0d0603b890a1e09f5a3e02645554dc4d977a069 +size 220412 diff --git a/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..572a214d9 --- /dev/null +++ b/fastlane/metadata/ios/tr-TR/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7599bc45d30b109bf2e396f23f7076ebaf35a5269f691c24aca76da119bd806 +size 234084 diff --git a/fastlane/metadata/ios/uk/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/uk/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..3dc1f5a61 --- /dev/null +++ b/fastlane/metadata/ios/uk/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0023c43dbc4d31b4097da3852c8d765b5beb25a548aa1e4719114ca751adc25e +size 220589 diff --git a/fastlane/metadata/ios/uk/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/uk/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7cb596906 --- /dev/null +++ b/fastlane/metadata/ios/uk/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47f96d137ecb5d36131eb40c0848fce018ec722e5e797fd780930468dc97ac0f +size 207759 diff --git a/fastlane/metadata/ios/uk/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/uk/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..bed73333d --- /dev/null +++ b/fastlane/metadata/ios/uk/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a2db097e688c54a7cc87d4131dbd115e84ce30d8febafc6b033356aab62f2cc +size 189197 diff --git a/fastlane/metadata/ios/uk/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/uk/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..fcec2ef82 --- /dev/null +++ b/fastlane/metadata/ios/uk/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9af7f4d65630bd366ea526e649aec480426482a0567138d187662bd8257740a +size 149664 diff --git a/fastlane/metadata/ios/uk/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/uk/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..c7083fdbc --- /dev/null +++ b/fastlane/metadata/ios/uk/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edcb8bc540459be0b05d37ed68df4d73fd1cd2a69aff73d4aaf97aac10956b21 +size 213049 diff --git a/fastlane/metadata/ios/uk/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/uk/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..5828a2020 --- /dev/null +++ b/fastlane/metadata/ios/uk/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a19abf265efc2895838665425b94fa73ab03b985e1b52bef83f64b14407f8bd +size 225983 diff --git a/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..3fed1cbbf --- /dev/null +++ b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43e2695f2f493be93b8765a2dd1b7f11e03cf3a78518d2078b7c822432ae0b09 +size 211126 diff --git a/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7e7c091b4 --- /dev/null +++ b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb39cf4cfe4b40092a8ae725e7bfefda081c83fc407b8390cf0ad502a7601976 +size 210185 diff --git a/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..364f8ae1d --- /dev/null +++ b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1931da71bd3e9717d4662b4b575e15712990449ba3f8d418c55d55ec847faf8f +size 196769 diff --git a/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..b75589fe9 --- /dev/null +++ b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd646174629e5b51b9417aecace8efe66261a865cbb64f7b46af21a7ce5edda8 +size 144042 diff --git a/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..b01c7ad9e --- /dev/null +++ b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c83b57fb37d09f9b2f119addedc367e61f84ad45e5ee88fdd2a81df374b8d422 +size 217829 diff --git a/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..391bd4875 --- /dev/null +++ b/fastlane/metadata/ios/zh-CN/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:777d6f265bb4b52992763ea65b64c54636b2915219020bfda80edaa711b37a78 +size 239522 diff --git a/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/01 - dashboard.png b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/01 - dashboard.png new file mode 100644 index 000000000..6e4a6953d --- /dev/null +++ b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/01 - dashboard.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c574b28efe243ddba64fcaf3928572a32fd7a3d072665d6f216b39186f4f65f +size 210851 diff --git a/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/02 - workout detail.png b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/02 - workout detail.png new file mode 100644 index 000000000..7e7c091b4 --- /dev/null +++ b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/02 - workout detail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb39cf4cfe4b40092a8ae725e7bfefda081c83fc407b8390cf0ad502a7601976 +size 210185 diff --git a/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/03 - gym mode.png b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/03 - gym mode.png new file mode 100644 index 000000000..364f8ae1d --- /dev/null +++ b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/03 - gym mode.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1931da71bd3e9717d4662b4b575e15712990449ba3f8d418c55d55ec847faf8f +size 196769 diff --git a/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/04 - measurements.png b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/04 - measurements.png new file mode 100644 index 000000000..b75589fe9 --- /dev/null +++ b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/04 - measurements.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd646174629e5b51b9417aecace8efe66261a865cbb64f7b46af21a7ce5edda8 +size 144042 diff --git a/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/05 - nutritional plan.png b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/05 - nutritional plan.png new file mode 100644 index 000000000..23656d341 --- /dev/null +++ b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/05 - nutritional plan.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd67aae0ec37a0ff734021caf87023c034a23fabd997c654de469c64a8f01f20 +size 218060 diff --git a/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/06 - weight.png b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/06 - weight.png new file mode 100644 index 000000000..391bd4875 --- /dev/null +++ b/fastlane/metadata/ios/zh-TW/images/iPhone 6.9/06 - weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:777d6f265bb4b52992763ea65b64c54636b2915219020bfda80edaa711b37a78 +size 239522 diff --git a/flatpak/de.wger.flutter.metainfo.xml b/flatpak/de.wger.flutter.metainfo.xml index c7417dc8b..1a8de761d 100755 --- a/flatpak/de.wger.flutter.metainfo.xml +++ b/flatpak/de.wger.flutter.metainfo.xml @@ -49,35 +49,89 @@ wger's dashboard - https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/01%20-%20dashboard.png + https://media.githubusercontent.com/media/wger-project/flutter/refs/heads/master/fastlane/metadata/android/en-US/images/phoneScreenshots/01%20-%20dashboard.png Workout detail - https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/02%20-%20workout%20detail.png + https://media.githubusercontent.com/media/wger-project/flutter/refs/heads/master/fastlane/metadata/android/en-US/images/phoneScreenshots/02%20-%20workout%20detail.png + + + + Gym mode + + https://media.githubusercontent.com/media/wger-project/flutter/refs/heads/master/fastlane/metadata/android/en-US/images/phoneScreenshots/03%20-%20gym%20mode.png Measurements - https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/04%20-%20measurements.png + https://media.githubusercontent.com/media/wger-project/flutter/refs/heads/master/fastlane/metadata/android/en-US/images/phoneScreenshots/04%20-%20measurements.png Nutritional plan - https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/05%20-%20nutritional%20plan.png + https://media.githubusercontent.com/media/wger-project/flutter/refs/heads/master/fastlane/metadata/android/en-US/images/phoneScreenshots/05%20-%20nutritional%20plan.png Body weight - https://raw.githubusercontent.com/wger-project/flutter/master/fastlane/metadata/android/en-US/images/phoneScreenshots/06%20-%20weight.png + https://media.githubusercontent.com/media/wger-project/flutter/refs/heads/master/fastlane/metadata/android/en-US/images/phoneScreenshots/06%20-%20weight.png + + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.10.1 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.10.0 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.6 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.5 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.4 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.3 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.2 +
+ + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.1 +

Bug fixes and improvements.

diff --git a/integration_test/1_dashboard.dart b/integration_test/1_dashboard.dart index 7580b828e..07f9d1fbe 100644 --- a/integration_test/1_dashboard.dart +++ b/integration_test/1_dashboard.dart @@ -3,16 +3,21 @@ import 'package:mockito/mockito.dart'; import 'package:provider/provider.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/session.dart'; +import 'package:wger/providers/auth.dart'; import 'package:wger/providers/body_weight.dart'; +import 'package:wger/providers/exercises.dart'; +import 'package:wger/providers/gallery.dart'; import 'package:wger/providers/measurement.dart'; import 'package:wger/providers/nutrition.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/providers/user.dart'; -import 'package:wger/screens/dashboard.dart'; +import 'package:wger/screens/home_tabs_screen.dart'; import 'package:wger/theme/theme.dart'; import '../test/exercises/contribute_exercise_test.mocks.dart'; +import '../test/gallery/gallery_form_test.mocks.dart'; import '../test/measurements/measurement_categories_screen_test.mocks.dart'; +import '../test/nutrition/nutritional_plan_screen_test.mocks.dart'; import '../test/routine/weight_unit_form_widget_test.mocks.dart'; import '../test/weight/weight_screen_test.mocks.dart' as weight; import '../test_data/body_weight.dart'; @@ -22,7 +27,17 @@ import '../test_data/nutritional_plans.dart'; import '../test_data/profile.dart'; import '../test_data/routines.dart'; -Widget createDashboardScreen({String locale = 'en'}) { +Widget createDashboardScreen({Locale? locale}) { + locale ??= const Locale('en'); + + final mockGalleryProvider = MockGalleryProvider(); + + final mockExercisesProvider = MockExercisesProvider(); + + final mockAuthProvider = MockAuthProvider(); + when(mockAuthProvider.setServerVersion()).thenAnswer((_) async {}); + when(mockAuthProvider.dataInit).thenReturn(true); + final mockWorkoutProvider = MockRoutinesProvider(); when(mockWorkoutProvider.items).thenReturn([getTestRoutine(exercises: getScreenshotExercises())]); when( @@ -57,31 +72,47 @@ Widget createDashboardScreen({String locale = 'en'}) { final mockUserProvider = MockUserProvider(); when(mockUserProvider.profile).thenReturn(tProfile1); - return MultiProvider( - providers: [ - ChangeNotifierProvider( - create: (context) => mockUserProvider, + return MediaQuery( + data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first).copyWith( + padding: EdgeInsets.zero, + viewPadding: EdgeInsets.zero, + viewInsets: EdgeInsets.zero, + ), + child: MultiProvider( + providers: [ + ChangeNotifierProvider( + create: (context) => mockGalleryProvider, + ), + ChangeNotifierProvider( + create: (context) => mockExercisesProvider, + ), + ChangeNotifierProvider( + create: (context) => mockAuthProvider, + ), + ChangeNotifierProvider( + create: (context) => mockUserProvider, + ), + ChangeNotifierProvider( + create: (context) => mockWorkoutProvider, + ), + ChangeNotifierProvider( + create: (context) => mockNutritionProvider, + ), + ChangeNotifierProvider( + create: (context) => mockWeightProvider, + ), + ChangeNotifierProvider( + create: (context) => mockMeasurementProvider, + ), + ], + child: MaterialApp( + locale: locale, + debugShowCheckedModeBanner: false, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + theme: wgerLightTheme, + home: HomeTabsScreen(), ), - ChangeNotifierProvider( - create: (context) => mockWorkoutProvider, - ), - ChangeNotifierProvider( - create: (context) => mockNutritionProvider, - ), - ChangeNotifierProvider( - create: (context) => mockWeightProvider, - ), - ChangeNotifierProvider( - create: (context) => mockMeasurementProvider, - ), - ], - child: MaterialApp( - locale: Locale(locale), - debugShowCheckedModeBanner: false, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - theme: wgerLightTheme, - home: const DashboardScreen(), ), ); } diff --git a/integration_test/2_workout.dart b/integration_test/2_workout.dart index 9abe07672..f627dda0d 100644 --- a/integration_test/2_workout.dart +++ b/integration_test/2_workout.dart @@ -10,36 +10,42 @@ import '../test/routine/routine_form_test.mocks.dart'; import '../test_data/exercises.dart'; import '../test_data/routines.dart'; -Widget createWorkoutDetailScreen({locale = 'en'}) { +Widget createWorkoutDetailScreen({Locale? locale}) { + locale ??= const Locale('en'); final key = GlobalKey(); final mockRoutinesProvider = MockRoutinesProvider(); final routine = getTestRoutine(exercises: getScreenshotExercises()); - // when(mockRoutinesProvider.activeRoutine).thenReturn(routine); when(mockRoutinesProvider.findById(1)).thenReturn(routine); - // when(mockRoutinesProvider.fetchAndSetRoutineFull(1)).thenAnswer((_) => Future.value(routine)); - return MultiProvider( - providers: [ - ChangeNotifierProvider( - create: (context) => mockRoutinesProvider, - ), - ], - child: MaterialApp( - locale: Locale(locale), - debugShowCheckedModeBanner: false, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - theme: wgerLightTheme, - navigatorKey: key, - home: TextButton( - onPressed: () => key.currentState!.push( - MaterialPageRoute( - settings: RouteSettings(arguments: routine.id), - builder: (_) => const RoutineScreen(), - ), + return MediaQuery( + data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first).copyWith( + padding: EdgeInsets.zero, + viewPadding: EdgeInsets.zero, + viewInsets: EdgeInsets.zero, + ), + child: MultiProvider( + providers: [ + ChangeNotifierProvider( + create: (context) => mockRoutinesProvider, + ), + ], + child: MaterialApp( + locale: locale, + debugShowCheckedModeBanner: false, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + theme: wgerLightTheme, + navigatorKey: key, + home: TextButton( + onPressed: () => key.currentState!.push( + MaterialPageRoute( + settings: RouteSettings(arguments: routine.id), + builder: (_) => const RoutineScreen(), + ), + ), + child: const SizedBox(), ), - child: const SizedBox(), ), ), ); diff --git a/integration_test/3_gym_mode.dart b/integration_test/3_gym_mode.dart index 76431f08f..16fdfbdda 100644 --- a/integration_test/3_gym_mode.dart +++ b/integration_test/3_gym_mode.dart @@ -1,19 +1,23 @@ +import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart' as riverpod; import 'package:mockito/mockito.dart'; import 'package:provider/provider.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/exercises.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/screens/gym_mode.dart'; import 'package:wger/screens/routine_screen.dart'; import 'package:wger/theme/theme.dart'; +import 'package:wger/widgets/routines/gym_mode/summary.dart'; -import '../test/routine/gym_mode_screen_test.mocks.dart'; +import '../test/routine/gym_mode/gym_mode_test.mocks.dart'; import '../test_data/exercises.dart'; import '../test_data/routines.dart'; -Widget createGymModeScreen({locale = 'en'}) { +Widget createGymModeScreen({Locale? locale}) { + locale ??= const Locale('en'); final key = GlobalKey(); final exercises = getTestExercises(); final routine = getTestRoutine(exercises: getScreenshotExercises()); @@ -25,10 +29,77 @@ Widget createGymModeScreen({locale = 'en'}) { when(mockExerciseProvider.findExerciseById(1)).thenReturn(exercises[0]); // bench press when(mockExerciseProvider.findExerciseById(6)).thenReturn(exercises[5]); // side raises - //when(mockExerciseProvider.findExerciseBaseById(2)).thenReturn(bases[1]); // crunches - //when(mockExerciseProvider.findExerciseBaseById(3)).thenReturn(bases[2]); // dead lift - return riverpod.ProviderScope( + return MediaQuery( + data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first).copyWith( + padding: EdgeInsets.zero, + viewPadding: EdgeInsets.zero, + viewInsets: EdgeInsets.zero, + ), + child: riverpod.ProviderScope( + child: MultiProvider( + providers: [ + ChangeNotifierProvider( + create: (context) => mockRoutinesProvider, + ), + ChangeNotifierProvider( + create: (context) => mockExerciseProvider, + ), + ], + child: MaterialApp( + locale: locale, + debugShowCheckedModeBanner: false, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + navigatorKey: key, + theme: wgerLightTheme, + home: TextButton( + onPressed: () => key.currentState!.push( + MaterialPageRoute( + settings: RouteSettings( + arguments: GymModeArguments(routine.id!, routine.days.first.id!, 1), + ), + builder: (_) => const GymModeScreen(), + ), + ), + child: const SizedBox(), + ), + routes: { + RoutineScreen.routeName: (ctx) => const RoutineScreen(), + }, + ), + ), + ), + ); +} + +Widget createGymModeResultsScreen({String locale = 'en'}) { + final controller = PageController(initialPage: 0); + + final key = GlobalKey(); + final routine = getTestRoutine(exercises: getScreenshotExercises()); + routine.sessions.first.session.date = clock.now(); + + final mockRoutinesProvider = MockRoutinesProvider(); + final mockExerciseProvider = MockExercisesProvider(); + + when(mockRoutinesProvider.fetchAndSetRoutineFull(1)).thenAnswer((_) async => routine); + when(mockRoutinesProvider.findById(1)).thenAnswer((_) => routine); + + return riverpod.UncontrolledProviderScope( + container: riverpod.ProviderContainer.test( + overrides: [ + gymStateProvider.overrideWithValue( + GymModeState( + routine: routine, + dayId: routine.days.first.id!, + iteration: 1, + showExercisePages: true, + showTimerPages: true, + ), + ), + ], + ), child: MultiProvider( providers: [ ChangeNotifierProvider( @@ -45,20 +116,14 @@ Widget createGymModeScreen({locale = 'en'}) { supportedLocales: AppLocalizations.supportedLocales, navigatorKey: key, theme: wgerLightTheme, - home: TextButton( - onPressed: () => key.currentState!.push( - MaterialPageRoute( - settings: RouteSettings( - arguments: GymModeArguments(routine.id!, routine.days.first.id!, 1), - ), - builder: (_) => const GymModeScreen(), - ), + home: Scaffold( + body: PageView( + controller: controller, + children: [ + WorkoutSummary(controller), + ], ), - child: const SizedBox(), ), - routes: { - RoutineScreen.routeName: (ctx) => const RoutineScreen(), - }, ), ), ); diff --git a/integration_test/4_measurements.dart b/integration_test/4_measurements.dart index 9e5874c23..d3481e966 100644 --- a/integration_test/4_measurements.dart +++ b/integration_test/4_measurements.dart @@ -9,21 +9,32 @@ import 'package:wger/theme/theme.dart'; import '../test/measurements/measurement_categories_screen_test.mocks.dart'; import '../test_data/measurements.dart'; -Widget createMeasurementScreen({locale = 'en'}) { +Widget createMeasurementScreen({Locale? locale}) { + locale ??= const Locale('en'); + final mockMeasurementProvider = MockMeasurementProvider(); when(mockMeasurementProvider.categories).thenReturn(getMeasurementCategories()); - return MultiProvider( - providers: [ - ChangeNotifierProvider(create: (context) => mockMeasurementProvider), - ], - child: MaterialApp( - locale: Locale(locale), - debugShowCheckedModeBanner: false, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - theme: wgerLightTheme, - home: const MeasurementCategoriesScreen(), + return MediaQuery( + data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first).copyWith( + padding: EdgeInsets.zero, + viewPadding: EdgeInsets.zero, + viewInsets: EdgeInsets.zero, + ), + child: MultiProvider( + providers: [ + ChangeNotifierProvider( + create: (context) => mockMeasurementProvider, + ), + ], + child: MaterialApp( + locale: locale, + debugShowCheckedModeBanner: false, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + theme: wgerLightTheme, + home: const MeasurementCategoriesScreen(), + ), ), ); } diff --git a/integration_test/5_nutritional_plan.dart b/integration_test/5_nutritional_plan.dart index dacb17251..4726c7804 100644 --- a/integration_test/5_nutritional_plan.dart +++ b/integration_test/5_nutritional_plan.dart @@ -11,39 +11,47 @@ import 'package:wger/theme/theme.dart'; import '../test/user/provider_test.mocks.dart'; import '../test_data/nutritional_plans.dart'; -Widget createNutritionalPlanScreen({locale = 'en'}) { +Widget createNutritionalPlanScreen({Locale? locale}) { + locale ??= const Locale('en'); final mockBaseProvider = MockWgerBaseProvider(); final key = GlobalKey(); - return MultiProvider( - providers: [ - ChangeNotifierProvider( - create: (context) => NutritionPlansProvider( - mockBaseProvider, - [], - database: IngredientDatabase.inMemory(NativeDatabase.memory()), - ), - ), - ChangeNotifierProvider( - create: (context) => BodyWeightProvider(mockBaseProvider), - ), - ], - child: MaterialApp( - locale: Locale(locale), - debugShowCheckedModeBanner: false, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - theme: wgerLightTheme, - navigatorKey: key, - home: TextButton( - onPressed: () => key.currentState!.push( - MaterialPageRoute( - settings: RouteSettings(arguments: getNutritionalPlanScreenshot()), - builder: (_) => const NutritionalPlanScreen(), + return MediaQuery( + data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first).copyWith( + padding: EdgeInsets.zero, + viewPadding: EdgeInsets.zero, + viewInsets: EdgeInsets.zero, + ), + child: MultiProvider( + providers: [ + ChangeNotifierProvider( + create: (context) => NutritionPlansProvider( + mockBaseProvider, + [], + database: IngredientDatabase.inMemory(NativeDatabase.memory()), ), ), - child: const SizedBox(), + ChangeNotifierProvider( + create: (context) => BodyWeightProvider(mockBaseProvider), + ), + ], + child: MaterialApp( + locale: locale, + debugShowCheckedModeBanner: false, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + theme: wgerLightTheme, + navigatorKey: key, + home: TextButton( + onPressed: () => key.currentState!.push( + MaterialPageRoute( + settings: RouteSettings(arguments: getNutritionalPlanScreenshot()), + builder: (_) => const NutritionalPlanScreen(), + ), + ), + child: const SizedBox(), + ), ), ), ); diff --git a/integration_test/6_weight.dart b/integration_test/6_weight.dart index f02c059de..849ac01e9 100644 --- a/integration_test/6_weight.dart +++ b/integration_test/6_weight.dart @@ -15,7 +15,8 @@ import '../test_data/body_weight.dart'; import '../test_data/nutritional_plans.dart'; import '../test_data/profile.dart'; -Widget createWeightScreen({locale = 'en'}) { +Widget createWeightScreen({Locale? locale}) { + locale ??= const Locale('en'); final weightProvider = BodyWeightProvider(mockBaseProvider); weightProvider.items = getScreenshotWeightEntries(); @@ -26,26 +27,33 @@ Widget createWeightScreen({locale = 'en'}) { when(mockNutritionPlansProvider.currentPlan).thenReturn(null); when(mockNutritionPlansProvider.items).thenReturn([getNutritionalPlan()]); - return MultiProvider( - providers: [ - ChangeNotifierProvider( - create: (context) => mockUserProvider, + return MediaQuery( + data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first).copyWith( + padding: EdgeInsets.zero, + viewPadding: EdgeInsets.zero, + viewInsets: EdgeInsets.zero, + ), + child: MultiProvider( + providers: [ + ChangeNotifierProvider( + create: (context) => mockUserProvider, + ), + ChangeNotifierProvider( + create: (context) => weightProvider, + ), + ChangeNotifierProvider( + create: (context) => mockNutritionPlansProvider, + ), + ], + child: MaterialApp( + locale: locale, + debugShowCheckedModeBanner: false, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + theme: wgerLightTheme, + home: const WeightScreen(), + routes: {FormScreen.routeName: (ctx) => const FormScreen()}, ), - ChangeNotifierProvider( - create: (context) => weightProvider, - ), - ChangeNotifierProvider( - create: (context) => mockNutritionPlansProvider, - ), - ], - child: MaterialApp( - locale: Locale(locale), - debugShowCheckedModeBanner: false, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - theme: wgerLightTheme, - home: const WeightScreen(), - routes: {FormScreen.routeName: (ctx) => const FormScreen()}, ), ); } diff --git a/integration_test/README.md b/integration_test/README.md index cdc6a5934..bbc549237 100644 --- a/integration_test/README.md +++ b/integration_test/README.md @@ -2,7 +2,16 @@ This will generate some screenshots and save them to the Play Store metadata fol 1) Set the correct value for the device size by setting the `destination` variable 2) Start the correct emulator and - run `flutter drive --driver=test_driver/screenshot_driver.dart --target=integration_test/make_screenshots_test.dart` + run + ``` + flutter drive \ + --driver=test_driver/screenshot_driver.dart \ + --target=integration_test/make_screenshots_test.dart \ + --dart-define=DEVICE_TYPE=androidPhone + ``` + For the values of device type, consult the values of the DeviceType enum in + `make_screenshots_test.dart` +5) flutter drive --driver=test_driver/screenshot_driver.dart --target=integration_test/make_screenshots_test.dart --dart-define=DEVICE_TYPE=androidPhone` 3) If you get errors or the screenshots are not written to disk, edit the `languages` list and comment some of the languages diff --git a/integration_test/make_screenshots_test.dart b/integration_test/make_screenshots_test.dart index 3d4753634..97a7b999c 100644 --- a/integration_test/make_screenshots_test.dart +++ b/integration_test/make_screenshots_test.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:drift/drift.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; @@ -11,16 +12,42 @@ import '4_measurements.dart'; import '5_nutritional_plan.dart'; import '6_weight.dart'; -// Type of device +/// Type of device +/// +/// For Apple: https://developer.apple.com/help/app-store-connect/reference/app-information/screenshot-specifications +/// For Android: https://support.google.com/googleplay/android-developer/answer/9866151#zippy=%2Cscreenshots enum DeviceType { - phoneScreenshots, - sevenInchScreenshots, - tenInchScreenshots, - tvScreenshots, - wearScreenshots, + androidPhone('phoneScreenshots'), + androidTabletSmall('sevenInchScreenshots'), + androidTabletBig('tenInchScreenshots'), + androidTv('tvScreenshots'), + androidWear('wearScreenshots'), + + iOSPhoneBig('iPhone 6.9', isAndroid: false), + iOSPhoneSmall('iPhone 6.7', isAndroid: false); + + final String folderName; + final bool isAndroid; + + const DeviceType(this.folderName, {this.isAndroid = true}); + + String fastlanePath(String language, String name) { + final os = isAndroid ? 'android' : 'ios'; + + return 'fastlane/metadata/$os/$language/images/$folderName/$name.png'; + } } -final destination = DeviceType.phoneScreenshots.name; +const _deviceArg = String.fromEnvironment('DEVICE_TYPE', defaultValue: 'androidPhone'); + +// Determine the destination device type based on the provided argument +final DeviceType destination = DeviceType.values.firstWhere( + (d) => d.toString().split('.').last == _deviceArg || ((d.name ?? '') == _deviceArg), + orElse: () { + print('***** Unknown DEVICE_TYPE="$_deviceArg", defaulting to androidPhone *****'); + return DeviceType.androidPhone; + }, +); Future takeScreenshot( WidgetTester tester, @@ -33,14 +60,15 @@ Future takeScreenshot( await binding.convertFlutterSurfaceToImage(); await tester.pumpAndSettle(); } - final filename = 'fastlane/metadata/android/$language/images/$destination/$name.png'; + + final filename = destination.fastlanePath(language, name); await binding.takeScreenshot(filename); } // Available languages in weblate for the fastlane/metadata/android folder (not necessarily // those for which the application is translated) const languages = [ - // Note: it seems if too many languages are processed at once, some processes + // Note: it seems if too many languages are processed at once, sometimes the process // disappear and no images are written. Doing this in smaller steps works fine 'ar', 'ca', @@ -50,14 +78,16 @@ const languages = [ 'en-US', 'es-ES', + 'fa-IR', 'fr-FR', 'hi-IN', 'hr', 'it-IT', + 'iw-IL', 'ko-KR', 'nb-NO', - 'pl-PL', + 'pl-PL', 'pt-BR', 'pt-PT', 'ru-RU', @@ -72,43 +102,66 @@ const languages = [ void main() { final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + group('Generate screenshots', () { + setUpAll(() async { + // Suppress warnings about multiple database instances, it's ok during testing + driftRuntimeOptions.dontWarnAboutMultipleDatabases = true; + }); + for (final language in languages) { - final languageCode = language.split('-')[0]; + final split = language.split('-'); + final languageCode = split.first; + final countryCode = split.length > 1 ? split.last : null; + + final locale = Locale(languageCode, countryCode); testWidgets('dashboard screen - $language', (WidgetTester tester) async { - await tester.pumpWidget(createDashboardScreen(locale: languageCode)); + await tester.pumpWidget(createDashboardScreen(locale: locale)); + await tester.pumpAndSettle(); await takeScreenshot(tester, binding, language, '01 - dashboard'); }); testWidgets('workout detail screen - $language', (WidgetTester tester) async { - await tester.pumpWidget(createWorkoutDetailScreen(locale: languageCode)); + await tester.pumpWidget(createWorkoutDetailScreen(locale: locale)); await tester.tap(find.byType(TextButton)); await tester.pumpAndSettle(); await takeScreenshot(tester, binding, language, '02 - workout detail'); }); - testWidgets('gym mode screen - $language', (WidgetTester tester) async { - await tester.pumpWidget(createGymModeScreen(locale: languageCode)); - await tester.tap(find.byType(TextButton)); + // testWidgets('gym mode screen - $language', (WidgetTester tester) async { + // await tester.pumpWidget(createGymModeScreen(locale: locale)); + // await tester.tap(find.byType(TextButton)); + // await tester.pumpAndSettle(); + // await tester.tap(find.byKey(const ValueKey('gym-mode-options-tile'))); + // await tester.pumpAndSettle(); + // await tester.tap(find.byKey(const ValueKey('gym-mode-option-show-exercises'))); + // await tester.pumpAndSettle(); + // await takeScreenshot(tester, binding, language, '03 - gym mode'); + // }); + + testWidgets('gym mode stats screen - $language', (WidgetTester tester) async { + await tester.pumpWidget(createGymModeResultsScreen(locale: languageCode)); await tester.pumpAndSettle(); await takeScreenshot(tester, binding, language, '03 - gym mode'); }); testWidgets('measurement screen - $language', (WidgetTester tester) async { - await tester.pumpWidget(createMeasurementScreen(locale: languageCode)); + await tester.pumpWidget(createMeasurementScreen(locale: locale)); + await tester.pumpAndSettle(); await takeScreenshot(tester, binding, language, '04 - measurements'); }); testWidgets('nutritional plan detail - $language', (WidgetTester tester) async { - await tester.pumpWidget(createNutritionalPlanScreen(locale: languageCode)); + await tester.pumpWidget(createNutritionalPlanScreen(locale: locale)); await tester.tap(find.byType(TextButton)); await tester.pumpAndSettle(); await takeScreenshot(tester, binding, language, '05 - nutritional plan'); }); testWidgets('body weight screen - $language', (WidgetTester tester) async { - await tester.pumpWidget(createWeightScreen(locale: languageCode)); + await tester.pumpWidget(createWeightScreen(locale: locale)); await tester.pumpAndSettle(); await takeScreenshot(tester, binding, language, '06 - weight'); }); diff --git a/ios/Flutter/ephemeral/flutter_lldb_helper.py b/ios/Flutter/ephemeral/flutter_lldb_helper.py new file mode 100644 index 000000000..a88caf99d --- /dev/null +++ b/ios/Flutter/ephemeral/flutter_lldb_helper.py @@ -0,0 +1,32 @@ +# +# Generated file, do not edit. +# + +import lldb + +def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict): + """Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages.""" + base = frame.register["x0"].GetValueAsAddress() + page_len = frame.register["x1"].GetValueAsUnsigned() + + # Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the + # first page to see if handled it correctly. This makes diagnosing + # misconfiguration (e.g. missing breakpoint) easier. + data = bytearray(page_len) + data[0:8] = b'IHELPED!' + + error = lldb.SBError() + frame.GetThread().GetProcess().WriteMemory(base, data, error) + if not error.Success(): + print(f'Failed to write into {base}[+{page_len}]', error) + return + +def __lldb_init_module(debugger: lldb.SBDebugger, _): + target = debugger.GetDummyTarget() + # Caveat: must use BreakpointCreateByRegEx here and not + # BreakpointCreateByName. For some reasons callback function does not + # get carried over from dummy target for the later. + bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$") + bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__)) + bp.SetAutoContinue(True) + print("-- LLDB integration loaded --") diff --git a/ios/Flutter/ephemeral/flutter_lldbinit b/ios/Flutter/ephemeral/flutter_lldbinit new file mode 100644 index 000000000..e3ba6fbed --- /dev/null +++ b/ios/Flutter/ephemeral/flutter_lldbinit @@ -0,0 +1,5 @@ +# +# Generated file, do not edit. +# + +command script import --relative-to-command-file flutter_lldb_helper.py diff --git a/ios/Gemfile.lock b/ios/Gemfile.lock index 5447a46b1..0c9057739 100644 --- a/ios/Gemfile.lock +++ b/ios/Gemfile.lock @@ -9,24 +9,28 @@ GEM public_suffix (>= 2.0.2, < 7.0) artifactory (3.0.17) atomos (0.1.3) - aws-eventstream (1.3.0) - aws-partitions (1.1018.0) - aws-sdk-core (3.214.0) + aws-eventstream (1.4.0) + aws-partitions (1.1196.0) + aws-sdk-core (3.240.0) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.992.0) aws-sigv4 (~> 1.9) + base64 + bigdecimal jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.96.0) - aws-sdk-core (~> 3, >= 3.210.0) + logger + aws-sdk-kms (1.118.0) + aws-sdk-core (~> 3, >= 3.239.1) aws-sigv4 (~> 1.5) - aws-sdk-s3 (1.176.0) - aws-sdk-core (~> 3, >= 3.210.0) + aws-sdk-s3 (1.208.0) + aws-sdk-core (~> 3, >= 3.234.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.5) - aws-sigv4 (1.10.1) + aws-sigv4 (1.12.1) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) base64 (0.2.0) + bigdecimal (4.0.1) claide (1.1.0) colored (1.2) colored2 (3.1.2) @@ -39,7 +43,7 @@ GEM dotenv (2.8.1) emoji_regex (3.2.3) excon (0.112.0) - faraday (1.10.4) + faraday (1.10.5) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) @@ -55,11 +59,11 @@ GEM faraday (>= 0.8.0) http-cookie (~> 1.0.0) faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) + faraday-em_synchrony (1.0.1) faraday-excon (1.1.0) faraday-httpclient (1.0.1) - faraday-multipart (1.0.4) - multipart-post (~> 2) + faraday-multipart (1.2.0) + multipart-post (~> 2.0) faraday-net_http (1.0.2) faraday-net_http_persistent (1.2.0) faraday-patron (1.0.0) @@ -157,6 +161,7 @@ GEM json (2.9.0) jwt (2.9.3) base64 + logger (1.7.0) mini_magick (4.13.2) mini_mime (1.1.5) multi_json (1.15.0) diff --git a/ios/Podfile b/ios/Podfile index fe628cb8c..974aea706 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -37,5 +37,9 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) + target.build_configurations.each do |config| + config.build_settings['ENABLE_BITCODE'] = 'NO' + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0' + end end end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e2a08f6f4..6268607cc 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -12,9 +12,6 @@ PODS: - Flutter - package_info_plus (0.4.5): - Flutter - - path_provider_foundation (0.0.1): - - Flutter - - FlutterMacOS - pointer_interceptor_ios (0.0.1): - Flutter - rive_common (0.0.1): @@ -22,25 +19,25 @@ PODS: - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS - - sqlite3 (3.50.4): - - sqlite3/common (= 3.50.4) - - sqlite3/common (3.50.4) - - sqlite3/dbstatvtab (3.50.4): + - sqlite3 (3.51.1): + - sqlite3/common (= 3.51.1) + - sqlite3/common (3.51.1) + - sqlite3/dbstatvtab (3.51.1): - sqlite3/common - - sqlite3/fts5 (3.50.4): + - sqlite3/fts5 (3.51.1): - sqlite3/common - - sqlite3/math (3.50.4): + - sqlite3/math (3.51.1): - sqlite3/common - - sqlite3/perf-threadsafe (3.50.4): + - sqlite3/perf-threadsafe (3.51.1): - sqlite3/common - - sqlite3/rtree (3.50.4): + - sqlite3/rtree (3.51.1): - sqlite3/common - - sqlite3/session (3.50.4): + - sqlite3/session (3.51.1): - sqlite3/common - sqlite3_flutter_libs (0.0.1): - Flutter - FlutterMacOS - - sqlite3 (~> 3.50.4) + - sqlite3 (~> 3.51.1) - sqlite3/dbstatvtab - sqlite3/fts5 - sqlite3/math @@ -61,7 +58,6 @@ DEPENDENCIES: - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) - integration_test (from `.symlinks/plugins/integration_test/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - pointer_interceptor_ios (from `.symlinks/plugins/pointer_interceptor_ios/ios`) - rive_common (from `.symlinks/plugins/rive_common/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) @@ -88,8 +84,6 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/integration_test/ios" package_info_plus: :path: ".symlinks/plugins/package_info_plus/ios" - path_provider_foundation: - :path: ".symlinks/plugins/path_provider_foundation/darwin" pointer_interceptor_ios: :path: ".symlinks/plugins/pointer_interceptor_ios/ios" rive_common: @@ -104,22 +98,21 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/video_player_avfoundation/darwin" SPEC CHECKSUMS: - camera_avfoundation: be3be85408cd4126f250386828e9b1dfa40ab436 + camera_avfoundation: 5675ca25298b6f81fa0a325188e7df62cc217741 Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 flutter_keyboard_visibility: 4625131e43015dbbe759d9b20daaf77e0e3f6619 flutter_zxing: e8bcc43bd3056c70c271b732ed94e7a16fd62f93 - image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a + image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326 integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499 - path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564 - pointer_interceptor_ios: ec847ef8b0915778bed2b2cef636f4d177fa8eed + pointer_interceptor_ios: da06a662d5bfd329602b45b2ab41bc0fb5fdb0f0 rive_common: dd421daaf9ae69f0125aa761dd96abd278399952 - shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7 - sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b - sqlite3_flutter_libs: 83f8e9f5b6554077f1d93119fe20ebaa5f3a9ef1 - url_launcher_ios: 694010445543906933d732453a59da0a173ae33d - video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b + shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb + sqlite3: 8d708bc63e9f4ce48f0ad9d6269e478c5ced1d9b + sqlite3_flutter_libs: d13b8b3003f18f596e542bcb9482d105577eff41 + url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b + video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a -PODFILE CHECKSUM: 5a367937f10bf0c459576e5e472a1159ee029c13 +PODFILE CHECKSUM: 140d612345f5f5eda8a7ae30f1ccf4e0b07aced5 COCOAPODS: 1.16.2 diff --git a/lib/core/exceptions/http_exception.dart b/lib/core/exceptions/http_exception.dart new file mode 100644 index 000000000..73cbc24c0 --- /dev/null +++ b/lib/core/exceptions/http_exception.dart @@ -0,0 +1,86 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'dart:convert'; +import 'dart:io'; + +import 'package:http/http.dart'; + +enum ErrorType { + json, + html, + text, +} + +const HTML_ERROR_KEY = 'html_error'; + +class WgerHttpException implements Exception { + Map errors = {}; + + /// The exception type. While the majority will be json, it is possible that + /// the server will return HTML, e.g. if there has been an internal server error + /// or similar. + late ErrorType type; + + /// Custom http exception + WgerHttpException(Response response) { + type = ErrorType.json; + final dynamic responseBody = response.body; + + final contentType = response.headers[HttpHeaders.contentTypeHeader]; + if ((contentType != null && contentType.contains('text/html')) || + responseBody.toString().contains('(); + } else if (type == ErrorType.html) { + errors = {HTML_ERROR_KEY: responseBody.toString()}; + } else { + errors = {'text_error': responseBody.toString()}; + } + } catch (e) { + errors = {'unknown_error': responseBody}; + } + } + } + + WgerHttpException.fromMap(Map map) : type = ErrorType.json { + errors = map; + } + + String get htmlError { + if (type != ErrorType.html) { + return ''; + } + + return errors[HTML_ERROR_KEY] ?? ''; + } + + @override + String toString() { + return 'WgerHttpException ($type): $errors'; + } +} diff --git a/lib/exceptions/no_result_exception.dart b/lib/core/exceptions/no_result_exception.dart similarity index 100% rename from lib/exceptions/no_result_exception.dart rename to lib/core/exceptions/no_result_exception.dart diff --git a/lib/exceptions/no_such_entry_exception.dart b/lib/core/exceptions/no_such_entry_exception.dart similarity index 100% rename from lib/exceptions/no_such_entry_exception.dart rename to lib/core/exceptions/no_such_entry_exception.dart diff --git a/lib/core/wide_screen_wrapper.dart b/lib/core/wide_screen_wrapper.dart new file mode 100644 index 000000000..68e773b3e --- /dev/null +++ b/lib/core/wide_screen_wrapper.dart @@ -0,0 +1,36 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:wger/helpers/material.dart'; + +class WidescreenWrapper extends StatelessWidget { + final Widget child; + + const WidescreenWrapper({required this.child, super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: MATERIAL_MD_BREAKPOINT), + child: child, + ), + ); + } +} diff --git a/lib/database/exercises/exercise_database.g.dart b/lib/database/exercises/exercise_database.g.dart index a07b1092e..bfe8ad6e5 100644 --- a/lib/database/exercises/exercise_database.g.dart +++ b/lib/database/exercises/exercise_database.g.dart @@ -1259,7 +1259,10 @@ class $$ExercisesTableTableManager $$ExercisesTableAnnotationComposer, $$ExercisesTableCreateCompanionBuilder, $$ExercisesTableUpdateCompanionBuilder, - (ExerciseTable, BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>), + ( + ExerciseTable, + BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>, + ), ExerciseTable, PrefetchHooks Function() > { @@ -1317,7 +1320,10 @@ typedef $$ExercisesTableProcessedTableManager = $$ExercisesTableAnnotationComposer, $$ExercisesTableCreateCompanionBuilder, $$ExercisesTableUpdateCompanionBuilder, - (ExerciseTable, BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>), + ( + ExerciseTable, + BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>, + ), ExerciseTable, PrefetchHooks Function() >; @@ -1397,7 +1403,10 @@ class $$MusclesTableTableManager $$MusclesTableAnnotationComposer, $$MusclesTableCreateCompanionBuilder, $$MusclesTableUpdateCompanionBuilder, - (MuscleTable, BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>), + ( + MuscleTable, + BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>, + ), MuscleTable, PrefetchHooks Function() > { @@ -1439,7 +1448,10 @@ typedef $$MusclesTableProcessedTableManager = $$MusclesTableAnnotationComposer, $$MusclesTableCreateCompanionBuilder, $$MusclesTableUpdateCompanionBuilder, - (MuscleTable, BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>), + ( + MuscleTable, + BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>, + ), MuscleTable, PrefetchHooks Function() >; @@ -1519,7 +1531,10 @@ class $$EquipmentsTableTableManager $$EquipmentsTableAnnotationComposer, $$EquipmentsTableCreateCompanionBuilder, $$EquipmentsTableUpdateCompanionBuilder, - (EquipmentTable, BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>), + ( + EquipmentTable, + BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>, + ), EquipmentTable, PrefetchHooks Function() > { @@ -1561,7 +1576,10 @@ typedef $$EquipmentsTableProcessedTableManager = $$EquipmentsTableAnnotationComposer, $$EquipmentsTableCreateCompanionBuilder, $$EquipmentsTableUpdateCompanionBuilder, - (EquipmentTable, BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>), + ( + EquipmentTable, + BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>, + ), EquipmentTable, PrefetchHooks Function() >; @@ -1642,7 +1660,10 @@ class $$CategoriesTableTableManager $$CategoriesTableAnnotationComposer, $$CategoriesTableCreateCompanionBuilder, $$CategoriesTableUpdateCompanionBuilder, - (CategoryTable, BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>), + ( + CategoryTable, + BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>, + ), CategoryTable, PrefetchHooks Function() > { @@ -1684,7 +1705,10 @@ typedef $$CategoriesTableProcessedTableManager = $$CategoriesTableAnnotationComposer, $$CategoriesTableCreateCompanionBuilder, $$CategoriesTableUpdateCompanionBuilder, - (CategoryTable, BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>), + ( + CategoryTable, + BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>, + ), CategoryTable, PrefetchHooks Function() >; @@ -1764,7 +1788,10 @@ class $$LanguagesTableTableManager $$LanguagesTableAnnotationComposer, $$LanguagesTableCreateCompanionBuilder, $$LanguagesTableUpdateCompanionBuilder, - (LanguagesTable, BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>), + ( + LanguagesTable, + BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>, + ), LanguagesTable, PrefetchHooks Function() > { @@ -1806,7 +1833,10 @@ typedef $$LanguagesTableProcessedTableManager = $$LanguagesTableAnnotationComposer, $$LanguagesTableCreateCompanionBuilder, $$LanguagesTableUpdateCompanionBuilder, - (LanguagesTable, BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>), + ( + LanguagesTable, + BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>, + ), LanguagesTable, PrefetchHooks Function() >; diff --git a/lib/database/ingredients/ingredients_database.g.dart b/lib/database/ingredients/ingredients_database.g.dart index 7dc02ac32..44ebcde20 100644 --- a/lib/database/ingredients/ingredients_database.g.dart +++ b/lib/database/ingredients/ingredients_database.g.dart @@ -429,7 +429,10 @@ typedef $$IngredientsTableProcessedTableManager = $$IngredientsTableAnnotationComposer, $$IngredientsTableCreateCompanionBuilder, $$IngredientsTableUpdateCompanionBuilder, - (IngredientTable, BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>), + ( + IngredientTable, + BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>, + ), IngredientTable, PrefetchHooks Function() >; diff --git a/lib/exceptions/http_exception.dart b/lib/exceptions/http_exception.dart deleted file mode 100644 index 06cd2915b..000000000 --- a/lib/exceptions/http_exception.dart +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team - * - * wger Workout Manager is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import 'dart:convert'; - -class WgerHttpException implements Exception { - Map errors = {}; - - /// Custom http exception. - /// Expects the response body of the REST call and will try to parse it to - /// JSON. Will use the response as-is if it fails. - WgerHttpException(dynamic responseBody) { - if (responseBody == null) { - errors = {'unknown_error': 'An unknown error occurred, no further information available'}; - } else { - try { - final response = json.decode(responseBody); - errors = (response is Map ? response : {'unknown_error': response}).cast(); - } catch (e) { - errors = {'unknown_error': responseBody}; - } - } - } - - WgerHttpException.fromMap(Map map) { - errors = map; - } - - @override - String toString() { - return errors.values.toList().join(', '); - } -} diff --git a/lib/helpers/date.dart b/lib/helpers/date.dart index 9177b8fc6..08a96d4e6 100644 --- a/lib/helpers/date.dart +++ b/lib/helpers/date.dart @@ -16,11 +16,6 @@ * along with this program. If not, see . */ -/// Returns a timezone aware DateTime object from a date and time string. -DateTime getDateTimeFromDateAndTime(String date, String time) { - return DateTime.parse('$date $time'); -} - /// Returns a list of [DateTime] objects from [first] to [last], inclusive. List daysInRange(DateTime first, DateTime last) { final dayCount = last.difference(first).inDays + 1; diff --git a/lib/helpers/errors.dart b/lib/helpers/errors.dart index 77d03a0a5..139ef9176 100644 --- a/lib/helpers/errors.dart +++ b/lib/helpers/errors.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -22,11 +22,12 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import 'package:flutter_html/flutter_html.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:logging/logging.dart'; import 'package:provider/provider.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/main.dart'; import 'package:wger/models/workouts/log.dart'; @@ -50,16 +51,21 @@ void showHttpExceptionErrorDialog(WgerHttpException exception, {BuildContext? co return; } - final errorList = formatApiErrors(extractErrors(exception.errors)); - showDialog( context: dialogContext, builder: (ctx) => AlertDialog( title: Text(AppLocalizations.of(ctx).anErrorOccurred), - content: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [...errorList], + content: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + if (exception.type == ErrorType.html) + ServerHtmlError(data: exception.htmlError) + else + ...formatApiErrors(extractErrors(exception.errors)), + ], + ), ), actions: [ TextButton( @@ -145,7 +151,10 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext tilePadding: EdgeInsets.zero, title: Text(i18n.errorViewDetails), children: [ - Text(issueErrorMessage, style: const TextStyle(fontWeight: FontWeight.bold)), + Text( + issueErrorMessage, + style: const TextStyle(fontWeight: FontWeight.bold), + ), Container( alignment: Alignment.topLeft, padding: const EdgeInsets.symmetric(vertical: 8.0), @@ -237,6 +246,31 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext ); } +/// A widget to render HTML errors returned by the server +/// +/// This is a simple wrapper around the `Html` Widget, with some light changes +/// to the style. +class ServerHtmlError extends StatelessWidget { + final logger = Logger('ServerHtml'); + final String data; + + ServerHtmlError({required this.data, super.key}); + + @override + Widget build(BuildContext context) { + final theme = Theme.of(context); + + return Html( + data: data, + style: { + 'h1': Style(fontSize: FontSize(theme.textTheme.bodyLarge?.fontSize ?? 15)), + 'h2': Style(fontSize: FontSize(theme.textTheme.bodyMedium?.fontSize ?? 15)), + }, + doNotRenderTheseTags: const {'a'}, + ); + } +} + class CopyToClipboardButton extends StatelessWidget { final logger = Logger('CopyToClipboardButton'); final String text; @@ -423,38 +457,26 @@ class FormHttpErrorsWidget extends StatelessWidget { @override Widget build(BuildContext context) { + final theme = Theme.of(context); + return Container( constraints: const BoxConstraints(maxHeight: 250), + decoration: BoxDecoration( + border: Border.all(color: theme.colorScheme.error, width: 1), + borderRadius: BorderRadius.circular(6), + ), + padding: const EdgeInsets.all(10), child: SingleChildScrollView( child: Column( children: [ - Icon(Icons.error_outline, color: Theme.of(context).colorScheme.error), - ...formatApiErrors( - extractErrors(exception.errors), - color: Theme.of(context).colorScheme.error, - ), - ], - ), - ), - ); - } -} - -class GeneralErrorsWidget extends StatelessWidget { - final String? title; - final List widgets; - - const GeneralErrorsWidget(this.widgets, {this.title, super.key}); - - @override - Widget build(BuildContext context) { - return Container( - constraints: const BoxConstraints(maxHeight: 250), - child: SingleChildScrollView( - child: Column( - children: [ - Icon(Icons.error_outline, color: Theme.of(context).colorScheme.error), - ...formatTextErrors(widgets, title: title, color: Theme.of(context).colorScheme.error), + Icon(Icons.error_outline, color: theme.colorScheme.error), + if (exception.type == ErrorType.html) + ServerHtmlError(data: exception.htmlError) + else + ...formatApiErrors( + extractErrors(exception.errors), + color: theme.colorScheme.error, + ), ], ), ), diff --git a/lib/helpers/i18n.dart b/lib/helpers/i18n.dart index 8a2706867..4da3c04d4 100644 --- a/lib/helpers/i18n.dart +++ b/lib/helpers/i18n.dart @@ -9,126 +9,127 @@ import 'package:flutter/widgets.dart'; import 'package:logging/logging.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -String getTranslation(String value, BuildContext context) { - final logger = Logger('getTranslation'); +String getServerStringTranslation(String value, BuildContext context) { + final logger = Logger('getServerStringTranslation'); + final i18n = AppLocalizations.of(context); switch (value) { case 'Abs': - return AppLocalizations.of(context).abs; + return i18n.abs; case 'Arms': - return AppLocalizations.of(context).arms; + return i18n.arms; case 'Back': - return AppLocalizations.of(context).back; + return i18n.back; case 'Barbell': - return AppLocalizations.of(context).barbell; + return i18n.barbell; case 'Bench': - return AppLocalizations.of(context).bench; + return i18n.bench; case 'Biceps': - return AppLocalizations.of(context).biceps; + return i18n.biceps; case 'Body Weight': - return AppLocalizations.of(context).body_weight; + return i18n.body_weight; case 'Calves': - return AppLocalizations.of(context).calves; + return i18n.calves; case 'Cardio': - return AppLocalizations.of(context).cardio; + return i18n.cardio; case 'Chest': - return AppLocalizations.of(context).chest; + return i18n.chest; case 'Dumbbell': - return AppLocalizations.of(context).dumbbell; + return i18n.dumbbell; case 'Glutes': - return AppLocalizations.of(context).glutes; + return i18n.glutes; case 'Gym mat': - return AppLocalizations.of(context).gym_mat; + return i18n.gym_mat; case 'Hamstrings': - return AppLocalizations.of(context).hamstrings; + return i18n.hamstrings; case 'Incline bench': - return AppLocalizations.of(context).incline_bench; + return i18n.incline_bench; case 'Kettlebell': - return AppLocalizations.of(context).kettlebell; + return i18n.kettlebell; case 'Kilometers': - return AppLocalizations.of(context).kilometers; + return i18n.kilometers; case 'Kilometers Per Hour': - return AppLocalizations.of(context).kilometers_per_hour; + return i18n.kilometers_per_hour; case 'Lats': - return AppLocalizations.of(context).lats; + return i18n.lats; case 'Legs': - return AppLocalizations.of(context).legs; + return i18n.legs; case 'Lower back': - return AppLocalizations.of(context).lower_back; + return i18n.lower_back; case 'Max Reps': - return AppLocalizations.of(context).max_reps; + return i18n.max_reps; case 'Miles': - return AppLocalizations.of(context).miles; + return i18n.miles; case 'Miles Per Hour': - return AppLocalizations.of(context).miles_per_hour; + return i18n.miles_per_hour; case 'Minutes': - return AppLocalizations.of(context).minutes; + return i18n.minutes; case 'Plates': - return AppLocalizations.of(context).plates; + return i18n.plates; case 'Pull-up bar': - return AppLocalizations.of(context).pull_up_bar; + return i18n.pull_up_bar; case 'Quads': - return AppLocalizations.of(context).quads; + return i18n.quads; case 'Repetitions': - return AppLocalizations.of(context).repetitions; + return i18n.repetitions; case 'Resistance band': - return AppLocalizations.of(context).resistance_band; + return i18n.resistance_band; case 'SZ-Bar': - return AppLocalizations.of(context).sz_bar; + return i18n.sz_bar; case 'Seconds': - return AppLocalizations.of(context).seconds; + return i18n.seconds; case 'Shoulders': - return AppLocalizations.of(context).shoulders; + return i18n.shoulders; case 'Swiss Ball': - return AppLocalizations.of(context).swiss_ball; + return i18n.swiss_ball; case 'Triceps': - return AppLocalizations.of(context).triceps; + return i18n.triceps; case 'Until Failure': - return AppLocalizations.of(context).until_failure; + return i18n.until_failure; case 'kg': - return AppLocalizations.of(context).kg; + return i18n.kg; case 'lb': - return AppLocalizations.of(context).lb; + return i18n.lb; case 'none (bodyweight exercise)': - return AppLocalizations.of(context).none__bodyweight_exercise_; + return i18n.none__bodyweight_exercise_; default: logger.warning('Could not translate the server string $value'); diff --git a/lib/helpers/json.dart b/lib/helpers/json.dart index a80fba716..b0202ca3e 100644 --- a/lib/helpers/json.dart +++ b/lib/helpers/json.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -23,6 +23,10 @@ num stringToNum(String? e) { return e == null ? 0 : num.parse(e); } +num? stringToNumNull(String? e) { + return e == null ? null : num.parse(e); +} + num stringOrIntToNum(dynamic e) { if (e is int) { return e.toDouble(); // Convert int to double (a type of num) @@ -30,10 +34,6 @@ num stringOrIntToNum(dynamic e) { return num.tryParse(e) ?? 0; } -num? stringToNumNull(String? e) { - return e == null ? null : num.parse(e); -} - String? numToString(num? e) { if (e == null) { return null; @@ -62,6 +62,22 @@ String dateToUtcIso8601(DateTime dateTime) { return dateTime.toUtc().toIso8601String(); } +/// Converts an ISO8601 datetime string in UTC to a local DateTime object. +/// +/// Needs to be used in conjunction with [dateToUtcIso8601] in the models to +/// correctly handle timezones. +DateTime utcIso8601ToLocalDate(String dateTime) { + return DateTime.parse(dateTime).toLocal(); +} + +DateTime? utcIso8601ToLocalDateNull(String? dateTime) { + if (dateTime == null) { + return null; + } + + return utcIso8601ToLocalDate(dateTime); +} + /* * Converts a time to a date object. * Needed e.g. when the wger api only sends a time but no date information. diff --git a/test/helpers/date_test.dart b/lib/helpers/material.dart similarity index 61% rename from test/helpers/date_test.dart rename to lib/helpers/material.dart index 49eed7060..1f83fd71a 100644 --- a/test/helpers/date_test.dart +++ b/lib/helpers/material.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) wger Team + * Copyright (c) 2020, 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -16,16 +16,8 @@ * along with this program. If not, see . */ -import 'package:flutter_test/flutter_test.dart'; -import 'package:wger/helpers/date.dart'; - -void main() { - group('getDateTimeFromDateAndTime', () { - test('should correctly generate a DateTime', () { - expect( - getDateTimeFromDateAndTime('2025-05-16', '17:02'), - DateTime(2025, 5, 16, 17, 2), - ); - }); - }); -} +// From https://m3.material.io/foundations/layout/applying-layout/window-size-classes +const MATERIAL_XS_BREAKPOINT = 600.0; +const MATERIAL_MD_BREAKPOINT = 840.0; +const MATERIAL_LG_BREAKPOINT = 1200.0; +const MATERIAL_XL_BREAKPOINT = 1600.0; diff --git a/lib/helpers/misc.dart b/lib/helpers/misc.dart index f99b23642..3078e87dc 100644 --- a/lib/helpers/misc.dart +++ b/lib/helpers/misc.dart @@ -18,50 +18,6 @@ import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:wger/helpers/consts.dart'; -import 'package:wger/models/workouts/repetition_unit.dart'; -import 'package:wger/models/workouts/weight_unit.dart'; - -/// Returns the text representation for a single setting, used in the gym mode -String repText( - num? repetitions, - RepetitionUnit? repetitionUnitObj, - num? weight, - WeightUnit? weightUnitObj, - num? rir, -) { - // TODO(x): how to (easily?) translate strings like the units or 'RiR' - - final List out = []; - - if (repetitions != null) { - out.add(formatNum(repetitions).toString()); - - // The default repetition unit is 'reps', which we don't show unless there - // is no weight defined so that we don't just output something like "8" but - // rather "8 repetitions". If there is weight we want to output "8 x 50kg", - // since the repetitions are implied. If other units are used, we always - // print them - if (repetitionUnitObj != null && repetitionUnitObj.id != REP_UNIT_REPETITIONS_ID || - weight == 0 || - weight == null) { - out.add(repetitionUnitObj!.name); - } - } - - if (weight != null && weight != 0) { - out.add('×'); - out.add(formatNum(weight).toString()); - out.add(weightUnitObj!.name); - } - - if (rir != null && rir != '') { - out.add('\n'); - out.add('($rir RiR)'); - } - - return out.join(' '); -} void launchURL(String url, BuildContext context) async { final scaffoldMessenger = ScaffoldMessenger.of(context); diff --git a/lib/helpers/uuid.dart b/lib/helpers/uuid.dart new file mode 100644 index 000000000..337909883 --- /dev/null +++ b/lib/helpers/uuid.dart @@ -0,0 +1,45 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'dart:math'; +import 'dart:typed_data'; + +String uuidV4() { + final rnd = Random.secure(); + final bytes = Uint8List(16); + for (var i = 0; i < 16; i++) { + bytes[i] = rnd.nextInt(256); + } + + // Set version to 4 -> xxxx0100 + bytes[6] = (bytes[6] & 0x0F) | 0x40; + + // Set variant to RFC4122 -> 10xxxxxx + bytes[8] = (bytes[8] & 0x3F) | 0x80; + + return _bytesToUuid(bytes); +} + +String _bytesToUuid(Uint8List bytes) { + final sb = StringBuffer(); + for (var i = 0; i < bytes.length; i++) { + sb.write(bytes[i].toRadixString(16).padLeft(2, '0')); + if (i == 3 || i == 5 || i == 7 || i == 9) sb.write('-'); + } + return sb.toString(); +} diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index cf4ff4e05..5c98ddd05 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -705,7 +705,7 @@ "@whatVariationsExist": {}, "previous": "Vorherige", "@previous": {}, - "next": "Nächste", + "next": "Weiter", "@next": {}, "swiss_ball": "Gymnastikball", "@swiss_ball": {}, @@ -751,7 +751,7 @@ }, "aboutDonateTitle": "Mach eine Spende", "@aboutDonateTitle": {}, - "aboutDonateText": "Das Projekt ist kostenlos und wird es auch bleiben, der Betrieb des Servers hingegen nicht! Die Entwicklung erfordert zudem viel Zeit und Mühe von Freiwilligen. Ihr Beitrag deckt diese Kosten direkt und trägt zur Zuverlässigkeit des Dienstes bei.", + "aboutDonateText": "Das Projekt ist kostenlos und wird es auch bleiben, der Betrieb des Servers hingegen ist es nicht! Die Entwicklung erfordert zudem viel Zeit und Mühe von Freiwilligen. Ihr Beitrag deckt diese Kosten direkt und trägt zur Zuverlässigkeit des Dienstes bei.", "@aboutDonateText": {}, "settingsCacheTitle": "Zwischenspeicher", "@settingsCacheTitle": {}, @@ -950,7 +950,7 @@ "@simpleModeHelp": {}, "isRestDayHelp": "Bitte beachten Sie, dass alle Sätze und Übungen entfernt werden, wenn Sie einen Tag als Ruhetag markieren.", "@isRestDayHelp": {}, - "needsLogsToAdvance": "Benötigt Eintrag, um fortzufahren", + "needsLogsToAdvance": "Benötigt Logeinträge, um fortzufahren", "@needsLogsToAdvance": {}, "needsLogsToAdvanceHelp": "Wählen Sie aus, ob die Routine nur dann zum nächsten geplanten Tag fortgesetzt werden soll, wenn Sie für diesen Tag ein Training protokolliert haben", "@needsLogsToAdvanceHelp": {}, @@ -1041,5 +1041,151 @@ "startDate": "Anfangsdatum", "@startDate": {}, "applicationLogs": "Anwendungsprotokolle", - "@applicationLogs": {} + "@applicationLogs": {}, + "dayTypeEnom": "Jede volle Minute", + "@dayTypeEnom": {}, + "dayTypeAmrap": "So viele Runden wie möglich", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Hochintensives Intervalltraining", + "@dayTypeHiit": {}, + "dayTypeEdt": "Training mit zunehmender Dichte", + "@dayTypeEdt": {}, + "dayTypeRft": "Runden auf Zeit", + "@dayTypeRft": {}, + "dayTypeAfap": "So schnell wie möglich", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normal", + "@slotEntryTypeNormal": {}, + "slotEntryTypeDropset": "Abnehmender Satz", + "@slotEntryTypeDropset": {}, + "slotEntryTypeMyo": "Muskel", + "@slotEntryTypeMyo": {}, + "slotEntryTypePartial": "teilweise", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "erzwungen", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Zeit unter Spannung", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "isometrisches Halten", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Sprung", + "@slotEntryTypeJump": {}, + "openEnded": "Offenes Ende", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Überblick", + "@overview": {}, + "identicalExercisePleaseDiscard": "Wenn Sie eine Übung entdecken, die mit der von Ihnen hinzugefügten identisch ist, verwerfen Sie bitte Ihren Entwurf und bearbeiten Sie stattdessen diese Übung.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Bitte überprüfe, ob die eingegebenen Informationen korrekt sind, bevor du die Übung abschickst", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Bilddetails", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Bildtitel", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Bildtitel eingeben", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Link zur Website der Quelle", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Autoren", + "@author": {}, + "authorHint": "Name des Autors eingeben", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Link zur Website oder zum Profil des Autors", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Link zur Originalquelle, wenn es sich um ein abgeleitetes Werk handelt", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Ein abgeleitetes Werk basiert auf einem früheren Werk, enthält jedoch genügend neues, schöpferisches Material, um eigenständig urheberrechtlich geschützt zu sein.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Bildtyp", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Mit der Übermittlung dieses Bildes erklären Sie sich damit einverstanden, es unter der CC-BY-SA-4 zu veröffentlichen. Das Bild muss entweder Ihr eigenes Werk sein oder der Urheber muss es unter einer damit kompatiblen Lizenz veröffentlicht haben.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Siehe Lizenztext.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "enterTextInLanguage": "Bitte geben Sie den Text in der richtigen Sprache ein!", + "@enterTextInLanguage": {}, + "endWorkout": "Training beenden", + "@endWorkout": {}, + "dayTypeCustom": "personalisierte", + "@dayTypeCustom": {}, + "dayTypeTabata": "Tabata", + "@dayTypeTabata": {}, + "impressionGood": "Gut", + "@impressionGood": {}, + "impressionNeutral": "Neutral", + "@impressionNeutral": {}, + "impressionBad": "Schlecht", + "@impressionBad": {}, + "gymModeShowExercises": "Übersichtsseiten der Übungen anzeigen", + "@gymModeShowExercises": {}, + "gymModeShowTimer": "Timer zwischen Sätzen anzeigen", + "@gymModeShowTimer": {}, + "gymModeTimerType": "Timer-Typ", + "@gymModeTimerType": {}, + "gymModeTimerTypeHelText": "Wenn ein Satz eine Pausenzeit hat, wird immer ein Countdown genutzt.", + "@gymModeTimerTypeHelText": {}, + "countdown": "Countdown", + "@countdown": {}, + "stopwatch": "Stoppuhr", + "@stopwatch": {}, + "gymModeDefaultCountdownTime": "Standard-Countdown-Zeit in Sekunden", + "@gymModeDefaultCountdownTime": {}, + "gymModeNotifyOnCountdownFinish": "Benachrichtigung bei Ende des Countdowns", + "@gymModeNotifyOnCountdownFinish": {}, + "duration": "Dauer", + "@duration": {}, + "durationHoursMinutes": "{hours}h {minutes}m", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Volumen", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Training abgeschlossen", + "@workoutCompleted": {}, + "formMinMaxValues": "Bitte geben Sie einen Wert zwischen {min} und {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "superset": "Superset", + "@superset": {} } diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index b4f2f3721..ff1506dcf 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -100,6 +100,7 @@ "@labelWorkoutPlan": { "description": "Title for screen workout plan" }, + "dashboardWidgets": "Dashboard widgets", "labelDashboard": "Dashboard", "@labelDashboard": { "description": "Title for screen dashboard" @@ -175,6 +176,7 @@ "slotEntryTypeTut": "Time under Tension", "slotEntryTypeIso": "Isometric hold", "slotEntryTypeJump": "Jump", + "trophies": "Trophies", "routines": "Routines", "newRoutine": "New routine", "noRoutines": "You have no routines", @@ -232,6 +234,19 @@ "@comment": { "description": "Comment, additional information" }, + "topSet": "Top set: {value}", + "@topSet": { + "description": "Value is a representation of the set, like '10 x 80kg'", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "impressionGood": "Good", + "impressionNeutral": "Neutral", + "impressionBad": "Bad", "impression": "Impression", "@impression": { "description": "General impression (e.g. for a workout session) such as good, bad, etc." @@ -259,10 +274,38 @@ }, "selectExercises": "If you want to do a superset you can search for several exercises, they will be grouped together", "@selectExercises": {}, + "personalRecords": "Personal records", "gymMode": "Gym mode", "@gymMode": { "description": "Label when starting the gym mode" }, + "gymModeShowExercises": "Show exercise overview pages", + "gymModeShowTimer": "Show timer between sets", + "gymModeTimerType": "Timer type", + "gymModeTimerTypeHelText": "If a set has pause time, a countdown is always used.", + "countdown": "Countdown", + "stopwatch": "Stopwatch", + "gymModeDefaultCountdownTime": "Default countdown time, in seconds", + "gymModeNotifyOnCountdownFinish": "Notify on countdown end", + "duration": "Duration", + "durationHoursMinutes": "{hours}h {minutes}m", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Volume", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Workout completed", "plateCalculator": "Plates", "@plateCalculator": { "description": "Label used for the plate calculator in the gym mode" @@ -560,6 +603,7 @@ "@newEntry": { "description": "Title when adding a new entry such as a weight or log entry" }, + "noTrophies": "You have no trophies yet", "noWeightEntries": "You have no weight entries", "@noWeightEntries": { "description": "Message shown when the user has no logged weight entries" @@ -643,6 +687,19 @@ } } }, + "formMinMaxValues": "Please enter a value between {min} and {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, "enterMinCharacters": "Please enter at least {min} characters", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", @@ -842,9 +899,10 @@ "images": "Images", "language": "Language", "addExercise": "Add exercise", - "fitInWeek": "Fit in week", + "fitInWeek": "Fixed weekly schedule", "fitInWeekHelp": "If enabled, the days will repeat in a weekly cycle, otherwise the days will follow sequentially without regards to the start of a new week.", "addSuperset": "Add superset", + "superset": "Superset", "setHasProgression": "Set has progression", "setHasProgressionWarning": "Please note that at the moment it is not possible to edit all settings for a set on the mobile application or configure automatic progression. For now, please use the web application.", "setHasNoExercises": "This set has no exercises yet!", @@ -1063,7 +1121,10 @@ "@indicatorAvg": { "description": "added for localization of Class Indicator's field text" }, - "endWorkout": "End Workout", + "endWorkout": "End workout", + "@endWorkout": { + "description": "Use the imperative, label on button to finish the current workout in gym mode" + }, "themeMode": "Theme mode", "darkMode": "Always dark mode", "lightMode": "Always light mode", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 312bb16a7..ed5075576 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -462,7 +462,7 @@ }, "logIngredient": "Registrar en el diario nutricional", "@logIngredient": {}, - "plateCalculatorNotDivisible": "No se puede obtener el peso con las placas disponbles", + "plateCalculatorNotDivisible": "No se puede obtener el peso con las placas disponibles", "@plateCalculatorNotDivisible": { "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" }, @@ -1005,7 +1005,7 @@ "@goalTypeAdvanced": { "description": "added for localization of Class GoalType's filed advanced" }, - "indicatorRaw": "raw", + "indicatorRaw": "Bruto", "@indicatorRaw": { "description": "added for localization of Class Indicator's field text" }, @@ -1036,5 +1036,177 @@ "setHasProgressionWarning": "Tenga en cuenta que, por el momento, no es posible editar todos los ajustes de un set en la aplicación móvil ni configurar la progresión automática. Por ahora, utilice la aplicación web.", "@setHasProgressionWarning": {}, "applicationLogs": "Registro de la aplicación", - "@applicationLogs": {} + "@applicationLogs": {}, + "creationDate": "Fecha de comienzo", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Indefinido", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Descripción general", + "@overview": {}, + "identicalExercisePleaseDiscard": "Si observa un ejercicio idéntico al que está agregando, descarte el borrador y edítelo en su lugar.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Por favor verifique que la información que ingresó sea correcta antes de enviar el ejercicio", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Detalles de la imagen", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Título", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Introduce el título de la imagen", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Enlace al sitio web de origen", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Autor(es)", + "@author": {}, + "authorHint": "Introduce el nombre del autor", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Enlace al sitio web o perfil del autor", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Enlace a la fuente original, si se trata de un trabajo derivado", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Un trabajo derivado se basa en un trabajo anterior, pero contiene suficiente contenido nuevo y creativo para darle derecho a sus propios derechos de autor.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Tipo de imagen", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Al enviar esta imagen, acepta divulgarla según la licencia CC-BY-SA-4. La imagen debe ser obra propia o el autor debe haberla publicado bajo una licencia compatible con ella.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Ver texto de licencia.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "add": "agregar", + "@add": { + "description": "Add button text" + }, + "enterTextInLanguage": "¡Por favor ingrese el texto en el idioma correcto!", + "@enterTextInLanguage": {}, + "galleryImageTypeNotSupported": "Las imágenes {imageType} actualmente no son compatibles con esta plataforma.", + "@galleryImageTypeNotSupported": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "galleryImageTypeNotSupportedDetail": "Esta imagen está en formato {imageType}, que actualmente no es compatible con esta plataforma.", + "@galleryImageTypeNotSupportedDetail": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "dayTypeCustom": "Personalizado", + "@dayTypeCustom": {}, + "dayTypeAmrap": "Tantas rondas como sea posible", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Entrenamiento en intervalos de alta intensidad", + "@dayTypeHiit": {}, + "dayTypeEdt": "Entrenamiento de intensidad creciente", + "@dayTypeEdt": {}, + "dayTypeRft": "Rondas por tiempo", + "@dayTypeRft": {}, + "dayTypeAfap": "Tan rápido como sea posible", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normal", + "@slotEntryTypeNormal": {}, + "slotEntryTypeDropset": "Serie descendiente", + "@slotEntryTypeDropset": {}, + "slotEntryTypePartial": "Parcial", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Forzadas", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Tiempo bajo tensión", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Aguante isométrico", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Salto", + "@slotEntryTypeJump": {}, + "impressionGood": "Bien", + "@impressionGood": {}, + "impressionNeutral": "Neutral", + "@impressionNeutral": {}, + "impressionBad": "Mal", + "@impressionBad": {}, + "gymModeShowExercises": "Ver páginas de resumen de ejercicios", + "@gymModeShowExercises": {}, + "gymModeShowTimer": "Mostrar temporizador entre series", + "@gymModeShowTimer": {}, + "gymModeTimerType": "Tipo de temporizador", + "@gymModeTimerType": {}, + "gymModeTimerTypeHelText": "Si una serie tiene tiempo de pausa, siempre se usa una cuenta regresiva.", + "@gymModeTimerTypeHelText": {}, + "countdown": "Cuenta regresiva", + "@countdown": {}, + "stopwatch": "Cronómetro", + "@stopwatch": {}, + "gymModeDefaultCountdownTime": "Tiempo predeterminado de cuenta regresiva, en segundos", + "@gymModeDefaultCountdownTime": {}, + "gymModeNotifyOnCountdownFinish": "Notificar al terminar cuenta regresiva", + "@gymModeNotifyOnCountdownFinish": {}, + "duration": "Duración", + "@duration": {}, + "volume": "Volumen", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Entrenamiento completado", + "@workoutCompleted": {}, + "formMinMaxValues": "Por favor introduce un número entre {min} y {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "superset": "Superserie", + "@superset": {}, + "endWorkout": "Finalizar entrenamiento", + "@endWorkout": { + "description": "Use the imperative, label on button to finish the current workout in gym mode" + }, + "durationHoursMinutes": "{hours}h {minutes}m", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "dayTypeEnom": "Cada minuto, en el minuto", + "@dayTypeEnom": {}, + "dayTypeTabata": "Entrenamiento Tabata", + "@dayTypeTabata": {}, + "slotEntryTypeMyo": "Entrenamiento Myo", + "@slotEntryTypeMyo": {} } diff --git a/lib/l10n/app_fa.arb b/lib/l10n/app_fa.arb index 0967ef424..76a193f7f 100644 --- a/lib/l10n/app_fa.arb +++ b/lib/l10n/app_fa.arb @@ -1 +1,389 @@ -{} +{ + "userProfile": "پروفایل شما", + "@userProfile": {}, + "login": "ورود", + "@login": { + "description": "Text for login button" + }, + "logout": "خروج", + "@logout": { + "description": "Text for logout button" + }, + "date": "تاریخ", + "@date": { + "description": "The date of a workout log or body weight entry" + }, + "register": "ثبت نام", + "@register": { + "description": "Text for registration button" + }, + "useDefaultServer": "استفاده از سرور پیش فرض", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "useCustomServer": "استفاده از سرور سفارشی (خصوصی)", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "edit": "ویرایش", + "@edit": {}, + "invalidUrl": "لطفا یک لینک معتبر وارد کنید", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "usernameValidChars": "نام کاربری فقط میتواند شامل حروف انگلیسی، اعداد انگلیسی و این کاراکتر ها @ + . - _ باشد", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "delete": "حذف", + "@delete": {}, + "passwordsDontMatch": "رمزهای عبور مطابقت ندارند", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "رمز عبور خیلی کوتاه است", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "بشقاب‌های غذایی موجود را انتخاب کنید", + "@selectAvailablePlates": {}, + "close": "بستن", + "@close": { + "description": "Translation for close" + }, + "difference": "تفاوت", + "@difference": {}, + "useColors": "استفاده از رنگ ها", + "@useColors": {}, + "password": "رمزعبور", + "@password": {}, + "confirmPassword": "تأیید رمز عبور", + "@confirmPassword": {}, + "invalidEmail": "لطفا یک آدرس ایمیل معتبر وارد کنید", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "email": "آدرس ایمیل", + "@email": {}, + "username": "نام کاربری", + "@username": {}, + "invalidUsername": "لطفا یک نام کاربری معتبر وارد کنید", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "start": "شروع", + "@start": { + "description": "Label on button to start the gym mode (i.e., an imperative)" + }, + "useApiToken": "استفاده از توکن API", + "@useApiToken": {}, + "useUsernameAndPassword": "استفاده از نام کاربری و رمز عبور", + "@useUsernameAndPassword": {}, + "comment": "نظر", + "@comment": { + "description": "Comment, additional information" + }, + "apiToken": "توکن API", + "@apiToken": {}, + "invalidApiToken": "لطفا یک کلید API معتبر وارد کنید", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "یک کلید API می‌تواند فقط شامل حروف انگلیسی a تا f، اعداد انگلیسی 0 تا 9 و دقیقاً 40 کاراکتر باشد", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerUrl": "آدرس اینترنتی (URL) به منبع WGER", + "@customServerUrl": { + "description": "Label in the form where the users can enter their own wger instance" + }, + "customServerHint": "آدرس سرور خودتان را وارد کنید، در غیر این صورت آدرس پیش‌فرض استفاده خواهد شد", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "reset": "تنظیم مجدد", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "حساب کاربری ندارید؟ همین حالا ثبت نام کنید", + "@registerInstead": {}, + "loginInstead": "حساب کاربری دارید؟ وارد شوید", + "@loginInstead": {}, + "nutritionalPlan": "برنامه غذایی", + "@nutritionalPlan": {}, + "labelBottomNavWorkout": "تمرین ورزشی", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "تغذیه", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "گزارش تمرینات", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "برنامه تمرین ورزشی", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "labelDashboard": "داشبورد", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "success": "موفقیت", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "successfullyDeleted": "حذف شده", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "successfullySaved": "ذخیره شده", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "notes": "یادداشت‌ها", + "@notes": { + "description": "Personal notes, e.g. for a workout session" + }, + "exerciseList": "لیست تمرینات", + "@exerciseList": {}, + "value": "مقدار", + "@value": { + "description": "The value of a measurement entry" + }, + "newDay": "روز جدید", + "@newDay": {}, + "newSet": "مجموعه جدید", + "@newSet": { + "description": "Header when adding a new set to a workout day" + }, + "selectExercises": "اگر می‌خواهید مجموعه ای از حرکات را انجام دهید، می‌توانید چندین تمرین را جستجو کنید، آنها در یک گروه قرار می‌گیرند", + "@selectExercises": {}, + "gymMode": "حالت باشگاه", + "@gymMode": { + "description": "Label when starting the gym mode" + }, + "plateCalculator": "دیسک ها", + "@plateCalculator": { + "description": "Label used for the plate calculator in the gym mode" + }, + "plateCalculatorNotDivisible": "با دیسک های موجود نمی‌توان به وزن دلخواه رسید", + "@plateCalculatorNotDivisible": { + "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" + }, + "pause": "توقف", + "@pause": { + "description": "Noun, not an imperative! Label used for the pause when using the gym mode" + }, + "jumpTo": "برو به", + "@jumpTo": { + "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" + }, + "todaysWorkout": "تمرین ورزشی امروز شما", + "@todaysWorkout": {}, + "logHelpEntries": "اگر در یک روز واحد بیش از یک ورودی با همان تعداد تکرارها وجود داشته باشد ، اما وزنهای مختلف ، فقط ورودی با وزن بالاتر در نمودار نشان داده می شود.", + "@logHelpEntries": {}, + "logHelpEntriesUnits": "توجه داشته باشید که فقط ورودی هایی با واحد وزنی (کیلوگرم یا پوند) و تکرارها نمودار می شوند ، ترکیبات دیگری مانند زمان یا تا زمان خستگی در اینجا نادیده گرفته می شوند.", + "@logHelpEntriesUnits": {}, + "description": "توضیحات", + "@description": {}, + "name": "نام", + "@name": { + "description": "Name for a workout or nutritional plan" + }, + "save": "ذخیره", + "@save": {}, + "verify": "تأیید کردن", + "@verify": {}, + "addSet": "افزودن مجموعه", + "@addSet": { + "description": "Label for the button that adds a set (to a workout day)" + }, + "addMeal": "افزودن وعده", + "@addMeal": {}, + "mealLogged": "غذا به دفتر گزارشات وارد شد", + "@mealLogged": {}, + "ingredientLogged": "مواد به دفتر گزارشات وارد شد", + "@ingredientLogged": {}, + "logMeal": "افزودن وعده به دفتر گزارشات غذایی", + "@logMeal": {}, + "addIngredient": "افزودن مواد تشکیل دهنده", + "@addIngredient": {}, + "logIngredient": "افزودن مواد تشکیل دهنده به دفتر گزارشات غذایی", + "@logIngredient": {}, + "searchIngredient": "جستجو مواد تشکیل دهنده", + "@searchIngredient": { + "description": "Label on ingredient search form" + }, + "nutritionalDiary": "دفتر گزارشات غذایی", + "@nutritionalDiary": {}, + "nutritionalPlans": "برنامه های غذایی", + "@nutritionalPlans": {}, + "noNutritionalPlans": "شما هیچ برنامه غذایی ندارید", + "@noNutritionalPlans": { + "description": "Message shown when the user has no nutritional plans" + }, + "onlyLogging": "فقط کالری را شمارش کردن", + "@onlyLogging": {}, + "onlyLoggingHelpText": "اگر فقط می خواهید کالری خود را گزارش کنید و نمی خواهید یک برنامه غذایی دقیق را با وعده های غذایی خاص تنظیم کنید ، کادر را تیک بزنید", + "@onlyLoggingHelpText": {}, + "goalMacro": "اهداف مواد مغذی", + "@goalMacro": { + "description": "The goal for macronutrients" + }, + "selectMealToLog": "یک وعده انتخاب کنید تا به گزارشات اضافه شود", + "@selectMealToLog": {}, + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "در برنامه غذایی فعلی شما هیچ وعده ای تعریف نشده است", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "برای افزودن وعده های غذایی به برنامه ، به جزئیات برنامه غذایی بروید", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "goalEnergy": "هدف انرژی", + "@goalEnergy": {}, + "goalProtein": "هدف پروتئینی", + "@goalProtein": {}, + "goalCarbohydrates": "هدف کربوهیدراتی", + "@goalCarbohydrates": {}, + "goalFat": "هدف چربی", + "@goalFat": {}, + "goalFiber": "هدف فیبری", + "@goalFiber": {}, + "anErrorOccurred": "خطایی رخ داد!", + "@anErrorOccurred": {}, + "errorInfoDescription": "متأسفیم ، اما مشکلی پیش آمد. شما می توانید با گزارش آن در GitHub به ما در رفع این مشکل کمک کنید.", + "@errorInfoDescription": {}, + "errorInfoDescription2": "شما می توانید به استفاده از برنامه ادامه دهید ، اما برخی از ویژگی ها ممکن است کار نکند.", + "@errorInfoDescription2": {}, + "errorViewDetails": "جزئیات فنی", + "@errorViewDetails": {}, + "applicationLogs": "گزارشات اپلیکیشن", + "@applicationLogs": {}, + "errorCouldNotConnectToServer": "اتصال به سرور امکان پذیر نیست", + "@errorCouldNotConnectToServer": {}, + "errorCouldNotConnectToServerDetails": "برنامه نمی تواند به سرور وصل شود. لطفاً اتصال اینترنت یا URL سرور خود را بررسی کرده و دوباره امتحان کنید. اگر مشکل ادامه پیدا کرد، با مدیر سرور تماس بگیرید.", + "@errorCouldNotConnectToServerDetails": {}, + "copyToClipboard": "کپی در کلیپ بورد", + "@copyToClipboard": {}, + "weight": "وزن", + "@weight": { + "description": "The weight of a workout log or body weight entry" + }, + "min": "حداقل", + "@min": {}, + "max": "حداکثر", + "@max": {}, + "chartAllTimeTitle": "نمودار کلی {name}", + "@chartAllTimeTitle": { + "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chart30DaysTitle": "نمودار 30 روزه {name}", + "@chart30DaysTitle": { + "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chartDuringPlanTitle": "نمودار {chartName} در برنامه {planName}", + "@chartDuringPlanTitle": { + "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", + "type": "text", + "placeholders": { + "chartName": { + "type": "String" + }, + "planName": { + "type": "String" + } + } + }, + "measurement": "اندازه گیری", + "@measurement": {}, + "measurements": "اندازه گیری ها", + "@measurements": { + "description": "Categories for the measurements such as biceps size, body fat, etc." + }, + "measurementCategoriesHelpText": "دسته اندازه گیری ، مانند \"دوسر\" یا \"چربی بدن\"", + "@measurementCategoriesHelpText": {}, + "measurementEntriesHelpText": "واحد مورد استفاده برای اندازه گیری دسته مانند \"سانتی متر\" یا \"٪\"", + "@measurementEntriesHelpText": {}, + "creationDate": "تاریخ شروع", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "endDate": "تاریخ پایان", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "openEnded": "پایان باز", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "time": "زمان", + "@time": { + "description": "The time of a meal or workout" + }, + "timeStart": "زمان شروع", + "@timeStart": { + "description": "The starting time of a workout" + }, + "timeEnd": "زمان پایان", + "@timeEnd": { + "description": "The end time of a workout" + }, + "timeStartAhead": "زمان شروع نمیتواند جلوتر از زمان پایان باشد", + "@timeStartAhead": {}, + "ingredient": "مواد تشکیل دهنده", + "@ingredient": {}, + "energy": "انرژی", + "@energy": { + "description": "Energy in a meal, ingredient etc. e.g. in kJ" + }, + "barWeight": "وزن میله", + "@barWeight": {}, + "exercise": "تمرین", + "@exercise": { + "description": "An exercise for a workout" + }, + "unit": "واحد", + "@unit": { + "description": "The unit used for a repetition (kg, time, etc.)" + }, + "exercises": "تمرین ها", + "@exercises": { + "description": "Multiple exercises for a workout" + }, + "exerciseName": "نام تمرین", + "@exerciseName": { + "description": "Label for the name of a workout exercise" + }, + "searchExercise": "تمرین را برای افزودن جستجو کنید", + "@searchExercise": { + "description": "Label on set form. Selected exercises are added to the set" + }, + "noIngredientsDefined": "هنوز هیچ مواد تشکیل دهنده ای تعریف نشده", + "@noIngredientsDefined": {}, + "noMatchingExerciseFound": "هیچ تمرین مطابقی پیدا نشد", + "@noMatchingExerciseFound": { + "description": "Message returned if no exercises match the searched string" + }, + "searchNamesInEnglish": "اسامی را به زبان انگلیسی هم جستجو کنید", + "@searchNamesInEnglish": {}, + "equipment": "تجهیزات", + "@equipment": { + "description": "Equipment needed to perform an exercise" + } +} diff --git a/lib/l10n/app_fil.arb b/lib/l10n/app_fil.arb new file mode 100644 index 000000000..d04e10979 --- /dev/null +++ b/lib/l10n/app_fil.arb @@ -0,0 +1,48 @@ +{ + "userProfile": "Profile mo", + "@userProfile": {}, + "login": "Pumasok", + "@login": { + "description": "Text for login button" + }, + "logout": "Mag-sign out", + "@logout": { + "description": "Text for logout button" + }, + "register": "Mag-rehistro", + "@register": { + "description": "Text for registration button" + }, + "useDefaultServer": "Gamitin ang default na server", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "useCustomServer": "Gumamit ng custom na server", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "invalidUrl": "Mangyaring magpasok ng wastong URL", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "usernameValidChars": "Ang username ay maaari lamang maglaman ng mga titik, digit, at mga character na @, +, ., -, at _", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "passwordsDontMatch": "Ang password ay hindi tugma", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "Masyadong maikli ang password", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "Pumili ng magagamit na mga plato", + "@selectAvailablePlates": {}, + "barWeight": "Timbang ng bar", + "@barWeight": {}, + "useColors": "Gumamit ng mga kulay", + "@useColors": {}, + "password": "Password", + "@password": {} +} diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index eb6637b66..8a5cfc2ce 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -7,7 +7,7 @@ "@weight": { "description": "The weight of a workout log or body weight entry" }, - "confirmDelete": "Êtes-vous sûre de vouloir supprimer « {toDelete} » ?", + "confirmDelete": "Êtes-vous sûr de vouloir supprimer '{toDelete}' ?", "@confirmDelete": { "description": "Confirmation text before the user deletes an object", "type": "text", @@ -199,7 +199,7 @@ "@reset": { "description": "Button text allowing the user to reset the entered values to the default" }, - "useCustomServer": "Utiliser le serveur personnalisé", + "useCustomServer": "Utiliser un serveur personnalisé", "@useCustomServer": { "description": "Toggle button allowing users to switch between the default and a custom wger server" }, @@ -364,7 +364,7 @@ } } }, - "imageFormatNotSupportedDetail": "{imageFormat} non pris en charge", + "imageFormatNotSupportedDetail": "{imageFormat} pas encore pris en charge.", "@imageFormatNotSupportedDetail": { "description": "Label shown on the image preview container when image format is not supported", "type": "text", @@ -1036,5 +1036,153 @@ "endDate": "Date de fin", "@endDate": {}, "startDate": "Date de début", - "@startDate": {} + "@startDate": {}, + "dayTypeCustom": "Personnalisé", + "@dayTypeCustom": {}, + "dayTypeEnom": "Un mouvement par minute", + "@dayTypeEnom": {}, + "dayTypeAmrap": "Autant de rounds que possible", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Entraînement fractionné de haute intensité", + "@dayTypeHiit": {}, + "dayTypeTabata": "Tabata", + "@dayTypeTabata": {}, + "dayTypeEdt": "Entraînement à densité croissante", + "@dayTypeEdt": {}, + "dayTypeAfap": "Aussi vite que possible", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normal", + "@slotEntryTypeNormal": {}, + "slotEntryTypeDropset": "Dropset", + "@slotEntryTypeDropset": {}, + "slotEntryTypeMyo": "Myo", + "@slotEntryTypeMyo": {}, + "slotEntryTypePartial": "Partiel", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Forcé", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Temps sous tension", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Maintien isométrique", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Saut", + "@slotEntryTypeJump": {}, + "applicationLogs": "Journaux d'application", + "@applicationLogs": {}, + "openEnded": "Sans date de fin", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Aperçu", + "@overview": {}, + "identicalExercisePleaseDiscard": "Si vous remarquez un exercice identique à celui que vous ajoutez, veuillez supprimer votre brouillon et modifier cet exercice à la place.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Veuillez vérifier que les informations que vous avez saisies sont correctes avant de soumettre l'exercice", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Détails de l'image", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "dayTypeRft": "Rounds for time", + "@dayTypeRft": {}, + "imageDetailsLicenseTitle": "Valeur de l'attribut \"title\" de l'image", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Saisir la valeur de l'attribut \"title\" de l'image", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Lien vers le site internet source", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Auteur(s)", + "@author": {}, + "authorHint": "Saisir le nom de l'auteur", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Lien vers le site internet de l'auteur ou de son profil", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Lien vers la source originale, s'il s'agit d'une œuvre dérivée", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Une œuvre dérivée est basée sur une œuvre antérieure mais contient suffisamment de contenu nouveau et créatif pour lui donner droit à son propre droit d’auteur.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Type de l'image", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "En soumettant cette image, vous acceptez sa publication sous licence CC-BY-SA-4. L'image doit être votre propre création ou son auteur doit l'avoir publiée sous une licence compatible.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Voir le texte de la licence.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "enterTextInLanguage": "Veuillez saisir le texte dans la bonne langue !", + "@enterTextInLanguage": {}, + "endWorkout": "Terminer l'entraînement", + "@endWorkout": {}, + "impressionGood": "Bonne", + "@impressionGood": {}, + "impressionNeutral": "Neutre", + "@impressionNeutral": {}, + "impressionBad": "Mauvaise", + "@impressionBad": {}, + "gymModeShowExercises": "Afficher les pages d'aperçu des exercices", + "@gymModeShowExercises": {}, + "gymModeShowTimer": "Afficher le chronomètre entre les séries", + "@gymModeShowTimer": {}, + "gymModeTimerType": "Type de chronomètre", + "@gymModeTimerType": {}, + "gymModeTimerTypeHelText": "Si une série a un temps de pause, un compte à rebours est toujours utilisé.", + "@gymModeTimerTypeHelText": {}, + "countdown": "Compte à rebours", + "@countdown": {}, + "stopwatch": "Chronomètre", + "@stopwatch": {}, + "gymModeDefaultCountdownTime": "Temps de compte à rebours par défaut, en secondes", + "@gymModeDefaultCountdownTime": {}, + "gymModeNotifyOnCountdownFinish": "Notifier à la fin du compte à rebours", + "@gymModeNotifyOnCountdownFinish": {}, + "duration": "Durée", + "@duration": {}, + "durationHoursMinutes": "{hours}h {minutes}m", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Volume", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Entraînement terminé", + "@workoutCompleted": {}, + "formMinMaxValues": "Veuillez entrer une valeur entre {min} et {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "superset": "Superset", + "@superset": {} } diff --git a/lib/l10n/app_hr.arb b/lib/l10n/app_hr.arb index 117cd7b03..a8a0c6e64 100644 --- a/lib/l10n/app_hr.arb +++ b/lib/l10n/app_hr.arb @@ -1,8 +1,6 @@ { "todaysWorkout": "Tvoj današnji trening", - "@todaysWorkout": {}, "mealLogged": "Obrok prijavljen u dnevnik", - "@mealLogged": {}, "time": "Vrijeme", "@time": { "description": "The time of a meal or workout" @@ -12,7 +10,6 @@ "description": "The end time of a workout" }, "username": "Korisničko ime", - "@username": {}, "passwordsDontMatch": "Lozinke se ne podudaraju", "@passwordsDontMatch": { "description": "Error message when the user enters two different passwords during registration" @@ -22,24 +19,21 @@ "description": "Error message when the user a password that is too short" }, "password": "Lozinka", - "@password": {}, "confirmPassword": "Potvrdi lozinku", - "@confirmPassword": {}, "invalidEmail": "Upiši valjanu e-mail adresu", "@invalidEmail": { "description": "Error message when the user enters an invalid email" }, "email": "E-mail adresa", - "@email": {}, - "invalidUrl": "Upiši važeći URL", + "invalidUrl": "Upiši valjanu URL adresu", "@invalidUrl": { "description": "Error message when the user enters an invalid URL, e.g. in the login form" }, - "useCustomServer": "Koristi prilagođeni poslužitelj", + "useCustomServer": "Koristi prilagođeni server", "@useCustomServer": { "description": "Toggle button allowing users to switch between the default and a custom wger server" }, - "invalidUsername": "Upiši važeće korisničko ime", + "invalidUsername": "Upiši valjano korisničko ime", "@invalidUsername": { "description": "Error message when the user enters an invalid username" }, @@ -47,14 +41,12 @@ "@customServerUrl": { "description": "Label in the form where the users can enter their own wger instance" }, - "customServerHint": "Upiši adresu tvog poslužitelja, inače će se koristiti zadani", + "customServerHint": "Upiši adresu tvog servera, inače će se koristiti standardni", "@customServerHint": { "description": "Hint text for the form where the users can enter their own wger instance" }, "registerInstead": "Nemaš račun? Registriraj se", - "@registerInstead": {}, "loginInstead": "Već imaš račun? Prijavi se", - "@loginInstead": {}, "labelBottomNavWorkout": "Trening", "@labelBottomNavWorkout": { "description": "Label used in bottom navigation, use a short word" @@ -71,7 +63,7 @@ "@labelWorkoutPlan": { "description": "Title for screen workout plan" }, - "labelDashboard": "Kontrolna ploča", + "labelDashboard": "Nadzorna ploča", "@labelDashboard": { "description": "Title for screen dashboard" }, @@ -88,37 +80,29 @@ "description": "An exercise for a workout" }, "logHelpEntriesUnits": "Napomena: prikazuju se samo unosi s jedinicom težine (kg ili lb) i ponavljanja, druge kombinacije kao što su vrijeme ili do neuspjeha se ovdje zanemaruju.", - "@logHelpEntriesUnits": {}, "description": "Opis", - "@description": {}, "name": "Ime", "@name": { "description": "Name for a workout or nutritional plan" }, "nutritionalDiary": "Dnevnik prehrane", - "@nutritionalDiary": {}, "nutritionalPlans": "Planovi prehrane", - "@nutritionalPlans": {}, "noNutritionalPlans": "Nemaš planove prehrane", "@noNutritionalPlans": { "description": "Message shown when the user has no nutritional plans" }, "anErrorOccurred": "Dogodila se greška!", - "@anErrorOccurred": {}, "weight": "Težina", "@weight": { "description": "The weight of a workout log or body weight entry" }, "measurement": "Mjerenje", - "@measurement": {}, "measurements": "Mjerenja", "@measurements": { "description": "Categories for the measurements such as biceps size, body fat, etc." }, "measurementCategoriesHelpText": "Kategorija mjerenja, kao što su „bicepsi” ili „tjelesna mast”", - "@measurementCategoriesHelpText": {}, "measurementEntriesHelpText": "Jedinica koja se koristi za mjerenje kategorije kao što su „cm” ili „%”", - "@measurementEntriesHelpText": {}, "date": "Datum", "@date": { "description": "The date of a workout log or body weight entry" @@ -140,7 +124,6 @@ "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" }, "macronutrients": "Makronutrijenti", - "@macronutrients": {}, "planned": "Planirano", "@planned": { "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" @@ -150,9 +133,7 @@ "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" }, "difference": "Razlika", - "@difference": {}, "percentEnergy": "Postotak energije", - "@percentEnergy": {}, "gPerBodyKg": "g po tjelesnom kg", "@gPerBodyKg": { "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" @@ -174,25 +155,19 @@ "description": "The first letter or short name of the word 'Protein', used in overviews" }, "carbohydrates": "Ugljikohidrati", - "@carbohydrates": {}, "carbohydratesShort": "U", "@carbohydratesShort": { "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" }, "sugars": "Šećeri", - "@sugars": {}, "fat": "Masti", - "@fat": {}, "fatShort": "M", "@fatShort": { "description": "The first letter or short name of the word 'Fat', used in overviews" }, "saturatedFat": "Zasićene masti", - "@saturatedFat": {}, "fiber": "Vlakna", - "@fiber": {}, "sodium": "Natrij", - "@sodium": {}, "toggleDetails": "Prikaži detalje", "@toggleDetails": { "description": "Switch to toggle detail / overview" @@ -205,7 +180,7 @@ "@selectExercise": { "description": "Error message when the user hasn't selected an exercise in the form" }, - "enterCharacters": "Upiši {min} do {max} znakova", + "enterCharacters": "Upiši između {min} do {max} znaka", "@enterCharacters": { "description": "Error message when the user hasn't entered the correct number of characters in a form", "type": "text", @@ -233,7 +208,7 @@ "description": "Label shown on the slider where the user can toggle showing units and RiR", "type": "text" }, - "enterValidNumber": "Upiši važeći broj", + "enterValidNumber": "Upiši valjani broj", "@enterValidNumber": { "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" }, @@ -250,32 +225,25 @@ "description": "Label for the popup with general app options" }, "takePicture": "Snimi sliku", - "@takePicture": {}, "chooseFromLibrary": "Odaberi iz biblioteke slika", - "@chooseFromLibrary": {}, "gallery": "Galerija", - "@gallery": {}, "addImage": "Dodaj sliku", - "@addImage": {}, "dataCopied": "Podaci kopirani u novi unos", "@dataCopied": { "description": "Snackbar message to show on copying data to a new log entry" }, - "usernameValidChars": "Korisničko ime može sadržavati samo slova, brojeve i sljedeće znakove: @, +, ., -, _", + "usernameValidChars": "Korisničko ime smije sadržavati samo slova, brojeve i sljedeće znakove: @, +, ., -, _", "@usernameValidChars": { "description": "Error message when the user tries to register a username with forbidden characters" }, "logHelpEntries": "Ako u jednom danu postoji više od jednog unosa s istim brojem ponavljanja, ali različitim težinama, na dijagramu je prikazan samo unos s većom težinom.", - "@logHelpEntries": {}, "addSet": "Dodaj seriju", "@addSet": { "description": "Label for the button that adds a set (to a workout day)" }, "addMeal": "Dodaj obrok", - "@addMeal": {}, "nutritionalPlan": "Plan prehrane", - "@nutritionalPlan": {}, - "useDefaultServer": "Koristi zadani poslužitelj", + "useDefaultServer": "Koristi standardni server", "@useDefaultServer": { "description": "Toggle button allowing users to switch between the default and a custom wger server" }, @@ -300,15 +268,12 @@ "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" }, "save": "Spremi", - "@save": {}, "energyShort": "E", "@energyShort": { "description": "The first letter or short name of the word 'Energy', used in overviews" }, "addIngredient": "Dodaj sastojak", - "@addIngredient": {}, "logMeal": "Zapiši obrok u dnevnik prehrane", - "@logMeal": {}, "value": "Vrijednost", "@value": { "description": "The value of a measurement entry" @@ -322,15 +287,12 @@ "description": "The starting time of a workout" }, "timeStartAhead": "Vrijeme početka ne može biti prije vremena završetka", - "@timeStartAhead": {}, "ingredient": "Sastojak", - "@ingredient": {}, "energy": "Energija", "@energy": { "description": "Energy in a meal, ingredient etc. e.g. in kJ" }, "protein": "Proteini", - "@protein": {}, "goToToday": "Idi na danas", "@goToToday": { "description": "Label on button to jump back to 'today' in the calendar widget" @@ -344,7 +306,6 @@ "description": "The unit used for a repetition (kg, time, etc.)" }, "edit": "Uredi", - "@edit": {}, "confirmDelete": "Stvarno želiš izbrisati „{toDelete}”?", "@confirmDelete": { "description": "Confirmation text before the user deletes an object", @@ -356,7 +317,6 @@ } }, "newNutritionalPlan": "Novi plan prehrane", - "@newNutritionalPlan": {}, "amount": "Količina", "@amount": { "description": "The amount (e.g. in grams) of an ingredient in a meal" @@ -374,15 +334,12 @@ "description": "Text to show when entries are being loaded in the background: Loading..." }, "delete": "Izbriši", - "@delete": {}, "goToDetailPage": "Idi na stranicu s detaljima", - "@goToDetailPage": {}, "aboutDescription": "Hvala što koristiš wger! wger je suradnički projekt otvorenog koda koji su izradili ljubitelji fitnesa iz cijelog svijeta.", "@aboutDescription": { "description": "Text in the about dialog" }, "calendar": "Kalendar", - "@calendar": {}, "musclesSecondary": "Sekundarni mišići", "@musclesSecondary": { "description": "secondary muscles trained by an exercise" @@ -404,7 +361,6 @@ "description": "(main) muscles trained by an exercise" }, "dayDescriptionHelp": "Opis onoga što se radi na današnji dan (npr. „dan povlačenja”) ili koji su dijelovi tijela trenirani (npr. „prsa i ramena”)", - "@dayDescriptionHelp": {}, "setNr": "Serija br. {nr}", "@setNr": { "description": "Header in form indicating the number of the current set. Can also be translated as something like 'Set Nr. xy'.", @@ -415,8 +371,7 @@ } } }, - "sameRepetitions": "Ako radiš ista ponavljanja i težinu za sve serije, ispuni jedan redak. Na primjer, za 4 serije jednostavno upiši 10 za ponavljanja, to automatski postaje „4 × 10”.", - "@sameRepetitions": {}, + "sameRepetitions": "Ako radiš ista ponavljanja i težinu za sve serije, ispuni jedan redak. Na primjer, za 4 serije jednostavno upiši 10 za ponavljanja, to automatski postaje „4 × 10”.", "comment": "Komentar", "@comment": { "description": "Comment, additional information" @@ -434,13 +389,11 @@ "description": "A (logged) workout session" }, "newDay": "Novi dan", - "@newDay": {}, "newSet": "Nova serija", "@newSet": { "description": "Header when adding a new set to a workout day" }, "selectExercises": "Ako želiš izraditi nasdkup, traži i odaberi vježbe koje će se grupirati u jednu grupu", - "@selectExercises": {}, "gymMode": "Modus teretane", "@gymMode": { "description": "Label when starting the gym mode" @@ -458,23 +411,18 @@ "description": "Noun, not an imperative! Label used for the pause when using the gym mode" }, "weightUnit": "Jedinica težine", - "@weightUnit": {}, "appUpdateTitle": "Potrebna je nova verzija", - "@appUpdateTitle": {}, - "appUpdateContent": "Ova verzija aplikacije nije kompatibilna s poslužiteljem. Aktualiziraj svoju aplikaciju.", - "@appUpdateContent": {}, + "appUpdateContent": "Ova verzija aplikacije nije kompatibilna sa serverom. Aktualiziraj svoju aplikaciju.", "set": "Serija", "@set": { "description": "A set in a workout plan" }, "repetitionUnit": "Jedinica ponavljanja", - "@repetitionUnit": {}, "recentlyUsedIngredients": "Nedavno dodani sastojci", "@recentlyUsedIngredients": { "description": "A message when a user adds a new ingredient to a meal." }, "logIngredient": "Zapiši sastojak u dnevnik prehrane", - "@logIngredient": {}, "searchIngredient": "Traži sastojak", "@searchIngredient": { "description": "Label on ingredient search form" @@ -519,7 +467,7 @@ "@close": { "description": "Translation for close" }, - "enterMinCharacters": "Upiši barem {min} znakova", + "enterMinCharacters": "Upiši barem {min} znaka", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", @@ -530,23 +478,14 @@ } }, "add_exercise_image_license": "Slike moraju biti kompatibilne s licencom CC BY SA. Ako si u nedoumici, prenesi samo svoje vlastite fotografije.", - "@add_exercise_image_license": {}, "whatVariationsExist": "Koje varijante ove vježbe postoje?", - "@whatVariationsExist": {}, "images": "Slike", - "@images": {}, "alternativeNames": "Alternativna imena", - "@alternativeNames": {}, "previous": "Prethodna", - "@previous": {}, "oneNamePerLine": "Jedno ime po retku", - "@oneNamePerLine": {}, "translation": "Prijevod", - "@translation": {}, "addExercise": "Dodaj vježbu", - "@addExercise": {}, "translateExercise": "Prevedi ovu vježbu", - "@translateExercise": {}, "baseData": "Osnovni podaci na engleskom jeziku", "@baseData": { "description": "The base data for an exercise such as category, trained muscles, etc." @@ -568,9 +507,7 @@ "description": "Generated entry for translation for server strings" }, "userProfile": "Tvoj profil", - "@userProfile": {}, "exerciseList": "Popis vježbi", - "@exerciseList": {}, "exercises": "Vježbe", "@exercises": { "description": "Multiple exercises for a workout" @@ -580,13 +517,11 @@ "description": "Label for the name of a workout exercise" }, "selectEntry": "Odaberi unos", - "@selectEntry": {}, "success": "Uspjeh", "@success": { "description": "Message when an action completed successfully, usually used as a heading" }, "noMeasurementEntries": "Nemaš unose mjerenja", - "@noMeasurementEntries": {}, "moreMeasurementEntries": "Dodaj novo mjerenje", "@moreMeasurementEntries": { "description": "Message shown when the user wants to add new measurement" @@ -605,10 +540,8 @@ "description": "List of alternative names for an exercise" }, "verifiedEmail": "Potvrđena e-mail adresa", - "@verifiedEmail": {}, "unVerifiedEmail": "Nepotvrđena e-mail adresa", - "@unVerifiedEmail": {}, - "verifiedEmailInfo": "E-mail poruka za potvrdu je poslana na {email}", + "verifiedEmailInfo": "E-mail za ovjeru je poslan na {email}", "@verifiedEmailInfo": { "placeholders": { "email": { @@ -627,14 +560,12 @@ } }, "cacheWarning": "Zbog predmemoriranja, vidljivost promjena u aplikaciji može nešto potrajati.", - "@cacheWarning": {}, "verifiedEmailReason": "Za dodavanje vježbi moraš potvrditi tvoju e-mail adresu", - "@verifiedEmailReason": {}, "cardio": "Kardio", "@cardio": { "description": "Generated entry for translation for server strings" }, - "quads": "Ekstenzije nogu", + "quads": "Kvadriceps", "@quads": { "description": "Generated entry for translation for server strings" }, @@ -658,7 +589,7 @@ "@until_failure": { "description": "Generated entry for translation for server strings" }, - "none__bodyweight_exercise_": "ništa (vježba za tjelesnu težinu)", + "none__bodyweight_exercise_": "bez (vježba za tjelesnu težinu)", "@none__bodyweight_exercise_": { "description": "Generated entry for translation for server strings" }, @@ -667,7 +598,6 @@ "description": "Generated entry for translation for server strings" }, "textPromptTitle": "Spreman?", - "@textPromptTitle": {}, "barbell": "Šipka", "@barbell": { "description": "Generated entry for translation for server strings" @@ -677,7 +607,6 @@ "description": "Generated entry for translation for server strings" }, "textPromptSubheading": "Počni pritiskom gumba radnje", - "@textPromptSubheading": {}, "body_weight": "Tjelesna težina", "@body_weight": { "description": "Generated entry for translation for server strings" @@ -710,16 +639,13 @@ "@kg": { "description": "Generated entry for translation for server strings" }, - "lb": "funta", + "lb": "lb", "@lb": { "description": "Generated entry for translation for server strings" }, "searchNamesInEnglish": "Također traži imena na engleskom jeziku", - "@searchNamesInEnglish": {}, "language": "Jezik", - "@language": {}, - "aboutPageTitle": "Wger informacije", - "@aboutPageTitle": {}, + "aboutPageTitle": "O nama i podrška", "abs": "Trbuh", "@abs": { "description": "Generated entry for translation for server strings" @@ -733,11 +659,8 @@ "description": "Generated entry for translation for server strings" }, "baseNameEnglish": "Sve vježbe trebaju osnovno ime na engleskom jeziku", - "@baseNameEnglish": {}, "next": "Sljedeća", - "@next": {}, "contributeExercise": "Doprinesi vježbu", - "@contributeExercise": {}, "bench": "Klupa", "@bench": { "description": "Generated entry for translation for server strings" @@ -775,41 +698,29 @@ "description": "Generated entry for translation for server strings" }, "verify": "Potvrdi", - "@verify": {}, "lower_back": "Donji dio leđa", "@lower_back": { "description": "Generated entry for translation for server strings" }, "aboutMastodonTitle": "Mastodon", - "@aboutMastodonTitle": {}, "noMatchingExerciseFound": "Nisu pronađene odgovarajuće vježbe", "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, "aboutDonateTitle": "Doniraj", - "@aboutDonateTitle": {}, - "aboutDonateText": "Pomogni projektu: kupi nam kavu, plati troškove poslužitelja i potiči nas u našem radu", - "@aboutDonateText": {}, + "aboutDonateText": "Iako je projekt besplatan i uvijek će to ostati, održavanje servera nije! Razvoj također zahtijeva značajno vrijeme i trud volontera. Tvoj doprinos izravno podupire te troškove i pomaže u održavanju pouzdanosti usluge.", "settingsTitle": "Postavke", - "@settingsTitle": {}, "settingsCacheTitle": "Predmemorija", - "@settingsCacheTitle": {}, "settingsExerciseCacheDescription": "Izvrši predmemoriju", - "@settingsExerciseCacheDescription": {}, "settingsCacheDeletedSnackbar": "Predmemorija je uspješno izbrisana", - "@settingsCacheDeletedSnackbar": {}, "useMetric": "Koristi metričke jedinice za tjelesnu težinu", - "@useMetric": {}, "log": "Zapiši", "@log": { "description": "Log a specific meal (imperative form)" }, "done": "Obavljeno", - "@done": {}, "onlyLogging": "Prati samo kalorije", - "@onlyLogging": {}, "onlyLoggingHelpText": "Označi okvir ako želiš bilježiti samo svoje kalorije i ne želiš postaviti detaljan plan prehrane s određenim obrocima", - "@onlyLoggingHelpText": {}, "percentValue": "{value} %", "@percentValue": { "description": "A value in percent, e.g. 10 %", @@ -821,17 +732,11 @@ } }, "goalEnergy": "Cilj za energiju", - "@goalEnergy": {}, "goalProtein": "Cilj za proteine", - "@goalProtein": {}, "goalCarbohydrates": "Cilj za ugljikohidrate", - "@goalCarbohydrates": {}, "goalFat": "Cilj za mast", - "@goalFat": {}, "today": "Danas", - "@today": {}, "loggedToday": "Zapisano danas", - "@loggedToday": {}, "kcalValue": "{value} kcal", "@kcalValue": { "description": "A value in kcal, e.g. 500 kcal", @@ -861,17 +766,13 @@ "description": "Caloric deficit (either planned or unplanned)" }, "goalFiber": "Cilj za vlakna", - "@goalFiber": {}, "goalMacro": "Ciljevi za makronutrijente", "@goalMacro": { "description": "The goal for macronutrients" }, - "selectMealToLog": "Odaberi obrok za zapis u dnevnik", - "@selectMealToLog": {}, + "selectMealToLog": "Odaberi obrok za zapisivanje u dnevnik", "ingredientLogged": "Sastojak je upisan u dnevnik", - "@ingredientLogged": {}, "noIngredientsDefined": "Još nije određen nijedan sastojak", - "@noIngredientsDefined": {}, "overallChangeWeight": "Sveukupna promjena", "@overallChangeWeight": { "description": "Overall change in weight, added for localization" @@ -880,15 +781,15 @@ "@goalTypeMeals": { "description": "added for localization of Class GoalType's filed meals" }, - "goalTypeBasic": "Osnovni", + "goalTypeBasic": "Osnovno", "@goalTypeBasic": { "description": "added for localization of Class GoalType's filed basic" }, - "goalTypeAdvanced": "Napredni", + "goalTypeAdvanced": "Napredno", "@goalTypeAdvanced": { "description": "added for localization of Class GoalType's filed advanced" }, - "indicatorRaw": "sirovo", + "indicatorRaw": "neobrađeno", "@indicatorRaw": { "description": "added for localization of Class Indicator's field text" }, @@ -897,13 +798,9 @@ "description": "added for localization of Class Indicator's field text" }, "themeMode": "Modus teme", - "@themeMode": {}, "darkMode": "Uvijek tamni modus", - "@darkMode": {}, "lightMode": "Uvijek svijetli modus", - "@lightMode": {}, "systemMode": "Postavke sustava", - "@systemMode": {}, "chartAllTimeTitle": "{name} – svo vrijeme", "@chartAllTimeTitle": { "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", @@ -914,7 +811,7 @@ } } }, - "chartDuringPlanTitle": "{chartName} tijekom prehrambenog plana {planName}", + "chartDuringPlanTitle": "{chartName} tijekom plana prehrane {planName}", "@chartDuringPlanTitle": { "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", "type": "text", @@ -928,7 +825,6 @@ } }, "settingsIngredientCacheDescription": "Predmemorija sastojaka", - "@settingsIngredientCacheDescription": {}, "chart30DaysTitle": "{name} – zadnjih 30 dana", "@chart30DaysTitle": { "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", @@ -940,35 +836,245 @@ } }, "barWeight": "Težina šipke", - "@barWeight": {}, "useColors": "Koristi boje", - "@useColors": {}, "selectAvailablePlates": "Odaberi prosjećne ploće", - "@selectAvailablePlates": {}, "useApiToken": "Koristi API Token", - "@useApiToken": {}, "useUsernameAndPassword": "Koristi vjerodajenice (Korisničko ime i lozinku)", - "@useUsernameAndPassword": {}, "apiToken": "API Token", - "@apiToken": {}, - "invalidApiToken": "Molimo provjerite API Token", + "invalidApiToken": "Upiši valjani API ključ", "@invalidApiToken": { "description": "Error message when the user enters an invalid API key" }, - "apiTokenValidChars": "API Token može sadržavati a-f, brojeve od 0-9 i mora biti točno 40 znakova dugačak.", + "apiTokenValidChars": "API ključ može sadržati slova a-f, brojke od 0-9 i mora imati točno 40 znakova", "@apiTokenValidChars": { "description": "Error message when the user tries to input a API key with forbidden characters" }, - "routines": "Rutina", - "@routines": {}, + "routines": "Rutine", "newRoutine": "Nova rutina", - "@newRoutine": {}, - "noRoutines": "Vi nemate rutine", - "@noRoutines": {}, - "restTime": "Period odmora", - "@restTime": {}, - "sets": "Vježba ima setova", + "noRoutines": "Nemaš rutine", + "restTime": "Vrijeme odmora", + "sets": "Serije", "@sets": { "description": "The number of sets to be done for one exercise" - } + }, + "min": "Min.", + "max": "Maks.", + "dayTypeAfap": "Što brže moguće", + "slotEntryTypeNormal": "Normalno", + "slotEntryTypePartial": "Djelomično", + "slotEntryTypeForced": "Prisiljeno", + "aboutTranslationListTitle": "Prevedi aplikaciju", + "aboutSourceListTitle": "Prikaži izvorni kod", + "aboutJoinCommunityTitle": "Pridruži se zajednici", + "aboutDiscordTitle": "Discord", + "others": "Drugi", + "resultingRoutine": "Rezultirajuća rutina", + "restDay": "Dan odmora", + "isRestDay": "Je dan odmora", + "progressionRules": "Ova vježba ima pravila napredovanja i ne može se uređivati u mobilnoj aplikaciji. Za uređivanje ove vježbe koristi web aplikaciju.", + "needsLogsToAdvance": "Treba dnevnike za nastavljanje", + "slotEntryTypeTut": "Vrijeme pod napetošću", + "slotEntryTypeIso": "Izometrijsko držanje", + "slotEntryTypeJump": "Skok", + "dayTypeCustom": "Prilagođeno", + "dayTypeEnom": "Svake minute u minuti", + "startDate": "Datum početka", + "@startDate": { + "description": "The start date of a nutritional plan or routine" + }, + "dayTypeRft": "Runde za vrijeme", + "dayTypeAmrap": "Što više rundi", + "dayTypeHiit": "Trening visokog intenziteta u intervalima", + "dayTypeTabata": "Tabata", + "simpleMode": "Jednostavni modus", + "dayTypeEdt": "Trening s postupnim povećanjem ponavljanja/serija", + "slotEntryTypeDropset": "Drop set (serije sa smanjivanjem težine)", + "slotEntryTypeMyo": "Myo (intenzivnije aktiviranje mišićnih vlakana)", + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "Tvoj trenutačni plan prehrane nema definirane obroke", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "Za dodavanje obroka u plan, idi na detalje plana prehrane", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "resistance_band": "Elastična vrpca", + "@resistance_band": { + "description": "Generated entry for translation for server strings" + }, + "aboutWhySupportTitle": "Otvoreni kod i besplatno ❤️", + "addSuperset": "Dodaj super-seriju", + "setHasProgression": "Serija ima napredovanje", + "setHasProgressionWarning": "Imaj na umu da trenutačno nije moguće urediti sve postavke za serije na mobilnoj aplikaciji ili konfigurirati automatsko napredovanje. Za sada koristi web aplikaciju.", + "fitInWeek": "Prilagodi u tjedan", + "fitInWeekHelp": "Ako je aktivirano, dani će se ponavljati u tjednom ciklusu, inače će dani slijediti uzastopno bez obzira na početak novog tjedna.", + "setHasNoExercises": "Ova serija još nema vježbe!", + "exerciseNr": "Vježba {nr}", + "@exerciseNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "supersetNr": "Super-serija {nr}", + "@supersetNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "isRestDayHelp": "Imaj na umu da će se sve serije i vježbe ukloniti kada označiš dan kao dan odmora.", + "needsLogsToAdvanceHelp": "Odaberi želiš li da se rutina nastavi na sljedeći zakazani dan, samo ako si za taj dan zapisao/la trening", + "routineDays": "Dani u rutini", + "errorInfoDescription": "Žao nam je, dogodila se greška. Možeš nam pomoći to popraviti prijavom problema na GitHub-u.", + "errorInfoDescription2": "Možeš nastaviti koristiti aplikaciju, ali neke funkcije možda neće raditi.", + "errorViewDetails": "Tehnički detalji", + "applicationLogs": "Dnevnici aplikacije", + "errorCouldNotConnectToServer": "Neuspjelo povezivanje sa serverom", + "errorCouldNotConnectToServerDetails": "Aplikacija se nije mogla povezati sa serverom. Provjeri internetsku vezu ili URL servera i pokušaj ponovo. Ako problem ne nestane, obrati se administratoru servera.", + "copyToClipboard": "Kopiraj u međuspremnik", + "endDate": "Datum kraja", + "@endDate": { + "description": "The End date of a nutritional plan or routine" + }, + "openEnded": "Bez datuma kraja", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Pregled", + "aboutContributeTitle": "Doprinesi", + "aboutContributeText": "Sve vrste doprinosa su dobrodošle. Bilo da si programer, prevoditelj ili jednostavno strastveni ljubitelj fitnessa, svaka podrška je dobrodošla!", + "aboutBugsListTitle": "Prijavi problem ili predloži funkciju", + "identicalExercisePleaseDiscard": "Ako primijetiš vježbu koja je identična onoj koju dodaješ, odbaci svoju vježbu i umjesto toga uredi tu vježbu.", + "checkInformationBeforeSubmitting": "Provjeri točnost tvojih unesenih podataka prije slanja vježbe", + "imageDetailsTitle": "Detalji slike", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Naslov", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Upiši naslov slike", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Poveznica na izvornu web-stranicu", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Autori", + "authorHint": "Upiši ime autora", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Poveznica na web-stranicu ili profil autora", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Poveznica na izvorni izvor, ako je ovo izvedeno djelo", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Izvedeno djelo se temelji na prethodnom djelu, ali sadrži dovoljno novog, kreativnog sadržaja da bi mu se dalo pravo na vlastita autorska prava.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Vrsta slike", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Slanjem ove slike pristaješ na njezino objavljivanje pod licencom CC-BY-SA-4. Slika mora biti tvoje vlastito djelo ili ju je autor morao objaviti pod s njom kompatibilnom licencom.", + "imageDetailsLicenseNoticeLinkToLicense": "Pogledaj tekst licence.", + "imageFormatNotSupported": "{imageFormat} nije podržani format", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "{imageFormat} slike još nisu podržane.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "add": "dodaj", + "@add": { + "description": "Add button text" + }, + "enterTextInLanguage": "Upiši tekst u ispravnom jeziku!", + "simpleModeHelp": "Sakrij neke naprednije postavke prilikom uređivanja vježbi", + "endWorkout": "Završi trening", + "dashboardWidgets": "Widgeti na nadzornoj ploči", + "topSet": "Najbolja serija: {value}", + "@topSet": { + "description": "Value is a representation of the set, like '10 x 80kg'", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "impressionGood": "Dobro", + "impressionNeutral": "Neutralno", + "impressionBad": "Loše", + "personalRecords": "Osobni rekordi", + "gymModeShowExercises": "Prikaži stranice s pregledom vježbi", + "gymModeShowTimer": "Prikaži tajmer između serija", + "gymModeTimerType": "Vrsta tajmera", + "gymModeTimerTypeHelText": "Ako serija sadrži pauze, uvijek se koristi odbrojavanje.", + "countdown": "Odbrojavanje", + "stopwatch": "Štoperica", + "gymModeDefaultCountdownTime": "Zadano vrijeme odbrojavanja, u sekundama", + "gymModeNotifyOnCountdownFinish": "Obavijesti pri kraju odbrojavanja", + "duration": "Trajanje", + "durationHoursMinutes": "{hours} h {minutes} min", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Ukupna težina", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Završeni trening", + "noTrophies": "Još nemaš trofeja", + "formMinMaxValues": "Upiši vrijednost između {min} i {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "superset": "Super-serija", + "trophies": "Trofeje" } diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index d45f77f7d..7277acf93 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -1076,5 +1076,29 @@ "aboutDiscordTitle": "Discord", "@aboutDiscordTitle": {}, "fitInWeek": "Settimana Fit in", - "@fitInWeek": {} + "@fitInWeek": {}, + "creationDate": "Data di inizio", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Senza fine", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Panoramica", + "@overview": {}, + "identicalExercisePleaseDiscard": "Se trovate un esercizio identico a quello che state cercando di aggiungere, per favore scartate la vostra bozza e se necessario modificate l'esercizio esistente.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Verificate che le informazioni siano corrette prima di aggiungere l'esercizio", + "@checkInformationBeforeSubmitting": {}, + "enterTextInLanguage": "Aggiungete il testo usando la lingua giusta!", + "@enterTextInLanguage": {}, + "applicationLogs": "Registri dell'applicazione", + "@applicationLogs": {}, + "dayTypeCustom": "Personalizzato", + "@dayTypeCustom": {}, + "dayTypeAfap": "Più velocemente possibile", + "@dayTypeAfap": {}, + "dayTypeHiit": "Allenamento a intervalli ad alta intensità", + "@dayTypeHiit": {} } diff --git a/lib/l10n/app_nl.arb b/lib/l10n/app_nl.arb index 7e592ea49..031e49e31 100644 --- a/lib/l10n/app_nl.arb +++ b/lib/l10n/app_nl.arb @@ -1,94 +1,1244 @@ { - "passwordTooShort": "Het wachtwoord is te kort", - "@passwordTooShort": { - "description": "Error message when the user a password that is too short" - }, - "register": "Registreren", - "@register": { - "description": "Text for registration button" - }, - "logout": "Uitloggen", - "@logout": { - "description": "Text for logout button" - }, - "usernameValidChars": "Een gebruikersnaam mag alleen letters, nummers en de tekens @, +, ., -, en _ bevatten", - "@usernameValidChars": { - "description": "Error message when the user tries to register a username with forbidden characters" - }, - "passwordsDontMatch": "De wachtwoorden komen niet overeen", - "@passwordsDontMatch": { - "description": "Error message when the user enters two different passwords during registration" - }, - "login": "Inloggen", - "@login": { - "description": "Text for login button" - }, - "invalidEmail": "Vul een geldig e-mailadres in", - "@invalidEmail": { - "description": "Error message when the user enters an invalid email" - }, - "confirmPassword": "Bevestig wachtwoord", - "@confirmPassword": {}, - "userProfile": "Jouw profiel", - "@userProfile": {}, - "useDefaultServer": "Gebruik standaard server", - "@useDefaultServer": { - "description": "Toggle button allowing users to switch between the default and a custom wger server" - }, - "useCustomServer": "Gebruik aangepaste server", - "@useCustomServer": { - "description": "Toggle button allowing users to switch between the default and a custom wger server" - }, - "password": "Wachtwoord", - "@password": {}, - "invalidUrl": "Vul een geldige URL in", - "@invalidUrl": { - "description": "Error message when the user enters an invalid URL, e.g. in the login form" - }, - "email": "E-mailadres", - "@email": {}, - "username": "Gebruikersnaam", - "@username": {}, - "invalidUsername": "Vul een geldige gebruikersnaam in", - "@invalidUsername": { - "description": "Error message when the user enters an invalid username" - }, - "customServerUrl": "URL van de wger instantie", - "@customServerUrl": { - "description": "Label in the form where the users can enter their own wger instance" - }, - "successfullySaved": "Opgeslagen", - "@successfullySaved": { - "description": "Message when an item was successfully saved" - }, - "exerciseList": "Oefeningen lijst", - "@exerciseList": {}, - "exercise": "Oefening", - "@exercise": { - "description": "An exercise for a workout" - }, - "exercises": "Oefeningen", - "@exercises": { - "description": "Multiple exercises for a workout" - }, - "exerciseName": "Oefening naam", - "@exerciseName": { - "description": "Label for the name of a workout exercise" - }, - "success": "Succes", - "@success": { - "description": "Message when an action completed successfully, usually used as a heading" - }, - "category": "Categorie", - "@category": { - "description": "Category for an exercise, ingredient, etc." - }, - "reps": "Herhalingen", - "@reps": { - "description": "Shorthand for repetitions, used when space constraints are tighter" - }, - "muscles": "Spieren", - "@muscles": { - "description": "(main) muscles trained by an exercise" - } -} \ No newline at end of file + "passwordTooShort": "Het wachtwoord is te kort", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "register": "Registreren", + "@register": { + "description": "Text for registration button" + }, + "logout": "Uitloggen", + "@logout": { + "description": "Text for logout button" + }, + "usernameValidChars": "Een gebruikersnaam mag alleen letters, nummers en de tekens @, +, ., -, en _ bevatten", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "passwordsDontMatch": "De wachtwoorden komen niet overeen", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "login": "Inloggen", + "@login": { + "description": "Text for login button" + }, + "invalidEmail": "Vul een geldig e-mailadres in", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "confirmPassword": "Bevestig wachtwoord", + "@confirmPassword": {}, + "userProfile": "Jouw profiel", + "@userProfile": {}, + "useDefaultServer": "Gebruik standaard server", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "useCustomServer": "Gebruik aangepaste server", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "password": "Wachtwoord", + "@password": {}, + "invalidUrl": "Vul een geldige URL in", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "email": "E-mailadres", + "@email": {}, + "username": "Gebruikersnaam", + "@username": {}, + "invalidUsername": "Vul een geldige gebruikersnaam in", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "customServerUrl": "URL van de wger instantie", + "@customServerUrl": { + "description": "Label in the form where the users can enter their own wger instance" + }, + "successfullySaved": "Opgeslagen", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "exerciseList": "Oefeningen lijst", + "@exerciseList": {}, + "exercise": "Oefening", + "@exercise": { + "description": "An exercise for a workout" + }, + "exercises": "Oefeningen", + "@exercises": { + "description": "Multiple exercises for a workout" + }, + "exerciseName": "Oefening naam", + "@exerciseName": { + "description": "Label for the name of a workout exercise" + }, + "success": "Succes", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "category": "Categorie", + "@category": { + "description": "Category for an exercise, ingredient, etc." + }, + "reps": "Herhalingen", + "@reps": { + "description": "Shorthand for repetitions, used when space constraints are tighter" + }, + "muscles": "Spieren", + "@muscles": { + "description": "(main) muscles trained by an exercise" + }, + "selectAvailablePlates": "Selecteer beschikbare platen", + "@selectAvailablePlates": {}, + "barWeight": "Gewicht stang", + "@barWeight": {}, + "useColors": "Gebruik kleuren", + "@useColors": {}, + "useApiToken": "Gebruik API Token", + "@useApiToken": {}, + "useUsernameAndPassword": "Gebruik gebruikersnaam en wachtwoord", + "@useUsernameAndPassword": {}, + "comment": "Commentaar", + "@comment": { + "description": "Comment, additional information" + }, + "apiToken": "API Token", + "@apiToken": {}, + "invalidApiToken": "Voer alstublieft een correcte API key in", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "Een API key mag enkel letters a-f, nummers 0-9 en exact 40 karakters lang zijn", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerHint": "Voer het adres van uw eigen server in, anders wordt de standaard optie gebruikt", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "reset": "Reset", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "Nog geen account? Registreer nu", + "@registerInstead": {}, + "loginInstead": "Heeft u al een account? Login", + "@loginInstead": {}, + "labelBottomNavWorkout": "Workout", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "Voeding", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "Trainings logboek", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "Workout schema", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "labelDashboard": "Dashboard", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "successfullyDeleted": "Verwijderd", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "searchExercise": "Zoek een oefening om hem toe te voegen", + "@searchExercise": { + "description": "Label on set form. Selected exercises are added to the set" + }, + "noIngredientsDefined": "Nog geen ingrediënten gedefinieerd", + "@noIngredientsDefined": {}, + "noMatchingExerciseFound": "Geen overeenkomende oefeningen gevonden", + "@noMatchingExerciseFound": { + "description": "Message returned if no exercises match the searched string" + }, + "searchNamesInEnglish": "Zoek ook voor namen in het Engels", + "@searchNamesInEnglish": {}, + "equipment": "Uitrusting", + "@equipment": { + "description": "Equipment needed to perform an exercise" + }, + "musclesSecondary": "Secundaire spieren", + "@musclesSecondary": { + "description": "secondary muscles trained by an exercise" + }, + "startDate": "Start datum", + "@startDate": { + "description": "The start date of a nutritional plan or routine" + }, + "dayTypeCustom": "Aangepast", + "@dayTypeCustom": {}, + "dayTypeEnom": "Elke minuut op de minuut", + "@dayTypeEnom": {}, + "dayTypeAmrap": "Zoveel mogelijk rondes mogelijk", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Hoge intensiteit interval training", + "@dayTypeHiit": {}, + "dayTypeTabata": "Tabata", + "@dayTypeTabata": {}, + "dayTypeEdt": "Escaleerende dichtheids training", + "@dayTypeEdt": {}, + "dayTypeRft": "Rondes voor tijd", + "@dayTypeRft": {}, + "dayTypeAfap": "Zo snel mogelijk", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normaal", + "@slotEntryTypeNormal": {}, + "slotEntryTypeDropset": "Dropset", + "@slotEntryTypeDropset": {}, + "slotEntryTypePartial": "Deels", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Verplicht", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Tijd onder spanning", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Isometrische houding", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Springen", + "@slotEntryTypeJump": {}, + "routines": "Routines", + "@routines": {}, + "newRoutine": "Nieuwe routine", + "@newRoutine": {}, + "noRoutines": "U heeft geen routines", + "@noRoutines": {}, + "restTime": "Rust tijd", + "@restTime": {}, + "sets": "Sets", + "@sets": { + "description": "The number of sets to be done for one exercise" + }, + "rir": "RiR", + "@rir": { + "description": "Shorthand for Repetitions In Reserve" + }, + "rirNotUsed": "Ongebruikt RiR", + "@rirNotUsed": { + "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" + }, + "useMetric": "Gebruik metrische eenheden voor lichaamsgewicht", + "@useMetric": {}, + "weightUnit": "Gewichtseenheid", + "@weightUnit": {}, + "repetitionUnit": "Herhalingseenheid", + "@repetitionUnit": {}, + "set": "Set", + "@set": { + "description": "A set in a workout plan" + }, + "dayDescriptionHelp": "Een beschrijving van wat er deze dag is gedaan (b.v. 'pull dag') of welk lichaamsdeel getraind is (b.v. 'borst en schouders')", + "@dayDescriptionHelp": {}, + "exerciseNr": "Oefening {nr}", + "@exerciseNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "supersetNr": "Superset {nr}", + "@supersetNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "sameRepetitions": "Als je dezelfde herhalingen en gewichten gebruikt voor alle sets kan je één rij invullen. Voor 4 sets kan je bijvoorbeeld 10 invullen voor de herhalingen, dit wordt dan automatisch \"4 x 10\".", + "@sameRepetitions": {}, + "impressionGood": "Goed", + "@impressionGood": {}, + "impressionNeutral": "Neutraal", + "@impressionNeutral": {}, + "impressionBad": "Slecht", + "@impressionBad": {}, + "impression": "Impressie", + "@impression": { + "description": "General impression (e.g. for a workout session) such as good, bad, etc." + }, + "notes": "Notities", + "@notes": { + "description": "Personal notes, e.g. for a workout session" + }, + "workoutSession": "Workout sessie", + "@workoutSession": { + "description": "A (logged) workout session" + }, + "restDay": "Rust dag", + "@restDay": {}, + "isRestDay": "Is rust dag", + "@isRestDay": {}, + "isRestDayHelp": "Houd er rekening mee dat alle sets en oefeningen verwijderd worden als u deze dag markeert als rust dag.", + "@isRestDayHelp": {}, + "needsLogsToAdvance": "Vereist logs om door te gaan", + "@needsLogsToAdvance": {}, + "needsLogsToAdvanceHelp": "Selecteer als je wilt dat de routine alleen doorgaat naar de volgende dag als je voor de dag een workout hebt vastgelegd", + "@needsLogsToAdvanceHelp": {}, + "routineDays": "Dagen in routine", + "@routineDays": {}, + "resultingRoutine": "Resulterende routine", + "@resultingRoutine": {}, + "newDay": "Nieuwe dag", + "@newDay": {}, + "newSet": "Nieuwe set", + "@newSet": { + "description": "Header when adding a new set to a workout day" + }, + "selectExercises": "Als je een superset wilt doen kan je naar verschillende oefeningen zoeken, en kan je ze samen groeperen", + "@selectExercises": {}, + "gymMode": "Gym modus", + "@gymMode": { + "description": "Label when starting the gym mode" + }, + "gymModeShowExercises": "Toon oefeningsoverzicht paginas", + "@gymModeShowExercises": {}, + "gymModeShowTimer": "Toon timer tussen sets", + "@gymModeShowTimer": {}, + "gymModeTimerType": "Timer type", + "@gymModeTimerType": {}, + "gymModeTimerTypeHelText": "Als een set pauze tijd heeft, wordt altijd een afteller gebruikt.", + "@gymModeTimerTypeHelText": {}, + "countdown": "Afteller", + "@countdown": {}, + "stopwatch": "Stopwatch", + "@stopwatch": {}, + "gymModeDefaultCountdownTime": "Standaard afteltijd, in secondes", + "@gymModeDefaultCountdownTime": {}, + "gymModeNotifyOnCountdownFinish": "Notificeer op einde aftelling", + "@gymModeNotifyOnCountdownFinish": {}, + "duration": "Duur", + "@duration": {}, + "durationHoursMinutes": "{hours}u {minutes}m", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Volume", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Workout voltooid", + "@workoutCompleted": {}, + "plateCalculator": "Platen", + "@plateCalculator": { + "description": "Label used for the plate calculator in the gym mode" + }, + "plateCalculatorNotDivisible": "Niet mogelijk om gewicht te bereiken met beschikbare platen", + "@plateCalculatorNotDivisible": { + "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" + }, + "pause": "Pauzeer", + "@pause": { + "description": "Noun, not an imperative! Label used for the pause when using the gym mode" + }, + "jumpTo": "Ga naar", + "@jumpTo": { + "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" + }, + "todaysWorkout": "Uw workout vandaag", + "@todaysWorkout": {}, + "logHelpEntries": "Als er op een enkele dag meerdere oefeningen met hetzelfde aantal herhalingen, maar verschillende gewichten zijn, wordt in het diagram alleen de oefening met het hoogste gewicht weergegeven.", + "@logHelpEntries": {}, + "logHelpEntriesUnits": "Let op: alleen gegevens met een gewichtseenheid (kg of lb) en herhalingen worden weergegeven; andere combinaties, zoals tijd of tot uitputting, worden hier buiten beschouwing gelaten.", + "@logHelpEntriesUnits": {}, + "description": "Beschrijving", + "@description": {}, + "name": "Naam", + "@name": { + "description": "Name for a workout or nutritional plan" + }, + "save": "Opslaan", + "@save": {}, + "verify": "Bevestig", + "@verify": {}, + "addSet": "Set toevoegen", + "@addSet": { + "description": "Label for the button that adds a set (to a workout day)" + }, + "addMeal": "Maaltijd toevoegen", + "@addMeal": {}, + "mealLogged": "Maaltijd geregistreerd in dagboek", + "@mealLogged": {}, + "ingredientLogged": "Ingrediënten geregistreerd in dagboek", + "@ingredientLogged": {}, + "logMeal": "Noteer de maaltijd in je voedingsdagboek", + "@logMeal": {}, + "addIngredient": "Voeg ingrediënt toe", + "@addIngredient": {}, + "logIngredient": "Noteer ingrediënt in je voedingsdagboek", + "@logIngredient": {}, + "searchIngredient": "Zoek ingrediënt", + "@searchIngredient": { + "description": "Label on ingredient search form" + }, + "nutritionalPlan": "Voedingsplan", + "@nutritionalPlan": {}, + "nutritionalDiary": "Voedingsdagboek", + "@nutritionalDiary": {}, + "nutritionalPlans": "Voedingsplannen", + "@nutritionalPlans": {}, + "noNutritionalPlans": "U heeft geen voedingsplannen", + "@noNutritionalPlans": { + "description": "Message shown when the user has no nutritional plans" + }, + "onlyLogging": "Alleen calorieën bijhouden", + "@onlyLogging": {}, + "onlyLoggingHelpText": "Vink dit vakje aan als u alleen uw calorieën wilt registreren en geen gedetailleerd voedingsplan met specifieke maaltijden wilt opstellen", + "@onlyLoggingHelpText": {}, + "goalMacro": "Macro doelen", + "@goalMacro": { + "description": "The goal for macronutrients" + }, + "selectMealToLog": "Selecteer een maaltijd om in je dagboek te registreren", + "@selectMealToLog": {}, + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "In je huidige voedingsplan zijn geen maaltijden vastgelegd", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "Om maaltijden aan het plan toe te voegen, ga naar de details van het voedingsplan", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "goalEnergy": "Energie doel", + "@goalEnergy": {}, + "goalProtein": "Proteïne doel", + "@goalProtein": {}, + "goalCarbohydrates": "Koolhydratendoel", + "@goalCarbohydrates": {}, + "goalFat": "Vet doel", + "@goalFat": {}, + "goalFiber": "Vezel doel", + "@goalFiber": {}, + "anErrorOccurred": "Er is een fout opgetreden!", + "@anErrorOccurred": {}, + "errorInfoDescription": "Het spijt ons, maar er is iets misgegaan. Je kunt ons helpen dit op te lossen door het probleem te melden op GitHub.", + "@errorInfoDescription": {}, + "errorInfoDescription2": "Je kunt de app blijven gebruiken, maar sommige functies werken mogelijk niet.", + "@errorInfoDescription2": {}, + "errorViewDetails": "Technische details", + "@errorViewDetails": {}, + "applicationLogs": "Applicatie logboek", + "@applicationLogs": {}, + "errorCouldNotConnectToServer": "Kon niet verbinden met de server", + "@errorCouldNotConnectToServer": {}, + "errorCouldNotConnectToServerDetails": "De applicatie kon geen verbinding maken met de server. Controleer uw internetverbinding of de server-URL en probeer het opnieuw. Als het probleem aanhoudt, neem dan contact op met de serverbeheerder.", + "@errorCouldNotConnectToServerDetails": {}, + "copyToClipboard": "Kopieer naar klembord", + "@copyToClipboard": {}, + "weight": "Gewicht", + "@weight": { + "description": "The weight of a workout log or body weight entry" + }, + "min": "Min", + "@min": {}, + "max": "Max", + "@max": {}, + "chartAllTimeTitle": "{name} over gehele tijd", + "@chartAllTimeTitle": { + "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chart30DaysTitle": "{name} afgelopen 30 dagen", + "@chart30DaysTitle": { + "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chartDuringPlanTitle": "{chartName} tijdens voedingsplan {planName}", + "@chartDuringPlanTitle": { + "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", + "type": "text", + "placeholders": { + "chartName": { + "type": "String" + }, + "planName": { + "type": "String" + } + } + }, + "measurement": "Meting", + "@measurement": {}, + "measurements": "Metingen", + "@measurements": { + "description": "Categories for the measurements such as biceps size, body fat, etc." + }, + "measurementCategoriesHelpText": "Meetcategorie, zoals 'biceps' of 'lichaamsvet'", + "@measurementCategoriesHelpText": {}, + "measurementEntriesHelpText": "De eenheid die wordt gebruikt om de categorie te meten, zoals 'cm' of '%'", + "@measurementEntriesHelpText": {}, + "date": "Datum", + "@date": { + "description": "The date of a workout log or body weight entry" + }, + "endDate": "Einddatum", + "@endDate": { + "description": "The End date of a nutritional plan or routine" + }, + "openEnded": "Open einde", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "value": "Waarde", + "@value": { + "description": "The value of a measurement entry" + }, + "start": "Start", + "@start": { + "description": "Label on button to start the gym mode (i.e., an imperative)" + }, + "time": "Tijd", + "@time": { + "description": "The time of a meal or workout" + }, + "timeStart": "Start tijd", + "@timeStart": { + "description": "The starting time of a workout" + }, + "timeEnd": "Eind tijd", + "@timeEnd": { + "description": "The end time of a workout" + }, + "timeStartAhead": "De begintijd mag niet voor de eindtijd liggen", + "@timeStartAhead": {}, + "ingredient": "Ingrediënt", + "@ingredient": {}, + "energy": "Energie", + "@energy": { + "description": "Energy in a meal, ingredient etc. e.g. in kJ" + }, + "energyShort": "E", + "@energyShort": { + "description": "The first letter or short name of the word 'Energy', used in overviews" + }, + "macronutrients": "Macronutriënten", + "@macronutrients": {}, + "planned": "Gepland", + "@planned": { + "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" + }, + "logged": "Gelogd", + "@logged": { + "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" + }, + "today": "Vandaag", + "@today": {}, + "loggedToday": "Vandaag gelogd", + "@loggedToday": {}, + "weekAverage": "7 dagen gemiddelde", + "@weekAverage": { + "description": "Header for the column of '7 day average' nutritional values, i.e. what was logged last week" + }, + "surplus": "overschot", + "@surplus": { + "description": "Caloric surplus (either planned or unplanned)" + }, + "deficit": "tekort", + "@deficit": { + "description": "Caloric deficit (either planned or unplanned)" + }, + "difference": "Verschil", + "@difference": {}, + "percentEnergy": "Procent energie", + "@percentEnergy": {}, + "gPerBodyKg": "g per lichaams kg", + "@gPerBodyKg": { + "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" + }, + "total": "Totaal", + "@total": { + "description": "Label used for total sums of e.g. calories or similar" + }, + "kcal": "kcal", + "@kcal": { + "description": "Energy in a meal in kilocalories, kcal" + }, + "kcalValue": "{value} kcal", + "@kcalValue": { + "description": "A value in kcal, e.g. 500 kcal", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "kJ": "kJ", + "@kJ": { + "description": "Energy in a meal in kilo joules, kJ" + }, + "g": "g", + "@g": { + "description": "Abbreviation for gram" + }, + "gValue": "{value} g", + "@gValue": { + "description": "A value in grams, e.g. 5 g", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "percentValue": "{value} %", + "@percentValue": { + "description": "A value in percent, e.g. 10 %", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "protein": "Proteïne", + "@protein": {}, + "proteinShort": "P", + "@proteinShort": { + "description": "The first letter or short name of the word 'Protein', used in overviews" + }, + "carbohydrates": "Koolhydraten", + "@carbohydrates": {}, + "carbohydratesShort": "K", + "@carbohydratesShort": { + "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" + }, + "sugars": "Suikers", + "@sugars": {}, + "fat": "Vet", + "@fat": {}, + "fatShort": "V", + "@fatShort": { + "description": "The first letter or short name of the word 'Fat', used in overviews" + }, + "saturatedFat": "Verzadigd vet", + "@saturatedFat": {}, + "fiber": "Vezels", + "@fiber": {}, + "sodium": "Natrium", + "@sodium": {}, + "amount": "Hoeveelheid", + "@amount": { + "description": "The amount (e.g. in grams) of an ingredient in a meal" + }, + "unit": "Eenheid", + "@unit": { + "description": "The unit used for a repetition (kg, time, etc.)" + }, + "newEntry": "Nieuwe invoer", + "@newEntry": { + "description": "Title when adding a new entry such as a weight or log entry" + }, + "noWeightEntries": "Je hebt geen gewichtsinvoer", + "@noWeightEntries": { + "description": "Message shown when the user has no logged weight entries" + }, + "noMeasurementEntries": "U heeft geen meetgegevens ingevoerd", + "@noMeasurementEntries": {}, + "moreMeasurementEntries": "Nieuwe meting toevoegen", + "@moreMeasurementEntries": { + "description": "Message shown when the user wants to add new measurement" + }, + "edit": "Wijzig", + "@edit": {}, + "loadingText": "Laden...", + "@loadingText": { + "description": "Text to show when entries are being loaded in the background: Loading..." + }, + "delete": "Verwijder", + "@delete": {}, + "confirmDelete": "Weet je zeker dat je '{toDelete}' wilt verwijderen?", + "@confirmDelete": { + "description": "Confirmation text before the user deletes an object", + "type": "text", + "placeholders": { + "toDelete": { + "type": "String" + } + } + }, + "newNutritionalPlan": "Nieuw voedingsplan", + "@newNutritionalPlan": {}, + "overview": "Overzicht", + "@overview": {}, + "toggleDetails": "Schakel details in", + "@toggleDetails": { + "description": "Switch to toggle detail / overview" + }, + "goToDetailPage": "Ga naar detail pagina", + "@goToDetailPage": {}, + "aboutWhySupportTitle": "Open Source & gratis te gebruiken ❤️", + "@aboutWhySupportTitle": {}, + "aboutDescription": "Bedankt voor het gebruiken van wger! wger is een collaboratief open source project, gemaakt door fitness fans van over de hele wereld.", + "@aboutDescription": { + "description": "Text in the about dialog" + }, + "aboutDonateTitle": "Maak een donatie", + "@aboutDonateTitle": {}, + "aboutDonateText": "Hoewel het project gratis is en dat ook altijd zal blijven, zijn de kosten voor het draaien van de server dat niet! De ontwikkeling vergt bovendien veel tijd en inzet van vrijwilligers. Uw bijdrage dekt deze kosten direct en helpt de betrouwbaarheid van de dienst te waarborgen.", + "@aboutDonateText": {}, + "aboutContributeTitle": "Bijdragen", + "@aboutContributeTitle": {}, + "aboutContributeText": "Alle soorten bijdragen zijn welkom. Of je nu ontwikkelaar bent, vertaler of gewoon een fitnessliefhebber, elke vorm van steun wordt gewaardeerd!", + "@aboutContributeText": {}, + "aboutBugsListTitle": "Meld een probleem of stel een functie voor", + "@aboutBugsListTitle": {}, + "aboutTranslationListTitle": "Vertaal de applicatie", + "@aboutTranslationListTitle": {}, + "aboutSourceListTitle": "Bekijk broncode", + "@aboutSourceListTitle": {}, + "aboutJoinCommunityTitle": "Sluit je aan bij de community", + "@aboutJoinCommunityTitle": {}, + "aboutMastodonTitle": "Mastodon", + "@aboutMastodonTitle": {}, + "aboutDiscordTitle": "Discord", + "@aboutDiscordTitle": {}, + "others": "Anderen", + "@others": {}, + "calendar": "Kalender", + "@calendar": {}, + "goToToday": "Ga naar vandaag", + "@goToToday": { + "description": "Label on button to jump back to 'today' in the calendar widget" + }, + "enterValue": "Voer een waarde in", + "@enterValue": { + "description": "Error message when the user hasn't entered a value on a required field" + }, + "selectEntry": "Selecteer een entry", + "@selectEntry": {}, + "selectExercise": "Selecteer een oefening", + "@selectExercise": { + "description": "Error message when the user hasn't selected an exercise in the form" + }, + "enterCharacters": "Voer tussen {min} en {max} tekens in", + "@enterCharacters": { + "description": "Error message when the user hasn't entered the correct number of characters in a form", + "type": "text", + "placeholders": { + "min": { + "type": "String" + }, + "max": { + "type": "String" + } + } + }, + "formMinMaxValues": "Voer een waarde tussen {min} en {max} in", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "enterMinCharacters": "Voer minstens {min} tekens in", + "@enterMinCharacters": { + "description": "Error message when the user hasn't entered the minimum amount characters in a form", + "type": "text", + "placeholders": { + "min": { + "type": "String" + } + } + }, + "baseNameEnglish": "Alle oefeningen moeten een basisnaam in het Engels hebben", + "@baseNameEnglish": {}, + "nrOfSets": "Sets per oefening: {nrOfSets}", + "@nrOfSets": { + "description": "Label shown on the slider where the user selects the nr of sets", + "type": "text", + "placeholders": { + "nrOfSets": { + "type": "String" + } + } + }, + "setUnitsAndRir": "Stel eenheden en RiR in", + "@setUnitsAndRir": { + "description": "Label shown on the slider where the user can toggle showing units and RiR", + "type": "text" + }, + "enterValidNumber": "Voer een geldig nummer in", + "@enterValidNumber": { + "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" + }, + "selectIngredient": "Selecteer een ingrediënt", + "@selectIngredient": { + "description": "Error message when the user hasn't selected an ingredient from the autocompleter" + }, + "recentlyUsedIngredients": "Recent toegevoegde ingrediënten", + "@recentlyUsedIngredients": { + "description": "A message when a user adds a new ingredient to a meal." + }, + "selectImage": "Selecteer een afbeelding", + "@selectImage": { + "description": "Label and error message when the user hasn't selected an image to save" + }, + "optionsLabel": "Opties", + "@optionsLabel": { + "description": "Label for the popup with general app options" + }, + "takePicture": "Neem een foto", + "@takePicture": {}, + "chooseFromLibrary": "Kies uit foto galerij", + "@chooseFromLibrary": {}, + "gallery": "Galerij", + "@gallery": {}, + "addImage": "Afbeelding toevoegen", + "@addImage": {}, + "dataCopied": "Gegevens gekopieerd naar een nieuw item", + "@dataCopied": { + "description": "Snackbar message to show on copying data to a new log entry" + }, + "appUpdateTitle": "Update vereist", + "@appUpdateTitle": {}, + "appUpdateContent": "Deze versie van de app is niet compatibel met de server, update uw applicatie.", + "@appUpdateContent": {}, + "productFound": "Product gevonden", + "@productFound": { + "description": "Header label for dialog when product is found with barcode" + }, + "productFoundDescription": "De barcode hoort bij dit product: {productName}. Wilt u doorgaan?", + "@productFoundDescription": { + "description": "Dialog info when product is found with barcode", + "type": "text", + "placeholders": { + "productName": { + "type": "String" + } + } + }, + "productNotFound": "Product niet gevonden", + "@productNotFound": { + "description": "Header label for dialog when product is not found with barcode" + }, + "productNotFoundDescription": "Het product met de gescande barcode {barcode} is niet gevonden in de wger database", + "@productNotFoundDescription": { + "description": "Dialog info when product is not found with barcode", + "type": "text", + "placeholders": { + "barcode": { + "type": "String" + } + } + }, + "scanBarcode": "Scan barcode", + "@scanBarcode": { + "description": "Label for scan barcode button" + }, + "close": "Sluiten", + "@close": { + "description": "Translation for close" + }, + "identicalExercisePleaseDiscard": "Als je een oefening ziet die identiek is aan degene die je toevoegt, gooi dan je concept weg en bewerk die oefening in plaats daarvan.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Controleer of de ingevoerde gegevens correct zijn voordat u de oefening indient", + "@checkInformationBeforeSubmitting": {}, + "add_exercise_image_license": "Afbeeldingen moeten compatibel zijn met de CC BY SA-licentie. Upload bij twijfel alleen foto's die je zelf hebt gemaakt.", + "@add_exercise_image_license": {}, + "imageDetailsTitle": "Afbeeldingsdetails", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Titel", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Voer afbeeldingsnaam in", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Link naar de bronwebsite", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Auteur(s)", + "@author": {}, + "authorHint": "Voer auteursnaam in", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Link naar de website of het profiel van de auteur", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Link naar de originele bron, als dit een afgeleid werk is", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Hulptekst ter uitleg van afgeleide werken.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Afbeeldingstype", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Door deze afbeelding in te dienen, stemt u ermee in deze vrij te geven onder de CC-BY-SA-4-licentie. De afbeelding moet uw eigen werk zijn of de auteur moet deze hebben vrijgegeven onder een licentie die hiermee compatibel is.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Zie licentie tekst.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "imageFormatNotSupported": "{imageFormat} wordt niet ondersteund", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "Afbeeldingen met het formaat {imageFormat} worden nog niet ondersteund.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "add": "toevoegen", + "@add": { + "description": "Add button text" + }, + "variations": "Variaties", + "@variations": { + "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" + }, + "alsoKnownAs": "Ook bekend als: {aliases}", + "@alsoKnownAs": { + "placeholders": { + "aliases": { + "type": "String" + } + }, + "description": "List of alternative names for an exercise" + }, + "verifiedEmail": "Geverifieerde email", + "@verifiedEmail": {}, + "unVerifiedEmail": "Niet-geverifieerde e-mail", + "@unVerifiedEmail": {}, + "verifiedEmailReason": "Je moet je e-mailadres verifiëren om oefeningen te kunnen doen", + "@verifiedEmailReason": {}, + "verifiedEmailInfo": "Er is een verificatiemail verzonden naar {email}", + "@verifiedEmailInfo": { + "placeholders": { + "email": { + "type": "String" + } + } + }, + "alternativeNames": "Alternatieve namen", + "@alternativeNames": {}, + "oneNamePerLine": "Een naam per lijn", + "@oneNamePerLine": {}, + "whatVariationsExist": "Welke varianten van deze oefening bestaan er, indien van toepassing?", + "@whatVariationsExist": {}, + "previous": "Vorige", + "@previous": {}, + "next": "Volgende", + "@next": {}, + "images": "Afbeeldingen", + "@images": {}, + "language": "Taal", + "@language": {}, + "addExercise": "Voeg oefening toe", + "@addExercise": {}, + "fitInWeek": "In week passen", + "@fitInWeek": {}, + "fitInWeekHelp": "Indien ingeschakeld, zullen de dagen zich herhalen in een wekelijkse cyclus; anders zullen de dagen elkaar opeenvolgend opvolgen, ongeacht het begin van een nieuwe week.", + "@fitInWeekHelp": {}, + "addSuperset": "Superset toevoegen", + "@addSuperset": {}, + "superset": "Superset", + "@superset": {}, + "setHasProgression": "Set heeft progressie", + "@setHasProgression": {}, + "setHasProgressionWarning": "Houd er rekening mee dat het momenteel niet mogelijk is om alle instellingen voor een set te bewerken in de mobiele app of om de automatische voortgang te configureren. Gebruik hiervoor voorlopig de webapp.", + "@setHasProgressionWarning": {}, + "setHasNoExercises": "Deze set heeft nog geen oefeningen!", + "@setHasNoExercises": {}, + "contributeExercise": "Draag een oefening bij", + "@contributeExercise": {}, + "translation": "Vertaling", + "@translation": {}, + "translateExercise": "Vertaal deze oefening", + "@translateExercise": {}, + "baseData": "Basics in Engels", + "@baseData": { + "description": "The base data for an exercise such as category, trained muscles, etc." + }, + "enterTextInLanguage": "Voer de tekst in de juiste taal in!", + "@enterTextInLanguage": {}, + "settingsTitle": "Instellingen", + "@settingsTitle": {}, + "settingsCacheTitle": "Cache", + "@settingsCacheTitle": {}, + "settingsExerciseCacheDescription": "Oefeningscache", + "@settingsExerciseCacheDescription": {}, + "settingsIngredientCacheDescription": "Ingrediënten cache", + "@settingsIngredientCacheDescription": {}, + "settingsCacheDeletedSnackbar": "Cache succesvol geleegd", + "@settingsCacheDeletedSnackbar": {}, + "aboutPageTitle": "Over ons & Support", + "@aboutPageTitle": {}, + "contributeExerciseWarning": "Je kunt alleen oefeningen bijdragen als je account ouder is dan {days} dagen en je e-mailadres is geverifieerd", + "@contributeExerciseWarning": { + "description": "Number of days before which a person can add exercise", + "placeholders": { + "days": { + "type": "String", + "example": "14" + } + } + }, + "simpleMode": "Eenvoudige modus", + "@simpleMode": {}, + "simpleModeHelp": "Verberg enkele van de meer geavanceerde instellingen tijdens het bewerken van oefeningen", + "@simpleModeHelp": {}, + "progressionRules": "Deze oefening heeft voortgangsregels en kan niet worden bewerkt in de mobiele app. Gebruik de webapplicatie om deze oefening te bewerken.", + "@progressionRules": {}, + "cacheWarning": "Vanwege de caching kan het even duren voordat de wijzigingen in de hele applicatie zichtbaar zijn.", + "@cacheWarning": {}, + "textPromptTitle": "Klaar om te starten?", + "@textPromptTitle": {}, + "textPromptSubheading": "Druk op de actieknop om te beginnen", + "@textPromptSubheading": {}, + "abs": "Buikspieren", + "@abs": { + "description": "Generated entry for translation for server strings" + }, + "arms": "Armen", + "@arms": { + "description": "Generated entry for translation for server strings" + }, + "back": "Rug", + "@back": { + "description": "Generated entry for translation for server strings" + }, + "barbell": "Barbell", + "@barbell": { + "description": "Generated entry for translation for server strings" + }, + "bench": "Bench", + "@bench": { + "description": "Generated entry for translation for server strings" + }, + "biceps": "Biceps", + "@biceps": { + "description": "Generated entry for translation for server strings" + }, + "body_weight": "Gewicht", + "@body_weight": { + "description": "Generated entry for translation for server strings" + }, + "calves": "Kuiten", + "@calves": { + "description": "Generated entry for translation for server strings" + }, + "cardio": "Cardio", + "@cardio": { + "description": "Generated entry for translation for server strings" + }, + "chest": "Borst", + "@chest": { + "description": "Generated entry for translation for server strings" + }, + "dumbbell": "Dumbbell", + "@dumbbell": { + "description": "Generated entry for translation for server strings" + }, + "glutes": "Glutes", + "@glutes": { + "description": "Generated entry for translation for server strings" + }, + "gym_mat": "Gym matje", + "@gym_mat": { + "description": "Generated entry for translation for server strings" + }, + "hamstrings": "Hamstrings", + "@hamstrings": { + "description": "Generated entry for translation for server strings" + }, + "incline_bench": "Incline bench", + "@incline_bench": { + "description": "Generated entry for translation for server strings" + }, + "kettlebell": "Kettlebell", + "@kettlebell": { + "description": "Generated entry for translation for server strings" + }, + "kilometers": "Kilometers", + "@kilometers": { + "description": "Generated entry for translation for server strings" + }, + "kilometers_per_hour": "Kilometers Per Uur", + "@kilometers_per_hour": { + "description": "Generated entry for translation for server strings" + }, + "lats": "Lats", + "@lats": { + "description": "Generated entry for translation for server strings" + }, + "legs": "Benen", + "@legs": { + "description": "Generated entry for translation for server strings" + }, + "lower_back": "Onderrug", + "@lower_back": { + "description": "Generated entry for translation for server strings" + }, + "max_reps": "Max Herhalingen", + "@max_reps": { + "description": "Generated entry for translation for server strings" + }, + "miles": "Miles", + "@miles": { + "description": "Generated entry for translation for server strings" + }, + "miles_per_hour": "Miles Per Uur", + "@miles_per_hour": { + "description": "Generated entry for translation for server strings" + }, + "minutes": "Minuten", + "@minutes": { + "description": "Generated entry for translation for server strings" + }, + "plates": "Platen", + "@plates": { + "description": "Generated entry for translation for server strings" + }, + "pull_up_bar": "Pull-up bar", + "@pull_up_bar": { + "description": "Generated entry for translation for server strings" + }, + "quads": "Quads", + "@quads": { + "description": "Generated entry for translation for server strings" + }, + "repetitions": "Herhalingen", + "@repetitions": { + "description": "Generated entry for translation for server strings" + }, + "resistance_band": "Weerstandsband", + "@resistance_band": { + "description": "Generated entry for translation for server strings" + }, + "sz_bar": "SZ-Bar", + "@sz_bar": { + "description": "Generated entry for translation for server strings" + }, + "seconds": "Seconden", + "@seconds": { + "description": "Generated entry for translation for server strings" + }, + "shoulders": "Schouders", + "@shoulders": { + "description": "Generated entry for translation for server strings" + }, + "swiss_ball": "Zwitserse Bal", + "@swiss_ball": { + "description": "Generated entry for translation for server strings" + }, + "triceps": "Triceps", + "@triceps": { + "description": "Generated entry for translation for server strings" + }, + "until_failure": "Tot Falen", + "@until_failure": { + "description": "Generated entry for translation for server strings" + }, + "kg": "kg", + "@kg": { + "description": "Generated entry for translation for server strings" + }, + "lb": "lb", + "@lb": { + "description": "Generated entry for translation for server strings" + }, + "none__bodyweight_exercise_": "geen (lichaamsgewicht)", + "@none__bodyweight_exercise_": { + "description": "Generated entry for translation for server strings" + }, + "log": "Vastleggen", + "@log": { + "description": "Log a specific meal (imperative form)" + }, + "done": "Klaar", + "@done": {}, + "overallChangeWeight": "Algemene verandering", + "@overallChangeWeight": { + "description": "Overall change in weight, added for localization" + }, + "goalTypeMeals": "Van maaltijden", + "@goalTypeMeals": { + "description": "added for localization of Class GoalType's filed meals" + }, + "goalTypeBasic": "Basic", + "@goalTypeBasic": { + "description": "added for localization of Class GoalType's filed basic" + }, + "goalTypeAdvanced": "Geavanceerd", + "@goalTypeAdvanced": { + "description": "added for localization of Class GoalType's filed advanced" + }, + "indicatorRaw": "rauw", + "@indicatorRaw": { + "description": "added for localization of Class Indicator's field text" + }, + "indicatorAvg": "gemiddeld", + "@indicatorAvg": { + "description": "added for localization of Class Indicator's field text" + }, + "endWorkout": "Beëindig workout", + "@endWorkout": { + "description": "Use the imperative, label on button to finish the current workout in gym mode" + }, + "themeMode": "Thema modus", + "@themeMode": {}, + "darkMode": "Altijd donkere modus", + "@darkMode": {}, + "lightMode": "Altijd lichte modus", + "@lightMode": {}, + "systemMode": "Systeem instellingen", + "@systemMode": {}, + "slotEntryTypeMyo": "Myo", + "@slotEntryTypeMyo": {} +} diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index 26297cb36..86bf31714 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -666,13 +666,13 @@ "@add_exercise_image_license": {}, "selectEntry": "Por favor selecione uma entrada", "@selectEntry": {}, - "cacheWarning": "Devido ao caching, pode levar algum tempo até que as alterações sejam visíveis em todo o aplicativo.", + "cacheWarning": "Devido ao \"caching\", pode levar algum tempo até que as alterações sejam visíveis em todo o aplicativo.", "@cacheWarning": {}, "success": "Sucesso", "@success": { "description": "Message when an action completed successfully, usually used as a heading" }, - "contributeExerciseWarning": "Você só pode contribuir com exercícios se sua conta tiver mais de {days} dias e tiver verificado seu e-mail", + "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e tiveres verificado o teu e-mail", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { @@ -722,13 +722,13 @@ }, "settingsCacheTitle": "Cache", "@settingsCacheTitle": {}, - "settingsExerciseCacheDescription": "Cache do exercício", + "settingsExerciseCacheDescription": "Arquivo de exercícios", "@settingsExerciseCacheDescription": {}, "useMetric": "Use unidades métricas para o peso corpora", "@useMetric": {}, "settingsTitle": "Configurações", "@settingsTitle": {}, - "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", + "settingsCacheDeletedSnackbar": "Cache limpa com sucesso", "@settingsCacheDeletedSnackbar": {}, "log": "Log", "@log": { @@ -861,7 +861,7 @@ "@goalTypeAdvanced": { "description": "added for localization of Class GoalType's filed advanced" }, - "indicatorRaw": "Crua", + "indicatorRaw": "Crú", "@indicatorRaw": { "description": "added for localization of Class Indicator's field text" }, @@ -877,7 +877,7 @@ "@themeMode": {}, "darkMode": "Modo sempre escuro", "@darkMode": {}, - "settingsIngredientCacheDescription": "Princípio de cache", + "settingsIngredientCacheDescription": "Arquivo de ingredientes", "@settingsIngredientCacheDescription": {}, "routines": "Rotinas", "@routines": {}, @@ -981,7 +981,7 @@ "@setHasProgression": {}, "simpleMode": "Modo simples", "@simpleMode": {}, - "progressionRules": "Este exercíco tem regras de progressão e não pode ser editado na aplicação móvel. Por favor, usa a aplicação web para editar este exercício.", + "progressionRules": "Este exercício tem regras de progressão e não pode ser editado na aplicação móvel. Por favor, usa a aplicação web para editar este exercício.", "@progressionRules": {}, "selectAvailablePlates": "Seleciona anilhas disponíveis", "@selectAvailablePlates": {}, @@ -1010,5 +1010,27 @@ "setHasProgressionWarning": "Por favor, nota que, de momento, não é possível editar todos os valores para uma série na aplicação móvel ou configurar a progressão automática. Por agora, por favor, usa a aplicação web.", "@setHasProgressionWarning": {}, "startDate": "Data de início", - "@startDate": {} + "@startDate": {}, + "endDate": "Data de término", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "applicationLogs": "Registos da aplicação", + "@applicationLogs": {}, + "creationDate": "Data de início", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Sem fim definido", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "enterTextInLanguage": "Por favor, introduz o texto la linguagem correta!", + "@enterTextInLanguage": {}, + "checkInformationBeforeSubmitting": "Por favor, verifica que a informação introduzida está correta antes de submeter o exercício", + "@checkInformationBeforeSubmitting": {}, + "identicalExercisePleaseDiscard": "Se encontrares um exercício igual ao que estás a introduzir, por favor descarta o teu rascunho e edita antes esse exercício.", + "@identicalExercisePleaseDiscard": {}, + "overview": "Panorama", + "@overview": {} } diff --git a/lib/l10n/app_pt_BR.arb b/lib/l10n/app_pt_BR.arb index cb84dcf32..2e3d2e266 100644 --- a/lib/l10n/app_pt_BR.arb +++ b/lib/l10n/app_pt_BR.arb @@ -115,7 +115,7 @@ "@close": { "description": "Translation for close" }, - "successfullyDeleted": "Excluído", + "successfullyDeleted": "Removido com êxito", "@successfullyDeleted": { "description": "Message when an item was successfully deleted" }, @@ -125,13 +125,13 @@ "@goToToday": { "description": "Label on button to jump back to 'today' in the calendar widget" }, - "set": "Definir", + "set": "Série", "@set": { "description": "A set in a workout plan" }, "noMeasurementEntries": "Você não tem entradas de medição", "@noMeasurementEntries": {}, - "newSet": "Novo conjunto", + "newSet": "Nova séries", "@newSet": { "description": "Header when adding a new set to a workout day" }, @@ -189,7 +189,7 @@ "@pause": { "description": "Noun, not an imperative! Label used for the pause when using the gym mode" }, - "success": "Sucesso", + "success": "Bem-sucedido", "@success": { "description": "Message when an action completed successfully, usually used as a heading" }, @@ -213,7 +213,7 @@ "@newEntry": { "description": "Title when adding a new entry such as a weight or log entry" }, - "addSet": "Adicionar set", + "addSet": "Adicionar séries", "@addSet": { "description": "Label for the button that adds a set (to a workout day)" }, @@ -271,7 +271,7 @@ "@loadingText": { "description": "Text to show when entries are being loaded in the background: Loading..." }, - "selectExercises": "Se quiser fazer um superset você pode procurar vários exercícios, eles estarão agrupados", + "selectExercises": "Se quiser fazer um superséries você pode procurar vários exercícios, eles estarão agrupados", "@selectExercises": {}, "nutritionalDiary": "Diário nutricional", "@nutritionalDiary": {}, @@ -953,7 +953,7 @@ "@noRoutines": {}, "restTime": "Tempo de descanso", "@restTime": {}, - "sets": "Conjuntos", + "sets": "Séries", "@sets": { "description": "The number of sets to be done for one exercise" }, @@ -967,7 +967,7 @@ } } }, - "supersetNr": "Superset {nr}", + "supersetNr": "Supersérie {nr}", "@supersetNr": { "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", "type": "text", @@ -981,7 +981,7 @@ "@restDay": {}, "isRestDay": "É dia de descanso", "@isRestDay": {}, - "isRestDayHelp": "Por favor, note que todos os conjuntos e exercícios serão removidos quando marcar um dia como um dia de descanso.", + "isRestDayHelp": "Por favor, note que todos as séries e exercícios serão removidos quando marcar um dia como um dia de descanso.", "@isRestDayHelp": {}, "needsLogsToAdvance": "Precisa de logs para avançar", "@needsLogsToAdvance": {}, @@ -1005,7 +1005,7 @@ "@toAddMealsToThePlanGoToNutritionalPlanDetails": { "description": "Message shown to guide users to the nutritional plan details page to add meals" }, - "errorInfoDescription": "Algo de errado aconteceu. Você pode nos ajudar a concertar esse problema reportando o problema no Github", + "errorInfoDescription": "Algo de errado aconteceu. Você pode nos ajudar a concertar esse problema reportando o problema no Github.", "@errorInfoDescription": {}, "errorInfoDescription2": "Você pode continuar usando o applicativo, mas algumas funcionalidades não estarão disponíveis.", "@errorInfoDescription2": {}, @@ -1021,7 +1021,7 @@ "@min": {}, "max": "Max", "@max": {}, - "aboutWhySupportTitle": "Open Source & free to use ❤️", + "aboutWhySupportTitle": "Código aberto e de uso gratuito ❤️", "@aboutWhySupportTitle": {}, "aboutContributeTitle": "Contribua", "@aboutContributeTitle": {}, @@ -1043,13 +1043,13 @@ "@fitInWeek": {}, "fitInWeekHelp": "Se ligado, os dias vão se repetir semanalmente, caso contrário os dias seguirão sequencialmente se considerar o começo de uma nova semana.", "@fitInWeekHelp": {}, - "addSuperset": "Adicionar superset", + "addSuperset": "Adicionar superséries", "@addSuperset": {}, "setHasProgression": "Treino tem prograssão", "@setHasProgression": {}, - "setHasProgressionWarning": "Observe que, no momento, não é possível editar todas as configurações de um conjunto no aplicativo móvel nem configurar a progressão automática. Por enquanto, use o aplicativo web.", + "setHasProgressionWarning": "Observe que, no momento, não é possível editar todas as configurações de um séries no aplicativo móvel nem configurar a progressão automática. Por enquanto, use o aplicativo web.", "@setHasProgressionWarning": {}, - "setHasNoExercises": "Este treino ainda não tem exercícios!", + "setHasNoExercises": "Este séries ainda não tem exercícios!", "@setHasNoExercises": {}, "simpleMode": "Modo simples", "@simpleMode": {}, @@ -1057,7 +1057,7 @@ "@simpleModeHelp": {}, "progressionRules": "Este exercício tem regras de progressão e não pode ser editado no aplicativo móvel. Use o aplicativo web para editá-lo.", "@progressionRules": {}, - "resistance_band": "Resistance band", + "resistance_band": "Banda de resistência", "@resistance_band": { "description": "Generated entry for translation for server strings" }, @@ -1068,5 +1068,185 @@ "lightMode": "Sempre modo claro", "@lightMode": {}, "systemMode": "Configurações do sistema", - "@systemMode": {} + "@systemMode": {}, + "endDate": "Data final", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "startDate": "Data inicial", + "@startDate": {}, + "dayTypeCustom": "Personalizado", + "@dayTypeCustom": {}, + "dayTypeHiit": "Treinamento intervalado de alta intensidade", + "@dayTypeHiit": {}, + "dayTypeTabata": "Método Tabata", + "@dayTypeTabata": {}, + "impressionGood": "Boa", + "@impressionGood": {}, + "impressionNeutral": "Neutra", + "@impressionNeutral": {}, + "impressionBad": "Ruim", + "@impressionBad": {}, + "gymModeShowExercises": "Mostrar páginas de visão geral dos exercícios", + "@gymModeShowExercises": {}, + "gymModeShowTimer": "Mostrar cronômetro entre séries", + "@gymModeShowTimer": {}, + "gymModeTimerType": "Tipo de temporizador", + "@gymModeTimerType": {}, + "gymModeTimerTypeHelText": "Se uma série tiver tempo de pausa, sempre será usada uma contagem regressiva.", + "@gymModeTimerTypeHelText": {}, + "countdown": "Contagem regressiva", + "@countdown": {}, + "stopwatch": "cronômetro", + "@stopwatch": {}, + "gymModeDefaultCountdownTime": "Tempo de contagem regressiva padrão, em segundos", + "@gymModeDefaultCountdownTime": {}, + "gymModeNotifyOnCountdownFinish": "Notificar no final da contagem regressiva", + "@gymModeNotifyOnCountdownFinish": {}, + "duration": "Duração", + "@duration": {}, + "durationHoursMinutes": "{hours}h {minutes}m", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Volume", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Treino concluído", + "@workoutCompleted": {}, + "dayTypeEnom": "Cada minuto a minuto", + "@dayTypeEnom": {}, + "dayTypeAmrap": "Tantas rodadas quanto possível", + "@dayTypeAmrap": {}, + "dayTypeEdt": "Treinamento de densidade crescente", + "@dayTypeEdt": {}, + "dayTypeRft": "Rodadas para ganhar tempo", + "@dayTypeRft": {}, + "dayTypeAfap": "O mais rápido possível", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normal", + "@slotEntryTypeNormal": {}, + "slotEntryTypePartial": "Parcial", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Forçado", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Tempo Sob Tensão", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Fixação isométrica", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Pular", + "@slotEntryTypeJump": {}, + "applicationLogs": "Registros de aplicativos", + "@applicationLogs": {}, + "openEnded": "Aberto", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "visão global", + "@overview": {}, + "formMinMaxValues": "Insira um valor entre {min} e {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "identicalExercisePleaseDiscard": "Se você notar um exercício idêntico ao que você está adicionando, descarte o rascunho e edite o exercício.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Verifique se as informações inseridas estão corretas antes de enviar o exercício", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Detalhes da imagem", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Titulo", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Insira o título da imagem", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Link para o site de origem", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Autor(s)", + "@author": {}, + "authorHint": "Digite o nome do autor", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Link para o site ou perfil do autor", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Link para a fonte original, se este for um trabalho derivado", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Um trabalho derivado é baseado em um trabalho anterior, mas contém conteúdo novo e criativo suficiente para ter direito aos seus próprios direitos autorais.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Tipo de imagem", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Ao enviar esta imagem, você concorda em liberá-la sob CC-BY-SA-4. A imagem deve ser de sua autoria ou o autor deve tê-la divulgado sob uma licença compatível com ela.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Consulte o texto da licença.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "imageFormatNotSupported": "{imageFormat} não compatível", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "Imagens {imageFormat} ainda não são suportadas.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "add": "adicionar", + "@add": { + "description": "Add button text" + }, + "superset": "Supersérie", + "@superset": {}, + "enterTextInLanguage": "Por favor, insira o texto no idioma correto!", + "@enterTextInLanguage": {}, + "endWorkout": "Terminar treino", + "@endWorkout": { + "description": "Use the imperative, label on button to finish the current workout in gym mode" + }, + "slotEntryTypeMyo": "Myo", + "@slotEntryTypeMyo": {}, + "slotEntryTypeDropset": "Drop set", + "@slotEntryTypeDropset": {} } diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index a5a7c90ed..0db1c5c65 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -1,1062 +1,1096 @@ { - "login": "Iniciar sessão", - "@login": { - "description": "Text for login button" - }, - "success": "Sucesso", - "@success": { - "description": "Message when an action completed successfully, usually used as a heading" - }, - "noMatchingExerciseFound": "Não foram encontrados exercícios", - "@noMatchingExerciseFound": { - "description": "Message returned if no exercises match the searched string" - }, - "labelDashboard": "Painel", - "@labelDashboard": { - "description": "Title for screen dashboard" - }, - "exercise": "Exercício", - "@exercise": { - "description": "An exercise for a workout" - }, - "usernameValidChars": "O nome de utilizador só pode conter letras, números e os caracteres @, +, ., - e _", - "@usernameValidChars": { - "description": "Error message when the user tries to register a username with forbidden characters" - }, - "searchNamesInEnglish": "Também procurar nomes em inglês", - "@searchNamesInEnglish": {}, - "useCustomServer": "Usar servidor personalizado", - "@useCustomServer": { - "description": "Toggle button allowing users to switch between the default and a custom wger server" - }, - "equipment": "Equipamento", - "@equipment": { - "description": "Equipment needed to perform an exercise" - }, - "userProfile": "O teu perfil", - "@userProfile": {}, - "register": "Registar", - "@register": { - "description": "Text for registration button" - }, - "comment": "Comentário", - "@comment": { - "description": "Comment, additional information" - }, - "customServerHint": "Introduz o endereço do teu próprio servidor, senão será usado o predefinido", - "@customServerHint": { - "description": "Hint text for the form where the users can enter their own wger instance" - }, - "useDefaultServer": "Usar servidor predefinido", - "@useDefaultServer": { - "description": "Toggle button allowing users to switch between the default and a custom wger server" - }, - "invalidUrl": "Introduz um URL válido", - "@invalidUrl": { - "description": "Error message when the user enters an invalid URL, e.g. in the login form" - }, - "passwordsDontMatch": "As palavras-passe não coincidem", - "@passwordsDontMatch": { - "description": "Error message when the user enters two different passwords during registration" - }, - "passwordTooShort": "A palavra-passe é demasiado curta", - "@passwordTooShort": { - "description": "Error message when the user a password that is too short" - }, - "selectAvailablePlates": "Selecionar discos disponíveis", - "@selectAvailablePlates": {}, - "barWeight": "Peso da barra", - "@barWeight": {}, - "useColors": "Usar cores", - "@useColors": {}, - "password": "Palavra-passe", - "@password": {}, - "confirmPassword": "Confirmar palavra-passe", - "@confirmPassword": {}, - "invalidEmail": "Introduz um e-mail válido", - "@invalidEmail": { - "description": "Error message when the user enters an invalid email" - }, - "email": "Endereço de e-mail", - "@email": {}, - "username": "Nome de utilizador", - "@username": {}, - "invalidUsername": "Introduz um nome de utilizador válido", - "@invalidUsername": { - "description": "Error message when the user enters an invalid username" - }, - "useApiToken": "Usar Token da API", - "@useApiToken": {}, - "useUsernameAndPassword": "Usar nome de utilizador e palavra-passe", - "@useUsernameAndPassword": {}, - "apiToken": "Token da API", - "@apiToken": {}, - "invalidApiToken": "Introduz uma chave API válida", - "@invalidApiToken": { - "description": "Error message when the user enters an invalid API key" - }, - "apiTokenValidChars": "Uma chave API só pode conter letras de a-f, números de 0-9 e ter exatamente 40 caracteres", - "@apiTokenValidChars": { - "description": "Error message when the user tries to input a API key with forbidden characters" - }, - "customServerUrl": "URL da instância wger", - "@customServerUrl": { - "description": "Label in the form where the users can enter their own wger instance" - }, - "reset": "Repor", - "@reset": { - "description": "Button text allowing the user to reset the entered values to the default" - }, - "registerInstead": "Ainda não tens conta? Regista-te agora", - "@registerInstead": {}, - "loginInstead": "Já tens conta? Inicia sessão", - "@loginInstead": {}, - "labelBottomNavWorkout": "Treino", - "@labelBottomNavWorkout": { - "description": "Label used in bottom navigation, use a short word" - }, - "labelBottomNavNutrition": "Nutrição", - "@labelBottomNavNutrition": { - "description": "Label used in bottom navigation, use a short word" - }, - "labelWorkoutLogs": "Registos de treino", - "@labelWorkoutLogs": { - "description": "(Workout) logs" - }, - "labelWorkoutPlan": "Plano de treino", - "@labelWorkoutPlan": { - "description": "Title for screen workout plan" - }, - "successfullyDeleted": "Eliminado", - "@successfullyDeleted": { - "description": "Message when an item was successfully deleted" - }, - "successfullySaved": "Guardado", - "@successfullySaved": { - "description": "Message when an item was successfully saved" - }, - "exerciseList": "Lista de exercícios", - "@exerciseList": {}, - "exercises": "Exercícios", - "@exercises": { - "description": "Multiple exercises for a workout" - }, - "exerciseName": "Nome do exercício", - "@exerciseName": { - "description": "Label for the name of a workout exercise" - }, - "searchExercise": "Procura um exercício para adicionar", - "@searchExercise": { - "description": "Label on set form. Selected exercises are added to the set" - }, - "muscles": "Músculos", - "@muscles": { - "description": "(main) muscles trained by an exercise" - }, - "musclesSecondary": "Músculos secundários", - "@musclesSecondary": { - "description": "secondary muscles trained by an exercise" - }, - "category": "Categoria", - "@category": { - "description": "Category for an exercise, ingredient, etc." - }, - "routines": "Rotinas", - "@routines": {}, - "newRoutine": "Nova rotina", - "@newRoutine": {}, - "noRoutines": "Ainda não tens rotinas", - "@noRoutines": {}, - "reps": "Repetições", - "@reps": { - "description": "Shorthand for repetitions, used when space constraints are tighter" - }, - "sets": "Séries", - "@sets": { - "description": "The number of sets to be done for one exercise" - }, - "rir": "Repetições em Reserva", - "@rir": { - "description": "Shorthand for Repetitions In Reserve" - }, - "restTime": "Tempo de descanso", - "@restTime": {}, - "rirNotUsed": "ReR não utilizado", - "@rirNotUsed": { - "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" - }, - "useMetric": "Usar unidades métricas para peso corporal", - "@useMetric": {}, - "weightUnit": "Unidade de peso", - "@weightUnit": {}, - "set": "Série", - "@set": { - "description": "A set in a workout plan" - }, - "needsLogsToAdvance": "Precisa de registos para avançar", - "@needsLogsToAdvance": {}, - "repetitionUnit": "Unidade de repetição", - "@repetitionUnit": {}, - "dayDescriptionHelp": "Descrição do que é feito neste dia (ex.: \"dia de puxar\") ou que músculos são treinados (ex.: \"peito e ombros\")", - "@dayDescriptionHelp": {}, - "exerciseNr": "Exercício {nr}", - "@exerciseNr": { - "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", - "type": "text", - "placeholders": { - "nr": { - "type": "String" - } - } - }, - "supersetNr": "Superset {nr}", - "@supersetNr": { - "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", - "type": "text", - "placeholders": { - "nr": { - "type": "String" - } - } - }, - "sameRepetitions": "Se fizeres o mesmo número de repetições e peso em todas as séries, basta preencher uma linha. Por exemplo: para 4 séries de 10, escreve \"10\" e fica automaticamente \"4 x 10\".", - "@sameRepetitions": {}, - "impression": "Impressão", - "@impression": { - "description": "General impression (e.g. for a workout session) such as good, bad, etc." - }, - "notes": "Notas", - "@notes": { - "description": "Personal notes, e.g. for a workout session" - }, - "workoutSession": "Sessão de treino", - "@workoutSession": { - "description": "A (logged) workout session" - }, - "isRestDayHelp": "Nota que todas as séries e exercícios serão removidos se marcares o dia como descanso.", - "@isRestDayHelp": {}, - "restDay": "Dia de descanso", - "@restDay": {}, - "isRestDay": "É dia de descanso", - "@isRestDay": {}, - "selectExercises": "Se quiseres fazer um superset, podes procurar vários exercícios - eles serão agrupados", - "@selectExercises": {}, - "gymMode": "Modo ginásio", - "@gymMode": { - "description": "Label when starting the gym mode" - }, - "plateCalculator": "Discos", - "@plateCalculator": { - "description": "Label used for the plate calculator in the gym mode" - }, - "plateCalculatorNotDivisible": "Não é possível atingir o peso com os discos disponíveis", - "@plateCalculatorNotDivisible": { - "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" - }, - "pause": "Pausa", - "@pause": { - "description": "Noun, not an imperative! Label used for the pause when using the gym mode" - }, - "jumpTo": "Ir para", - "@jumpTo": { - "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" - }, - "todaysWorkout": "O teu treino de hoje", - "@todaysWorkout": {}, - "logHelpEntries": "Se houver várias entradas no mesmo dia com o mesmo número de repetições mas pesos diferentes, só aparece no gráfico a de maior peso.", - "@logHelpEntries": {}, - "logHelpEntriesUnits": "Apenas são mostradas entradas com unidade de peso (kg ou lb) e repetições, outras como tempo ou até falhar são ignoradas.", - "@logHelpEntriesUnits": {}, - "description": "Descrição", - "@description": {}, - "name": "Nome", - "@name": { - "description": "Name for a workout or nutritional plan" - }, - "save": "Guardar", - "@save": {}, - "verify": "Verificar", - "@verify": {}, - "addSet": "Adicionar série", - "@addSet": { - "description": "Label for the button that adds a set (to a workout day)" - }, - "addMeal": "Adicionar refeição", - "@addMeal": {}, - "mealLogged": "Refeição registada no diário", - "@mealLogged": {}, - "ingredientLogged": "Ingrediente registado no diário", - "@ingredientLogged": {}, - "logMeal": "Registar refeição no diário nutricional", - "@logMeal": {}, - "addIngredient": "Adicionar ingrediente", - "@addIngredient": {}, - "logIngredient": "Registar ingrediente no diário nutricional", - "@logIngredient": {}, - "searchIngredient": "Procurar ingrediente", - "@searchIngredient": { - "description": "Label on ingredient search form" - }, - "nutritionalPlan": "Plano nutricional", - "@nutritionalPlan": {}, - "nutritionalDiary": "Diário nutricional", - "@nutritionalDiary": {}, - "nutritionalPlans": "Planos nutricionais", - "@nutritionalPlans": {}, - "noNutritionalPlans": "Ainda não tens planos nutricionais", - "@noNutritionalPlans": { - "description": "Message shown when the user has no nutritional plans" - }, - "onlyLogging": "Registar apenas calorias", - "@onlyLogging": {}, - "onlyLoggingHelpText": "Marca esta opção se quiseres registar só as calorias, sem plano nutricional detalhado", - "@onlyLoggingHelpText": {}, - "goalMacro": "Objetivos de macronutrientes", - "@goalMacro": { - "description": "The goal for macronutrients" - }, - "selectMealToLog": "Seleciona uma refeição para registar no diário", - "@selectMealToLog": {}, - "yourCurrentNutritionPlanHasNoMealsDefinedYet": "O teu plano nutricional atual não tem refeições definidas", - "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { - "description": "Message shown when a nutrition plan doesn't have any meals" - }, - "toAddMealsToThePlanGoToNutritionalPlanDetails": "Para adicionar refeições ao plano, vai aos detalhes do plano nutricional", - "@toAddMealsToThePlanGoToNutritionalPlanDetails": { - "description": "Message shown to guide users to the nutritional plan details page to add meals" - }, - "goalEnergy": "Objetivo energético", - "@goalEnergy": {}, - "goalProtein": "Objetivo de proteína", - "@goalProtein": {}, - "goalCarbohydrates": "Objetivo de hidratos de carbono", - "@goalCarbohydrates": {}, - "goalFat": "Objetivo de gordura", - "@goalFat": {}, - "goalFiber": "Objetivo de fibra", - "@goalFiber": {}, - "anErrorOccurred": "Ocorreu um erro!", - "@anErrorOccurred": {}, - "errorInfoDescription": "Lamentamos, algo correu mal. Podes ajudar a corrigir isto ao reportar o problema no GitHub.", - "@errorInfoDescription": {}, - "errorInfoDescription2": "Podes continuar a usar a app, mas algumas funcionalidades podem não funcionar.", - "@errorInfoDescription2": {}, - "errorViewDetails": "Detalhes técnicos", - "@errorViewDetails": {}, - "errorCouldNotConnectToServer": "Não foi possível ligar ao servidor", - "@errorCouldNotConnectToServer": {}, - "copyToClipboard": "Copiar para a área de transferência", - "@copyToClipboard": {}, - "weight": "Peso", - "@weight": { - "description": "The weight of a workout log or body weight entry" - }, - "min": "Mín", - "@min": {}, - "max": "Máx", - "@max": {}, - "chartAllTimeTitle": "{name} total", - "@chartAllTimeTitle": { - "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", - "type": "text", - "placeholders": { - "name": { - "type": "String" - } - } - }, - "chart30DaysTitle": "{name} últimos 30 dias", - "@chart30DaysTitle": { - "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", - "type": "text", - "placeholders": { - "name": { - "type": "String" - } - } - }, - "chartDuringPlanTitle": "{chartName} durante o plano nutricional {planName}", - "@chartDuringPlanTitle": { - "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", - "type": "text", - "placeholders": { - "chartName": { - "type": "String" - }, - "planName": { - "type": "String" - } - } - }, - "measurement": "Medição", - "@measurement": {}, - "measurementCategoriesHelpText": "Categoria de medição, como 'bíceps' ou 'gordura corporal'", - "@measurementCategoriesHelpText": {}, - "measurementEntriesHelpText": "Unidade usada para medir, como 'cm' ou '%'", - "@measurementEntriesHelpText": {}, - "date": "Data", - "@date": { - "description": "The date of a workout log or body weight entry" - }, - "value": "Valor", - "@value": { - "description": "The value of a measurement entry" - }, - "time": "Hora", - "@time": { - "description": "The time of a meal or workout" - }, - "timeStart": "Hora de início", - "@timeStart": { - "description": "The starting time of a workout" - }, - "timeEnd": "Hora de fim", - "@timeEnd": { - "description": "The end time of a workout" - }, - "timeStartAhead": "Hora de início não pode ser depois da hora de fim", - "@timeStartAhead": {}, - "ingredient": "Ingrediente", - "@ingredient": {}, - "energy": "Energia", - "@energy": { - "description": "Energy in a meal, ingredient etc. e.g. in kJ" - }, - "planned": "Planeado", - "@planned": { - "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" - }, - "logged": "Registado", - "@logged": { - "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" - }, - "today": "Hoje", - "@today": {}, - "loggedToday": "Registado hoje", - "@loggedToday": {}, - "weekAverage": "Média de 7 dias", - "@weekAverage": { - "description": "Header for the column of '7 day average' nutritional values, i.e. what was logged last week" - }, - "surplus": "excedente", - "@surplus": { - "description": "Caloric surplus (either planned or unplanned)" - }, - "deficit": "défice", - "@deficit": { - "description": "Caloric deficit (either planned or unplanned)" - }, - "difference": "Diferença", - "@difference": {}, - "percentEnergy": "Percentagem da energia", - "@percentEnergy": {}, - "gPerBodyKg": "g por kg de corpo", - "@gPerBodyKg": { - "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" - }, - "total": "Total", - "@total": { - "description": "Label used for total sums of e.g. calories or similar" - }, - "kcal": "kcal", - "@kcal": { - "description": "Energy in a meal in kilocalories, kcal" - }, - "kJ": "kJ", - "@kJ": { - "description": "Energy in a meal in kilo joules, kJ" - }, - "g": "g", - "@g": { - "description": "Abbreviation for gram" - }, - "gValue": "{value} g", - "@gValue": { - "description": "A value in grams, e.g. 5 g", - "type": "text", - "placeholders": { - "value": { - "type": "String" - } - } - }, - "logout": "Terminar sessão", - "@logout": { - "description": "Text for logout button" - }, - "noIngredientsDefined": "Ainda não há ingredientes definidos", - "@noIngredientsDefined": {}, - "routineDays": "Dias na rotina", - "@routineDays": {}, - "newDay": "Novo dia", - "@newDay": {}, - "newSet": "Nova série", - "@newSet": { - "description": "Header when adding a new set to a workout day" - }, - "kcalValue": "{value} kcal", - "@kcalValue": { - "description": "A value in kcal, e.g. 500 kcal", - "type": "text", - "placeholders": { - "value": { - "type": "String" - } - } - }, - "protein": "Proteína", - "@protein": {}, - "resultingRoutine": "Rotina resultante", - "@resultingRoutine": {}, - "errorCouldNotConnectToServerDetails": "A aplicação não conseguiu ligar ao servidor. Verifica a ligação à internet ou o URL do servidor e tenta outra vez. Se continuar, contacta o administrador do servidor.", - "@errorCouldNotConnectToServerDetails": {}, - "needsLogsToAdvanceHelp": "Seleciona se queres que a rotina avance para o próximo dia apenas se registares um treino", - "@needsLogsToAdvanceHelp": {}, - "start": "Início", - "@start": { - "description": "Label on button to start the gym mode (i.e., an imperative)" - }, - "energyShort": "E", - "@energyShort": { - "description": "The first letter or short name of the word 'Energy', used in overviews" - }, - "macronutrients": "Macronutrientes", - "@macronutrients": {}, - "proteinShort": "P", - "@proteinShort": { - "description": "The first letter or short name of the word 'Protein', used in overviews" - }, - "measurements": "Medições", - "@measurements": { - "description": "Categories for the measurements such as biceps size, body fat, etc." - }, - "percentValue": "{value} %", - "@percentValue": { - "description": "A value in percent, e.g. 10 %", - "type": "text", - "placeholders": { - "value": { - "type": "String" - } - } - }, - "carbohydrates": "Hidratos de carbono", - "@carbohydrates": {}, - "carbohydratesShort": "C", - "@carbohydratesShort": { - "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" - }, - "sugars": "Açúcares", - "@sugars": {}, - "fat": "Gordura", - "@fat": {}, - "fatShort": "F", - "@fatShort": { - "description": "The first letter or short name of the word 'Fat', used in overviews" - }, - "fiber": "Fibras", - "@fiber": {}, - "sodium": "Sódio", - "@sodium": {}, - "amount": "Quantidade", - "@amount": { - "description": "The amount (e.g. in grams) of an ingredient in a meal" - }, - "unit": "Unidade", - "@unit": { - "description": "The unit used for a repetition (kg, time, etc.)" - }, - "newEntry": "Nova entrada", - "@newEntry": { - "description": "Title when adding a new entry such as a weight or log entry" - }, - "noMeasurementEntries": "Ainda não tens registos de medições", - "@noMeasurementEntries": {}, - "aboutDescription": "Obrigado por usares o wger! O wger é um projeto colaborativo de código aberto, feito por fãs de fitness de todo o mundo.", - "@aboutDescription": { - "description": "Text in the about dialog" - }, - "aboutDonateTitle": "Fazer um donativo", - "@aboutDonateTitle": {}, - "aboutDonateText": "Apesar de gratuito e assim continuará, manter o servidor tem custos! O desenvolvimento também exige muito tempo dos voluntários. A tua ajuda apoia diretamente estes custos.", - "@aboutDonateText": {}, - "aboutContributeTitle": "Contribuir", - "@aboutContributeTitle": {}, - "aboutContributeText": "Todos os tipos de contribuição são bem-vindos. Sejas programador, tradutor ou apenas apaixonado por fitness, toda a ajuda conta!", - "@aboutContributeText": {}, - "aboutBugsListTitle": "Reportar um problema ou sugerir uma funcionalidade", - "@aboutBugsListTitle": {}, - "aboutTranslationListTitle": "Traduzir a aplicação", - "@aboutTranslationListTitle": {}, - "aboutSourceListTitle": "Ver código-fonte", - "@aboutSourceListTitle": {}, - "aboutJoinCommunityTitle": "Junta-te à comunidade", - "@aboutJoinCommunityTitle": {}, - "aboutMastodonTitle": "Mastodon", - "@aboutMastodonTitle": {}, - "aboutDiscordTitle": "Discord", - "@aboutDiscordTitle": {}, - "others": "Outros", - "@others": {}, - "calendar": "Calendário", - "@calendar": {}, - "goToToday": "Ir para hoje", - "@goToToday": { - "description": "Label on button to jump back to 'today' in the calendar widget" - }, - "enterValue": "Introduz um valor", - "@enterValue": { - "description": "Error message when the user hasn't entered a value on a required field" - }, - "selectEntry": "Seleciona uma entrada", - "@selectEntry": {}, - "selectExercise": "Seleciona um exercício", - "@selectExercise": { - "description": "Error message when the user hasn't selected an exercise in the form" - }, - "enterCharacters": "Escreve entre {min} e {max} caracteres", - "@enterCharacters": { - "description": "Error message when the user hasn't entered the correct number of characters in a form", - "type": "text", - "placeholders": { - "min": { - "type": "String" - }, - "max": { - "type": "String" - } - } - }, - "enterMinCharacters": "Escreve pelo menos {min} caracteres", - "@enterMinCharacters": { - "description": "Error message when the user hasn't entered the minimum amount characters in a form", - "type": "text", - "placeholders": { - "min": { - "type": "String" - } - } - }, - "baseNameEnglish": "Todos os exercícios precisam de nome base em inglês", - "@baseNameEnglish": {}, - "nrOfSets": "Séries por exercício: {nrOfSets}", - "@nrOfSets": { - "description": "Label shown on the slider where the user selects the nr of sets", - "type": "text", - "placeholders": { - "nrOfSets": { - "type": "String" - } - } - }, - "optionsLabel": "Opções", - "@optionsLabel": { - "description": "Label for the popup with general app options" - }, - "takePicture": "Tirar foto", - "@takePicture": {}, - "chooseFromLibrary": "Escolher da galeria", - "@chooseFromLibrary": {}, - "gallery": "Galeria", - "@gallery": {}, - "addImage": "Adicionar imagem", - "@addImage": {}, - "appUpdateContent": "Esta versão da aplicação não é compatível com o servidor. Por favor, atualiza a aplicação.", - "@appUpdateContent": {}, - "productNotFoundDescription": "O produto com o código {barcode} não foi encontrado na base de dados wger", - "@productNotFoundDescription": { - "description": "Dialog info when product is not found with barcode", - "type": "text", - "placeholders": { - "barcode": { - "type": "String" - } - } - }, - "scanBarcode": "Ler código de barras", - "@scanBarcode": { - "description": "Label for scan barcode button" - }, - "close": "Fechar", - "@close": { - "description": "Translation for close" - }, - "add_exercise_image_license": "Imagens têm de ser compatíveis com a licença CC BY SA. Se tiveres dúvidas, usa apenas fotos tiradas por ti.", - "@add_exercise_image_license": {}, - "variations": "Variações", - "@variations": { - "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" - }, - "verifiedEmail": "E-mail verificado", - "@verifiedEmail": {}, - "verifiedEmailReason": "Tens de verificar o e-mail para poderes contribuir com exercícios", - "@verifiedEmailReason": {}, - "verifiedEmailInfo": "Foi enviado um e-mail de verificação para {email}", - "@verifiedEmailInfo": { - "placeholders": { - "email": { - "type": "String" - } - } - }, - "alternativeNames": "Nomes alternativos", - "@alternativeNames": {}, - "oneNamePerLine": "Um nome por linha", - "@oneNamePerLine": {}, - "whatVariationsExist": "Que variações deste exercício existem (se houver)?", - "@whatVariationsExist": {}, - "previous": "Anterior", - "@previous": {}, - "next": "Seguinte", - "@next": {}, - "images": "Imagens", - "@images": {}, - "language": "Idioma", - "@language": {}, - "addExercise": "Adicionar exercício", - "@addExercise": {}, - "fitInWeek": "Ajustar à semana", - "@fitInWeek": {}, - "toggleDetails": "Mostrar detalhes", - "@toggleDetails": { - "description": "Switch to toggle detail / overview" - }, - "edit": "Editar", - "@edit": {}, - "aboutWhySupportTitle": "Código aberto e gratuito ❤️", - "@aboutWhySupportTitle": {}, - "goToDetailPage": "Ir para a página de detalhes", - "@goToDetailPage": {}, - "productFound": "Produto encontrado", - "@productFound": { - "description": "Header label for dialog when product is found with barcode" - }, - "unVerifiedEmail": "E-mail não verificado", - "@unVerifiedEmail": {}, - "moreMeasurementEntries": "Adicionar nova medição", - "@moreMeasurementEntries": { - "description": "Message shown when the user wants to add new measurement" - }, - "selectIngredient": "Seleciona um ingrediente", - "@selectIngredient": { - "description": "Error message when the user hasn't selected an ingredient from the autocompleter" - }, - "newNutritionalPlan": "Novo plano nutricional", - "@newNutritionalPlan": {}, - "setUnitsAndRir": "Unidades de série e ReR", - "@setUnitsAndRir": { - "description": "Label shown on the slider where the user can toggle showing units and RiR", - "type": "text" - }, - "saturatedFat": "Gordura saturada", - "@saturatedFat": {}, - "selectImage": "Seleciona uma imagem", - "@selectImage": { - "description": "Label and error message when the user hasn't selected an image to save" - }, - "appUpdateTitle": "Atualização necessária", - "@appUpdateTitle": {}, - "noWeightEntries": "Ainda não tens registos de peso", - "@noWeightEntries": { - "description": "Message shown when the user has no logged weight entries" - }, - "confirmDelete": "Tens a certeza que queres eliminar '{toDelete}'?", - "@confirmDelete": { - "description": "Confirmation text before the user deletes an object", - "type": "text", - "placeholders": { - "toDelete": { - "type": "String" - } - } - }, - "recentlyUsedIngredients": "Ingredientes adicionados recentemente", - "@recentlyUsedIngredients": { - "description": "A message when a user adds a new ingredient to a meal." - }, - "loadingText": "A carregar...", - "@loadingText": { - "description": "Text to show when entries are being loaded in the background: Loading..." - }, - "delete": "Eliminar", - "@delete": {}, - "productNotFound": "Produto não encontrado", - "@productNotFound": { - "description": "Header label for dialog when product is not found with barcode" - }, - "enterValidNumber": "Introduz um número válido", - "@enterValidNumber": { - "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" - }, - "dataCopied": "Dados copiados para nova entrada", - "@dataCopied": { - "description": "Snackbar message to show on copying data to a new log entry" - }, - "productFoundDescription": "O código de barras corresponde a este produto: {productName}. Queres continuar?", - "@productFoundDescription": { - "description": "Dialog info when product is found with barcode", - "type": "text", - "placeholders": { - "productName": { - "type": "String" - } - } - }, - "alsoKnownAs": "Também conhecido como: {aliases}", - "@alsoKnownAs": { - "placeholders": { - "aliases": { - "type": "String" - } + "login": "Iniciar sessão", + "@login": { + "description": "Text for login button" }, - "description": "List of alternative names for an exercise" - }, - "fitInWeekHelp": "Se ativado, os dias repetem-se semanalmente. Caso contrário, seguem-se em sequência sem respeitar o início da semana.", - "@fitInWeekHelp": {}, - "addSuperset": "Adicionar Superset", - "@addSuperset": {}, - "setHasProgression": "Série com progressão", - "@setHasProgression": {}, - "setHasProgressionWarning": "De momento não é possível editar todas as definições de uma série na app móvel ou configurar progressões automáticas. Usa a versão web.", - "@setHasProgressionWarning": {}, - "setHasNoExercises": "Esta série ainda não tem exercícios!", - "@setHasNoExercises": {}, - "contributeExercise": "Contribuir com um exercício", - "@contributeExercise": {}, - "translation": "Tradução", - "@translation": {}, - "translateExercise": "Traduz este exercício agora", - "@translateExercise": {}, - "baseData": "Básico em inglês", - "@baseData": { - "description": "The base data for an exercise such as category, trained muscles, etc." - }, - "settingsTitle": "Definições", - "@settingsTitle": {}, - "settingsCacheTitle": "Cache", - "@settingsCacheTitle": {}, - "settingsExerciseCacheDescription": "Cache de exercícios", - "@settingsExerciseCacheDescription": {}, - "settingsIngredientCacheDescription": "Cache de ingredientes", - "@settingsIngredientCacheDescription": {}, - "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", - "@settingsCacheDeletedSnackbar": {}, - "aboutPageTitle": "Sobre nós & Apoio", - "@aboutPageTitle": {}, - "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e e-mail verificado", - "@contributeExerciseWarning": { - "description": "Number of days before which a person can add exercise", - "placeholders": { - "days": { - "type": "String", - "example": "14" - } - } - }, - "simpleMode": "Modo simples", - "@simpleMode": {}, - "simpleModeHelp": "Esconder opções mais avançadas ao editar exercícios", - "@simpleModeHelp": {}, - "progressionRules": "Este exercício tem regras de progressão e não pode ser editado na app. Usa a versão web para o editar.", - "@progressionRules": {}, - "cacheWarning": "Por causa da cache, pode demorar um pouco até veres as alterações na app.", - "@cacheWarning": {}, - "textPromptTitle": "Pronto para começar?", - "@textPromptTitle": {}, - "textPromptSubheading": "Clica no botão de ação para começar", - "@textPromptSubheading": {}, - "abs": "Abdominais", - "@abs": { - "description": "Generated entry for translation for server strings" - }, - "arms": "Braços", - "@arms": { - "description": "Generated entry for translation for server strings" - }, - "back": "Costas", - "@back": { - "description": "Generated entry for translation for server strings" - }, - "barbell": "Barra olímpica", - "@barbell": { - "description": "Generated entry for translation for server strings" - }, - "bench": "Banco", - "@bench": { - "description": "Generated entry for translation for server strings" - }, - "biceps": "Bíceps", - "@biceps": { - "description": "Generated entry for translation for server strings" - }, - "body_weight": "Peso corporal", - "@body_weight": { - "description": "Generated entry for translation for server strings" - }, - "calves": "Gémeos", - "@calves": { - "description": "Generated entry for translation for server strings" - }, - "cardio": "Cardio", - "@cardio": { - "description": "Generated entry for translation for server strings" - }, - "chest": "Peito", - "@chest": { - "description": "Generated entry for translation for server strings" - }, - "dumbbell": "Halteres", - "@dumbbell": { - "description": "Generated entry for translation for server strings" - }, - "glutes": "Glúteos", - "@glutes": { - "description": "Generated entry for translation for server strings" - }, - "gym_mat": "Tapete de ginásio", - "@gym_mat": { - "description": "Generated entry for translation for server strings" - }, - "hamstrings": "Isquiotibiais", - "@hamstrings": { - "description": "Generated entry for translation for server strings" - }, - "incline_bench": "Banco inclinado", - "@incline_bench": { - "description": "Generated entry for translation for server strings" - }, - "kettlebell": "Kettlebell", - "@kettlebell": { - "description": "Generated entry for translation for server strings" - }, - "kilometers": "Quilómetros", - "@kilometers": { - "description": "Generated entry for translation for server strings" - }, - "kilometers_per_hour": "Km/h", - "@kilometers_per_hour": { - "description": "Generated entry for translation for server strings" - }, - "lats": "Dorsais", - "@lats": { - "description": "Generated entry for translation for server strings" - }, - "legs": "Pernas", - "@legs": { - "description": "Generated entry for translation for server strings" - }, - "lower_back": "Zona lombar", - "@lower_back": { - "description": "Generated entry for translation for server strings" - }, - "max_reps": "Repetições máximas", - "@max_reps": { - "description": "Generated entry for translation for server strings" - }, - "miles": "Milhas", - "@miles": { - "description": "Generated entry for translation for server strings" - }, - "miles_per_hour": "Mi/h", - "@miles_per_hour": { - "description": "Generated entry for translation for server strings" - }, - "minutes": "Minutos", - "@minutes": { - "description": "Generated entry for translation for server strings" - }, - "plates": "Discos", - "@plates": { - "description": "Generated entry for translation for server strings" - }, - "pull_up_bar": "Barra de elevações", - "@pull_up_bar": { - "description": "Generated entry for translation for server strings" - }, - "quads": "Quadríceps", - "@quads": { - "description": "Generated entry for translation for server strings" - }, - "repetitions": "Repetições", - "@repetitions": { - "description": "Generated entry for translation for server strings" - }, - "resistance_band": "Banda de resistência", - "@resistance_band": { - "description": "Generated entry for translation for server strings" - }, - "sz_bar": "Barra SZ", - "@sz_bar": { - "description": "Generated entry for translation for server strings" - }, - "seconds": "Segundos", - "@seconds": { - "description": "Generated entry for translation for server strings" - }, - "shoulders": "Ombros", - "@shoulders": { - "description": "Generated entry for translation for server strings" - }, - "swiss_ball": "Bola suíça", - "@swiss_ball": { - "description": "Generated entry for translation for server strings" - }, - "triceps": "Tríceps", - "@triceps": { - "description": "Generated entry for translation for server strings" - }, - "until_failure": "Até falhar", - "@until_failure": { - "description": "Generated entry for translation for server strings" - }, - "kg": "kg", - "@kg": { - "description": "Generated entry for translation for server strings" - }, - "lb": "lb", - "@lb": { - "description": "Generated entry for translation for server strings" - }, - "none__bodyweight_exercise_": "nenhum (exercício com peso corporal)", - "@none__bodyweight_exercise_": { - "description": "Generated entry for translation for server strings" - }, - "log": "Registar", - "@log": { - "description": "Log a specific meal (imperative form)" - }, - "done": "Concluído", - "@done": {}, - "overallChangeWeight": "Alteração total", - "@overallChangeWeight": { - "description": "Overall change in weight, added for localization" - }, - "goalTypeMeals": "Das refeições", - "@goalTypeMeals": { - "description": "added for localization of Class GoalType's filed meals" - }, - "goalTypeBasic": "Básico", - "@goalTypeBasic": { - "description": "added for localization of Class GoalType's filed basic" - }, - "goalTypeAdvanced": "Avançado", - "@goalTypeAdvanced": { - "description": "added for localization of Class GoalType's filed advanced" - }, - "indicatorRaw": "cru", - "@indicatorRaw": { - "description": "added for localization of Class Indicator's field text" - }, - "indicatorAvg": "média", - "@indicatorAvg": { - "description": "added for localization of Class Indicator's field text" - }, - "themeMode": "Modo de tema", - "@themeMode": {}, - "darkMode": "Modo escuro sempre", - "@darkMode": {}, - "lightMode": "Modo claro sempre", - "@lightMode": {}, - "systemMode": "Usar definições do sistema", - "@systemMode": {} + "success": "Sucesso", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "noMatchingExerciseFound": "Não foram encontrados exercícios", + "@noMatchingExerciseFound": { + "description": "Message returned if no exercises match the searched string" + }, + "labelDashboard": "Painel", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "exercise": "Exercício", + "@exercise": { + "description": "An exercise for a workout" + }, + "usernameValidChars": "O nome de utilizador só pode conter letras, números e os caracteres @, +, ., - e _", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "searchNamesInEnglish": "Também procurar nomes em inglês", + "@searchNamesInEnglish": {}, + "useCustomServer": "Usar servidor personalizado", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "equipment": "Equipamento", + "@equipment": { + "description": "Equipment needed to perform an exercise" + }, + "userProfile": "O teu perfil", + "@userProfile": {}, + "register": "Registar", + "@register": { + "description": "Text for registration button" + }, + "comment": "Comentário", + "@comment": { + "description": "Comment, additional information" + }, + "customServerHint": "Introduz o endereço do teu próprio servidor, senão será usado o predefinido", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "useDefaultServer": "Usar servidor predefinido", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "invalidUrl": "Introduz um URL válido", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "passwordsDontMatch": "As palavras-passe não coincidem", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "A palavra-passe é demasiado curta", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "Selecionar discos disponíveis", + "@selectAvailablePlates": {}, + "barWeight": "Peso da barra", + "@barWeight": {}, + "useColors": "Usar cores", + "@useColors": {}, + "password": "Palavra-passe", + "@password": {}, + "confirmPassword": "Confirmar palavra-passe", + "@confirmPassword": {}, + "invalidEmail": "Introduz um e-mail válido", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "email": "Endereço de e-mail", + "@email": {}, + "username": "Nome de utilizador", + "@username": {}, + "invalidUsername": "Introduz um nome de utilizador válido", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "useApiToken": "Usar Token da API", + "@useApiToken": {}, + "useUsernameAndPassword": "Usar nome de utilizador e palavra-passe", + "@useUsernameAndPassword": {}, + "apiToken": "Token da API", + "@apiToken": {}, + "invalidApiToken": "Introduz uma chave API válida", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "Uma chave API só pode conter letras de a-f, números de 0-9 e ter exatamente 40 caracteres", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerUrl": "URL da instância wger", + "@customServerUrl": { + "description": "Label in the form where the users can enter their own wger instance" + }, + "reset": "Repor", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "Ainda não tens conta? Regista-te agora", + "@registerInstead": {}, + "loginInstead": "Já tens conta? Inicia sessão", + "@loginInstead": {}, + "labelBottomNavWorkout": "Treino", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "Nutrição", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "Registos de treino", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "Plano de treino", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "successfullyDeleted": "Eliminado", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "successfullySaved": "Guardado", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "exerciseList": "Lista de exercícios", + "@exerciseList": {}, + "exercises": "Exercícios", + "@exercises": { + "description": "Multiple exercises for a workout" + }, + "exerciseName": "Nome do exercício", + "@exerciseName": { + "description": "Label for the name of a workout exercise" + }, + "searchExercise": "Procura um exercício para adicionar", + "@searchExercise": { + "description": "Label on set form. Selected exercises are added to the set" + }, + "muscles": "Músculos", + "@muscles": { + "description": "(main) muscles trained by an exercise" + }, + "musclesSecondary": "Músculos secundários", + "@musclesSecondary": { + "description": "secondary muscles trained by an exercise" + }, + "category": "Categoria", + "@category": { + "description": "Category for an exercise, ingredient, etc." + }, + "routines": "Rotinas", + "@routines": {}, + "newRoutine": "Nova rotina", + "@newRoutine": {}, + "noRoutines": "Ainda não tens rotinas", + "@noRoutines": {}, + "reps": "Repetições", + "@reps": { + "description": "Shorthand for repetitions, used when space constraints are tighter" + }, + "sets": "Séries", + "@sets": { + "description": "The number of sets to be done for one exercise" + }, + "rir": "Repetições em Reserva", + "@rir": { + "description": "Shorthand for Repetitions In Reserve" + }, + "restTime": "Tempo de descanso", + "@restTime": {}, + "rirNotUsed": "ReR não utilizado", + "@rirNotUsed": { + "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" + }, + "useMetric": "Usar unidades métricas para peso corporal", + "@useMetric": {}, + "weightUnit": "Unidade de peso", + "@weightUnit": {}, + "set": "Série", + "@set": { + "description": "A set in a workout plan" + }, + "needsLogsToAdvance": "Precisa de registos para avançar", + "@needsLogsToAdvance": {}, + "repetitionUnit": "Unidade de repetição", + "@repetitionUnit": {}, + "dayDescriptionHelp": "Descrição do que é feito neste dia (ex.: \"dia de puxar\") ou que músculos são treinados (ex.: \"peito e ombros\")", + "@dayDescriptionHelp": {}, + "exerciseNr": "Exercício {nr}", + "@exerciseNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "supersetNr": "Superset {nr}", + "@supersetNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "sameRepetitions": "Se fizeres o mesmo número de repetições e peso em todas as séries, basta preencher uma linha. Por exemplo: para 4 séries de 10, escreve \"10\" e fica automaticamente \"4 x 10\".", + "@sameRepetitions": {}, + "impression": "Impressão", + "@impression": { + "description": "General impression (e.g. for a workout session) such as good, bad, etc." + }, + "notes": "Notas", + "@notes": { + "description": "Personal notes, e.g. for a workout session" + }, + "workoutSession": "Sessão de treino", + "@workoutSession": { + "description": "A (logged) workout session" + }, + "isRestDayHelp": "Nota que todas as séries e exercícios serão removidos se marcares o dia como descanso.", + "@isRestDayHelp": {}, + "restDay": "Dia de descanso", + "@restDay": {}, + "isRestDay": "É dia de descanso", + "@isRestDay": {}, + "selectExercises": "Se quiseres fazer um superset, podes procurar vários exercícios - eles serão agrupados", + "@selectExercises": {}, + "gymMode": "Modo ginásio", + "@gymMode": { + "description": "Label when starting the gym mode" + }, + "plateCalculator": "Discos", + "@plateCalculator": { + "description": "Label used for the plate calculator in the gym mode" + }, + "plateCalculatorNotDivisible": "Não é possível atingir o peso com os discos disponíveis", + "@plateCalculatorNotDivisible": { + "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" + }, + "pause": "Pausa", + "@pause": { + "description": "Noun, not an imperative! Label used for the pause when using the gym mode" + }, + "jumpTo": "Ir para", + "@jumpTo": { + "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" + }, + "todaysWorkout": "O teu treino de hoje", + "@todaysWorkout": {}, + "logHelpEntries": "Se houver várias entradas no mesmo dia com o mesmo número de repetições mas pesos diferentes, só aparece no gráfico a de maior peso.", + "@logHelpEntries": {}, + "logHelpEntriesUnits": "Apenas são mostradas entradas com unidade de peso (kg ou lb) e repetições, outras como tempo ou até falhar são ignoradas.", + "@logHelpEntriesUnits": {}, + "description": "Descrição", + "@description": {}, + "name": "Nome", + "@name": { + "description": "Name for a workout or nutritional plan" + }, + "save": "Guardar", + "@save": {}, + "verify": "Verificar", + "@verify": {}, + "addSet": "Adicionar série", + "@addSet": { + "description": "Label for the button that adds a set (to a workout day)" + }, + "addMeal": "Adicionar refeição", + "@addMeal": {}, + "mealLogged": "Refeição registada no diário", + "@mealLogged": {}, + "ingredientLogged": "Ingrediente registado no diário", + "@ingredientLogged": {}, + "logMeal": "Registar refeição no diário nutricional", + "@logMeal": {}, + "addIngredient": "Adicionar ingrediente", + "@addIngredient": {}, + "logIngredient": "Registar ingrediente no diário nutricional", + "@logIngredient": {}, + "searchIngredient": "Procurar ingrediente", + "@searchIngredient": { + "description": "Label on ingredient search form" + }, + "nutritionalPlan": "Plano nutricional", + "@nutritionalPlan": {}, + "nutritionalDiary": "Diário nutricional", + "@nutritionalDiary": {}, + "nutritionalPlans": "Planos nutricionais", + "@nutritionalPlans": {}, + "noNutritionalPlans": "Ainda não tens planos nutricionais", + "@noNutritionalPlans": { + "description": "Message shown when the user has no nutritional plans" + }, + "onlyLogging": "Registar apenas calorias", + "@onlyLogging": {}, + "onlyLoggingHelpText": "Marca esta opção se quiseres registar só as calorias, sem plano nutricional detalhado", + "@onlyLoggingHelpText": {}, + "goalMacro": "Objetivos de macronutrientes", + "@goalMacro": { + "description": "The goal for macronutrients" + }, + "selectMealToLog": "Seleciona uma refeição para registar no diário", + "@selectMealToLog": {}, + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "O teu plano nutricional atual não tem refeições definidas", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "Para adicionar refeições ao plano, vai aos detalhes do plano nutricional", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "goalEnergy": "Objetivo energético", + "@goalEnergy": {}, + "goalProtein": "Objetivo de proteína", + "@goalProtein": {}, + "goalCarbohydrates": "Objetivo de hidratos de carbono", + "@goalCarbohydrates": {}, + "goalFat": "Objetivo de gordura", + "@goalFat": {}, + "goalFiber": "Objetivo de fibra", + "@goalFiber": {}, + "anErrorOccurred": "Ocorreu um erro!", + "@anErrorOccurred": {}, + "errorInfoDescription": "Lamentamos, algo correu mal. Podes ajudar a corrigir isto ao reportar o problema no GitHub.", + "@errorInfoDescription": {}, + "errorInfoDescription2": "Podes continuar a usar a app, mas algumas funcionalidades podem não funcionar.", + "@errorInfoDescription2": {}, + "errorViewDetails": "Detalhes técnicos", + "@errorViewDetails": {}, + "errorCouldNotConnectToServer": "Não foi possível ligar ao servidor", + "@errorCouldNotConnectToServer": {}, + "copyToClipboard": "Copiar para a área de transferência", + "@copyToClipboard": {}, + "weight": "Peso", + "@weight": { + "description": "The weight of a workout log or body weight entry" + }, + "min": "Mín", + "@min": {}, + "max": "Máx", + "@max": {}, + "chartAllTimeTitle": "{name} total", + "@chartAllTimeTitle": { + "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chart30DaysTitle": "{name} últimos 30 dias", + "@chart30DaysTitle": { + "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chartDuringPlanTitle": "{chartName} durante o plano nutricional {planName}", + "@chartDuringPlanTitle": { + "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", + "type": "text", + "placeholders": { + "chartName": { + "type": "String" + }, + "planName": { + "type": "String" + } + } + }, + "measurement": "Medição", + "@measurement": {}, + "measurementCategoriesHelpText": "Categoria de medição, como 'bíceps' ou 'gordura corporal'", + "@measurementCategoriesHelpText": {}, + "measurementEntriesHelpText": "Unidade usada para medir, como 'cm' ou '%'", + "@measurementEntriesHelpText": {}, + "date": "Data", + "@date": { + "description": "The date of a workout log or body weight entry" + }, + "value": "Valor", + "@value": { + "description": "The value of a measurement entry" + }, + "time": "Hora", + "@time": { + "description": "The time of a meal or workout" + }, + "timeStart": "Hora de início", + "@timeStart": { + "description": "The starting time of a workout" + }, + "timeEnd": "Hora de fim", + "@timeEnd": { + "description": "The end time of a workout" + }, + "timeStartAhead": "Hora de início não pode ser depois da hora de fim", + "@timeStartAhead": {}, + "ingredient": "Ingrediente", + "@ingredient": {}, + "energy": "Energia", + "@energy": { + "description": "Energy in a meal, ingredient etc. e.g. in kJ" + }, + "planned": "Planeado", + "@planned": { + "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" + }, + "logged": "Registado", + "@logged": { + "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" + }, + "today": "Hoje", + "@today": {}, + "loggedToday": "Registado hoje", + "@loggedToday": {}, + "weekAverage": "Média de 7 dias", + "@weekAverage": { + "description": "Header for the column of '7 day average' nutritional values, i.e. what was logged last week" + }, + "surplus": "excedente", + "@surplus": { + "description": "Caloric surplus (either planned or unplanned)" + }, + "deficit": "défice", + "@deficit": { + "description": "Caloric deficit (either planned or unplanned)" + }, + "difference": "Diferença", + "@difference": {}, + "percentEnergy": "Percentagem da energia", + "@percentEnergy": {}, + "gPerBodyKg": "g por kg de corpo", + "@gPerBodyKg": { + "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" + }, + "total": "Total", + "@total": { + "description": "Label used for total sums of e.g. calories or similar" + }, + "kcal": "kcal", + "@kcal": { + "description": "Energy in a meal in kilocalories, kcal" + }, + "kJ": "kJ", + "@kJ": { + "description": "Energy in a meal in kilo joules, kJ" + }, + "g": "g", + "@g": { + "description": "Abbreviation for gram" + }, + "gValue": "{value} g", + "@gValue": { + "description": "A value in grams, e.g. 5 g", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "logout": "Terminar sessão", + "@logout": { + "description": "Text for logout button" + }, + "noIngredientsDefined": "Ainda não há ingredientes definidos", + "@noIngredientsDefined": {}, + "routineDays": "Dias na rotina", + "@routineDays": {}, + "newDay": "Novo dia", + "@newDay": {}, + "newSet": "Nova série", + "@newSet": { + "description": "Header when adding a new set to a workout day" + }, + "kcalValue": "{value} kcal", + "@kcalValue": { + "description": "A value in kcal, e.g. 500 kcal", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "protein": "Proteína", + "@protein": {}, + "resultingRoutine": "Rotina resultante", + "@resultingRoutine": {}, + "errorCouldNotConnectToServerDetails": "A aplicação não conseguiu ligar ao servidor. Verifica a ligação à internet ou o URL do servidor e tenta outra vez. Se continuar, contacta o administrador do servidor.", + "@errorCouldNotConnectToServerDetails": {}, + "needsLogsToAdvanceHelp": "Seleciona se queres que a rotina avance para o próximo dia apenas se registares um treino", + "@needsLogsToAdvanceHelp": {}, + "start": "Início", + "@start": { + "description": "Label on button to start the gym mode (i.e., an imperative)" + }, + "energyShort": "E", + "@energyShort": { + "description": "The first letter or short name of the word 'Energy', used in overviews" + }, + "macronutrients": "Macronutrientes", + "@macronutrients": {}, + "proteinShort": "P", + "@proteinShort": { + "description": "The first letter or short name of the word 'Protein', used in overviews" + }, + "measurements": "Medições", + "@measurements": { + "description": "Categories for the measurements such as biceps size, body fat, etc." + }, + "percentValue": "{value} %", + "@percentValue": { + "description": "A value in percent, e.g. 10 %", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "carbohydrates": "Hidratos de carbono", + "@carbohydrates": {}, + "carbohydratesShort": "C", + "@carbohydratesShort": { + "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" + }, + "sugars": "Açúcares", + "@sugars": {}, + "fat": "Gordura", + "@fat": {}, + "fatShort": "F", + "@fatShort": { + "description": "The first letter or short name of the word 'Fat', used in overviews" + }, + "fiber": "Fibras", + "@fiber": {}, + "sodium": "Sódio", + "@sodium": {}, + "amount": "Quantidade", + "@amount": { + "description": "The amount (e.g. in grams) of an ingredient in a meal" + }, + "unit": "Unidade", + "@unit": { + "description": "The unit used for a repetition (kg, time, etc.)" + }, + "newEntry": "Nova entrada", + "@newEntry": { + "description": "Title when adding a new entry such as a weight or log entry" + }, + "noMeasurementEntries": "Ainda não tens registos de medições", + "@noMeasurementEntries": {}, + "aboutDescription": "Obrigado por usares o wger! O wger é um projeto colaborativo de código aberto, feito por fãs de fitness de todo o mundo.", + "@aboutDescription": { + "description": "Text in the about dialog" + }, + "aboutDonateTitle": "Fazer um donativo", + "@aboutDonateTitle": {}, + "aboutDonateText": "Apesar de gratuito e assim continuará, manter o servidor tem custos! O desenvolvimento também exige muito tempo dos voluntários. A tua ajuda apoia diretamente estes custos.", + "@aboutDonateText": {}, + "aboutContributeTitle": "Contribuir", + "@aboutContributeTitle": {}, + "aboutContributeText": "Todos os tipos de contribuição são bem-vindos. Sejas programador, tradutor ou apenas apaixonado por fitness, toda a ajuda conta!", + "@aboutContributeText": {}, + "aboutBugsListTitle": "Reportar um problema ou sugerir uma funcionalidade", + "@aboutBugsListTitle": {}, + "aboutTranslationListTitle": "Traduzir a aplicação", + "@aboutTranslationListTitle": {}, + "aboutSourceListTitle": "Ver código-fonte", + "@aboutSourceListTitle": {}, + "aboutJoinCommunityTitle": "Junta-te à comunidade", + "@aboutJoinCommunityTitle": {}, + "aboutMastodonTitle": "Mastodon", + "@aboutMastodonTitle": {}, + "aboutDiscordTitle": "Discord", + "@aboutDiscordTitle": {}, + "others": "Outros", + "@others": {}, + "calendar": "Calendário", + "@calendar": {}, + "goToToday": "Ir para hoje", + "@goToToday": { + "description": "Label on button to jump back to 'today' in the calendar widget" + }, + "enterValue": "Introduz um valor", + "@enterValue": { + "description": "Error message when the user hasn't entered a value on a required field" + }, + "selectEntry": "Seleciona uma entrada", + "@selectEntry": {}, + "selectExercise": "Seleciona um exercício", + "@selectExercise": { + "description": "Error message when the user hasn't selected an exercise in the form" + }, + "enterCharacters": "Escreve entre {min} e {max} caracteres", + "@enterCharacters": { + "description": "Error message when the user hasn't entered the correct number of characters in a form", + "type": "text", + "placeholders": { + "min": { + "type": "String" + }, + "max": { + "type": "String" + } + } + }, + "enterMinCharacters": "Escreve pelo menos {min} caracteres", + "@enterMinCharacters": { + "description": "Error message when the user hasn't entered the minimum amount characters in a form", + "type": "text", + "placeholders": { + "min": { + "type": "String" + } + } + }, + "baseNameEnglish": "Todos os exercícios precisam de nome base em inglês", + "@baseNameEnglish": {}, + "nrOfSets": "Séries por exercício: {nrOfSets}", + "@nrOfSets": { + "description": "Label shown on the slider where the user selects the nr of sets", + "type": "text", + "placeholders": { + "nrOfSets": { + "type": "String" + } + } + }, + "optionsLabel": "Opções", + "@optionsLabel": { + "description": "Label for the popup with general app options" + }, + "takePicture": "Tirar foto", + "@takePicture": {}, + "chooseFromLibrary": "Escolher da galeria", + "@chooseFromLibrary": {}, + "gallery": "Galeria", + "@gallery": {}, + "addImage": "Adicionar imagem", + "@addImage": {}, + "appUpdateContent": "Esta versão da aplicação não é compatível com o servidor. Por favor, atualiza a aplicação.", + "@appUpdateContent": {}, + "productNotFoundDescription": "O produto com o código {barcode} não foi encontrado na base de dados wger", + "@productNotFoundDescription": { + "description": "Dialog info when product is not found with barcode", + "type": "text", + "placeholders": { + "barcode": { + "type": "String" + } + } + }, + "scanBarcode": "Ler código de barras", + "@scanBarcode": { + "description": "Label for scan barcode button" + }, + "close": "Fechar", + "@close": { + "description": "Translation for close" + }, + "add_exercise_image_license": "Imagens têm de ser compatíveis com a licença CC BY SA. Se tiveres dúvidas, usa apenas fotos tiradas por ti.", + "@add_exercise_image_license": {}, + "variations": "Variações", + "@variations": { + "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" + }, + "verifiedEmail": "E-mail verificado", + "@verifiedEmail": {}, + "verifiedEmailReason": "Tens de verificar o e-mail para poderes contribuir com exercícios", + "@verifiedEmailReason": {}, + "verifiedEmailInfo": "Foi enviado um e-mail de verificação para {email}", + "@verifiedEmailInfo": { + "placeholders": { + "email": { + "type": "String" + } + } + }, + "alternativeNames": "Nomes alternativos", + "@alternativeNames": {}, + "oneNamePerLine": "Um nome por linha", + "@oneNamePerLine": {}, + "whatVariationsExist": "Que variações deste exercício existem (se houver)?", + "@whatVariationsExist": {}, + "previous": "Anterior", + "@previous": {}, + "next": "Seguinte", + "@next": {}, + "images": "Imagens", + "@images": {}, + "language": "Idioma", + "@language": {}, + "addExercise": "Adicionar exercício", + "@addExercise": {}, + "fitInWeek": "Ajustar à semana", + "@fitInWeek": {}, + "toggleDetails": "Mostrar detalhes", + "@toggleDetails": { + "description": "Switch to toggle detail / overview" + }, + "edit": "Editar", + "@edit": {}, + "aboutWhySupportTitle": "Código aberto e gratuito ❤️", + "@aboutWhySupportTitle": {}, + "goToDetailPage": "Ir para a página de detalhes", + "@goToDetailPage": {}, + "productFound": "Produto encontrado", + "@productFound": { + "description": "Header label for dialog when product is found with barcode" + }, + "unVerifiedEmail": "E-mail não verificado", + "@unVerifiedEmail": {}, + "moreMeasurementEntries": "Adicionar nova medição", + "@moreMeasurementEntries": { + "description": "Message shown when the user wants to add new measurement" + }, + "selectIngredient": "Seleciona um ingrediente", + "@selectIngredient": { + "description": "Error message when the user hasn't selected an ingredient from the autocompleter" + }, + "newNutritionalPlan": "Novo plano nutricional", + "@newNutritionalPlan": {}, + "setUnitsAndRir": "Unidades de série e ReR", + "@setUnitsAndRir": { + "description": "Label shown on the slider where the user can toggle showing units and RiR", + "type": "text" + }, + "saturatedFat": "Gordura saturada", + "@saturatedFat": {}, + "selectImage": "Seleciona uma imagem", + "@selectImage": { + "description": "Label and error message when the user hasn't selected an image to save" + }, + "appUpdateTitle": "Atualização necessária", + "@appUpdateTitle": {}, + "noWeightEntries": "Ainda não tens registos de peso", + "@noWeightEntries": { + "description": "Message shown when the user has no logged weight entries" + }, + "confirmDelete": "Tens a certeza que queres eliminar '{toDelete}'?", + "@confirmDelete": { + "description": "Confirmation text before the user deletes an object", + "type": "text", + "placeholders": { + "toDelete": { + "type": "String" + } + } + }, + "recentlyUsedIngredients": "Ingredientes adicionados recentemente", + "@recentlyUsedIngredients": { + "description": "A message when a user adds a new ingredient to a meal." + }, + "loadingText": "A carregar...", + "@loadingText": { + "description": "Text to show when entries are being loaded in the background: Loading..." + }, + "delete": "Eliminar", + "@delete": {}, + "productNotFound": "Produto não encontrado", + "@productNotFound": { + "description": "Header label for dialog when product is not found with barcode" + }, + "enterValidNumber": "Introduz um número válido", + "@enterValidNumber": { + "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" + }, + "dataCopied": "Dados copiados para nova entrada", + "@dataCopied": { + "description": "Snackbar message to show on copying data to a new log entry" + }, + "productFoundDescription": "O código de barras corresponde a este produto: {productName}. Queres continuar?", + "@productFoundDescription": { + "description": "Dialog info when product is found with barcode", + "type": "text", + "placeholders": { + "productName": { + "type": "String" + } + } + }, + "alsoKnownAs": "Também conhecido como: {aliases}", + "@alsoKnownAs": { + "placeholders": { + "aliases": { + "type": "String" + } + }, + "description": "List of alternative names for an exercise" + }, + "fitInWeekHelp": "Se ativado, os dias repetem-se semanalmente. Caso contrário, seguem-se em sequência sem respeitar o início da semana.", + "@fitInWeekHelp": {}, + "addSuperset": "Adicionar Superset", + "@addSuperset": {}, + "setHasProgression": "Série com progressão", + "@setHasProgression": {}, + "setHasProgressionWarning": "De momento não é possível editar todas as definições de uma série na app móvel ou configurar progressões automáticas. Usa a versão web.", + "@setHasProgressionWarning": {}, + "setHasNoExercises": "Esta série ainda não tem exercícios!", + "@setHasNoExercises": {}, + "contributeExercise": "Contribuir com um exercício", + "@contributeExercise": {}, + "translation": "Tradução", + "@translation": {}, + "translateExercise": "Traduz este exercício agora", + "@translateExercise": {}, + "baseData": "Básico em inglês", + "@baseData": { + "description": "The base data for an exercise such as category, trained muscles, etc." + }, + "settingsTitle": "Definições", + "@settingsTitle": {}, + "settingsCacheTitle": "Cache", + "@settingsCacheTitle": {}, + "settingsExerciseCacheDescription": "Cache de exercícios", + "@settingsExerciseCacheDescription": {}, + "settingsIngredientCacheDescription": "Cache de ingredientes", + "@settingsIngredientCacheDescription": {}, + "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", + "@settingsCacheDeletedSnackbar": {}, + "aboutPageTitle": "Sobre nós & Apoio", + "@aboutPageTitle": {}, + "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e e-mail verificado", + "@contributeExerciseWarning": { + "description": "Number of days before which a person can add exercise", + "placeholders": { + "days": { + "type": "String", + "example": "14" + } + } + }, + "simpleMode": "Modo simples", + "@simpleMode": {}, + "simpleModeHelp": "Esconder opções mais avançadas ao editar exercícios", + "@simpleModeHelp": {}, + "progressionRules": "Este exercício tem regras de progressão e não pode ser editado na app. Usa a versão web para o editar.", + "@progressionRules": {}, + "cacheWarning": "Por causa da cache, pode demorar um pouco até veres as alterações na app.", + "@cacheWarning": {}, + "textPromptTitle": "Pronto para começar?", + "@textPromptTitle": {}, + "textPromptSubheading": "Clica no botão de ação para começar", + "@textPromptSubheading": {}, + "abs": "Abdominais", + "@abs": { + "description": "Generated entry for translation for server strings" + }, + "arms": "Braços", + "@arms": { + "description": "Generated entry for translation for server strings" + }, + "back": "Costas", + "@back": { + "description": "Generated entry for translation for server strings" + }, + "barbell": "Barra olímpica", + "@barbell": { + "description": "Generated entry for translation for server strings" + }, + "bench": "Banco", + "@bench": { + "description": "Generated entry for translation for server strings" + }, + "biceps": "Bíceps", + "@biceps": { + "description": "Generated entry for translation for server strings" + }, + "body_weight": "Peso corporal", + "@body_weight": { + "description": "Generated entry for translation for server strings" + }, + "calves": "Gémeos", + "@calves": { + "description": "Generated entry for translation for server strings" + }, + "cardio": "Cardio", + "@cardio": { + "description": "Generated entry for translation for server strings" + }, + "chest": "Peito", + "@chest": { + "description": "Generated entry for translation for server strings" + }, + "dumbbell": "Halteres", + "@dumbbell": { + "description": "Generated entry for translation for server strings" + }, + "glutes": "Glúteos", + "@glutes": { + "description": "Generated entry for translation for server strings" + }, + "gym_mat": "Tapete de ginásio", + "@gym_mat": { + "description": "Generated entry for translation for server strings" + }, + "hamstrings": "Isquiotibiais", + "@hamstrings": { + "description": "Generated entry for translation for server strings" + }, + "incline_bench": "Banco inclinado", + "@incline_bench": { + "description": "Generated entry for translation for server strings" + }, + "kettlebell": "Kettlebell", + "@kettlebell": { + "description": "Generated entry for translation for server strings" + }, + "kilometers": "Quilómetros", + "@kilometers": { + "description": "Generated entry for translation for server strings" + }, + "kilometers_per_hour": "Km/h", + "@kilometers_per_hour": { + "description": "Generated entry for translation for server strings" + }, + "lats": "Dorsais", + "@lats": { + "description": "Generated entry for translation for server strings" + }, + "legs": "Pernas", + "@legs": { + "description": "Generated entry for translation for server strings" + }, + "lower_back": "Zona lombar", + "@lower_back": { + "description": "Generated entry for translation for server strings" + }, + "max_reps": "Repetições máximas", + "@max_reps": { + "description": "Generated entry for translation for server strings" + }, + "miles": "Milhas", + "@miles": { + "description": "Generated entry for translation for server strings" + }, + "miles_per_hour": "Mi/h", + "@miles_per_hour": { + "description": "Generated entry for translation for server strings" + }, + "minutes": "Minutos", + "@minutes": { + "description": "Generated entry for translation for server strings" + }, + "plates": "Discos", + "@plates": { + "description": "Generated entry for translation for server strings" + }, + "pull_up_bar": "Barra de elevações", + "@pull_up_bar": { + "description": "Generated entry for translation for server strings" + }, + "quads": "Quadríceps", + "@quads": { + "description": "Generated entry for translation for server strings" + }, + "repetitions": "Repetições", + "@repetitions": { + "description": "Generated entry for translation for server strings" + }, + "resistance_band": "Banda de resistência", + "@resistance_band": { + "description": "Generated entry for translation for server strings" + }, + "sz_bar": "Barra SZ", + "@sz_bar": { + "description": "Generated entry for translation for server strings" + }, + "seconds": "Segundos", + "@seconds": { + "description": "Generated entry for translation for server strings" + }, + "shoulders": "Ombros", + "@shoulders": { + "description": "Generated entry for translation for server strings" + }, + "swiss_ball": "Bola suíça", + "@swiss_ball": { + "description": "Generated entry for translation for server strings" + }, + "triceps": "Tríceps", + "@triceps": { + "description": "Generated entry for translation for server strings" + }, + "until_failure": "Até falhar", + "@until_failure": { + "description": "Generated entry for translation for server strings" + }, + "kg": "kg", + "@kg": { + "description": "Generated entry for translation for server strings" + }, + "lb": "lb", + "@lb": { + "description": "Generated entry for translation for server strings" + }, + "none__bodyweight_exercise_": "nenhum (exercício com peso corporal)", + "@none__bodyweight_exercise_": { + "description": "Generated entry for translation for server strings" + }, + "log": "Registar", + "@log": { + "description": "Log a specific meal (imperative form)" + }, + "done": "Concluído", + "@done": {}, + "overallChangeWeight": "Alteração total", + "@overallChangeWeight": { + "description": "Overall change in weight, added for localization" + }, + "goalTypeMeals": "Das refeições", + "@goalTypeMeals": { + "description": "added for localization of Class GoalType's filed meals" + }, + "goalTypeBasic": "Básico", + "@goalTypeBasic": { + "description": "added for localization of Class GoalType's filed basic" + }, + "goalTypeAdvanced": "Avançado", + "@goalTypeAdvanced": { + "description": "added for localization of Class GoalType's filed advanced" + }, + "indicatorRaw": "cru", + "@indicatorRaw": { + "description": "added for localization of Class Indicator's field text" + }, + "indicatorAvg": "média", + "@indicatorAvg": { + "description": "added for localization of Class Indicator's field text" + }, + "themeMode": "Modo de tema", + "@themeMode": {}, + "darkMode": "Modo escuro sempre", + "@darkMode": {}, + "lightMode": "Modo claro sempre", + "@lightMode": {}, + "systemMode": "Usar definições do sistema", + "@systemMode": {}, + "endDate": "Data de término", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "startDate": "Data de início", + "@startDate": {}, + "applicationLogs": "Registos da aplicação", + "@applicationLogs": {}, + "creationDate": "Data de início", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Sem fim definido", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "dayTypeCustom": "Customizado", + "@dayTypeCustom": {}, + "dayTypeEnom": "A cada minuto", + "@dayTypeEnom": {}, + "dayTypeAmrap": "O máximo de rondas possível", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Treino intervalado de alta intensidade", + "@dayTypeHiit": {}, + "dayTypeTabata": "Tabata", + "@dayTypeTabata": {}, + "dayTypeEdt": "Treino de densidade crescente", + "@dayTypeEdt": {}, + "dayTypeRft": "Rondas por tempo", + "@dayTypeRft": {}, + "dayTypeAfap": "O mais rápido possível", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normal", + "@slotEntryTypeNormal": {} } diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index 52e7c9558..3486bdb3c 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -4,11 +4,8 @@ "description": "Toggle button allowing users to switch between the default and a custom wger server" }, "email": "Адрес электронной почты", - "@email": {}, "registerInstead": "У вас нет аккаунта? Зарегистрируйтесь сейчас", - "@registerInstead": {}, "loginInstead": "Уже есть аккаунт? Войти", - "@loginInstead": {}, "labelDashboard": "Панель управления", "@labelDashboard": { "description": "Title for screen dashboard" @@ -21,7 +18,7 @@ "@reps": { "description": "Shorthand for repetitions, used when space constraints are tighter" }, - "rir": "ПвЗ", + "rir": "ПвЗ (повторы в запасе)", "@rir": { "description": "Shorthand for Repetitions In Reserve" }, @@ -38,25 +35,19 @@ "description": "A (logged) workout session" }, "newDay": "Новый день", - "@newDay": {}, "selectExercises": "Если вы хотите сделать супер подход (сет), вы можете найти несколько упражнений, они будут сгруппированы вместе", - "@selectExercises": {}, - "plateCalculator": "Пластины (блины)", + "plateCalculator": "Блины", "@plateCalculator": { "description": "Label used for the plate calculator in the gym mode" }, "save": "Сохранить", - "@save": {}, "logMeal": "Запишите прием пищи в дневник питания", - "@logMeal": {}, "nutritionalPlan": "План питания", - "@nutritionalPlan": {}, "noNutritionalPlans": "У вас нет планов питания", "@noNutritionalPlans": { "description": "Message shown when the user has no nutritional plans" }, "measurementEntriesHelpText": "Единица, используемая для измерения в категории, например 'см' или '%'", - "@measurementEntriesHelpText": {}, "value": "Значение", "@value": { "description": "The value of a measurement entry" @@ -70,7 +61,6 @@ "description": "The starting time of a workout" }, "ingredient": "Ингредиент", - "@ingredient": {}, "energy": "Энергия", "@energy": { "description": "Energy in a meal, ingredient etc. e.g. in kJ" @@ -80,13 +70,11 @@ "description": "The first letter or short name of the word 'Energy', used in overviews" }, "macronutrients": "Макроэлементы", - "@macronutrients": {}, "logged": "Записано", "@logged": { "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" }, "difference": "Разница", - "@difference": {}, "kJ": "кДж", "@kJ": { "description": "Energy in a meal in kilo joules, kJ" @@ -96,9 +84,7 @@ "description": "Abbreviation for gram" }, "goToDetailPage": "Перейти на страницу сведений", - "@goToDetailPage": {}, "calendar": "Календарь", - "@calendar": {}, "enterValue": "Пожалуйста, введите значение", "@enterValue": { "description": "Error message when the user hasn't entered a value on a required field" @@ -143,15 +129,10 @@ "description": "Label and error message when the user hasn't selected an image to save" }, "takePicture": "Сфотографировать", - "@takePicture": {}, "chooseFromLibrary": "Выбрать из библиотеки фотографий", - "@chooseFromLibrary": {}, "gallery": "Галерея", - "@gallery": {}, "addImage": "Добавить изображение", - "@addImage": {}, "appUpdateTitle": "Требуется обновление", - "@appUpdateTitle": {}, "passwordTooShort": "Пароль слишком короткий", "@passwordTooShort": { "description": "Error message when the user a password that is too short" @@ -169,7 +150,6 @@ "description": "Text for registration button" }, "password": "Пароль", - "@password": {}, "logout": "Выйти", "@logout": { "description": "Text for logout button" @@ -191,13 +171,11 @@ "description": "Error message when the user enters two different passwords during registration" }, "confirmPassword": "Подтверждение пароля", - "@confirmPassword": {}, "invalidEmail": "Пожалуйста, введите действительный адрес электронной почты", "@invalidEmail": { "description": "Error message when the user enters an invalid email" }, "username": "Имя пользователя", - "@username": {}, "invalidUsername": "Пожалуйста, введите действительное имя пользователя", "@invalidUsername": { "description": "Error message when the user enters an invalid username" @@ -255,11 +233,8 @@ "description": "secondary muscles trained by an exercise" }, "dayDescriptionHelp": "Описание того, что делается в этот день (например, 'день подтягиваний') или какие части тела тренируются (например, 'грудь и плечи')", - "@dayDescriptionHelp": {}, "weightUnit": "Единица веса", - "@weightUnit": {}, "repetitionUnit": "Единица повторения", - "@repetitionUnit": {}, "repetitions": "Повторений", "@repetitions": { "description": "Repetitions for an exercise set" @@ -276,7 +251,7 @@ "@set": { "description": "A set in a workout plan" }, - "gymMode": "Режим тренажерного зала", + "gymMode": "Режим зала", "@gymMode": { "description": "Label when starting the gym mode" }, @@ -285,21 +260,17 @@ "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" }, "logHelpEntriesUnits": "Обратите внимание, что на графиках отображаются только записи с указанием веса (кг или фунты) и повторений. Другие комбинации, такие как время или \"до отказа\", здесь игнорируются.", - "@logHelpEntriesUnits": {}, "pause": "Пауза", "@pause": { "description": "Noun, not an imperative! Label used for the pause when using the gym mode" }, - "plateCalculatorNotDivisible": "Невозможно достичь веса с имеющимися пластинами (весами)", + "plateCalculatorNotDivisible": "Невозможно достичь веса с имеющимися весами", "@plateCalculatorNotDivisible": { "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" }, "todaysWorkout": "Ваша сегодняшняя тренировка", - "@todaysWorkout": {}, "logHelpEntries": "Если в один день есть несколько записей с одинаковым количеством повторений, но разными весами, то на диаграмме отображается только запись с большим весом.", - "@logHelpEntries": {}, "description": "Описание", - "@description": {}, "weight": "Вес", "@weight": { "description": "The weight of a workout log or body weight entry" @@ -309,29 +280,21 @@ "description": "Name for a workout or nutritional plan" }, "addIngredient": "Добавить ингредиент", - "@addIngredient": {}, "nutritionalPlans": "Планы питания", - "@nutritionalPlans": {}, "timeStartAhead": "Время начала не может быть раньше времени окончания", - "@timeStartAhead": {}, "logIngredient": "Записать в дневнике питания", - "@logIngredient": {}, "searchIngredient": "Поиск ингредиента", "@searchIngredient": { "description": "Label on ingredient search form" }, "nutritionalDiary": "Дневник питания", - "@nutritionalDiary": {}, "measurements": "Измерения", "@measurements": { "description": "Categories for the measurements such as biceps size, body fat, etc." }, "anErrorOccurred": "Произошла ошибка!", - "@anErrorOccurred": {}, "measurement": "Измерение", - "@measurement": {}, "measurementCategoriesHelpText": "Категория измерения, например 'бицепс' или 'жир'", - "@measurementCategoriesHelpText": {}, "date": "Дата", "@date": { "description": "The date of a workout log or body weight entry" @@ -349,9 +312,7 @@ "description": "Energy in a meal in kilocalories, kcal" }, "edit": "Редактировать", - "@edit": {}, "delete": "Удалить", - "@delete": {}, "confirmDelete": "Вы уверены, что хотите удалить '{toDelete}'?", "@confirmDelete": { "description": "Confirmation text before the user deletes an object", @@ -384,9 +345,7 @@ "description": "Label used for total sums of e.g. calories or similar" }, "fiber": "Клетчатка", - "@fiber": {}, "percentEnergy": "Процент энергии", - "@percentEnergy": {}, "proteinShort": "Б", "@proteinShort": { "description": "The first letter or short name of the word 'Protein', used in overviews" @@ -396,11 +355,8 @@ "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" }, "sugars": "Сахар", - "@sugars": {}, "saturatedFat": "Насыщенные жиры", - "@saturatedFat": {}, "sodium": "Натрий", - "@sodium": {}, "amount": "Количество", "@amount": { "description": "The amount (e.g. in grams) of an ingredient in a meal" @@ -422,7 +378,6 @@ "description": "Text to show when entries are being loaded in the background: Loading..." }, "newNutritionalPlan": "Новый план питания", - "@newNutritionalPlan": {}, "toggleDetails": "Переключить сведения", "@toggleDetails": { "description": "Switch to toggle detail / overview" @@ -444,7 +399,6 @@ "description": "Label for the popup with general app options" }, "sameRepetitions": "Если количество повторений и вес не меняются от подхода к подходу, достаточно указать данные один раз. Например, для 4 подходов введите 10 повторений, и это автоматически преобразуется в '4 x 10'.", - "@sameRepetitions": {}, "newSet": "Новый подход (сет)", "@newSet": { "description": "Header when adding a new set to a workout day" @@ -454,7 +408,6 @@ "description": "Snackbar message to show on copying data to a new log entry" }, "appUpdateContent": "Эта версия приложения не совместима с сервером, пожалуйста, обновите ваше приложение.", - "@appUpdateContent": {}, "setNr": "Сет {nr}", "@setNr": { "description": "Header in form indicating the number of the current set. Can also be translated as something like 'Set Nr. xy'.", @@ -470,15 +423,10 @@ "description": "Label for the button that adds a set (to a workout day)" }, "addMeal": "Добавить блюдо", - "@addMeal": {}, "mealLogged": "Блюдо записано в дневник", - "@mealLogged": {}, "protein": "Белки", - "@protein": {}, "carbohydrates": "Углеводы", - "@carbohydrates": {}, "fat": "Жиры", - "@fat": {}, "productNotFound": "Продукт не найден", "@productNotFound": { "description": "Header label for dialog when product is not found with barcode" @@ -530,19 +478,14 @@ } }, "noMeasurementEntries": "У вас нет записей измерений", - "@noMeasurementEntries": {}, "moreMeasurementEntries": "Добавить новое измерение", "@moreMeasurementEntries": { "description": "Message shown when the user wants to add new measurement" }, "userProfile": "Ваш профиль", - "@userProfile": {}, "exerciseList": "Список упражнений", - "@exerciseList": {}, "baseNameEnglish": "Для всех упражнений необходимо базовое название на английском языке", - "@baseNameEnglish": {}, "verifiedEmail": "Подтвержденный адрес электронной почты", - "@verifiedEmail": {}, "swiss_ball": "Гимнастический мяч", "@swiss_ball": { "description": "Generated entry for translation for server strings" @@ -568,7 +511,6 @@ "description": "Label for the name of a workout exercise" }, "textPromptTitle": "Готовы начать?", - "@textPromptTitle": {}, "body_weight": "Вес тела", "@body_weight": { "description": "Generated entry for translation for server strings" @@ -626,9 +568,7 @@ "description": "Generated entry for translation for server strings" }, "images": "Изображения", - "@images": {}, "language": "Язык", - "@language": {}, "abs": "Пресс", "@abs": { "description": "Generated entry for translation for server strings" @@ -646,7 +586,6 @@ "description": "Generated entry for translation for server strings" }, "translation": "Перевод", - "@translation": {}, "baseData": "Основы на английском", "@baseData": { "description": "The base data for an exercise such as category, trained muscles, etc." @@ -684,7 +623,6 @@ "description": "Generated entry for translation for server strings" }, "next": "Следующее", - "@next": {}, "pull_up_bar": "Турник", "@pull_up_bar": { "description": "Generated entry for translation for server strings" @@ -694,15 +632,10 @@ "description": "Multiple exercises for a workout" }, "add_exercise_image_license": "Изображения должны быть совместимы с CC BY SA лицензией. Если вы сомневаетесь, загружайте только те фотографии, которые вы сделали сами", - "@add_exercise_image_license": {}, "unVerifiedEmail": "Неподтвержденный адрес электронной почты", - "@unVerifiedEmail": {}, "contributeExercise": "Добавить упражнение", - "@contributeExercise": {}, "addExercise": "Добавить упражнение", - "@addExercise": {}, "translateExercise": "Перевести это упражнение", - "@translateExercise": {}, "contributeExerciseWarning": "Вы можете добавлять упражнения только в том случае, если ваша учетная запись старше {days} дней и вы подтвердили свою электронную почту", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", @@ -714,7 +647,6 @@ } }, "textPromptSubheading": "Нажмите кнопку действия, чтобы начать", - "@textPromptSubheading": {}, "minutes": "Минут", "@minutes": { "description": "Generated entry for translation for server strings" @@ -724,9 +656,7 @@ "description": "Generated entry for translation for server strings" }, "searchNamesInEnglish": "Также ищите названия на английском", - "@searchNamesInEnglish": {}, "selectEntry": "Пожалуйста, выберите запись", - "@selectEntry": {}, "variations": "Варианты", "@variations": { "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" @@ -741,7 +671,6 @@ "description": "List of alternative names for an exercise" }, "verifiedEmailReason": "Вам необходимо подтвердить свой адрес электронной почты, чтобы добавлять упражнения", - "@verifiedEmailReason": {}, "verifiedEmailInfo": "Письмо с подтверждением отправлено на {email}", "@verifiedEmailInfo": { "placeholders": { @@ -751,17 +680,11 @@ } }, "alternativeNames": "Альтернативные названия", - "@alternativeNames": {}, "oneNamePerLine": "Одно название на строку", - "@oneNamePerLine": {}, "whatVariationsExist": "Какие варианты этого упражнения существуют, если таковые имеются?", - "@whatVariationsExist": {}, "previous": "Предыдущее", - "@previous": {}, "aboutPageTitle": "О Wger", - "@aboutPageTitle": {}, "cacheWarning": "Из-за кэширования может пройти некоторое время, прежде чем изменения станут видны во всем приложении.", - "@cacheWarning": {}, "legs": "Ноги", "@legs": { "description": "Generated entry for translation for server strings" @@ -771,7 +694,6 @@ "description": "The goal for macronutrients" }, "goalFiber": "Цель по волокну", - "@goalFiber": {}, "kcalValue": "{value} калорий", "@kcalValue": { "description": "A value in kcal, e.g. 500 kcal", @@ -782,14 +704,10 @@ } } }, - "useMetric": "Использовать метрические единицы измерения для веса тела.", - "@useMetric": {}, + "useMetric": "Использовать метрические единицы измерения для веса тела", "verify": "Подтвердить", - "@verify": {}, "settingsCacheTitle": "Кэш", - "@settingsCacheTitle": {}, "settingsExerciseCacheDescription": "Кэш упражнений", - "@settingsExerciseCacheDescription": {}, "noMatchingExerciseFound": "Не выбрано упражнение для замены", "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" @@ -803,21 +721,13 @@ "description": "Generated entry for translation for server strings" }, "onlyLogging": "Только отслеживать калории", - "@onlyLogging": {}, "onlyLoggingHelpText": "Поставьте флажок, если вы хотите отслеживать только потребление калорий и не хотите создавать подробный план питания с конкретными блюдами", - "@onlyLoggingHelpText": {}, "goalEnergy": "Цель по энергии", - "@goalEnergy": {}, "goalProtein": "Цель по белкам", - "@goalProtein": {}, "goalCarbohydrates": "Цель по углеводам", - "@goalCarbohydrates": {}, "goalFat": "Цель по жирам", - "@goalFat": {}, "today": "Сегодня", - "@today": {}, "loggedToday": "Записано на сегодня", - "@loggedToday": {}, "gValue": "{value} гр", "@gValue": { "description": "A value in grams, e.g. 5 g", @@ -839,17 +749,13 @@ } }, "aboutDonateTitle": "Пожертвовать", - "@aboutDonateTitle": {}, "aboutDonateText": "Купите нам кофе, чтобы помочь проекту, оплатить затраты на сервер и поддерживать нас в тонусе", - "@aboutDonateText": {}, "settingsTitle": "Настройки", - "@settingsTitle": {}, "lower_back": "Нижняя часть спины", "@lower_back": { "description": "Generated entry for translation for server strings" }, "aboutMastodonTitle": "Мастодонт", - "@aboutMastodonTitle": {}, "surplus": "превышение", "@surplus": { "description": "Caloric surplus (either planned or unplanned)" @@ -859,13 +765,11 @@ "description": "Caloric deficit (either planned or unplanned)" }, "settingsCacheDeletedSnackbar": "Кэш успешно очищен", - "@settingsCacheDeletedSnackbar": {}, "log": "Журнал", "@log": { "description": "Log a specific meal (imperative form)" }, "done": "Завершить", - "@done": {}, "overallChangeWeight": "Общее изменение", "@overallChangeWeight": { "description": "Overall change in weight, added for localization" @@ -887,19 +791,12 @@ "description": "added for localization of Class Indicator's field text" }, "themeMode": "Режим темы", - "@themeMode": {}, "darkMode": "Всегда темный режим", - "@darkMode": {}, "lightMode": "Всегда светлый режим", - "@lightMode": {}, "systemMode": "Системные настройки", - "@systemMode": {}, "noIngredientsDefined": "Ингредиенты пока не определены", - "@noIngredientsDefined": {}, "ingredientLogged": "Ингредиент занесен в дневник", - "@ingredientLogged": {}, "selectMealToLog": "Выберите прием пищи для записи в дневник", - "@selectMealToLog": {}, "chartAllTimeTitle": "{name} за все время", "@chartAllTimeTitle": { "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", @@ -934,23 +831,14 @@ } }, "settingsIngredientCacheDescription": "Кэш ингредиентов", - "@settingsIngredientCacheDescription": {}, "isRestDayHelp": "Пожалуйста, имейте в виду, что если вы отметите этот день как день отдыха, все подходы и упражнения будут удалены.", - "@isRestDayHelp": {}, "routines": "Тренировки", - "@routines": {}, "needsLogsToAdvanceHelp": "Выберите, если вы хотите, чтобы программа переходила к следующему запланированному дню только после того, как вы записали тренировку за текущий день.", - "@needsLogsToAdvanceHelp": {}, "routineDays": "Дней в тренировке", - "@routineDays": {}, "resultingRoutine": "Итоговая тренировка", - "@resultingRoutine": {}, "useApiToken": "Использовать токен API", - "@useApiToken": {}, "useUsernameAndPassword": "Использовать имя пользователя и пароль", - "@useUsernameAndPassword": {}, "apiToken": "API токен", - "@apiToken": {}, "invalidApiToken": "Пожалуйста, введите действительный ключ API", "@invalidApiToken": { "description": "Error message when the user enters an invalid API key" @@ -960,11 +848,8 @@ "description": "Error message when the user tries to input a API key with forbidden characters" }, "newRoutine": "Новая тренировка", - "@newRoutine": {}, "noRoutines": "У вас нет тренировок", - "@noRoutines": {}, "restTime": "Время отдыха", - "@restTime": {}, "sets": "Подходы", "@sets": { "description": "The number of sets to be done for one exercise" @@ -990,19 +875,70 @@ } }, "restDay": "День отдыха", - "@restDay": {}, "isRestDay": "Выходной день", - "@isRestDay": {}, "needsLogsToAdvance": "Требуются записи для прогресса", - "@needsLogsToAdvance": {}, "barWeight": "Вес штанги", - "@barWeight": {}, "useColors": "Использовать цвета", - "@useColors": {}, "endDate": "Дата окончания", - "@endDate": {}, "startDate": "Дата начала", - "@startDate": {}, "selectAvailablePlates": "Выберите подходящие блины", - "@selectAvailablePlates": {} + "dashboardWidgets": "Виджеты панели", + "dayTypeCustom": "Произвольная", + "dayTypeEnom": "Каждую минуту по минуте (EMOM)", + "dayTypeAmrap": "Максимальное количество раундов", + "dayTypeHiit": "Высокоинтенсивная интервальная тренировка (HIIT)", + "dayTypeTabata": "Табата", + "dayTypeEdt": "Тренировка с нарастающей плотностью", + "dayTypeRft": "Раунды на время", + "dayTypeAfap": "Как можно быстрее", + "slotEntryTypeNormal": "Обычный", + "slotEntryTypeDropset": "Дроп-сет", + "slotEntryTypeMyo": "Мио-повторы", + "slotEntryTypePartial": "Частичные повторения", + "slotEntryTypeForced": "Форсированные повторения", + "slotEntryTypeTut": "Время под нагрузкой", + "slotEntryTypeIso": "Изометрическая пауза", + "slotEntryTypeJump": "Прыжок", + "trophies": "Награды", + "topSet": "Основной подход: {value}", + "@topSet": { + "description": "Value is a representation of the set, like '10 x 80kg'", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "impressionGood": "Хорошо", + "impressionNeutral": "Нормально", + "impressionBad": "Плохо", + "personalRecords": "Личные рекорды", + "gymModeShowExercises": "Показывать обзор упражнений", + "gymModeShowTimer": "Показывать таймер между подходами", + "gymModeTimerType": "Тип таймера", + "gymModeTimerTypeHelText": "Если для подхода задано время отдыха, всегда используется обратный отсчёт.", + "countdown": "Обратный отсчёт", + "stopwatch": "Секундомер", + "gymModeDefaultCountdownTime": "Время обратного отсчёта по умолчанию (в секундах)", + "gymModeNotifyOnCountdownFinish": "Уведомлять об окончании отсчёта", + "duration": "Длительность", + "durationHoursMinutes": "{hours} ч {minutes} мин", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Объём", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Тренировка завершена" } diff --git a/lib/l10n/app_th.arb b/lib/l10n/app_th.arb index 0967ef424..226ee66e9 100644 --- a/lib/l10n/app_th.arb +++ b/lib/l10n/app_th.arb @@ -1 +1,128 @@ -{} +{ + "userProfile": "โปรไฟล์ของคุณ", + "@userProfile": {}, + "login": "เข้าสู่ระบบ", + "@login": { + "description": "Text for login button" + }, + "logout": "ออกจากระบบ", + "@logout": { + "description": "Text for logout button" + }, + "register": "ลงทะเบียน", + "@register": { + "description": "Text for registration button" + }, + "useDefaultServer": "ใช้เซิร์ฟเวอร์เริ่มต้น", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "useCustomServer": "ใช้เซิร์ฟเวอร์ที่กำหนดเอง", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "invalidUrl": "กรุณาป้อน URL ที่ถูกต้อง", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "usernameValidChars": "ชื่อผู้ใช้สามารถประกอบด้วยตัวอักษร ตัวเลข และอักขระ @, +, ., - และ _ เท่านั้น", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "passwordsDontMatch": "รหัสผ่านไม่ตรงกัน", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "รหัสผ่านสั้นเกินไป", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "เลือกแผ่นน้ำหนักที่มี", + "@selectAvailablePlates": {}, + "barWeight": "น้ำหนัก Bar", + "@barWeight": {}, + "password": "รหัสผ่าน", + "@password": {}, + "confirmPassword": "ยืนยันรหัสผ่าน", + "@confirmPassword": {}, + "invalidEmail": "กรุณากรอกที่อยู่อีเมลที่ถูกต้อง", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "email": "ที่อยู่อีเมล", + "@email": {}, + "username": "ชื่อผู้ใช้", + "@username": {}, + "invalidUsername": "กรุณากรอกชื่อผู้ใช้ที่ถูกต้อง", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "useApiToken": "ใช้โทเค็น API", + "@useApiToken": {}, + "useUsernameAndPassword": "ใช้ชื่อผู้ใช้และรหัสผ่าน", + "@useUsernameAndPassword": {}, + "apiToken": "โทเค็น API", + "@apiToken": {}, + "invalidApiToken": "กรุณาป้อนรหัส API ที่ถูกต้อง", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "คีย์ API จะต้องประกอบด้วยตัวอักษร a-f, ตัวเลข 0-9 และมีความยาว 40 อักขระเท่านั้น", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerHint": "กรอกที่อยู่เซิร์ฟเวอร์ของคุณ มิฉะนั้นจะใช้ค่าเริ่มต้น", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "reset": "รีเซ็ต", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "ยังไม่มีบัญชีใช่ไหม? ลงทะเบียนเลย", + "@registerInstead": {}, + "loginInstead": "มีบัญชีอยู่แล้ว? เข้าสู่ระบบ", + "@loginInstead": {}, + "labelBottomNavWorkout": "การออกกำลังกาย", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "โภชนาการ", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "ข้อมูลการออกกำลังกาย", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "แผนการออกกำลังกาย", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "labelDashboard": "แดชบอร์ด", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "success": "สำเร็จ", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "successfullyDeleted": "ลบเรียบร้อย", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "successfullySaved": "บันทึกสำเร็จ", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "exerciseList": "รายการการออกกำลังกาย", + "@exerciseList": {}, + "exercise": "ออกกำลังกาย", + "@exercise": { + "description": "An exercise for a workout" + }, + "exercises": "ออกกำลังกาย", + "@exercises": { + "description": "Multiple exercises for a workout" + } +} diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index ca28df05e..7aaefb44b 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -28,13 +28,9 @@ "description": "Error message when the user enters an invalid URL, e.g. in the login form" }, "nutritionalPlan": "План харчування", - "@nutritionalPlan": {}, "difference": "Різниця", - "@difference": {}, "edit": "Змінити", - "@edit": {}, "delete": "Видалити", - "@delete": {}, "date": "Дата", "@date": { "description": "The date of a workout log or body weight entry" @@ -48,15 +44,12 @@ "description": "Error message when the user enters two different passwords during registration" }, "confirmPassword": "Підтвердьте пароль", - "@confirmPassword": {}, "email": "Адреса електронної пошти", - "@email": {}, "invalidUsername": "Будь ласка, введіть припустиме ім'я користувача", "@invalidUsername": { "description": "Error message when the user enters an invalid username" }, "username": "Ім'я користувача", - "@username": {}, "customServerHint": "Введіть адресу власного сервера, інакше буде використовуватися за замовчуванням", "@customServerHint": { "description": "Hint text for the form where the users can enter their own wger instance" @@ -66,7 +59,6 @@ "description": "Button text allowing the user to reset the entered values to the default" }, "loginInstead": "Вже маєте обліковий запис? Увійти", - "@loginInstead": {}, "labelBottomNavWorkout": "Тренування", "@labelBottomNavWorkout": { "description": "Label used in bottom navigation, use a short word" @@ -124,7 +116,6 @@ "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" }, "repetitionUnit": "Одиниця повторень", - "@repetitionUnit": {}, "set": "Набір", "@set": { "description": "A set in a workout plan" @@ -140,7 +131,6 @@ } }, "sameRepetitions": "Якщо ви робите однакові повторення та вагу для всіх наборів, то ви можете просто заповнити один рядок. Наприклад, для 4 наборів просто введіть 10 для повторень, це автоматично стане «4 x 10».", - "@sameRepetitions": {}, "comment": "Коментар", "@comment": { "description": "Comment, additional information" @@ -150,9 +140,7 @@ "description": "General impression (e.g. for a workout session) such as good, bad, etc." }, "newDay": "Новий день", - "@newDay": {}, "selectExercises": "Якщо ви хочете зробити супер-набір, ви можете пошукати декілька вправ, вони будуть згруповані разом", - "@selectExercises": {}, "gymMode": "Режим тренажерного залу", "@gymMode": { "description": "Label when starting the gym mode" @@ -174,9 +162,7 @@ "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" }, "todaysWorkout": "Ваше сьогоднішнє тренування", - "@todaysWorkout": {}, "password": "Пароль", - "@password": {}, "passwordTooShort": "Пароль занадто короткий", "@passwordTooShort": { "description": "Error message when the user a password that is too short" @@ -194,15 +180,12 @@ "description": "Message when an item was successfully saved" }, "registerInstead": "У вас немає облікового запису? Зареєструйтесь зараз", - "@registerInstead": {}, "labelBottomNavNutrition": "Харчування", "@labelBottomNavNutrition": { "description": "Label used in bottom navigation, use a short word" }, "weightUnit": "Одиниця ваги", - "@weightUnit": {}, "dayDescriptionHelp": "Опис того, що робиться в цей день (наприклад, «день підтягування») або які частини тіла тренуються (наприклад, «груди та плечі»)", - "@dayDescriptionHelp": {}, "workoutSession": "Сеанс тренування", "@workoutSession": { "description": "A (logged) workout session" @@ -216,7 +199,6 @@ "description": "Header when adding a new set to a workout day" }, "measurementCategoriesHelpText": "Категорія вимірювання, така як \"біцепс\" або \"жир тіла\"", - "@measurementCategoriesHelpText": {}, "time": "Час", "@time": { "description": "The time of a meal or workout" @@ -238,11 +220,8 @@ "description": "Energy in a meal in kilocalories, kcal" }, "fat": "Жири", - "@fat": {}, "newNutritionalPlan": "Новий план харчування", - "@newNutritionalPlan": {}, "sugars": "Цукри", - "@sugars": {}, "aboutDescription": "Дякуємо за використання wger! wger - це спільний проєкт з відкритим кодом, створений ентузіастами фітнесу з усього світу.", "@aboutDescription": { "description": "Text in the about dialog" @@ -252,7 +231,6 @@ "description": "Error message when the user hasn't selected an exercise in the form" }, "calendar": "Календар", - "@calendar": {}, "enterValue": "Будь ласка, введіть значення", "@enterValue": { "description": "Error message when the user hasn't entered a value on a required field" @@ -272,61 +250,45 @@ } }, "description": "Опис", - "@description": {}, "name": "Ім'я", "@name": { "description": "Name for a workout or nutritional plan" }, "save": "Зберегти", - "@save": {}, "addSet": "Додати набір", "@addSet": { "description": "Label for the button that adds a set (to a workout day)" }, "addMeal": "Додати страву", - "@addMeal": {}, "mealLogged": "Страву записано в щоденник", - "@mealLogged": {}, "logMeal": "Запис прийому їжі в щоденник харчування", - "@logMeal": {}, "addIngredient": "Додати інгредієнт", - "@addIngredient": {}, "logIngredient": "Занесіть інгредієнт до щоденника харчування", - "@logIngredient": {}, "searchIngredient": "Пошук інгредієнта", "@searchIngredient": { "description": "Label on ingredient search form" }, "nutritionalDiary": "Щоденник харчування", - "@nutritionalDiary": {}, "nutritionalPlans": "Плани харчування", - "@nutritionalPlans": {}, "noNutritionalPlans": "Ви не маєте планів харчування", "@noNutritionalPlans": { "description": "Message shown when the user has no nutritional plans" }, "anErrorOccurred": "Сталася помилка!", - "@anErrorOccurred": {}, "measurement": "Вимірювання", - "@measurement": {}, "logHelpEntries": "Якщо на один день припадає більше одного запису з однаковою кількістю повторень, але різними вагами, то на графіку буде показано тільки запис з більшою вагою.", - "@logHelpEntries": {}, "logHelpEntriesUnits": "Зверніть увагу, що на графіку відображаються тільки записи з одиницями ваги (кг або lb) і повтореннями. Інші комбінації, такі як час або \"до відмови\", тут ігноруються.", - "@logHelpEntriesUnits": {}, "measurements": "Вимірювання", "@measurements": { "description": "Categories for the measurements such as biceps size, body fat, etc." }, "measurementEntriesHelpText": "Одиниця вимірювання, яка використовується для вимірювання категорії, як от \"см\" або \"%\"", - "@measurementEntriesHelpText": {}, "start": "Старт", "@start": { "description": "Label on button to start the gym mode (i.e., an imperative)" }, "timeStartAhead": "Час початку не може передувати часу завершення", - "@timeStartAhead": {}, "ingredient": "Інгредієнт", - "@ingredient": {}, "energy": "Енергія", "@energy": { "description": "Energy in a meal, ingredient etc. e.g. in kJ" @@ -336,7 +298,6 @@ "description": "The first letter or short name of the word 'Energy', used in overviews" }, "macronutrients": "Макроелементи", - "@macronutrients": {}, "planned": "Заплановано", "@planned": { "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" @@ -350,7 +311,6 @@ "description": "Header for the column of '7 day average' nutritional values, i.e. what was logged last week" }, "percentEnergy": "Відсоток енергії", - "@percentEnergy": {}, "gPerBodyKg": "г на кг тіла", "@gPerBodyKg": { "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" @@ -368,13 +328,11 @@ "description": "Abbreviation for gram" }, "protein": "Білок", - "@protein": {}, "proteinShort": "Б", "@proteinShort": { "description": "The first letter or short name of the word 'Protein', used in overviews" }, "carbohydrates": "Вуглеводи", - "@carbohydrates": {}, "carbohydratesShort": "В", "@carbohydratesShort": { "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" @@ -384,11 +342,8 @@ "description": "The first letter or short name of the word 'Fat', used in overviews" }, "saturatedFat": "Насичені жири", - "@saturatedFat": {}, "fiber": "Волокон", - "@fiber": {}, "sodium": "Натрій", - "@sodium": {}, "amount": "Сума", "@amount": { "description": "The amount (e.g. in grams) of an ingredient in a meal" @@ -424,7 +379,6 @@ "description": "Switch to toggle detail / overview" }, "goToDetailPage": "Перейти до сторінки відомостей", - "@goToDetailPage": {}, "goToToday": "Перейти до сьогодні", "@goToToday": { "description": "Label on button to jump back to 'today' in the calendar widget" @@ -474,11 +428,8 @@ "description": "Label for the popup with general app options" }, "takePicture": "Зробити знімок", - "@takePicture": {}, "chooseFromLibrary": "Вибрати з бібліотеки світлин", - "@chooseFromLibrary": {}, "gallery": "Галерея", - "@gallery": {}, "imageFormatNotSupported": "{imageFormat} не підтримується", "@imageFormatNotSupported": { "description": "Label shown on the error container when image format is not supported", @@ -500,15 +451,12 @@ } }, "addImage": "Додати зображення", - "@addImage": {}, "dataCopied": "Дані скопійовано до нового запису", "@dataCopied": { "description": "Snackbar message to show on copying data to a new log entry" }, "appUpdateTitle": "Потрібне оновлення", - "@appUpdateTitle": {}, "appUpdateContent": "Ця версія застосунку несумісна з сервером, будь ласка, оновіть застосунок.", - "@appUpdateContent": {}, "productFound": "Виріб знайдено", "@productFound": { "description": "Header label for dialog when product is found with barcode" @@ -540,11 +488,8 @@ "description": "Shorthand for Repetitions In Reserve" }, "miles": "Милі", - "@miles": {}, "aboutPageTitle": "Про нас та підтримка", - "@aboutPageTitle": {}, "noMeasurementEntries": "У вас немає записів вимірювання", - "@noMeasurementEntries": {}, "moreMeasurementEntries": "Додати нове вимірювання", "@moreMeasurementEntries": { "description": "Message shown when the user wants to add new measurement" @@ -558,71 +503,40 @@ } }, "addExercise": "Додати вправу", - "@addExercise": {}, "none__bodyweight_exercise_": "немає (вправи з власною вагою)", - "@none__bodyweight_exercise_": {}, "abs": "Живіт", - "@abs": {}, "baseData": "Основи англійської", "@baseData": { "description": "The base data for an exercise such as category, trained muscles, etc." }, "minutes": "Хвилини", - "@minutes": {}, "glutes": "Сідниці", - "@glutes": {}, "kilometers": "Кілометри", - "@kilometers": {}, "seconds": "Секунди", - "@seconds": {}, "bench": "Лавка", - "@bench": {}, "barbell": "Штанга", - "@barbell": {}, "triceps": "Трицепс", - "@triceps": {}, "swiss_ball": "Швейцарський м'яч", - "@swiss_ball": {}, "lower_back": "Нижня частина спини", - "@lower_back": {}, "shoulders": "Плечі", - "@shoulders": {}, "hamstrings": "Підколінні сухожилля", - "@hamstrings": {}, "chest": "Груди", - "@chest": {}, "biceps": "Біцепс", - "@biceps": {}, "dumbbell": "Гантеля", - "@dumbbell": {}, "gym_mat": "Гімнастичний мат", - "@gym_mat": {}, "incline_bench": "Похила лавка", - "@incline_bench": {}, "lats": "Найширші м'язи спини", - "@lats": {}, "legs": "Ноги", - "@legs": {}, "back": "Спина", - "@back": {}, "quads": "Квадрицепс", - "@quads": {}, "arms": "Руки", - "@arms": {}, "sz_bar": "SZ-Штанга", - "@sz_bar": {}, "kettlebell": "Гиря", - "@kettlebell": {}, "calves": "Ікри", - "@calves": {}, "pull_up_bar": "Перекладина", - "@pull_up_bar": {}, "until_failure": "До відмови", - "@until_failure": {}, "userProfile": "Твій профіль", - "@userProfile": {}, "exerciseList": "Список вправ", - "@exerciseList": {}, "exercises": "Вправи", "@exercises": { "description": "Multiple exercises for a workout" @@ -632,11 +546,8 @@ "description": "Label for the name of a workout exercise" }, "add_exercise_image_license": "Зображення повинні бути сумісні з ліцензією CC BY SA. Якщо ви сумніваєтеся, завантажуйте лише фотографії, які ви зробили самі.", - "@add_exercise_image_license": {}, "translateExercise": "Перекладіть цю вправу зараз", - "@translateExercise": {}, "selectEntry": "Будь ласка, виберіть запис", - "@selectEntry": {}, "enterMinCharacters": "Будь ласка, введіть принаймні {min} символи", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", @@ -648,7 +559,6 @@ } }, "baseNameEnglish": "Всі вправи потребують базової назви англійською", - "@baseNameEnglish": {}, "variations": "Варіації", "@variations": { "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" @@ -663,31 +573,18 @@ "description": "List of alternative names for an exercise" }, "verifiedEmail": "Підтверджена електронна пошта", - "@verifiedEmail": {}, "unVerifiedEmail": "Непідтверджена електронна пошта", - "@unVerifiedEmail": {}, "verifiedEmailReason": "Вам потрібно підтвердити свою електронну пошту, щоб виконувати вправи", - "@verifiedEmailReason": {}, "alternativeNames": "Альтернативні назви", - "@alternativeNames": {}, "oneNamePerLine": "Одне ім'я на рядок", - "@oneNamePerLine": {}, "whatVariationsExist": "Які варіації цієї вправи існують, якщо такі є?", - "@whatVariationsExist": {}, "previous": "Попередній", - "@previous": {}, "next": "Наступний", - "@next": {}, "images": "Зображення", - "@images": {}, "language": "Мова", - "@language": {}, "contributeExercise": "Внести вправу", - "@contributeExercise": {}, "translation": "Переклад", - "@translation": {}, "cardio": "Кардіо", - "@cardio": {}, "contributeExerciseWarning": "Ви можете брати участь у вправах, лише якщо ваш обліковий запис старший за {days} днів і підтвердив вашу електронну пошту", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", @@ -703,13 +600,9 @@ "description": "Message when an action completed successfully, usually used as a heading" }, "cacheWarning": "Через кешування може знадобитися деякий час, перш ніж зміни стануть видимими у всьому застосунку.", - "@cacheWarning": {}, "searchNamesInEnglish": "Також шукайте імена англійською мовою", - "@searchNamesInEnglish": {}, "textPromptTitle": "Готові почати?", - "@textPromptTitle": {}, "textPromptSubheading": "Натисніть кнопку дії, щоб почати", - "@textPromptSubheading": {}, "body_weight": "Вага тіла", "@body_weight": { "description": "Generated entry for translation for server strings" @@ -735,7 +628,6 @@ "description": "Generated entry for translation for server strings" }, "verify": "Підтвердити", - "@verify": {}, "max_reps": "Максимальна кількість повторень", "@max_reps": { "description": "Generated entry for translation for server strings" @@ -745,7 +637,6 @@ "description": "The goal for macronutrients" }, "goalFiber": "Волокно гол", - "@goalFiber": {}, "goalTypeBasic": "Базовий", "@goalTypeBasic": { "description": "added for localization of Class GoalType's filed basic" @@ -755,9 +646,7 @@ "description": "added for localization of Class GoalType's filed advanced" }, "useMetric": "Використовуйте метричні одиниці вимірювання маси тіла", - "@useMetric": {}, "settingsTitle": "налаштування", - "@settingsTitle": {}, "deficit": "дефіцит", "@deficit": { "description": "Caloric deficit (either planned or unplanned)" @@ -783,7 +672,6 @@ } }, "settingsExerciseCacheDescription": "Кеш вправ", - "@settingsExerciseCacheDescription": {}, "chartAllTimeTitle": "{name} за весь час", "@chartAllTimeTitle": { "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", @@ -832,7 +720,6 @@ "description": "Log a specific meal (imperative form)" }, "settingsIngredientCacheDescription": "Кеш інгредієнтів", - "@settingsIngredientCacheDescription": {}, "overallChangeWeight": "Загальна зміна", "@overallChangeWeight": { "description": "Overall change in weight, added for localization" @@ -850,61 +737,37 @@ "description": "added for localization of Class Indicator's field text" }, "onlyLogging": "Слідкуйте лише за калоріями", - "@onlyLogging": {}, "onlyLoggingHelpText": "Поставте прапорець, якщо ви хочете лише реєструвати свої калорії та не хочете встановлювати детальний план харчування з певними стравами", - "@onlyLoggingHelpText": {}, "goalEnergy": "Енергетична мета", - "@goalEnergy": {}, "goalProtein": "Білкова мета", - "@goalProtein": {}, "goalCarbohydrates": "Мета вуглеводів", - "@goalCarbohydrates": {}, "goalFat": "Товстий гол", - "@goalFat": {}, "today": "Сьогодні", - "@today": {}, "loggedToday": "Зареєстровано сьогодні", - "@loggedToday": {}, "aboutDonateTitle": "Зробіть пожертву", - "@aboutDonateTitle": {}, "aboutDonateText": "Хоча проект є безкоштовним і завжди ним залишатиметься, запуск сервера - ні! Розвиток також вимагає значного часу і зусиль від волонтерів. Ваш внесок безпосередньо підтримує ці витрати, допомагаючи підтримувати надійність сервісу.", - "@aboutDonateText": {}, "surplus": "надлишок", "@surplus": { "description": "Caloric surplus (either planned or unplanned)" }, "done": "Готово", - "@done": {}, "noIngredientsDefined": "Інгредієнти ще не визначені", - "@noIngredientsDefined": {}, "noMatchingExerciseFound": "Відповідних вправ не знайдено", "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, "ingredientLogged": "Інгредієнт зареєстровано в щоденнику", - "@ingredientLogged": {}, "selectMealToLog": "Виберіть страву, щоб записати в щоденник", - "@selectMealToLog": {}, "aboutMastodonTitle": "Мастодонт", - "@aboutMastodonTitle": {}, "settingsCacheTitle": "Кеш", - "@settingsCacheTitle": {}, "settingsCacheDeletedSnackbar": "Кеш успішно очищено", - "@settingsCacheDeletedSnackbar": {}, "themeMode": "Тематичний режим", - "@themeMode": {}, "darkMode": "Завжди темний режим", - "@darkMode": {}, "lightMode": "Завжди легкий режим", - "@lightMode": {}, "systemMode": "Налаштування системи", - "@systemMode": {}, "restDay": "День відпочинку", - "@restDay": {}, "noRoutines": "У вас немає рутин", - "@noRoutines": {}, "restTime": "Час відпочинку", - "@restTime": {}, "sets": "Набори", "@sets": { "description": "The number of sets to be done for one exercise" @@ -920,37 +783,21 @@ } }, "isRestDay": "Є День відпочинку", - "@isRestDay": {}, "isRestDayHelp": "Будь ласка, зверніть увагу, що всі комплекси та вправи будуть видалені, коли ви позначите день як вихідний.", - "@isRestDayHelp": {}, "routineDays": "Дні в рутині", - "@routineDays": {}, "fitInWeek": "Вписується в тиждень", - "@fitInWeek": {}, "fitInWeekHelp": "Якщо ввімкнено, дні повторюватимуться в тижневому циклі, інакше дні будуть йти послідовно незалежно від початку нового тижня.", - "@fitInWeekHelp": {}, "addSuperset": "Додайте надмножину", - "@addSuperset": {}, "setHasProgression": "Набір має прогресію", - "@setHasProgression": {}, "simpleMode": "Простий режим", - "@simpleMode": {}, "resultingRoutine": "Результативна рутина", - "@resultingRoutine": {}, "simpleModeHelp": "Приховайте деякі розширені налаштування під час редагування вправ", - "@simpleModeHelp": {}, "progressionRules": "Ця вправа має правила прогресу, і її не можна редагувати в мобільному додатку. Щоб відредагувати цю вправу, використовуйте веб-додаток.", - "@progressionRules": {}, "min": "Мін", - "@min": {}, "max": "Макс", - "@max": {}, "newRoutine": "Нова рутина", - "@newRoutine": {}, "needsLogsToAdvance": "Для просування потрібні журнали", - "@needsLogsToAdvance": {}, "routines": "Рутини", - "@routines": {}, "exerciseNr": "Вправа {nr}", "@exerciseNr": { "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", @@ -962,47 +809,26 @@ } }, "needsLogsToAdvanceHelp": "Виберіть, якщо ви бажаєте, щоб програма перейшла до наступного запланованого дня, лише якщо ви зареєстрували тренування на цей день", - "@needsLogsToAdvanceHelp": {}, "setHasProgressionWarning": "Зверніть увагу, що на даний момент неможливо змінити всі параметри набору в мобільному додатку або налаштувати автоматичний прогрес. Наразі використовуйте веб-додаток.", - "@setHasProgressionWarning": {}, "setHasNoExercises": "У цьому комплексі ще немає вправ!", - "@setHasNoExercises": {}, "errorCouldNotConnectToServerDetails": "Програмі не вдалося підключитися до сервера. Перевірте підключення до Інтернету або URL-адресу сервера та спробуйте ще раз. Якщо проблема не зникає, зверніться до адміністратора сервера.", - "@errorCouldNotConnectToServerDetails": {}, "errorViewDetails": "Технічні деталі", - "@errorViewDetails": {}, "errorCouldNotConnectToServer": "Не вдалося підключитися до сервера", - "@errorCouldNotConnectToServer": {}, "errorInfoDescription2": "Ви можете продовжувати користуватися додатком, але деякі функції можуть не працювати.", - "@errorInfoDescription2": {}, "errorInfoDescription": "Вибачте, але щось пішло не так. Ви можете допомогти нам виправити це, повідомивши про проблему на GitHub.", - "@errorInfoDescription": {}, "copyToClipboard": "Копіювати в буфер обміну", - "@copyToClipboard": {}, "aboutWhySupportTitle": "Відкритий код та безкоштовний у використанні ❤️", - "@aboutWhySupportTitle": {}, "aboutJoinCommunityTitle": "Приєднуйтесь до спільноти", - "@aboutJoinCommunityTitle": {}, "aboutDiscordTitle": "Дискорд", - "@aboutDiscordTitle": {}, "aboutBugsListTitle": "Повідомити про проблему або запропонувати функцію", - "@aboutBugsListTitle": {}, "aboutSourceListTitle": "Переглянути вихідний код", - "@aboutSourceListTitle": {}, "aboutContributeTitle": "Зробити внесок", - "@aboutContributeTitle": {}, "aboutContributeText": "Ми вітаємо будь-які види внесків. Незалежно від того, чи ви розробник, перекладач, чи просто захоплений фітнесом, ми цінуємо будь-яку підтримку!", - "@aboutContributeText": {}, "aboutTranslationListTitle": "Перекласти програму", - "@aboutTranslationListTitle": {}, "others": "Інші", - "@others": {}, "apiToken": "Токен API", - "@apiToken": {}, "useApiToken": "Використовувати токен API", - "@useApiToken": {}, "useUsernameAndPassword": "Використовуйте ім'я користувача та пароль", - "@useUsernameAndPassword": {}, "invalidApiToken": "Будь ласка, введіть дійсний ключ API", "@invalidApiToken": { "description": "Error message when the user enters an invalid API key" @@ -1016,11 +842,8 @@ "description": "Generated entry for translation for server strings" }, "selectAvailablePlates": "Виберіть доступні тарілки", - "@selectAvailablePlates": {}, "barWeight": "Вага штанги", - "@barWeight": {}, "useColors": "Використовуйте кольори", - "@useColors": {}, "yourCurrentNutritionPlanHasNoMealsDefinedYet": "У вашому поточному плані харчування не визначено жодного прийому їжі", "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { "description": "Message shown when a nutrition plan doesn't have any meals" @@ -1030,9 +853,168 @@ "description": "Message shown to guide users to the nutritional plan details page to add meals" }, "endDate": "Дата завершення", - "@endDate": {}, "startDate": "Дата початку", - "@startDate": {}, "applicationLogs": "Журнали програм", - "@applicationLogs": {} + "creationDate": "Дата початку", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Відкритий", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Огляд", + "identicalExercisePleaseDiscard": "Якщо ви помітили вправу, ідентичну тій, яку ви додаєте, будь ласка, відкиньте свій чернетку та відредагуйте цю вправу.", + "checkInformationBeforeSubmitting": "Будь ласка, перевірте правильність введеної вами інформації, перш ніж надсилати вправу", + "enterTextInLanguage": "Будь ласка, введіть текст правильною мовою!", + "imageDetailsTitle": "Деталі зображення", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Назва", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Введіть назву зображення", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Посилання на веб-сайт джерела", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "imageDetailsAuthor": "Автор(и)", + "@imageDetailsAuthor": { + "description": "Label for author field" + }, + "imageDetailsAuthorHint": "Введіть ім'я автора", + "@imageDetailsAuthorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Посилання на веб-сайт або профіль автора", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Посилання на оригінальне джерело, якщо це похідний твір", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Похідний твір базується на попередньому творі, але містить достатньо нового, творчого контенту, щоб мати право на власне авторське право.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Тип зображення", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNoticePrefix": "Надсилаючи це зображення, ви погоджуєтеся на його публікацію відповідно до ", + "@imageDetailsLicenseNoticePrefix": { + "description": "First part of license notice text" + }, + "imageDetailsLicenseNoticeSuffix": " Зображення має бути або вашою власною роботою, або автор має опублікувати його за ліцензією, сумісною з CC BY-SA 4.0.", + "@imageDetailsLicenseNoticeSuffix": { + "description": "Second part of license notice text" + }, + "add": "додати", + "@add": { + "description": "Add button text" + }, + "imageDetailsLicenseNotice": "Надсилаючи це зображення, ви погоджуєтеся на його розповсюдження за ліцензією CC-BY-SA-4. Зображення має бути або вашою власною роботою, або автор має опублікувати його за ліцензією, сумісною з нею.", + "imageDetailsLicenseNoticeLinkToLicense": "Див. текст ліцензії.", + "author": "Автор(и)", + "authorHint": "Введіть ім'я автора", + "@authorHint": { + "description": "Hint text for author field" + }, + "galleryImageTypeNotSupported": "Зображення типу {imageType} наразі не підтримуються на цій платформі.", + "@galleryImageTypeNotSupported": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "galleryImageTypeNotSupportedDetail": "Це зображення у форматі {imageType}, який наразі не підтримується на цій платформі.", + "@galleryImageTypeNotSupportedDetail": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "dayTypeCustom": "Користувацька", + "dayTypeEnom": "Кожну хвилину за хвилиною", + "dayTypeAmrap": "Якомога більше раундів", + "dayTypeHiit": "Високоінтенсивне інтервальне тренування", + "dayTypeTabata": "Табата", + "dayTypeEdt": "Збільшення щільності навчання", + "dayTypeRft": "Раунди на час", + "dayTypeAfap": "Якомога швидше", + "slotEntryTypeNormal": "Звичайний", + "slotEntryTypeDropset": "Дропсет", + "slotEntryTypeMyo": "Міо", + "slotEntryTypePartial": "Часткове", + "slotEntryTypeForced": "Примусово", + "slotEntryTypeTut": "Час під Напруги", + "slotEntryTypeIso": "Ізометричне утримання", + "slotEntryTypeJump": "Стрибок", + "endWorkout": "Закінчити тренування", + "impressionGood": "Добре", + "impressionNeutral": "Нейтральний", + "impressionBad": "Погано", + "gymModeShowExercises": "Показати сторінки огляду вправ", + "gymModeShowTimer": "Показувати таймер між сетами", + "gymModeTimerType": "Тип таймера", + "gymModeTimerTypeHelText": "Якщо сет має час паузи, завжди використовується зворотний відлік.", + "countdown": "Зворотний відлік", + "stopwatch": "Секундомір", + "gymModeDefaultCountdownTime": "Час зворотного відліку за замовчуванням, у секундах", + "gymModeNotifyOnCountdownFinish": "Повідомити про закінчення зворотного відліку", + "duration": "Тривалість", + "durationHoursMinutes": "{hours}г {minutes}хв", + "@durationHoursMinutes": { + "description": "A duration, in hours and minutes", + "type": "text", + "placeholders": { + "hours": { + "type": "int" + }, + "minutes": { + "type": "int" + } + } + }, + "volume": "Обсяг", + "@volume": { + "description": "The volume of a workout or set, i.e. weight x reps" + }, + "workoutCompleted": "Тренування завершено", + "formMinMaxValues": "Будь ласка, введіть значення від {min} до {max}", + "@formMinMaxValues": { + "description": "Error message when the user needs to enter a value between min and max", + "type": "text", + "placeholders": { + "min": { + "type": "int" + }, + "max": { + "type": "int" + } + } + }, + "superset": "Суперсет", + "dashboardWidgets": "Віджети панелі інструментів", + "trophies": "Трофеї", + "topSet": "Верхній набір: {value}", + "@topSet": { + "description": "Value is a representation of the set, like '10 x 80kg'", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "personalRecords": "Особисті рекорди", + "noTrophies": "У вас ще немає трофеїв" } diff --git a/lib/main.dart b/lib/main.dart index 967029334..4228f72d4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -21,8 +21,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart' as riverpod; import 'package:logging/logging.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/core/locator.dart'; -import 'package:wger/exceptions/http_exception.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/helpers/shared_preferences.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; @@ -35,9 +35,9 @@ import 'package:wger/providers/measurement.dart'; import 'package:wger/providers/nutrition.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/providers/user.dart'; +import 'package:wger/providers/wger_base_riverpod.dart'; import 'package:wger/screens/add_exercise_screen.dart'; import 'package:wger/screens/auth_screen.dart'; -import 'package:wger/screens/configure_plates_screen.dart'; import 'package:wger/screens/dashboard.dart'; import 'package:wger/screens/exercise_screen.dart'; import 'package:wger/screens/exercises_screen.dart'; @@ -56,7 +56,10 @@ import 'package:wger/screens/routine_edit_screen.dart'; import 'package:wger/screens/routine_list_screen.dart'; import 'package:wger/screens/routine_logs_screen.dart'; import 'package:wger/screens/routine_screen.dart'; +import 'package:wger/screens/settings_dashboard_widgets_screen.dart'; +import 'package:wger/screens/settings_plates_screen.dart'; import 'package:wger/screens/splash_screen.dart'; +import 'package:wger/screens/trophy_screen.dart'; import 'package:wger/screens/update_app_screen.dart'; import 'package:wger/screens/weight_screen.dart'; import 'package:wger/theme/theme.dart'; @@ -129,7 +132,7 @@ void main() async { }; // Application - runApp(const riverpod.ProviderScope(child: MainApp())); + runApp(const MainApp()); } class MainApp extends StatelessWidget { @@ -206,46 +209,63 @@ class MainApp extends StatelessWidget { ), ], child: Consumer( - builder: (ctx, auth, _) => Consumer( - builder: (ctx, user, _) => MaterialApp( - title: 'wger', - navigatorKey: navigatorKey, - theme: wgerLightTheme, - darkTheme: wgerDarkTheme, - highContrastTheme: wgerLightThemeHc, - highContrastDarkTheme: wgerDarkThemeHc, - themeMode: user.themeMode, - home: _getHomeScreen(auth), - routes: { - DashboardScreen.routeName: (ctx) => const DashboardScreen(), - FormScreen.routeName: (ctx) => const FormScreen(), - GalleryScreen.routeName: (ctx) => const GalleryScreen(), - GymModeScreen.routeName: (ctx) => const GymModeScreen(), - HomeTabsScreen.routeName: (ctx) => HomeTabsScreen(), - MeasurementCategoriesScreen.routeName: (ctx) => const MeasurementCategoriesScreen(), - MeasurementEntriesScreen.routeName: (ctx) => const MeasurementEntriesScreen(), - NutritionalPlansScreen.routeName: (ctx) => const NutritionalPlansScreen(), - NutritionalDiaryScreen.routeName: (ctx) => const NutritionalDiaryScreen(), - NutritionalPlanScreen.routeName: (ctx) => const NutritionalPlanScreen(), - LogMealsScreen.routeName: (ctx) => const LogMealsScreen(), - LogMealScreen.routeName: (ctx) => const LogMealScreen(), - WeightScreen.routeName: (ctx) => const WeightScreen(), - RoutineScreen.routeName: (ctx) => const RoutineScreen(), - RoutineEditScreen.routeName: (ctx) => const RoutineEditScreen(), - WorkoutLogsScreen.routeName: (ctx) => const WorkoutLogsScreen(), - RoutineListScreen.routeName: (ctx) => const RoutineListScreen(), - ExercisesScreen.routeName: (ctx) => const ExercisesScreen(), - ExerciseDetailScreen.routeName: (ctx) => const ExerciseDetailScreen(), - AddExerciseScreen.routeName: (ctx) => const AddExerciseScreen(), - AboutPage.routeName: (ctx) => const AboutPage(), - SettingsPage.routeName: (ctx) => const SettingsPage(), - LogOverviewPage.routeName: (ctx) => const LogOverviewPage(), - ConfigurePlatesScreen.routeName: (ctx) => const ConfigurePlatesScreen(), - }, - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - ), - ), + builder: (ctx, auth, _) { + final baseInstance = WgerBaseProvider(Provider.of(ctx, listen: false)); + + return Consumer( + builder: (ctx, user, _) => riverpod.ProviderScope( + overrides: [ + wgerBaseProvider.overrideWithValue(baseInstance), + ], + child: riverpod.Consumer( + builder: (rpCtx, ref, _) { + return MaterialApp( + title: 'wger', + navigatorKey: navigatorKey, + theme: wgerLightTheme, + darkTheme: wgerDarkTheme, + highContrastTheme: wgerLightThemeHc, + highContrastDarkTheme: wgerDarkThemeHc, + themeMode: user.themeMode, + home: _getHomeScreen(auth), + routes: { + DashboardScreen.routeName: (ctx) => const DashboardScreen(), + FormScreen.routeName: (ctx) => const FormScreen(), + GalleryScreen.routeName: (ctx) => const GalleryScreen(), + GymModeScreen.routeName: (ctx) => const GymModeScreen(), + HomeTabsScreen.routeName: (ctx) => HomeTabsScreen(), + MeasurementCategoriesScreen.routeName: (ctx) => + const MeasurementCategoriesScreen(), + MeasurementEntriesScreen.routeName: (ctx) => const MeasurementEntriesScreen(), + NutritionalPlansScreen.routeName: (ctx) => const NutritionalPlansScreen(), + NutritionalDiaryScreen.routeName: (ctx) => const NutritionalDiaryScreen(), + NutritionalPlanScreen.routeName: (ctx) => const NutritionalPlanScreen(), + LogMealsScreen.routeName: (ctx) => const LogMealsScreen(), + LogMealScreen.routeName: (ctx) => const LogMealScreen(), + WeightScreen.routeName: (ctx) => const WeightScreen(), + RoutineScreen.routeName: (ctx) => const RoutineScreen(), + RoutineEditScreen.routeName: (ctx) => const RoutineEditScreen(), + WorkoutLogsScreen.routeName: (ctx) => const WorkoutLogsScreen(), + RoutineListScreen.routeName: (ctx) => const RoutineListScreen(), + ExercisesScreen.routeName: (ctx) => const ExercisesScreen(), + ExerciseDetailScreen.routeName: (ctx) => const ExerciseDetailScreen(), + AddExerciseScreen.routeName: (ctx) => const AddExerciseScreen(), + AboutPage.routeName: (ctx) => const AboutPage(), + SettingsPage.routeName: (ctx) => const SettingsPage(), + LogOverviewPage.routeName: (ctx) => const LogOverviewPage(), + ConfigurePlatesScreen.routeName: (ctx) => const ConfigurePlatesScreen(), + ConfigureDashboardWidgetsScreen.routeName: (ctx) => + const ConfigureDashboardWidgetsScreen(), + TrophyScreen.routeName: (ctx) => const TrophyScreen(), + }, + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + ); + }, + ), + ), + ); + }, ), ); } diff --git a/lib/models/body_weight/weight_entry.dart b/lib/models/body_weight/weight_entry.dart index d5343cd65..8daada31c 100644 --- a/lib/models/body_weight/weight_entry.dart +++ b/lib/models/body_weight/weight_entry.dart @@ -29,7 +29,7 @@ class WeightEntry { @JsonKey(required: true, fromJson: stringToNum, toJson: numToString) late num weight = 0; - @JsonKey(required: true) + @JsonKey(required: true, fromJson: utcIso8601ToLocalDate, toJson: dateToUtcIso8601) late DateTime date; WeightEntry({this.id, weight, DateTime? date}) { diff --git a/lib/models/body_weight/weight_entry.g.dart b/lib/models/body_weight/weight_entry.g.dart index 42281afa2..286c98661 100644 --- a/lib/models/body_weight/weight_entry.g.dart +++ b/lib/models/body_weight/weight_entry.g.dart @@ -11,12 +11,12 @@ WeightEntry _$WeightEntryFromJson(Map json) { return WeightEntry( id: (json['id'] as num?)?.toInt(), weight: stringToNum(json['weight'] as String?), - date: json['date'] == null ? null : DateTime.parse(json['date'] as String), + date: utcIso8601ToLocalDate(json['date'] as String), ); } Map _$WeightEntryToJson(WeightEntry instance) => { 'id': instance.id, 'weight': numToString(instance.weight), - 'date': instance.date.toIso8601String(), + 'date': dateToUtcIso8601(instance.date), }; diff --git a/lib/models/exercises/muscle.dart b/lib/models/exercises/muscle.dart index abb6bbbf3..176d27f1a 100644 --- a/lib/models/exercises/muscle.dart +++ b/lib/models/exercises/muscle.dart @@ -53,7 +53,7 @@ class Muscle extends Equatable { List get props => [id, name, isFront]; String nameTranslated(BuildContext context) { - return name + (nameEn.isNotEmpty ? ' (${getTranslation(nameEn, context)})' : ''); + return name + (nameEn.isNotEmpty ? ' (${getServerStringTranslation(nameEn, context)})' : ''); } @override diff --git a/lib/models/gallery/image.dart b/lib/models/gallery/image.dart index 2645cf77e..6916f7ed9 100644 --- a/lib/models/gallery/image.dart +++ b/lib/models/gallery/image.dart @@ -26,7 +26,7 @@ class Image { @JsonKey(required: true) int? id; - @JsonKey(required: true, toJson: dateToYYYYMMDD) + @JsonKey(required: true, fromJson: utcIso8601ToLocalDate, toJson: dateToUtcIso8601) late DateTime date; @JsonKey(required: true, name: 'image') diff --git a/lib/models/gallery/image.g.dart b/lib/models/gallery/image.g.dart index 0a6f96948..a0e4dd9fa 100644 --- a/lib/models/gallery/image.g.dart +++ b/lib/models/gallery/image.g.dart @@ -10,7 +10,7 @@ Image _$ImageFromJson(Map json) { $checkKeys(json, requiredKeys: const ['id', 'date', 'image']); return Image( id: (json['id'] as num?)?.toInt(), - date: DateTime.parse(json['date'] as String), + date: utcIso8601ToLocalDate(json['date'] as String), url: json['image'] as String?, description: json['description'] as String? ?? '', ); @@ -18,7 +18,7 @@ Image _$ImageFromJson(Map json) { Map _$ImageToJson(Image instance) => { 'id': instance.id, - 'date': dateToYYYYMMDD(instance.date), + 'date': dateToUtcIso8601(instance.date), 'image': instance.url, 'description': instance.description, }; diff --git a/lib/models/measurements/measurement_category.dart b/lib/models/measurements/measurement_category.dart index d32925db3..e5c8cdfd3 100644 --- a/lib/models/measurements/measurement_category.dart +++ b/lib/models/measurements/measurement_category.dart @@ -1,6 +1,6 @@ import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; -import 'package:wger/exceptions/no_such_entry_exception.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; import 'package:wger/models/measurements/measurement_entry.dart'; part 'measurement_category.g.dart'; diff --git a/lib/models/nutrition/log.dart b/lib/models/nutrition/log.dart index 7734b50bd..4c47dcf08 100644 --- a/lib/models/nutrition/log.dart +++ b/lib/models/nutrition/log.dart @@ -40,7 +40,7 @@ class Log { @JsonKey(required: true, name: 'plan') String planId; - @JsonKey(required: true, toJson: dateToUtcIso8601) + @JsonKey(required: true, fromJson: utcIso8601ToLocalDate, toJson: dateToUtcIso8601) late DateTime datetime; String? comment; diff --git a/lib/models/nutrition/nutritional_plan.dart b/lib/models/nutrition/nutritional_plan.dart index 02eb1d5f8..409394a86 100644 --- a/lib/models/nutrition/nutritional_plan.dart +++ b/lib/models/nutrition/nutritional_plan.dart @@ -44,7 +44,12 @@ class NutritionalPlan { @JsonKey(required: true) late String description; - @JsonKey(required: true, name: 'creation_date', toJson: dateToUtcIso8601) + @JsonKey( + required: true, + name: 'creation_date', + fromJson: utcIso8601ToLocalDate, + toJson: dateToUtcIso8601, + ) late DateTime creationDate; @JsonKey(required: true, name: 'start', toJson: dateToYYYYMMDD) @@ -306,6 +311,7 @@ class NutritionalPlan { out.add(log); } } + out.sort((a, b) => b.datetime.compareTo(a.datetime)); return out; } diff --git a/lib/models/nutrition/nutritional_plan.g.dart b/lib/models/nutrition/nutritional_plan.g.dart index d831a5bc6..1257cd9a4 100644 --- a/lib/models/nutrition/nutritional_plan.g.dart +++ b/lib/models/nutrition/nutritional_plan.g.dart @@ -26,9 +26,7 @@ NutritionalPlan _$NutritionalPlanFromJson(Map json) { return NutritionalPlan( id: json['id'] as String?, description: json['description'] as String, - creationDate: json['creation_date'] == null - ? null - : DateTime.parse(json['creation_date'] as String), + creationDate: utcIso8601ToLocalDate(json['creation_date'] as String), startDate: DateTime.parse(json['start'] as String), endDate: json['end'] == null ? null : DateTime.parse(json['end'] as String), onlyLogging: json['only_logging'] as bool? ?? false, diff --git a/lib/models/trophies/trophy.dart b/lib/models/trophies/trophy.dart new file mode 100644 index 000000000..d58f5512a --- /dev/null +++ b/lib/models/trophies/trophy.dart @@ -0,0 +1,66 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:json_annotation/json_annotation.dart'; + +part 'trophy.g.dart'; + +enum TrophyType { time, volume, count, sequence, date, pr, other } + +@JsonSerializable() +class Trophy { + @JsonKey(required: true) + final int id; + + @JsonKey(required: true) + final String uuid; + + @JsonKey(required: true) + final String name; + + @JsonKey(required: true) + final String description; + + @JsonKey(required: true) + final String image; + + @JsonKey(required: true, name: 'trophy_type') + final TrophyType type; + + @JsonKey(required: true, name: 'is_hidden') + final bool isHidden; + + @JsonKey(required: true, name: 'is_progressive') + final bool isProgressive; + + Trophy({ + required this.id, + required this.uuid, + required this.name, + required this.description, + required this.image, + required this.type, + required this.isHidden, + required this.isProgressive, + }); + + // Boilerplate + factory Trophy.fromJson(Map json) => _$TrophyFromJson(json); + + Map toJson() => _$TrophyToJson(this); +} diff --git a/lib/models/trophies/trophy.g.dart b/lib/models/trophies/trophy.g.dart new file mode 100644 index 000000000..23eb2a47a --- /dev/null +++ b/lib/models/trophies/trophy.g.dart @@ -0,0 +1,54 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'trophy.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Trophy _$TrophyFromJson(Map json) { + $checkKeys( + json, + requiredKeys: const [ + 'id', + 'uuid', + 'name', + 'description', + 'image', + 'trophy_type', + 'is_hidden', + 'is_progressive', + ], + ); + return Trophy( + id: (json['id'] as num).toInt(), + uuid: json['uuid'] as String, + name: json['name'] as String, + description: json['description'] as String, + image: json['image'] as String, + type: $enumDecode(_$TrophyTypeEnumMap, json['trophy_type']), + isHidden: json['is_hidden'] as bool, + isProgressive: json['is_progressive'] as bool, + ); +} + +Map _$TrophyToJson(Trophy instance) => { + 'id': instance.id, + 'uuid': instance.uuid, + 'name': instance.name, + 'description': instance.description, + 'image': instance.image, + 'trophy_type': _$TrophyTypeEnumMap[instance.type]!, + 'is_hidden': instance.isHidden, + 'is_progressive': instance.isProgressive, +}; + +const _$TrophyTypeEnumMap = { + TrophyType.time: 'time', + TrophyType.volume: 'volume', + TrophyType.count: 'count', + TrophyType.sequence: 'sequence', + TrophyType.date: 'date', + TrophyType.pr: 'pr', + TrophyType.other: 'other', +}; diff --git a/lib/models/trophies/user_trophy.dart b/lib/models/trophies/user_trophy.dart new file mode 100644 index 000000000..8e1e7a816 --- /dev/null +++ b/lib/models/trophies/user_trophy.dart @@ -0,0 +1,62 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:json_annotation/json_annotation.dart'; +import 'package:wger/helpers/json.dart'; + +import 'trophy.dart'; +import 'user_trophy_context_data.dart'; + +part 'user_trophy.g.dart'; + +/// A trophy awarded to a user for achieving a specific milestone. + +@JsonSerializable() +class UserTrophy { + @JsonKey(required: true) + final int id; + + @JsonKey(required: true) + final Trophy trophy; + + @JsonKey(required: true, name: 'earned_at', fromJson: utcIso8601ToLocalDate) + final DateTime earnedAt; + + @JsonKey(required: true) + final num progress; + + @JsonKey(required: true, name: 'is_notified') + final bool isNotified; + + @JsonKey(required: true, name: 'context_data') + final ContextData? contextData; + + UserTrophy({ + required this.id, + required this.trophy, + required this.earnedAt, + required this.progress, + required this.isNotified, + this.contextData, + }); + + // Boilerplate + factory UserTrophy.fromJson(Map json) => _$UserTrophyFromJson(json); + + Map toJson() => _$UserTrophyToJson(this); +} diff --git a/lib/models/trophies/user_trophy.g.dart b/lib/models/trophies/user_trophy.g.dart new file mode 100644 index 000000000..97d9da440 --- /dev/null +++ b/lib/models/trophies/user_trophy.g.dart @@ -0,0 +1,40 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'user_trophy.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UserTrophy _$UserTrophyFromJson(Map json) { + $checkKeys( + json, + requiredKeys: const [ + 'id', + 'trophy', + 'earned_at', + 'progress', + 'is_notified', + 'context_data', + ], + ); + return UserTrophy( + id: (json['id'] as num).toInt(), + trophy: Trophy.fromJson(json['trophy'] as Map), + earnedAt: utcIso8601ToLocalDate(json['earned_at'] as String), + progress: json['progress'] as num, + isNotified: json['is_notified'] as bool, + contextData: json['context_data'] == null + ? null + : ContextData.fromJson(json['context_data'] as Map), + ); +} + +Map _$UserTrophyToJson(UserTrophy instance) => { + 'id': instance.id, + 'trophy': instance.trophy, + 'earned_at': instance.earnedAt.toIso8601String(), + 'progress': instance.progress, + 'is_notified': instance.isNotified, + 'context_data': instance.contextData, +}; diff --git a/lib/models/trophies/user_trophy_context_data.dart b/lib/models/trophies/user_trophy_context_data.dart new file mode 100644 index 000000000..d114e1e1b --- /dev/null +++ b/lib/models/trophies/user_trophy_context_data.dart @@ -0,0 +1,75 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:json_annotation/json_annotation.dart'; +import 'package:wger/helpers/json.dart'; + +part 'user_trophy_context_data.g.dart'; + +/// A trophy awarded to a user for achieving a specific milestone. + +@JsonSerializable() +class ContextData { + @JsonKey(required: true, name: 'log_id') + final int logId; + + @JsonKey(required: true, fromJson: utcIso8601ToLocalDate) + final DateTime date; + + @JsonKey(required: true, name: 'session_id') + final int sessionId; + + @JsonKey(required: true, name: 'exercise_id') + final int exerciseId; + + @JsonKey(required: true, name: 'repetitions_unit_id') + final int repetitionsUnitId; + + @JsonKey(required: true) + final num repetitions; + + @JsonKey(required: true, name: 'weight_unit_id') + final int weightUnitId; + + @JsonKey(required: true) + final num weight; + + @JsonKey(required: true) + final int? iteration; + + @JsonKey(required: true, name: 'one_rep_max_estimate') + final num oneRepMaxEstimate; + + ContextData({ + required this.logId, + required this.date, + required this.sessionId, + required this.exerciseId, + required this.repetitionsUnitId, + required this.repetitions, + required this.weightUnitId, + required this.weight, + this.iteration, + required this.oneRepMaxEstimate, + }); + + // Boilerplate + factory ContextData.fromJson(Map json) => _$ContextDataFromJson(json); + + Map toJson() => _$ContextDataToJson(this); +} diff --git a/lib/models/trophies/user_trophy_context_data.g.dart b/lib/models/trophies/user_trophy_context_data.g.dart new file mode 100644 index 000000000..e1fcc63a4 --- /dev/null +++ b/lib/models/trophies/user_trophy_context_data.g.dart @@ -0,0 +1,50 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'user_trophy_context_data.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ContextData _$ContextDataFromJson(Map json) { + $checkKeys( + json, + requiredKeys: const [ + 'log_id', + 'date', + 'session_id', + 'exercise_id', + 'repetitions_unit_id', + 'repetitions', + 'weight_unit_id', + 'weight', + 'iteration', + 'one_rep_max_estimate', + ], + ); + return ContextData( + logId: (json['log_id'] as num).toInt(), + date: utcIso8601ToLocalDate(json['date'] as String), + sessionId: (json['session_id'] as num).toInt(), + exerciseId: (json['exercise_id'] as num).toInt(), + repetitionsUnitId: (json['repetitions_unit_id'] as num).toInt(), + repetitions: json['repetitions'] as num, + weightUnitId: (json['weight_unit_id'] as num).toInt(), + weight: json['weight'] as num, + iteration: (json['iteration'] as num?)?.toInt(), + oneRepMaxEstimate: json['one_rep_max_estimate'] as num, + ); +} + +Map _$ContextDataToJson(ContextData instance) => { + 'log_id': instance.logId, + 'date': instance.date.toIso8601String(), + 'session_id': instance.sessionId, + 'exercise_id': instance.exerciseId, + 'repetitions_unit_id': instance.repetitionsUnitId, + 'repetitions': instance.repetitions, + 'weight_unit_id': instance.weightUnitId, + 'weight': instance.weight, + 'iteration': instance.iteration, + 'one_rep_max_estimate': instance.oneRepMaxEstimate, +}; diff --git a/lib/models/trophies/user_trophy_progression.dart b/lib/models/trophies/user_trophy_progression.dart new file mode 100644 index 000000000..6cf115ba2 --- /dev/null +++ b/lib/models/trophies/user_trophy_progression.dart @@ -0,0 +1,67 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:json_annotation/json_annotation.dart'; +import 'package:wger/helpers/json.dart'; +import 'package:wger/models/trophies/trophy.dart'; + +part 'user_trophy_progression.g.dart'; + +@JsonSerializable() +class UserTrophyProgression { + @JsonKey(required: true) + final Trophy trophy; + + @JsonKey(required: true, name: 'is_earned') + final bool isEarned; + + @JsonKey(required: true, name: 'earned_at', fromJson: utcIso8601ToLocalDateNull) + final DateTime? earnedAt; + + /// Progress towards earning the trophy (0-100%) + @JsonKey(required: true) + final num progress; + + /// Current value towards the trophy goal (e.g., number of workouts completed) + @JsonKey(required: true, name: 'current_value', fromJson: stringToNumNull) + num? currentValue; + + /// Target value to achieve the trophy goal + @JsonKey(required: true, name: 'target_value', fromJson: stringToNumNull) + num? targetValue; + + /// Human-readable progress display (e.g., "3 / 10" or "51%") + @JsonKey(required: true, name: 'progress_display') + String? progressDisplay; + + UserTrophyProgression({ + required this.trophy, + required this.isEarned, + required this.earnedAt, + required this.progress, + required this.currentValue, + required this.targetValue, + this.progressDisplay, + }); + + // Boilerplate + factory UserTrophyProgression.fromJson(Map json) => + _$UserTrophyProgressionFromJson(json); + + Map toJson() => _$UserTrophyProgressionToJson(this); +} diff --git a/lib/models/trophies/user_trophy_progression.g.dart b/lib/models/trophies/user_trophy_progression.g.dart new file mode 100644 index 000000000..de2a49e70 --- /dev/null +++ b/lib/models/trophies/user_trophy_progression.g.dart @@ -0,0 +1,45 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'user_trophy_progression.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UserTrophyProgression _$UserTrophyProgressionFromJson( + Map json, +) { + $checkKeys( + json, + requiredKeys: const [ + 'trophy', + 'is_earned', + 'earned_at', + 'progress', + 'current_value', + 'target_value', + 'progress_display', + ], + ); + return UserTrophyProgression( + trophy: Trophy.fromJson(json['trophy'] as Map), + isEarned: json['is_earned'] as bool, + earnedAt: utcIso8601ToLocalDateNull(json['earned_at'] as String?), + progress: json['progress'] as num, + currentValue: stringToNumNull(json['current_value'] as String?), + targetValue: stringToNumNull(json['target_value'] as String?), + progressDisplay: json['progress_display'] as String?, + ); +} + +Map _$UserTrophyProgressionToJson( + UserTrophyProgression instance, +) => { + 'trophy': instance.trophy, + 'is_earned': instance.isEarned, + 'earned_at': instance.earnedAt?.toIso8601String(), + 'progress': instance.progress, + 'current_value': instance.currentValue, + 'target_value': instance.targetValue, + 'progress_display': instance.progressDisplay, +}; diff --git a/lib/models/workouts/log.dart b/lib/models/workouts/log.dart index f3ccfb816..6559b565e 100644 --- a/lib/models/workouts/log.dart +++ b/lib/models/workouts/log.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -16,8 +16,10 @@ * along with this program. If not, see . */ +import 'package:flutter/material.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:wger/helpers/consts.dart'; +import 'package:wger/helpers/i18n.dart'; import 'package:wger/helpers/json.dart'; import 'package:wger/helpers/misc.dart'; import 'package:wger/models/exercises/exercise.dart'; @@ -27,6 +29,13 @@ import 'package:wger/models/workouts/weight_unit.dart'; part 'log.g.dart'; +enum LogTargetStatus { + lessThanTarget, + atTarget, + moreThanTarget, + notSet, +} + @JsonSerializable() class Log { @JsonKey(required: true) @@ -42,7 +51,7 @@ class Log { late int routineId; @JsonKey(required: true, name: 'session') - late int? sessionId; + int? sessionId; @JsonKey(required: true) int? iteration; @@ -50,37 +59,37 @@ class Log { @JsonKey(required: true, name: 'slot_entry') int? slotEntryId; - @JsonKey(required: false, fromJson: stringToNum) + @JsonKey(required: false, fromJson: stringToNumNull) num? rir; - @JsonKey(required: false, fromJson: stringToNum, name: 'rir_target') + @JsonKey(required: false, fromJson: stringToNumNull, name: 'rir_target') num? rirTarget; - @JsonKey(required: true, fromJson: stringToNum, name: 'repetitions') + @JsonKey(required: true, fromJson: stringToNumNull, name: 'repetitions') num? repetitions; - @JsonKey(required: true, fromJson: stringToNum, name: 'repetitions_target') + @JsonKey(required: true, fromJson: stringToNumNull, name: 'repetitions_target') num? repetitionsTarget; @JsonKey(required: true, name: 'repetitions_unit') - late int? repetitionsUnitId; + int? repetitionsUnitId; @JsonKey(includeFromJson: false, includeToJson: false) - late RepetitionUnit? repetitionsUnitObj; + RepetitionUnit? repetitionsUnitObj; - @JsonKey(required: true, fromJson: stringToNum, toJson: numToString) - late num? weight; + @JsonKey(required: true, fromJson: stringToNumNull, toJson: numToString) + num? weight; - @JsonKey(required: true, fromJson: stringToNum, toJson: numToString, name: 'weight_target') + @JsonKey(required: true, fromJson: stringToNumNull, toJson: numToString, name: 'weight_target') num? weightTarget; @JsonKey(required: true, name: 'weight_unit') - late int? weightUnitId; + int? weightUnitId; @JsonKey(includeFromJson: false, includeToJson: false) - late WeightUnit? weightUnitObj; + WeightUnit? weightUnitObj; - @JsonKey(required: true, toJson: dateToUtcIso8601) + @JsonKey(required: true, fromJson: utcIso8601ToLocalDate, toJson: dateToUtcIso8601) late DateTime date; Log({ @@ -92,32 +101,89 @@ class Log { this.repetitions, this.repetitionsTarget, this.repetitionsUnitId = REP_UNIT_REPETITIONS_ID, - required this.rir, + this.repetitionsUnitObj, + this.rir, this.rirTarget, this.weight, this.weightTarget, this.weightUnitId = WEIGHT_UNIT_KG, - required this.date, - }); + this.weightUnitObj, + DateTime? date, + }) : date = date ?? DateTime.now(); - Log.empty(); - - Log.fromSetConfigData(SetConfigData data) { + Log.fromSetConfigData(SetConfigData setConfig) { date = DateTime.now(); sessionId = null; - slotEntryId = data.slotEntryId; - exerciseBase = data.exercise; - weight = data.weight; - weightTarget = data.weight; - weightUnit = data.weightUnit; + slotEntryId = setConfig.slotEntryId; + exerciseBase = setConfig.exercise; - repetitions = data.repetitions; - repetitionsTarget = data.repetitions; - repetitionUnit = data.repetitionsUnit; + weight = setConfig.weight; + weightTarget = setConfig.weight; + weightUnit = setConfig.weightUnit; - rir = data.rir; - rirTarget = data.rir; + repetitions = setConfig.repetitions; + repetitionsTarget = setConfig.repetitions; + repetitionUnit = setConfig.repetitionsUnit; + + rir = setConfig.rir; + rirTarget = setConfig.rir; + } + + Log copyWith({ + int? id, + int? exerciseId, + int? routineId, + int? sessionId, + int? iteration, + int? slotEntryId, + num? rir, + num? rirTarget, + num? repetitions, + num? repetitionsTarget, + int? repetitionsUnitId, + RepetitionUnit? repetitionsUnitObj, + num? weight, + num? weightTarget, + int? weightUnitId, + WeightUnit? weightUnitObj, + DateTime? date, + }) { + final out = Log( + id: id ?? this.id, + exerciseId: exerciseId ?? this.exerciseId, + iteration: iteration ?? this.iteration, + slotEntryId: slotEntryId ?? this.slotEntryId, + routineId: routineId ?? this.routineId, + repetitions: repetitions ?? this.repetitions, + repetitionsTarget: repetitionsTarget ?? this.repetitionsTarget, + repetitionsUnitId: repetitionsUnitId ?? this.repetitionsUnitId, + repetitionsUnitObj: repetitionsUnitObj ?? this.repetitionsUnitObj, + rir: rir ?? this.rir, + rirTarget: rirTarget ?? this.rirTarget, + weight: weight ?? this.weight, + weightTarget: weightTarget ?? this.weightTarget, + weightUnitId: weightUnitId ?? this.weightUnitId, + weightUnitObj: weightUnitObj ?? this.weightUnitObj, + date: date ?? this.date, + ); + + if (sessionId != null) { + out.sessionId = sessionId; + } + + if (repetitionsUnitObj != null) { + out.repetitionsUnitObj = repetitionsUnitObj; + out.repetitionsUnitId = repetitionsUnitObj.id; + } + + if (weightUnitObj != null) { + out.weightUnitObj = weightUnitObj; + out.weightUnitId = weightUnitObj.id; + } + out.exerciseBase = exercise; + + return out; } // Boilerplate @@ -140,15 +206,80 @@ class Log { repetitionsUnitId = repetitionUnit?.id; } - /// Returns the text representation for a single setting, used in the gym mode - String get singleLogRepTextNoNl { - return repText( - repetitions, - repetitionsUnitObj, - weight, - weightUnitObj, - rir, - ).replaceAll('\n', ''); + /// Returns the text representation for a single setting, removes new lines + String repTextNoNl(BuildContext context) { + return repText(context).replaceAll('\n', ''); + } + + /// Returns the text representation for a single setting + String repText(BuildContext context) { + final List out = []; + + if (repetitions != null) { + out.add(formatNum(repetitions!).toString()); + + // The default repetition unit is 'reps', which we don't show unless there + // is no weight defined so that we don't just output something like "8" but + // rather "8 repetitions". If there is weight we want to output "8 x 50kg", + // since the repetitions are implied. If other units are used, we always + // print them + if (repetitionsUnitObj != null && repetitionsUnitObj!.id != REP_UNIT_REPETITIONS_ID || + weight == 0 || + weight == null) { + out.add(getServerStringTranslation(repetitionsUnitObj!.name, context)); + } + } + + if (weight != null && weight != 0) { + out.add('×'); + out.add(formatNum(weight!).toString()); + out.add(weightUnitObj!.name); + } + + if (rir != null) { + out.add('\n($rir RiR)'); + } + + return out.join(' '); + } + + /// Calculates the volume for this log entry + num volume({bool metric = true}) { + final unitId = metric ? WEIGHT_UNIT_KG : WEIGHT_UNIT_LB; + + if (weight != null && + weightUnitId == unitId && + repetitions != null && + repetitionsUnitId == REP_UNIT_REPETITIONS_ID) { + return weight! * repetitions!; + } + return 0; + } + + LogTargetStatus get targetStatus { + if (weightTarget == null && repetitionsTarget == null && rirTarget == null) { + return LogTargetStatus.notSet; + } + + final weightOk = weightTarget == null || (weight != null && weight! >= weightTarget!); + final repsOk = + repetitionsTarget == null || (repetitions != null && repetitions! >= repetitionsTarget!); + final rirOk = rirTarget == null || (rir != null && rir! <= rirTarget!); + + if (weightOk && repsOk && rirOk) { + return LogTargetStatus.atTarget; + } + + final weightMore = weightTarget != null && weight != null && weight! > weightTarget!; + final repsMore = + repetitionsTarget != null && repetitions != null && repetitions! > repetitionsTarget!; + final rirLess = rirTarget != null && rir != null && rir! < rirTarget!; + + if (weightMore || repsMore || rirLess) { + return LogTargetStatus.moreThanTarget; + } + + return LogTargetStatus.lessThanTarget; } /// Override the equals operator diff --git a/lib/models/workouts/log.g.dart b/lib/models/workouts/log.g.dart index 803f17788..f50a24c67 100644 --- a/lib/models/workouts/log.g.dart +++ b/lib/models/workouts/log.g.dart @@ -31,15 +31,15 @@ Log _$LogFromJson(Map json) { iteration: (json['iteration'] as num?)?.toInt(), slotEntryId: (json['slot_entry'] as num?)?.toInt(), routineId: (json['routine'] as num).toInt(), - repetitions: stringToNum(json['repetitions'] as String?), - repetitionsTarget: stringToNum(json['repetitions_target'] as String?), + repetitions: stringToNumNull(json['repetitions'] as String?), + repetitionsTarget: stringToNumNull(json['repetitions_target'] as String?), repetitionsUnitId: (json['repetitions_unit'] as num?)?.toInt() ?? REP_UNIT_REPETITIONS_ID, - rir: stringToNum(json['rir'] as String?), - rirTarget: stringToNum(json['rir_target'] as String?), - weight: stringToNum(json['weight'] as String?), - weightTarget: stringToNum(json['weight_target'] as String?), + rir: stringToNumNull(json['rir'] as String?), + rirTarget: stringToNumNull(json['rir_target'] as String?), + weight: stringToNumNull(json['weight'] as String?), + weightTarget: stringToNumNull(json['weight_target'] as String?), weightUnitId: (json['weight_unit'] as num?)?.toInt() ?? WEIGHT_UNIT_KG, - date: DateTime.parse(json['date'] as String), + date: utcIso8601ToLocalDate(json['date'] as String), )..sessionId = (json['session'] as num?)?.toInt(); } diff --git a/lib/models/workouts/repetition_unit.dart b/lib/models/workouts/repetition_unit.dart index 55347d4e7..0de31713e 100644 --- a/lib/models/workouts/repetition_unit.dart +++ b/lib/models/workouts/repetition_unit.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -32,7 +32,7 @@ class RepetitionUnit { @override String toString() { - return 'RepetitionUnit{id: $id, name: $name}'; + return 'RepetitionUnit(id: $id, name: $name)'; } // Boilerplate diff --git a/lib/models/workouts/routine.dart b/lib/models/workouts/routine.dart index bd90d6bb3..fdca5c97a 100644 --- a/lib/models/workouts/routine.dart +++ b/lib/models/workouts/routine.dart @@ -1,24 +1,25 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by + * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ import 'package:json_annotation/json_annotation.dart'; import 'package:wger/helpers/date.dart'; import 'package:wger/helpers/json.dart'; +import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/models/workouts/day.dart'; import 'package:wger/models/workouts/day_data.dart'; import 'package:wger/models/workouts/log.dart'; @@ -42,7 +43,7 @@ class Routine { @JsonKey(required: true, includeToJson: false) int? id; - @JsonKey(required: true, toJson: dateToUtcIso8601) + @JsonKey(required: true, fromJson: utcIso8601ToLocalDate, toJson: dateToUtcIso8601) late DateTime created; @JsonKey(required: true, name: 'name') @@ -129,6 +130,30 @@ class Routine { return dayData.where((data) => data.iteration == iteration).toList(); } + /// Filter out dayData entries with null days as well as duplicated days from + /// the "fixed weekly schedule" toggle. + List get dayDataCurrentIterationFiltered { + final sorted = List.from( + dayDataCurrentIteration.where((dd) => dd.day != null), + )..sort((a, b) => a.day!.order.compareTo(b.day!.order)); + + // Filter out entries where the day is the same as the previous one. This + // is necessary because if the user has the "Fixed weekly schedule" option + // enabled, there would be multiple entries for the same day. + final unique = []; + for (final dd in sorted) { + if (unique.isEmpty || unique.last.day!.id != dd.day!.id) { + unique.add(dd); + } else { + // If the day id is the same as the previous, replace the previous + // entry with the current one so the last occurrence is kept. + unique[unique.length - 1] = dd; + } + } + + return unique; + } + List get dayDataCurrentIterationGym { final iteration = getIteration(date: DateTime.now()) ?? 1; return dayDataGym.where((data) => data.iteration == iteration).toList(); @@ -176,4 +201,37 @@ class Routine { return groupedLogs; } + + void replaceExercise(int oldExerciseId, Exercise newExercise) { + for (final session in sessions) { + for (final log in session.logs) { + if (log.exerciseId == oldExerciseId) { + log.exerciseId = newExercise.id!; + log.exercise = newExercise; + } + } + } + + for (final day in dayData) { + for (final slot in day.slots) { + for (final config in slot.setConfigs) { + if (config.exerciseId == oldExerciseId) { + config.exerciseId = newExercise.id!; + config.exercise = newExercise; + } + } + } + } + + for (final day in dayDataGym) { + for (final slot in day.slots) { + for (final config in slot.setConfigs) { + if (config.exerciseId == oldExerciseId) { + config.exerciseId = newExercise.id!; + config.exercise = newExercise; + } + } + } + } + } } diff --git a/lib/models/workouts/routine.g.dart b/lib/models/workouts/routine.g.dart index 49152d296..96f598fc6 100644 --- a/lib/models/workouts/routine.g.dart +++ b/lib/models/workouts/routine.g.dart @@ -21,7 +21,7 @@ Routine _$RoutineFromJson(Map json) { ); return Routine( id: (json['id'] as num?)?.toInt(), - created: json['created'] == null ? null : DateTime.parse(json['created'] as String), + created: utcIso8601ToLocalDate(json['created'] as String), name: json['name'] as String, start: json['start'] == null ? null : DateTime.parse(json['start'] as String), end: json['end'] == null ? null : DateTime.parse(json['end'] as String), diff --git a/lib/models/workouts/session.dart b/lib/models/workouts/session.dart index f12030a6c..a96f4db82 100644 --- a/lib/models/workouts/session.dart +++ b/lib/models/workouts/session.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -16,9 +16,13 @@ * along with this program. If not, see . */ +import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; import 'package:json_annotation/json_annotation.dart'; +import 'package:logging/logging.dart'; +import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/json.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/log.dart'; part 'session.g.dart'; @@ -27,6 +31,8 @@ const IMPRESSION_MAP = {1: 'bad', 2: 'neutral', 3: 'good'}; @JsonSerializable() class WorkoutSession { + final _logger = Logger('WorkoutSession'); + @JsonKey(required: true) int? id; @@ -58,14 +64,56 @@ class WorkoutSession { this.id, this.dayId, required this.routineId, - this.impression = 2, + this.impression = DEFAULT_IMPRESSION, this.notes = '', this.timeStart, this.timeEnd, this.logs = const [], DateTime? date, }) { - this.date = date ?? DateTime.now(); + this.date = date ?? clock.now(); + } + + Duration? get duration { + if (timeStart == null || timeEnd == null) { + return null; + } + final now = DateTime.now(); + final startDate = DateTime(now.year, now.month, now.day, timeStart!.hour, timeStart!.minute); + final endDate = DateTime(now.year, now.month, now.day, timeEnd!.hour, timeEnd!.minute); + return endDate.difference(startDate); + } + + String durationTxt(BuildContext context) { + final duration = this.duration; + if (duration == null) { + return '-/-'; + } + return AppLocalizations.of( + context, + ).durationHoursMinutes(duration.inHours, duration.inMinutes.remainder(60)); + } + + String durationTxtWithStartEnd(BuildContext context) { + final duration = this.duration; + if (duration == null) { + return '-/-'; + } + + final startTime = MaterialLocalizations.of(context).formatTimeOfDay(timeStart!); + final endTime = MaterialLocalizations.of(context).formatTimeOfDay(timeEnd!); + + return '${durationTxt(context)} ($startTime - $endTime)'; + } + + /// Get total volume of the session for metric and imperial units + /// (i.e. sets that have "repetitions" as units and weight in kg or lbs). + /// Other combinations such as "seconds" are ignored. + Map get volume { + final volumeMetric = logs.fold(0, (sum, log) => sum + log.volume(metric: true)); + final volumeImperial = logs.fold(0, (sum, log) => sum + log.volume(metric: false)); + + return {'metric': volumeMetric, 'imperial': volumeImperial}; } // Boilerplate @@ -73,7 +121,16 @@ class WorkoutSession { Map toJson() => _$WorkoutSessionToJson(this); - String get impressionAsString { - return IMPRESSION_MAP[impression]!; + String impressionAsString(BuildContext context) { + if (impression == 1) { + return AppLocalizations.of(context).impressionBad; + } else if (impression == 2) { + return AppLocalizations.of(context).impressionNeutral; + } else if (impression == 3) { + return AppLocalizations.of(context).impressionGood; + } + + _logger.warning('Unknown impression value: $impression'); + return AppLocalizations.of(context).impressionGood; } } diff --git a/lib/models/workouts/session.g.dart b/lib/models/workouts/session.g.dart index ac78029df..bf061fa15 100644 --- a/lib/models/workouts/session.g.dart +++ b/lib/models/workouts/session.g.dart @@ -23,7 +23,9 @@ WorkoutSession _$WorkoutSessionFromJson(Map json) { id: (json['id'] as num?)?.toInt(), dayId: (json['day'] as num?)?.toInt(), routineId: (json['routine'] as num?)?.toInt(), - impression: json['impression'] == null ? 2 : int.parse(json['impression'] as String), + impression: json['impression'] == null + ? DEFAULT_IMPRESSION + : int.parse(json['impression'] as String), notes: json['notes'] as String? ?? '', timeStart: stringToTimeNull(json['time_start'] as String?), timeEnd: stringToTimeNull(json['time_end'] as String?), diff --git a/lib/models/workouts/session_api.dart b/lib/models/workouts/session_api.dart index ca0e2bd3e..5c6cf46df 100644 --- a/lib/models/workouts/session_api.dart +++ b/lib/models/workouts/session_api.dart @@ -44,6 +44,16 @@ class WorkoutSessionApi { return exerciseSet.toList(); } + /// Get total volume of the session for metric and imperial units + /// (i.e. sets that have "repetitions" as units and weight in kg or lbs). + /// Other combinations such as "seconds" are ignored. + Map get volume { + final volumeMetric = logs.fold(0, (sum, log) => sum + log.volume(metric: true)); + final volumeImperial = logs.fold(0, (sum, log) => sum + log.volume(metric: false)); + + return {'metric': volumeMetric, 'imperial': volumeImperial}; + } + // Boilerplate factory WorkoutSessionApi.fromJson(Map json) => _$WorkoutSessionApiFromJson(json); diff --git a/lib/models/workouts/set_config_data.dart b/lib/models/workouts/set_config_data.dart index bdebc47c2..38b8e1520 100644 --- a/lib/models/workouts/set_config_data.dart +++ b/lib/models/workouts/set_config_data.dart @@ -46,55 +46,55 @@ class SetConfigData { String get textReprWithType => '$textRepr${type.typeLabel}'; @JsonKey(required: true, name: 'sets') - late num? nrOfSets; + num? nrOfSets; @JsonKey(required: true, name: 'max_sets') - late num? maxNrOfSets; + num? maxNrOfSets; @JsonKey(required: true, fromJson: stringToNumNull) - late num? weight; + num? weight; @JsonKey(required: true, name: 'max_weight', fromJson: stringToNumNull) - late num? maxWeight; + num? maxWeight; @JsonKey(required: true, name: 'weight_unit') - late int? weightUnitId; + int? weightUnitId; @JsonKey(includeToJson: false, includeFromJson: false) - late WeightUnit? weightUnit; + WeightUnit? weightUnit; @JsonKey(required: true, name: 'weight_rounding', fromJson: stringToNumNull) - late num? weightRounding; + num? weightRounding; @JsonKey(required: true, name: 'repetitions', fromJson: stringToNumNull) - late num? repetitions; + num? repetitions; @JsonKey(required: true, name: 'max_repetitions', fromJson: stringToNumNull) - late num? maxRepetitions; + num? maxRepetitions; @JsonKey(required: true, name: 'repetitions_unit') - late int? repetitionsUnitId; + int? repetitionsUnitId; @JsonKey(includeToJson: false, includeFromJson: false) - late RepetitionUnit? repetitionsUnit; + RepetitionUnit? repetitionsUnit; @JsonKey(required: true, name: 'repetitions_rounding', fromJson: stringToNumNull) - late num? repetitionsRounding; + num? repetitionsRounding; @JsonKey(required: true, fromJson: stringToNumNull) - late num? rir; + num? rir; @JsonKey(required: true, name: 'max_rir', fromJson: stringToNumNull) - late num? maxRir; + num? maxRir; @JsonKey(required: true, fromJson: stringToNumNull) - late num? rpe; + num? rpe; @JsonKey(required: true, name: 'rest', fromJson: stringToNumNull) - late num? restTime; + num? restTime; @JsonKey(required: true, name: 'max_rest', fromJson: stringToNumNull) - late num? maxRestTime; + num? maxRestTime; @JsonKey(required: true) late String comment; @@ -103,20 +103,20 @@ class SetConfigData { required this.exerciseId, required this.slotEntryId, this.type = SlotEntryType.normal, - required this.nrOfSets, + this.nrOfSets, this.maxNrOfSets, - required this.weight, + this.weight, this.maxWeight, this.weightUnitId = WEIGHT_UNIT_KG, this.weightRounding, - required this.repetitions, + this.repetitions, this.maxRepetitions, this.repetitionsUnitId = REP_UNIT_REPETITIONS_ID, this.repetitionsRounding, - required this.rir, + this.rir, this.maxRir, - required this.rpe, - required this.restTime, + this.rpe, + this.restTime, this.maxRestTime, this.comment = '', this.textRepr = '', @@ -135,6 +135,58 @@ class SetConfigData { } } + SetConfigData copyWith({ + int? exerciseId, + int? slotEntryId, + SlotEntryType? type, + String? textRepr, + num? nrOfSets, + num? maxNrOfSets, + num? weight, + num? maxWeight, + int? weightUnitId, + num? weightRounding, + num? repetitions, + num? maxRepetitions, + int? repetitionsUnitId, + num? repetitionsRounding, + num? rir, + num? maxRir, + num? rpe, + num? restTime, + num? maxRestTime, + String? comment, + Exercise? exercise, + WeightUnit? weightUnit, + RepetitionUnit? repetitionsUnit, + }) { + return SetConfigData( + exerciseId: exerciseId ?? this.exerciseId, + slotEntryId: slotEntryId ?? this.slotEntryId, + type: type ?? this.type, + textRepr: textRepr ?? this.textRepr, + nrOfSets: nrOfSets ?? this.nrOfSets, + maxNrOfSets: maxNrOfSets ?? this.maxNrOfSets, + weight: weight ?? this.weight, + maxWeight: maxWeight ?? this.maxWeight, + weightUnitId: weightUnitId ?? this.weightUnitId, + weightRounding: weightRounding ?? this.weightRounding, + repetitions: repetitions ?? this.repetitions, + maxRepetitions: maxRepetitions ?? this.maxRepetitions, + repetitionsUnitId: repetitionsUnitId ?? this.repetitionsUnitId, + repetitionsRounding: repetitionsRounding ?? this.repetitionsRounding, + rir: rir ?? this.rir, + maxRir: maxRir ?? this.maxRir, + rpe: rpe ?? this.rpe, + restTime: restTime ?? this.restTime, + maxRestTime: maxRestTime ?? this.maxRestTime, + comment: comment ?? this.comment, + exercise: exercise ?? this.exercise, + weightUnit: weightUnit ?? this.weightUnit, + repetitionsUnit: repetitionsUnit ?? this.repetitionsUnit, + ); + } + // Boilerplate factory SetConfigData.fromJson(Map json) => _$SetConfigDataFromJson(json); diff --git a/lib/models/workouts/slot_data.dart b/lib/models/workouts/slot_data.dart index cd36464e8..9ef73f356 100644 --- a/lib/models/workouts/slot_data.dart +++ b/lib/models/workouts/slot_data.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -36,8 +36,8 @@ class SlotData { late List setConfigs; SlotData({ - required this.comment, - required this.isSuperset, + this.comment = '', + this.isSuperset = false, this.exerciseIds = const [], this.setConfigs = const [], }); diff --git a/lib/models/workouts/slot_data.g.dart b/lib/models/workouts/slot_data.g.dart index a8d70f146..756717e67 100644 --- a/lib/models/workouts/slot_data.g.dart +++ b/lib/models/workouts/slot_data.g.dart @@ -12,8 +12,8 @@ SlotData _$SlotDataFromJson(Map json) { requiredKeys: const ['comment', 'is_superset', 'exercises', 'sets'], ); return SlotData( - comment: json['comment'] as String, - isSuperset: json['is_superset'] as bool, + comment: json['comment'] as String? ?? '', + isSuperset: json['is_superset'] as bool? ?? false, exerciseIds: (json['exercises'] as List?)?.map((e) => (e as num).toInt()).toList() ?? const [], setConfigs: diff --git a/lib/models/workouts/weight_unit.dart b/lib/models/workouts/weight_unit.dart index 2fab3e0af..460ecb01a 100644 --- a/lib/models/workouts/weight_unit.dart +++ b/lib/models/workouts/weight_unit.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -30,6 +30,11 @@ class WeightUnit { const WeightUnit({required this.id, required this.name}); + @override + String toString() { + return 'WeightUnit(id: $id, name: $name)'; + } + // Boilerplate factory WeightUnit.fromJson(Map json) => _$WeightUnitFromJson(json); Map toJson() => _$WeightUnitToJson(this); diff --git a/lib/providers/auth.dart b/lib/providers/auth.dart index 3f393ceae..a48232f91 100644 --- a/lib/providers/auth.dart +++ b/lib/providers/auth.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -27,7 +27,7 @@ import 'package:http/http.dart' as http; import 'package:logging/logging.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:version/version.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/shared_preferences.dart'; @@ -58,7 +58,7 @@ class AuthProvider with ChangeNotifier { static const SERVER_VERSION_URL = 'version'; static const REGISTRATION_URL = 'register'; static const LOGIN_URL = 'login'; - static const TEST_URL = 'userprofile'; + static const USERPROFILE_URL = 'userprofile'; late http.Client client; @@ -132,7 +132,7 @@ class AuthProvider with ChangeNotifier { ); if (response.statusCode >= 400) { - throw WgerHttpException(response.body); + throw WgerHttpException(response); } return login(username, password, serverUrl, null); @@ -150,7 +150,7 @@ class AuthProvider with ChangeNotifier { // Login using the API token if (apiToken != null && apiToken.isNotEmpty) { final response = await client.get( - makeUri(serverUrl, TEST_URL), + makeUri(serverUrl, USERPROFILE_URL), headers: { HttpHeaders.contentTypeHeader: 'application/json; charset=UTF-8', HttpHeaders.userAgentHeader: getAppNameHeader(), @@ -158,8 +158,8 @@ class AuthProvider with ChangeNotifier { }, ); - if (response.statusCode != 200) { - throw WgerHttpException(response.body); + if (response.statusCode >= 400) { + throw WgerHttpException(response); } token = apiToken; @@ -169,17 +169,18 @@ class AuthProvider with ChangeNotifier { final response = await client.post( makeUri(serverUrl, LOGIN_URL), headers: { - HttpHeaders.contentTypeHeader: 'application/json; charset=UTF-8', + HttpHeaders.contentTypeHeader: 'application/json; charset=utf-8', HttpHeaders.userAgentHeader: getAppNameHeader(), }, body: json.encode({'username': username, 'password': password}), ); - final responseData = json.decode(response.body); if (response.statusCode >= 400) { - throw WgerHttpException(response.body); + throw WgerHttpException(response); } + final responseData = json.decode(response.body); + token = responseData['token']; } @@ -298,7 +299,8 @@ class AuthProvider with ChangeNotifier { out = '/${applicationVersion!.version} ' '(${applicationVersion!.packageName}; ' - 'build: ${applicationVersion!.buildNumber})' + 'build: ${applicationVersion!.buildNumber}; ' + 'platform: ${Platform.operatingSystem})' ' - https://github.com/wger-project'; } return 'wger App$out'; diff --git a/lib/providers/base_provider.dart b/lib/providers/base_provider.dart index 351efe991..2abb48477 100644 --- a/lib/providers/base_provider.dart +++ b/lib/providers/base_provider.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -16,19 +16,26 @@ * along with this program. If not, see . */ +import 'dart:async'; import 'dart:convert'; import 'dart:io'; +import 'dart:math' as math; import 'package:http/http.dart' as http; -import 'package:http/http.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:logging/logging.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/providers/auth.dart'; import 'package:wger/providers/helpers.dart'; +/// default timeout for GET requests +const DEFAULT_TIMEOUT = Duration(seconds: 15); + /// Base provider class. /// /// Provides a couple of comfort functions so we avoid a bit of boilerplate. class WgerBaseProvider { + final _logger = Logger('WgerBaseProvider'); + AuthProvider auth; late http.Client client; @@ -37,7 +44,7 @@ class WgerBaseProvider { this.client = client ?? http.Client(); } - Map getDefaultHeaders({bool includeAuth = false}) { + Map getDefaultHeaders({bool includeAuth = false, String? language}) { final out = { HttpHeaders.contentTypeHeader: 'application/json; charset=UTF-8', HttpHeaders.userAgentHeader: auth.getAppNameHeader(), @@ -47,6 +54,10 @@ class WgerBaseProvider { out[HttpHeaders.authorizationHeader] = 'Token ${auth.token}'; } + if (language != null) { + out[HttpHeaders.acceptLanguageHeader] = language; + } + return out; } @@ -56,31 +67,69 @@ class WgerBaseProvider { } /// Fetch and retrieve the overview list of objects, returns the JSON parsed response - Future fetch(Uri uri) async { - // Future | List> fetch(Uri uri) async { - // Send the request - final response = await client.get( - uri, - headers: getDefaultHeaders(includeAuth: true), - ); + /// with a simple retry mechanism for transient errors. + Future fetch( + Uri uri, { + int maxRetries = 3, + Duration initialDelay = const Duration(milliseconds: 250), + Duration timeout = DEFAULT_TIMEOUT, + String? language, + }) async { + int attempt = 0; + final random = math.Random(); - // Something wrong with our request - if (response.statusCode >= 400) { - throw WgerHttpException(response.body); + Future wait(String reason) async { + final backoff = (initialDelay.inMilliseconds * math.pow(2, attempt - 1)).toInt(); + final jitter = random.nextInt((backoff * 0.25).toInt() + 1); // up to 25% jitter + final delay = backoff + jitter; + _logger.info('Retrying fetch for $uri, attempt $attempt (${delay}ms), reason: $reason'); + + await Future.delayed(Duration(milliseconds: delay)); } - // Process the response - return json.decode(utf8.decode(response.bodyBytes)) as dynamic; + while (true) { + try { + final response = await client + .get(uri, headers: getDefaultHeaders(includeAuth: true, language: language)) + .timeout(timeout); + + if (response.statusCode >= 400) { + // Retry on server errors (5xx); e.g. 502 might be transient + if (response.statusCode >= 500 && attempt < maxRetries) { + attempt++; + await wait('status code ${response.statusCode}'); + continue; + } + throw WgerHttpException(response); + } + + return json.decode(utf8.decode(response.bodyBytes)) as dynamic; + } catch (e) { + final isRetryable = + e is SocketException || e is http.ClientException || e is TimeoutException; + if (isRetryable && attempt < maxRetries) { + attempt++; + await wait(e.toString()); + continue; + } + + rethrow; + } + } } /// Fetch and retrieve the overview list of objects, returns the JSON parsed response - Future> fetchPaginated(Uri uri) async { + Future> fetchPaginated( + Uri uri, { + String? language, + Duration timeout = DEFAULT_TIMEOUT, + }) async { final out = []; var url = uri; var allPagesProcessed = false; while (!allPagesProcessed) { - final data = await fetch(url); + final data = await fetch(url, language: language, timeout: timeout); data['results'].forEach((e) => out.add(e)); @@ -104,7 +153,7 @@ class WgerBaseProvider { // Something wrong with our request if (response.statusCode >= 400) { - throw WgerHttpException(response.body); + throw WgerHttpException(response); } return json.decode(response.body); @@ -120,14 +169,14 @@ class WgerBaseProvider { // Something wrong with our request if (response.statusCode >= 400) { - throw WgerHttpException(response.body); + throw WgerHttpException(response); } return json.decode(response.body); } /// DELETEs an existing object - Future deleteRequest(String url, int id) async { + Future deleteRequest(String url, int id) async { final deleteUrl = makeUrl(url, id: id); final response = await client.delete( @@ -137,7 +186,7 @@ class WgerBaseProvider { // Something wrong with our request if (response.statusCode >= 400) { - throw WgerHttpException(response.body); + throw WgerHttpException(response); } return response; } diff --git a/lib/providers/body_weight.dart b/lib/providers/body_weight.dart index dddb8cec7..cc93f7c35 100644 --- a/lib/providers/body_weight.dart +++ b/lib/providers/body_weight.dart @@ -18,7 +18,7 @@ import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/models/body_weight/weight_entry.dart'; import 'package:wger/providers/base_provider.dart'; @@ -115,7 +115,7 @@ class BodyWeightProvider with ChangeNotifier { if (response.statusCode >= 400) { _entries.insert(existingEntryIndex, existingWeightEntry); notifyListeners(); - throw WgerHttpException(response.body); + throw WgerHttpException(response); } } } diff --git a/lib/providers/exercises.dart b/lib/providers/exercises.dart index 5ab3d70fa..9d1526090 100644 --- a/lib/providers/exercises.dart +++ b/lib/providers/exercises.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -22,9 +22,9 @@ import 'dart:convert'; import 'package:drift/drift.dart'; import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; import 'package:wger/core/locator.dart'; import 'package:wger/database/exercises/exercise_database.dart'; -import 'package:wger/exceptions/no_such_entry_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/shared_preferences.dart'; import 'package:wger/models/exercises/category.dart'; @@ -234,7 +234,12 @@ class ExercisesProvider with ChangeNotifier { Future fetchAndSetCategoriesFromApi() async { _logger.info('Loading exercise categories from API'); - final categories = await baseProvider.fetchPaginated(baseProvider.makeUrl(categoriesUrlPath)); + final categories = await baseProvider.fetchPaginated( + baseProvider.makeUrl( + categoriesUrlPath, + query: {'limit': API_MAX_PAGE_SIZE}, + ), + ); for (final category in categories) { _categories.add(ExerciseCategory.fromJson(category)); } @@ -242,7 +247,12 @@ class ExercisesProvider with ChangeNotifier { Future fetchAndSetMusclesFromApi() async { _logger.info('Loading muscles from API'); - final muscles = await baseProvider.fetchPaginated(baseProvider.makeUrl(musclesUrlPath)); + final muscles = await baseProvider.fetchPaginated( + baseProvider.makeUrl( + musclesUrlPath, + query: {'limit': API_MAX_PAGE_SIZE}, + ), + ); for (final muscle in muscles) { _muscles.add(Muscle.fromJson(muscle)); @@ -251,7 +261,12 @@ class ExercisesProvider with ChangeNotifier { Future fetchAndSetEquipmentsFromApi() async { _logger.info('Loading equipment from API'); - final equipments = await baseProvider.fetchPaginated(baseProvider.makeUrl(equipmentUrlPath)); + final equipments = await baseProvider.fetchPaginated( + baseProvider.makeUrl( + equipmentUrlPath, + query: {'limit': API_MAX_PAGE_SIZE}, + ), + ); for (final equipment in equipments) { _equipment.add(Equipment.fromJson(equipment)); @@ -261,7 +276,12 @@ class ExercisesProvider with ChangeNotifier { Future fetchAndSetLanguagesFromApi() async { _logger.info('Loading languages from API'); - final languageData = await baseProvider.fetchPaginated(baseProvider.makeUrl(languageUrlPath)); + final languageData = await baseProvider.fetchPaginated( + baseProvider.makeUrl( + languageUrlPath, + query: {'limit': API_MAX_PAGE_SIZE}, + ), + ); for (final language in languageData) { _languages.add(Language.fromJson(language)); @@ -272,6 +292,7 @@ class ExercisesProvider with ChangeNotifier { _logger.info('Loading all exercises from API'); final exerciseData = await baseProvider.fetchPaginated( baseProvider.makeUrl(exerciseUrlPath, query: {'limit': API_MAX_PAGE_SIZE}), + timeout: const Duration(seconds: 25), // just in case ); final exerciseIds = exerciseData.map((e) => e['id'] as int).toSet(); @@ -342,8 +363,13 @@ class ExercisesProvider with ChangeNotifier { 'Re-fetching exercise $exerciseId from API since last fetch was ${exerciseDb.lastFetched}', ); + // Note: we set a very long timeout here since the exercise api endpoint might + // take a long time to load if the exercise data has not been cached yet. A test + // on a raspberry pi showed that this can take up to 45 seconds, so one minute + // should be safe. final apiData = await baseProvider.fetch( baseProvider.makeUrl(exerciseInfoUrlPath, id: exerciseId), + timeout: const Duration(seconds: 120), ); final exerciseApiData = ExerciseApiData.fromJson(apiData); @@ -399,7 +425,7 @@ class ExercisesProvider with ChangeNotifier { return exercise; } - Future initCacheTimesLocalPrefs({forceInit = false}) async { + Future initCacheTimesLocalPrefs({bool forceInit = false}) async { final prefs = PreferenceHelper.asyncPref; final initDate = DateTime(2023, 1, 1).toIso8601String(); diff --git a/lib/providers/gym_log_state.dart b/lib/providers/gym_log_state.dart new file mode 100644 index 000000000..5cb020e2a --- /dev/null +++ b/lib/providers/gym_log_state.dart @@ -0,0 +1,58 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:clock/clock.dart'; +import 'package:logging/logging.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:wger/models/workouts/log.dart'; +import 'package:wger/models/workouts/repetition_unit.dart'; +import 'package:wger/models/workouts/weight_unit.dart'; + +part 'gym_log_state.g.dart'; + +@Riverpod(keepAlive: true) +class GymLogNotifier extends _$GymLogNotifier { + final _logger = Logger('GymLogNotifier'); + + @override + Log? build() { + _logger.finer('Initializing GymLogNotifier'); + return null; + } + + void setLog(Log log) { + final newLog = log.copyWith(id: null, date: clock.now()); + state = newLog; + } + + void setWeight(num weight) { + state = state?.copyWith(weight: weight); + } + + void setRepetitions(num repetitions) { + state = state?.copyWith(repetitions: repetitions); + } + + void setRepetitionUnit(RepetitionUnit repetitionUnit) { + state = state?.copyWith(repetitionsUnitObj: repetitionUnit); + } + + void setWeightUnit(WeightUnit weightUnit) { + state = state?.copyWith(weightUnitObj: weightUnit); + } +} diff --git a/lib/providers/gym_log_state.g.dart b/lib/providers/gym_log_state.g.dart new file mode 100644 index 000000000..ffedf6402 --- /dev/null +++ b/lib/providers/gym_log_state.g.dart @@ -0,0 +1,55 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'gym_log_state.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning + +@ProviderFor(GymLogNotifier) +final gymLogProvider = GymLogNotifierProvider._(); + +final class GymLogNotifierProvider extends $NotifierProvider { + GymLogNotifierProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'gymLogProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$gymLogNotifierHash(); + + @$internal + @override + GymLogNotifier create() => GymLogNotifier(); + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(Log? value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$gymLogNotifierHash() => r'5e166c827248e02d55279c7022a4c5a670e9b3dc'; + +abstract class _$GymLogNotifier extends $Notifier { + Log? build(); + @$mustCallSuper + @override + void runBuild() { + final ref = this.ref as $Ref; + final element = + ref.element as $ClassProviderElement, Log?, Object?, Object?>; + element.handleCreate(ref, build); + } +} diff --git a/lib/providers/gym_state.dart b/lib/providers/gym_state.dart index 659cc5250..882df3664 100644 --- a/lib/providers/gym_state.dart +++ b/lib/providers/gym_state.dart @@ -1,101 +1,739 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import 'package:clock/clock.dart'; +import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logging/logging.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:wger/helpers/shared_preferences.dart'; +import 'package:wger/helpers/uuid.dart'; import 'package:wger/models/exercises/exercise.dart'; +import 'package:wger/models/workouts/day_data.dart'; +import 'package:wger/models/workouts/log.dart'; +import 'package:wger/models/workouts/routine.dart'; +import 'package:wger/models/workouts/set_config_data.dart'; +import 'package:wger/providers/gym_log_state.dart'; + +part 'gym_state.g.dart'; const DEFAULT_DURATION = Duration(hours: 5); -final StateNotifierProvider gymStateProvider = - StateNotifierProvider((ref) { - return GymStateNotifier(); - }); +const PREFS_SHOW_EXERCISES = 'showExercisePrefs'; +const PREFS_SHOW_TIMER = 'showTimerPrefs'; +const PREFS_ALERT_COUNTDOWN = 'alertCountdownPrefs'; +const PREFS_USE_COUNTDOWN_BETWEEN_SETS = 'useCountdownBetweenSetsPrefs'; +const PREFS_COUNTDOWN_DURATION = 'countdownDurationSecondsPrefs'; -class GymState { - final Map exercisePages; - final bool showExercisePages; - final int currentPage; - final int? dayId; - late TimeOfDay startTime; - late DateTime validUntil; +/// In seconds +const DEFAULT_COUNTDOWN_DURATION = 180; +const MIN_COUNTDOWN_DURATION = 10; +const MAX_COUNTDOWN_DURATION = 1800; - GymState({ - this.exercisePages = const {}, - this.showExercisePages = true, - this.currentPage = 0, - this.dayId, - DateTime? validUntil, - TimeOfDay? startTime, +enum PageType { + start, + set, + session, + workoutSummary, +} + +enum SlotPageType { + exerciseOverview, + log, + timer, +} + +class PageEntry { + final String uuid; + + final PageType type; + + /// Absolute page index + final int pageIndex; + + final List slotPages; + + PageEntry({ + required this.type, + required this.pageIndex, + this.slotPages = const [], + String? uuid, + }) : uuid = uuid ?? uuidV4(), + assert( + slotPages.isEmpty || type == PageType.set, + 'SlotEntries can only be set for set pages', + ); + + PageEntry copyWith({ + String? uuid, + PageType? type, + int? pageIndex, + List? slotPages, }) { - this.validUntil = validUntil ?? DateTime.now().add(DEFAULT_DURATION); - this.startTime = startTime ?? TimeOfDay.fromDateTime(clock.now()); + return PageEntry( + uuid: uuid ?? this.uuid, + type: type ?? this.type, + pageIndex: pageIndex ?? this.pageIndex, + slotPages: slotPages ?? this.slotPages, + ); } - GymState copyWith({ - Map? exercisePages, - bool? showExercisePages, - int? currentPage, + List get exercises { + final exerciseSet = {}; + for (final entry in slotPages) { + exerciseSet.add(entry.setConfigData!.exercise); + } + return exerciseSet.toList(); + } + + // Whether all sub-pages (e.g. log pages) are marked as done. + bool get allLogsDone => + slotPages.where((entry) => entry.type == SlotPageType.log).every((entry) => entry.logDone); + + @override + String toString() => 'PageEntry(type: $type, pageIndex: $pageIndex)'; +} + +class SlotPageEntry { + final String uuid; + + final SlotPageType type; + + /// index within a set for overview (e.g. "1 of 5 sets") + final int setIndex; + + /// Absolute page index + final int pageIndex; + + /// Whether the log page has been marked as done + final bool logDone; + + /// The associated SetConfigData + final SetConfigData? setConfigData; + + SlotPageEntry({ + required this.type, + required this.pageIndex, + required this.setIndex, + this.setConfigData, + this.logDone = false, + String? uuid, + }) : assert( + type != SlotPageType.log || setConfigData != null, + 'You need to set setConfigData for SlotPageType.log', + ), + uuid = uuid ?? uuidV4(); + + SlotPageEntry copyWith({ + String? uuid, + SlotPageType? type, + int? exerciseId, + int? setIndex, + int? pageIndex, + SetConfigData? setConfigData, + bool? logDone, + }) { + return SlotPageEntry( + uuid: uuid ?? this.uuid, + type: type ?? this.type, + setIndex: setIndex ?? this.setIndex, + pageIndex: pageIndex ?? this.pageIndex, + setConfigData: setConfigData ?? this.setConfigData, + logDone: logDone ?? this.logDone, + ); + } + + @override + String toString() => + 'SlotPageEntry(' + 'uuid: $uuid, ' + 'type: $type, ' + 'setIndex: $setIndex, ' + 'pageIndex: $pageIndex, ' + 'logDone: $logDone' + ')'; +} + +class GymModeState { + final _logger = Logger('GymModeState'); + + // Navigation data + final bool isInitialized; + + final List pages; + final int currentPage; + + final TimeOfDay startTime; + final DateTime validUntil; + + // User settings + final bool showExercisePages; + final bool showTimerPages; + final bool alertOnCountdownEnd; + final bool useCountdownBetweenSets; + final Duration countdownDuration; + + // Routine data + late final int dayId; + late final int iteration; + late final Routine routine; + + GymModeState({ + this.isInitialized = false, + this.pages = const [], + this.currentPage = 0, + + this.showExercisePages = true, + this.showTimerPages = true, + this.alertOnCountdownEnd = true, + this.useCountdownBetweenSets = false, + this.countdownDuration = const Duration(seconds: DEFAULT_COUNTDOWN_DURATION), + int? dayId, + int? iteration, + Routine? routine, + DateTime? validUntil, TimeOfDay? startTime, + }) : validUntil = validUntil ?? clock.now().add(DEFAULT_DURATION), + startTime = startTime ?? TimeOfDay.fromDateTime(clock.now()) { + if (dayId != null) { + this.dayId = dayId; + } + + if (iteration != null) { + this.iteration = iteration; + } + + if (routine != null) { + this.routine = routine; + } + } + + GymModeState copyWith({ + // Navigation data + bool? isInitialized, + List? pages, + int? currentPage, + + // Routine data + int? dayId, + int? iteration, + DateTime? validUntil, + TimeOfDay? startTime, + Routine? routine, + + // User settings + bool? showExercisePages, + bool? showTimerPages, + bool? alertOnCountdownEnd, + bool? useCountdownBetweenSets, + int? countdownDuration, }) { - return GymState( - exercisePages: exercisePages ?? this.exercisePages, - showExercisePages: showExercisePages ?? this.showExercisePages, + return GymModeState( + isInitialized: isInitialized ?? this.isInitialized, + pages: pages ?? this.pages, currentPage: currentPage ?? this.currentPage, + dayId: dayId ?? this.dayId, - validUntil: validUntil ?? this.validUntil.add(DEFAULT_DURATION), + iteration: iteration ?? this.iteration, + validUntil: validUntil ?? this.validUntil, startTime: startTime ?? this.startTime, + routine: routine ?? this.routine, + + showExercisePages: showExercisePages ?? this.showExercisePages, + showTimerPages: showTimerPages ?? this.showTimerPages, + alertOnCountdownEnd: alertOnCountdownEnd ?? this.alertOnCountdownEnd, + useCountdownBetweenSets: useCountdownBetweenSets ?? this.useCountdownBetweenSets, + countdownDuration: Duration( + seconds: countdownDuration ?? this.countdownDuration.inSeconds, + ), ); } + int get totalPages { + // Main pages (start, session, etc.) + var count = pages.where((p) => p.type != PageType.set).length; + + // Add all other sub pages (sets, timer, etc.) + count += pages.fold(0, (prev, e) => prev + e.slotPages.length); + + return count; + } + + DayData get dayDataGym => + routine.dayDataGym.where((e) => e.iteration == iteration && e.day?.id == dayId).first; + + DayData get dayDataDisplay => routine.dayData.firstWhere( + (e) => e.iteration == iteration && e.day?.id == dayId, + ); + + PageEntry? getPageByIndex([int? pageIndex]) { + final index = pageIndex ?? currentPage; + + for (final page in pages) { + for (final slotPage in page.slotPages) { + if (slotPage.pageIndex == index) { + return page; + } + } + } + return null; + } + + SlotPageEntry? getSlotEntryPageByIndex([int? pageIndex]) { + final index = pageIndex ?? currentPage; + + for (final slotPage in pages.expand((p) => p.slotPages)) { + if (slotPage.pageIndex == index) { + return slotPage; + } + } + return null; + } + + SlotPageEntry? getSlotPageByUUID(String uuid) { + for (final slotPage in pages.expand((p) => p.slotPages)) { + if (slotPage.uuid == uuid) { + return slotPage; + } + } + return null; + } + + double get ratioCompleted { + if (totalPages == 0) { + return 0.0; + } + + // Note: add 1 to currentPage to make it 1-based + return (currentPage + 1) / totalPages; + } + @override String toString() { return 'GymState(' 'currentPage: $currentPage, ' - 'showExercisePages: $showExercisePages, ' - 'exercisePages: ${exercisePages.length} exercises, ' - 'dayId: $dayId, ' 'validUntil: $validUntil ' 'startTime: $startTime, ' + 'showExercisePages: $showExercisePages, ' + 'showTimerPages: $showTimerPages, ' ')'; } } -class GymStateNotifier extends StateNotifier { +@Riverpod(keepAlive: true) +class GymStateNotifier extends _$GymStateNotifier { final _logger = Logger('GymStateNotifier'); - GymStateNotifier() : super(GymState()); + @override + GymModeState build() { + _logger.finer('Initializing GymStateNotifier'); + return GymModeState(); + } + + Future loadPrefs() async { + final prefs = PreferenceHelper.asyncPref; + + final showExercise = await prefs.getBool(PREFS_SHOW_EXERCISES); + if (showExercise != null && showExercise != state.showExercisePages) { + state = state.copyWith(showExercisePages: showExercise); + } + + final showTimer = await prefs.getBool(PREFS_SHOW_TIMER); + if (showTimer != null && showTimer != state.showTimerPages) { + state = state.copyWith(showTimerPages: showTimer); + } + + final alertOnCountdownEnd = await prefs.getBool(PREFS_ALERT_COUNTDOWN); + if (alertOnCountdownEnd != null && alertOnCountdownEnd != state.alertOnCountdownEnd) { + state = state.copyWith(alertOnCountdownEnd: alertOnCountdownEnd); + } + + final useCountdownBetweenSets = await prefs.getBool(PREFS_USE_COUNTDOWN_BETWEEN_SETS); + if (useCountdownBetweenSets != null && + useCountdownBetweenSets != state.useCountdownBetweenSets) { + state = state.copyWith(useCountdownBetweenSets: useCountdownBetweenSets); + } + + final defaultCountdownDurationSeconds = await prefs.getInt(PREFS_COUNTDOWN_DURATION); + if (defaultCountdownDurationSeconds != null && + defaultCountdownDurationSeconds != state.countdownDuration.inSeconds) { + state = state.copyWith( + countdownDuration: defaultCountdownDurationSeconds, + ); + } + + _logger.finer( + 'Loaded saved preferences: ' + 'showExercise=$showExercise ' + 'showTimer=$showTimer ' + 'alertOnCountdownEnd=$alertOnCountdownEnd ' + 'useCountdownBetweenSets=$useCountdownBetweenSets ' + 'defaultCountdownDurationSeconds=$defaultCountdownDurationSeconds', + ); + } + + Future _savePrefs() async { + final prefs = PreferenceHelper.asyncPref; + await prefs.setBool(PREFS_SHOW_EXERCISES, state.showExercisePages); + await prefs.setBool(PREFS_SHOW_TIMER, state.showTimerPages); + await prefs.setBool(PREFS_ALERT_COUNTDOWN, state.alertOnCountdownEnd); + await prefs.setBool(PREFS_USE_COUNTDOWN_BETWEEN_SETS, state.useCountdownBetweenSets); + await prefs.setInt( + PREFS_COUNTDOWN_DURATION, + state.countdownDuration.inSeconds, + ); + _logger.finer( + 'Saved preferences: ' + 'showExercise=${state.showExercisePages} ' + 'showTimer=${state.showTimerPages} ' + 'alertOnCountdownEnd=${state.alertOnCountdownEnd} ' + 'useCountdownBetweenSets=${state.useCountdownBetweenSets} ' + 'defaultCountdownDuration=${state.countdownDuration.inSeconds}', + ); + } + + /// Calculates the page entries + void calculatePages() { + var pageIndex = 0; + + final List pages = [ + // Start page + PageEntry(type: PageType.start, pageIndex: pageIndex), + ]; + + pageIndex++; + for (final slotData in state.dayDataGym.slots) { + final slotPageIndex = pageIndex; + final slotEntries = []; + int setIndex = 0; + + // exercise overview page + if (state.showExercisePages) { + // Add one overview page per exercise in the slot (e.g. for supersets) + for (final exerciseId in slotData.exerciseIds) { + final setConfig = slotData.setConfigs.firstWhereOrNull((c) => c.exerciseId == exerciseId); + if (setConfig == null) { + _logger.warning('Exercise with ID $exerciseId not found in slotData!!'); + continue; + } + + slotEntries.add( + SlotPageEntry( + type: SlotPageType.exerciseOverview, + setIndex: setIndex, + pageIndex: pageIndex, + setConfigData: setConfig, + ), + ); + pageIndex++; + } + } + + for (final config in slotData.setConfigs) { + // Log page + slotEntries.add( + SlotPageEntry( + type: SlotPageType.log, + setIndex: setIndex, + pageIndex: pageIndex, + setConfigData: config, + ), + ); + pageIndex++; + setIndex++; + + // Timer page + if (state.showTimerPages) { + slotEntries.add( + SlotPageEntry( + type: SlotPageType.timer, + setIndex: setIndex, + pageIndex: pageIndex, + setConfigData: config, + ), + ); + pageIndex++; + } + } + + pages.add( + PageEntry( + type: PageType.set, + pageIndex: slotPageIndex, + slotPages: slotEntries, + ), + ); + } + + // Session and summary page + pages.add(PageEntry(type: PageType.session, pageIndex: pageIndex)); + pages.add(PageEntry(type: PageType.workoutSummary, pageIndex: pageIndex + 1)); + + state = state.copyWith(pages: pages); + // print(readPageStructure()); + _logger.finer('Initialized ${state.pages.length} pages'); + } + + // Recalculates the indices of all pages + void recalculateIndices() { + var pageIndex = 0; + final updatedPages = []; + + for (final page in state.pages) { + final slotPageIndex = pageIndex; + var setIndex = 0; + final updatedSlotPages = []; + + for (final slotPage in page.slotPages) { + updatedSlotPages.add( + slotPage.copyWith( + pageIndex: pageIndex, + setIndex: setIndex, + ), + ); + setIndex++; + pageIndex++; + } + + if (page.type != PageType.set) { + pageIndex++; + } + + updatedPages.add( + page.copyWith( + pageIndex: slotPageIndex, + slotPages: updatedSlotPages, + ), + ); + } + + state = state.copyWith(pages: updatedPages); + // _logger.fine(readPageStructure()); + _logger.fine('Recalculated page indices'); + } + + /// Reads the current page structure for debugging purposes + String readPageStructure() { + final List out = []; + out.add('GymModeState structure:'); + for (final page in state.pages) { + out.add('Page ${page.pageIndex}: ${page.type}'); + for (final slotPage in page.slotPages) { + out.add( + ' SlotPage ${slotPage.pageIndex.toString().padLeft(2, ' ')} (set index ${slotPage.setIndex}): ${slotPage.type}', + ); + } + } + + return out.join('\n'); + } + + int initData(Routine routine, int dayId, int iteration) { + final validUntil = state.validUntil; + final currentPage = state.currentPage; + + final shouldReset = + (!state.isInitialized || state.isInitialized && dayId != state.dayId) || + validUntil.isBefore(DateTime.now()); + if (shouldReset) { + _logger.fine('Day ID mismatch or expired validUntil date. Resetting to page 0.'); + } + final initialPage = shouldReset ? 0 : currentPage; + + // set dayId and initial page + state = state.copyWith( + isInitialized: true, + dayId: dayId, + routine: routine, + iteration: iteration, + currentPage: initialPage, + ); + + // Calculate the pages. + // Note that this is only done if we need to reset, otherwise we keep the + // existing state like the exercises that have already been done + if (shouldReset) { + calculatePages(); + } + + _logger.fine('Initialized GymModeState, initialPage=$initialPage'); + return initialPage; + } void setCurrentPage(int page) { - // _logger.fine('Setting page from ${state.currentPage} to $page'); state = state.copyWith(currentPage: page); + + // Ensure that there is a log entry for the current slot entry + final slotEntryPage = state.getSlotEntryPageByIndex(); + if (slotEntryPage == null || slotEntryPage.setConfigData == null) { + return; + } + + final log = Log.fromSetConfigData(slotEntryPage.setConfigData!); + log.routineId = state.routine.id!; + log.iteration = state.iteration; + ref.read(gymLogProvider.notifier).setLog(log); } - void toggleExercisePages() { - state = state.copyWith(showExercisePages: !state.showExercisePages); + void setShowExercisePages(bool value) { + state = state.copyWith(showExercisePages: value); + calculatePages(); + _savePrefs(); } - void setDayId(int dayId) { - // _logger.fine('Setting day id from ${state.dayId} to $dayId'); - state = state.copyWith(dayId: dayId); + void setShowTimerPages(bool value) { + state = state.copyWith(showTimerPages: value); + calculatePages(); + _savePrefs(); } - void setExercisePages(Map exercisePages) { - // _logger.fine('Setting exercise pages - ${exercisePages.length} exercises'); - state = state.copyWith(exercisePages: exercisePages); - // _logger.fine( - // 'Exercise pages set - ${exercisePages.entries.map((e) => '${e.key.id}: ${e.value}').join(', ')}'); + void setAlertOnCountdownEnd(bool value) { + state = state.copyWith(alertOnCountdownEnd: value); + _savePrefs(); + } + + void setUseCountdownBetweenSets(bool value) { + state = state.copyWith(useCountdownBetweenSets: value); + _savePrefs(); + } + + void setCountdownDuration(int duration) { + state = state.copyWith(countdownDuration: duration); + _savePrefs(); + } + + void markSlotPageAsDone(String uuid, {required bool isDone}) { + final slotPage = state.getSlotPageByUUID(uuid); + if (slotPage == null) { + _logger.warning('No slot page found for UUID $uuid'); + return; + } + + final updatedSlotPage = slotPage.copyWith(logDone: isDone); + + final updatedPages = state.pages.map((page) { + if (page.type != PageType.set) { + return page; + } + + final updatedSlotPages = page.slotPages.map((sp) { + if (sp.uuid == uuid) { + return updatedSlotPage; + } + return sp; + }).toList(); + + return page.copyWith(slotPages: updatedSlotPages); + }).toList(); + + state = state.copyWith(pages: updatedPages); + _logger.fine('Set logDone=$isDone for slot page UUID $uuid'); + } + + void replaceExercises( + String pageEntryUUID, { + required int originalExerciseId, + required Exercise newExercise, + }) { + final updatedPages = state.pages.map((page) { + if (page.type != PageType.set) { + return page; + } + + if (page.uuid != pageEntryUUID) { + return page; + } + + final updatedSlotPages = page.slotPages.map((slotPage) { + if (slotPage.setConfigData != null && + slotPage.setConfigData!.exercise.id == originalExerciseId) { + final updatedSetConfigData = slotPage.setConfigData!.copyWith( + exerciseId: newExercise.id, + exercise: newExercise, + ); + return slotPage.copyWith(setConfigData: updatedSetConfigData); + } + return slotPage; + }).toList(); + + return page.copyWith(slotPages: updatedSlotPages); + }).toList(); + + // TODO: this should not be done in-place! + state.routine.replaceExercise(originalExerciseId, newExercise); + state = state.copyWith( + pages: updatedPages, + ); + _logger.fine('Replaced exercise $originalExerciseId with ${newExercise.id}'); + } + + void addExerciseAfterPage( + String pageEntryUUID, { + required Exercise newExercise, + }) { + final List pages = []; + for (final page in state.pages) { + pages.add(page); + + if (page.uuid == pageEntryUUID) { + final setConfigData = page.slotPages.first.setConfigData!; + + final List newSlotPages = []; + for (var i = 1; i <= 4; i++) { + newSlotPages.add( + SlotPageEntry( + type: SlotPageType.log, + pageIndex: 1, + setIndex: 0, + setConfigData: SetConfigData( + textRepr: '-/-', + exerciseId: newExercise.id!, + exercise: newExercise, + slotEntryId: setConfigData.slotEntryId, + ), + ), + ); + } + + final newPage = PageEntry(type: PageType.set, pageIndex: 1, slotPages: newSlotPages); + + pages.add(newPage); + } + } + + state = state.copyWith( + pages: pages, + ); + + recalculateIndices(); } void clear() { _logger.fine('Clearing state'); state = state.copyWith( - exercisePages: {}, + isInitialized: false, + pages: [], currentPage: 0, - dayId: null, - validUntil: DateTime.now().add(DEFAULT_DURATION), - startTime: TimeOfDay.now(), + + validUntil: clock.now().add(DEFAULT_DURATION), + startTime: null, ); } } diff --git a/lib/providers/gym_state.g.dart b/lib/providers/gym_state.g.dart new file mode 100644 index 000000000..4239a5496 --- /dev/null +++ b/lib/providers/gym_state.g.dart @@ -0,0 +1,61 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'gym_state.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning + +@ProviderFor(GymStateNotifier) +final gymStateProvider = GymStateNotifierProvider._(); + +final class GymStateNotifierProvider extends $NotifierProvider { + GymStateNotifierProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'gymStateProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$gymStateNotifierHash(); + + @$internal + @override + GymStateNotifier create() => GymStateNotifier(); + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(GymModeState value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$gymStateNotifierHash() => r'3a0bb78e9f7e682ba93a40a73b170126b5eb5ca9'; + +abstract class _$GymStateNotifier extends $Notifier { + GymModeState build(); + @$mustCallSuper + @override + void runBuild() { + final ref = this.ref as $Ref; + final element = + ref.element + as $ClassProviderElement< + AnyNotifier, + GymModeState, + Object?, + Object? + >; + element.handleCreate(ref, build); + } +} diff --git a/lib/providers/measurement.dart b/lib/providers/measurement.dart index c961e9383..6c0292f0d 100644 --- a/lib/providers/measurement.dart +++ b/lib/providers/measurement.dart @@ -18,8 +18,8 @@ import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; -import 'package:wger/exceptions/http_exception.dart'; -import 'package:wger/exceptions/no_such_entry_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/models/measurements/measurement_category.dart'; import 'package:wger/models/measurements/measurement_entry.dart'; diff --git a/lib/providers/nutrition.dart b/lib/providers/nutrition.dart index a86df645b..70ff14124 100644 --- a/lib/providers/nutrition.dart +++ b/lib/providers/nutrition.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -22,6 +22,7 @@ import 'dart:convert'; import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/core/locator.dart'; import 'package:wger/database/ingredients/ingredients_database.dart'; import 'package:wger/helpers/consts.dart'; @@ -185,11 +186,27 @@ TODO implement: } Future editPlan(NutritionalPlan plan) async { - // TODO + await baseProvider.patch( + plan.toJson(), + baseProvider.makeUrl(_nutritionalPlansPath, id: plan.id), + ); + notifyListeners(); } - Future deletePlan(String id) async { - // TODO + Future deletePlan(int id) async { + final existingPlanIndex = _plans.indexWhere((element) => element.id == id); + final existingPlan = _plans[existingPlanIndex]; + _plans.removeAt(existingPlanIndex); + notifyListeners(); + + final response = await baseProvider.deleteRequest(_nutritionalPlansPath, id); + + if (response.statusCode >= 400) { + _plans.insert(existingPlanIndex, existingPlan); + notifyListeners(); + throw WgerHttpException(response); + } + //existingPlan = null; } /// Adds a meal to a plan @@ -223,7 +240,6 @@ TODO implement: /// Deletes a meal Future deleteMeal(Meal meal) async { - /* // Get the meal final plan = findById(meal.planId); final mealIndex = plan.meals.indexWhere((e) => e.id == meal.id); @@ -236,10 +252,8 @@ TODO implement: if (response.statusCode >= 400) { plan.meals.insert(mealIndex, existingMeal); notifyListeners(); - throw WgerHttpException(response.body); + throw WgerHttpException(response); } - */ - return; } /// Adds a meal item to a meal @@ -256,7 +270,6 @@ TODO implement: /// Deletes a meal Future deleteMealItem(MealItem mealItem) async { - /* // Get the meal final meal = findMealById(mealItem.mealId)!; final mealItemIndex = meal.mealItems.indexWhere((e) => e.id == mealItem.id); @@ -269,9 +282,8 @@ TODO implement: if (response.statusCode >= 400) { meal.mealItems.insert(mealItemIndex, existingMealItem); notifyListeners(); - throw WgerHttpException(response.body); + throw WgerHttpException(response); } - */ } Future clearIngredientCache() async { @@ -279,6 +291,37 @@ TODO implement: await database.deleteEverything(); } + /// Saves an ingredient to the cache + Future cacheIngredient(Ingredient ingredient, {IngredientDatabase? database}) async { + database ??= this.database; + + if (!ingredients.any((e) => e.id == ingredient.id)) { + ingredients.add(ingredient); + } + + final ingredientDb = await (database.select( + database.ingredients, + )..where((e) => e.id.equals(ingredient.id))).getSingleOrNull(); + + if (ingredientDb == null) { + final data = ingredient.toJson(); + try { + await database + .into(database.ingredients) + .insert( + IngredientsCompanion.insert( + id: ingredient.id, + data: jsonEncode(data), + lastFetched: DateTime.now(), + ), + ); + _logger.finer("Saved ingredient '${ingredient.name}' to db cache"); + } catch (e) { + _logger.finer("Error caching ingredient '${ingredient.name}': $e"); + } + } + } + /// Fetch and return an ingredient /// /// If the ingredient is not known locally, it is fetched from the server @@ -306,22 +349,14 @@ TODO implement: (database.delete(database.ingredients)..where((i) => i.id.equals(ingredientId))).go(); } } else { + _logger.info("Fetching ingredient ID $ingredientId from server"); final data = await baseProvider.fetch( baseProvider.makeUrl(_ingredientInfoPath, id: ingredientId), ); ingredient = Ingredient.fromJson(data); - ingredients.add(ingredient); - database - .into(database.ingredients) - .insert( - IngredientsCompanion.insert( - id: ingredientId, - data: jsonEncode(data), - lastFetched: DateTime.now(), - ), - ); - _logger.finer("Saved ingredient '${ingredient.name}' to db cache"); + // Cache the ingredient + await cacheIngredient(ingredient, database: database); } } @@ -353,6 +388,7 @@ TODO implement: } // Send the request + _logger.info('Fetching ingredients from server'); final response = await baseProvider.fetch( baseProvider.makeUrl( _ingredientInfoPath, @@ -362,6 +398,7 @@ TODO implement: 'limit': API_RESULTS_PAGE_SIZE, }, ), + timeout: const Duration(seconds: 20), ); return (response['results'] as List) @@ -383,6 +420,7 @@ TODO implement: if (data['count'] == 0) { return null; } + // TODO we should probably add it to ingredient cache. return Ingredient.fromJson(data['results'][0]); } diff --git a/lib/providers/plate_weights.dart b/lib/providers/plate_weights.dart index 55a6e20b4..493bad04c 100644 --- a/lib/providers/plate_weights.dart +++ b/lib/providers/plate_weights.dart @@ -16,10 +16,9 @@ const DEFAULT_BAR_WEIGHT_LB = 45; const PREFS_KEY_PLATES = 'selectedPlates'; -final plateCalculatorProvider = - StateNotifierProvider((ref) { - return PlateCalculatorNotifier(); - }); +final plateCalculatorProvider = NotifierProvider( + PlateCalculatorNotifier.new, +); class PlateCalculatorState { final _logger = Logger('PlateWeightsState'); @@ -135,14 +134,19 @@ class PlateCalculatorState { } } -class PlateCalculatorNotifier extends StateNotifier { +class PlateCalculatorNotifier extends Notifier { final _logger = Logger('PlateCalculatorNotifier'); late SharedPreferencesAsync prefs; - PlateCalculatorNotifier({SharedPreferencesAsync? prefs}) : super(PlateCalculatorState()) { + PlateCalculatorNotifier({SharedPreferencesAsync? prefs}) : super() { this.prefs = prefs ?? PreferenceHelper.asyncPref; + } + + @override + PlateCalculatorState build() { _readDataFromSharedPrefs(); + return PlateCalculatorState(); } Future saveToSharedPrefs() async { diff --git a/lib/providers/routines.dart b/lib/providers/routines.dart index ec8e53b90..692c36ceb 100644 --- a/lib/providers/routines.dart +++ b/lib/providers/routines.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -20,7 +20,7 @@ import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:logging/logging.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/shared_preferences.dart'; import 'package:wger/models/exercises/exercise.dart'; @@ -374,7 +374,7 @@ class RoutinesProvider with ChangeNotifier { if (response.statusCode >= 400) { _routines.insert(routineIndex, routine); notifyListeners(); - throw WgerHttpException(response.body); + throw WgerHttpException(response); } } @@ -668,7 +668,7 @@ class RoutinesProvider with ChangeNotifier { final newLog = Log.fromJson(data); newLog.weightUnit = _weightUnits.firstWhere((e) => e.id == log.weightUnitId); - newLog.repetitionUnit = _repetitionUnits.firstWhere((e) => e.id == log.weightUnitId); + newLog.repetitionUnit = _repetitionUnits.firstWhere((e) => e.id == log.repetitionsUnitId); newLog.exerciseBase = (await _exerciseProvider.fetchAndSetExercise(log.exerciseId))!; final plan = findById(newLog.routineId); diff --git a/lib/providers/trophies.dart b/lib/providers/trophies.dart new file mode 100644 index 000000000..19289af58 --- /dev/null +++ b/lib/providers/trophies.dart @@ -0,0 +1,179 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:logging/logging.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/models/trophies/trophy.dart'; +import 'package:wger/models/trophies/user_trophy.dart'; +import 'package:wger/models/trophies/user_trophy_progression.dart'; +import 'package:wger/providers/wger_base_riverpod.dart'; + +import 'base_provider.dart'; + +part 'trophies.g.dart'; + +class TrophyState { + final _logger = Logger('TrophyState'); + + final List trophies; + final List userTrophies; + final List trophyProgression; + + TrophyState({ + this.trophies = const [], + this.userTrophies = const [], + this.trophyProgression = const [], + }); + + TrophyState copyWith({ + List? trophies, + List? userTrophies, + List? trophyProgression, + }) { + return TrophyState( + trophies: trophies ?? this.trophies, + userTrophies: userTrophies ?? this.userTrophies, + trophyProgression: trophyProgression ?? this.trophyProgression, + ); + } + + List get prTrophies => + userTrophies.where((t) => t.trophy.type == TrophyType.pr).toList(); + + List get nonPrTrophies => + userTrophies.where((t) => t.trophy.type != TrophyType.pr).toList(); +} + +class TrophyRepository { + final _logger = Logger('TrophyRepository'); + + final WgerBaseProvider base; + final trophiesPath = 'trophy'; + final userTrophiesPath = 'user-trophy'; + final userTrophyProgressionPath = 'trophy/progress'; + + TrophyRepository(this.base); + + Future> fetchTrophies({String? language}) async { + try { + final url = base.makeUrl(trophiesPath, query: {'limit': API_MAX_PAGE_SIZE}); + final trophyData = await base.fetchPaginated(url, language: language); + return trophyData.map((e) => Trophy.fromJson(e)).toList(); + } catch (e, stk) { + _logger.warning('Error fetching trophies:', e, stk); + return []; + } + } + + Future> fetchUserTrophies({ + Map? filterQuery, + String? language, + }) async { + final query = {'limit': API_MAX_PAGE_SIZE}; + if (filterQuery != null) { + query.addAll(filterQuery); + } + + try { + final url = base.makeUrl(userTrophiesPath, query: query); + final trophyData = await base.fetchPaginated(url, language: language); + return trophyData.map((e) => UserTrophy.fromJson(e)).toList(); + } catch (e, stk) { + _logger.warning('Error fetching user trophies:'); + _logger.warning(e); + _logger.warning(stk); + return []; + } + } + + Future> fetchProgression({ + Map? filterQuery, + String? language, + }) async { + try { + final url = base.makeUrl(userTrophyProgressionPath, query: filterQuery); + final List data = await base.fetch(url, language: language); + return data.map((e) => UserTrophyProgression.fromJson(e)).toList(); + } catch (e, stk) { + _logger.warning('Error fetching user trophy progression:', e, stk); + return []; + } + } + + List filterByType(List list, TrophyType type) => + list.where((t) => t.type == type).toList(); +} + +@riverpod +TrophyRepository trophyRepository(Ref ref) { + final base = ref.read(wgerBaseProvider); + return TrophyRepository(base); +} + +@Riverpod(keepAlive: true) +final class TrophyStateNotifier extends _$TrophyStateNotifier { + final _logger = Logger('TrophyStateNotifier'); + + @override + TrophyState build() { + return TrophyState(); + } + + Future fetchAll({String? language}) async { + await Future.wait([ + fetchTrophies(language: language), + fetchUserTrophies(language: language), + fetchTrophyProgression(language: language), + ]); + } + + /// Fetch all available trophies + Future> fetchTrophies({String? language}) async { + _logger.finer('Fetching trophies'); + + final repo = ref.read(trophyRepositoryProvider); + final result = await repo.fetchTrophies(language: language); + state = state.copyWith(trophies: result); + return result; + } + + /// Fetch trophies awarded to the user, excludes hidden trophies + Future> fetchUserTrophies({String? language}) async { + _logger.finer('Fetching user trophies'); + + final repo = ref.read(trophyRepositoryProvider); + final result = await repo.fetchUserTrophies( + filterQuery: {'trophy__is_hidden': 'false'}, //'trophy__is_repeatable': 'false' + language: language, + ); + state = state.copyWith(userTrophies: result); + return result; + } + + /// Fetch trophy progression for the user + Future> fetchTrophyProgression({String? language}) async { + _logger.finer('Fetching user trophy progression'); + + // Note that repeatable trophies are filtered out in the backend + final repo = ref.read(trophyRepositoryProvider); + final result = await repo.fetchProgression(language: language); + state = state.copyWith(trophyProgression: result); + return result; + } +} diff --git a/lib/providers/trophies.g.dart b/lib/providers/trophies.g.dart new file mode 100644 index 000000000..3f1ffecd2 --- /dev/null +++ b/lib/providers/trophies.g.dart @@ -0,0 +1,103 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'trophies.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning + +@ProviderFor(trophyRepository) +final trophyRepositoryProvider = TrophyRepositoryProvider._(); + +final class TrophyRepositoryProvider + extends $FunctionalProvider + with $Provider { + TrophyRepositoryProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'trophyRepositoryProvider', + isAutoDispose: true, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$trophyRepositoryHash(); + + @$internal + @override + $ProviderElement $createElement($ProviderPointer pointer) => + $ProviderElement(pointer); + + @override + TrophyRepository create(Ref ref) { + return trophyRepository(ref); + } + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(TrophyRepository value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$trophyRepositoryHash() => r'0699f0c0f7f324f3ba9b21420d9845a3e3096b61'; + +@ProviderFor(TrophyStateNotifier) +final trophyStateProvider = TrophyStateNotifierProvider._(); + +final class TrophyStateNotifierProvider + extends $NotifierProvider { + TrophyStateNotifierProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'trophyStateProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$trophyStateNotifierHash(); + + @$internal + @override + TrophyStateNotifier create() => TrophyStateNotifier(); + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(TrophyState value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$trophyStateNotifierHash() => r'c80c732272cf843b698f28152f60b9a5f37ee449'; + +abstract class _$TrophyStateNotifier extends $Notifier { + TrophyState build(); + @$mustCallSuper + @override + void runBuild() { + final ref = this.ref as $Ref; + final element = + ref.element + as $ClassProviderElement< + AnyNotifier, + TrophyState, + Object?, + Object? + >; + element.handleCreate(ref, build); + } +} diff --git a/lib/providers/user.dart b/lib/providers/user.dart index 3765bfe26..07bb6f216 100644 --- a/lib/providers/user.dart +++ b/lib/providers/user.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -17,7 +17,9 @@ */ import 'dart:async'; +import 'dart:convert'; +import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:wger/helpers/consts.dart'; @@ -25,6 +27,39 @@ import 'package:wger/helpers/shared_preferences.dart'; import 'package:wger/models/user/profile.dart'; import 'package:wger/providers/base_provider.dart'; +enum DashboardWidget { + trophies('trophies'), + routines('routines'), + nutrition('nutrition'), + weight('weight'), + measurements('measurements'), + calendar('calendar'); + + final String value; + const DashboardWidget(this.value); + + static DashboardWidget? fromString(String s) { + for (final e in DashboardWidget.values) { + if (e.value == s) { + return e; + } + } + return null; + } +} + +class DashboardItem { + final DashboardWidget widget; + bool isVisible; + + DashboardItem(this.widget, {this.isVisible = true}); + + Map toJson() => { + 'widget': widget.value, + 'visible': isVisible, + }; +} + class UserProvider with ChangeNotifier { ThemeMode themeMode = ThemeMode.system; final WgerBaseProvider baseProvider; @@ -33,8 +68,10 @@ class UserProvider with ChangeNotifier { UserProvider(this.baseProvider, {SharedPreferencesAsync? prefs}) { this.prefs = prefs ?? PreferenceHelper.asyncPref; _loadThemeMode(); + _loadDashboardConfig(); } + static const String PREFS_DASHBOARD_CONFIG = 'dashboardConfig'; static const PROFILE_URL = 'userprofile'; static const VERIFY_EMAIL = 'verify-email'; @@ -45,15 +82,6 @@ class UserProvider with ChangeNotifier { profile = null; } - // // change the unit of plates - // void changeUnit({changeTo = 'kg'}) { - // if (changeTo == 'kg') { - // profile?.weightUnitStr = 'lb'; - // } else { - // profile?.weightUnitStr = 'kg'; - // } - // } - // Load theme mode from SharedPreferences Future _loadThemeMode() async { final prefsDarkMode = await prefs.getBool(PREFS_USER_DARK_THEME); @@ -67,6 +95,89 @@ class UserProvider with ChangeNotifier { notifyListeners(); } + // Dashboard configuration + List _dashboardItems = DashboardWidget.values + .map((w) => DashboardItem(w)) + .toList(); + + /// List of visible dashboard widgets in the configured order + List get dashboardWidgets => + _dashboardItems.where((w) => w.isVisible).map((w) => w.widget).toList(); + + List get allDashboardWidgets => _dashboardItems.map((w) => w.widget).toList(); + + Future _loadDashboardConfig() async { + final jsonString = await prefs.getString(PREFS_DASHBOARD_CONFIG); + if (jsonString == null) { + notifyListeners(); + return; + } + + try { + final List decoded = jsonDecode(jsonString); + final List loaded = []; + + for (final item in decoded) { + final widget = DashboardWidget.fromString(item['widget']); + if (widget != null) { + loaded.add( + DashboardItem(widget, isVisible: item['visible'] as bool), + ); + } + } + + // Add any missing widgets (e.g. newly added features) + for (final widget in DashboardWidget.values) { + if (!loaded.any((item) => item.widget == widget)) { + // Try to insert at the original position defined in the enum + // taking into account the current size of the list + var index = DashboardWidget.values.indexOf(widget); + if (index > loaded.length) { + index = loaded.length; + } + loaded.insert(index, DashboardItem(widget)); + } + } + + _dashboardItems = loaded; + } catch (_) { + // parsing failed -> keep defaults + } + notifyListeners(); + } + + Future _saveDashboardConfig() async { + final serializable = _dashboardItems.map((e) => e.toJson()).toList(); + await prefs.setString(PREFS_DASHBOARD_CONFIG, jsonEncode(serializable)); + } + + bool isDashboardWidgetVisible(DashboardWidget key) { + final widget = _dashboardItems.firstWhereOrNull((e) => e.widget == key); + return widget == null || widget.isVisible; + } + + Future setDashboardWidgetVisible(DashboardWidget key, bool visible) async { + final item = _dashboardItems.firstWhereOrNull((e) => e.widget == key); + if (item == null) { + return; + } + + item.isVisible = visible; + await _saveDashboardConfig(); + notifyListeners(); + } + + Future setDashboardOrder(int oldIndex, int newIndex) async { + if (oldIndex < newIndex) { + newIndex -= 1; + } + final item = _dashboardItems.removeAt(oldIndex); + _dashboardItems.insert(newIndex, item); + + await _saveDashboardConfig(); + notifyListeners(); + } + // Change mode on switch button click void setThemeMode(ThemeMode mode) async { themeMode = mode; diff --git a/lib/providers/wger_base_riverpod.dart b/lib/providers/wger_base_riverpod.dart new file mode 100644 index 000000000..0c73cbd23 --- /dev/null +++ b/lib/providers/wger_base_riverpod.dart @@ -0,0 +1,31 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 - 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:wger/providers/auth.dart'; +import 'package:wger/providers/base_provider.dart'; + +/// Central provider that maps an existing [AuthProvider] (from the provider package) +/// to a [WgerBaseProvider] used by repositories. +/// +/// Usage: ref.watch(wgerBaseProvider(authProvider)) +final wgerBaseProvider = Provider((ref) { + throw UnimplementedError( + 'Override wgerBaseProvider in a ProviderScope with your existing WgerBaseProvider instance', + ); +}); diff --git a/lib/screens/add_exercise_screen.dart b/lib/screens/add_exercise_screen.dart index 83dd447ed..9d94f5d21 100644 --- a/lib/screens/add_exercise_screen.dart +++ b/lib/screens/add_exercise_screen.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; @@ -151,55 +152,57 @@ class _AddExerciseStepperState extends State { Widget build(BuildContext context) { return Scaffold( appBar: EmptyAppBar(AppLocalizations.of(context).contributeExercise), - body: Stepper( - controlsBuilder: _controlsBuilder, - steps: [ - Step( - title: Text(AppLocalizations.of(context).baseData), - content: Step1Basics(formkey: _keys[0]), - ), - Step( - title: Text(AppLocalizations.of(context).variations), - content: Step2Variations(formkey: _keys[1]), - ), - Step( - title: Text(AppLocalizations.of(context).description), - content: Step3Description(formkey: _keys[2]), - ), - Step( - title: Text(AppLocalizations.of(context).translation), - content: Step4Translation(formkey: _keys[3]), - ), - Step( - title: Text(AppLocalizations.of(context).images), - content: Step5Images(formkey: _keys[4]), - ), - Step(title: Text(AppLocalizations.of(context).overview), content: Step6Overview()), - ], - currentStep: _currentStep, - onStepContinue: () { - if (_keys[_currentStep].currentState?.validate() ?? false) { - _keys[_currentStep].currentState?.save(); + body: WidescreenWrapper( + child: Stepper( + controlsBuilder: _controlsBuilder, + steps: [ + Step( + title: Text(AppLocalizations.of(context).baseData), + content: Step1Basics(formkey: _keys[0]), + ), + Step( + title: Text(AppLocalizations.of(context).variations), + content: Step2Variations(formkey: _keys[1]), + ), + Step( + title: Text(AppLocalizations.of(context).description), + content: Step3Description(formkey: _keys[2]), + ), + Step( + title: Text(AppLocalizations.of(context).translation), + content: Step4Translation(formkey: _keys[3]), + ), + Step( + title: Text(AppLocalizations.of(context).images), + content: Step5Images(formkey: _keys[4]), + ), + Step(title: Text(AppLocalizations.of(context).overview), content: Step6Overview()), + ], + currentStep: _currentStep, + onStepContinue: () { + if (_keys[_currentStep].currentState?.validate() ?? false) { + _keys[_currentStep].currentState?.save(); - if (_currentStep != lastStepIndex) { - setState(() { - _currentStep += 1; - }); + if (_currentStep != lastStepIndex) { + setState(() { + _currentStep += 1; + }); + } } - } - }, - onStepCancel: () => setState(() { - if (_currentStep != 0) { - _currentStep -= 1; - } - }), - /* - onStepTapped: (int index) { - setState(() { - _currentStep = index; - }); - }, - */ + }, + onStepCancel: () => setState(() { + if (_currentStep != 0) { + _currentStep -= 1; + } + }), + /* + onStepTapped: (int index) { + setState(() { + _currentStep = index; + }); + }, + */ + ), ), ); } diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index 2553949a0..5dd5ad730 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -19,7 +19,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; @@ -233,7 +233,7 @@ class _AuthCardState extends State { @override Widget build(BuildContext context) { final i18n = AppLocalizations.of(context); - final deviceSize = MediaQuery.of(context).size; + final deviceSize = MediaQuery.sizeOf(context); return Card( shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15.0)), diff --git a/lib/screens/dashboard.dart b/lib/screens/dashboard.dart index 00e8e868b..f232e4a65 100644 --- a/lib/screens/dashboard.dart +++ b/lib/screens/dashboard.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -16,81 +16,83 @@ * along with this program. If not, see . */ -import 'dart:async'; - import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; +import 'package:wger/helpers/material.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/muscle.dart'; +import 'package:wger/providers/user.dart'; import 'package:wger/widgets/core/app_bar.dart'; import 'package:wger/widgets/dashboard/calendar.dart'; import 'package:wger/widgets/dashboard/widgets/measurements.dart'; import 'package:wger/widgets/dashboard/widgets/nutrition.dart'; import 'package:wger/widgets/dashboard/widgets/routines.dart'; +import 'package:wger/widgets/dashboard/widgets/trophies.dart'; import 'package:wger/widgets/dashboard/widgets/weight.dart'; class DashboardScreen extends StatelessWidget { - const DashboardScreen(); + const DashboardScreen({super.key}); static const routeName = '/dashboard'; + Widget _getDashboardWidget(DashboardWidget widget) { + switch (widget) { + case DashboardWidget.routines: + return const DashboardRoutineWidget(); + case DashboardWidget.weight: + return const DashboardWeightWidget(); + case DashboardWidget.measurements: + return const DashboardMeasurementWidget(); + case DashboardWidget.calendar: + return const DashboardCalendarWidget(); + case DashboardWidget.nutrition: + return const DashboardNutritionWidget(); + case DashboardWidget.trophies: + return const DashboardTrophiesWidget(); + } + } + @override Widget build(BuildContext context) { + final width = MediaQuery.sizeOf(context).width; + final isMobile = width < MATERIAL_XS_BREAKPOINT; + final user = Provider.of(context); + + late final int crossAxisCount; + if (width < MATERIAL_XS_BREAKPOINT) { + crossAxisCount = 1; + } else if (width < MATERIAL_MD_BREAKPOINT) { + crossAxisCount = 2; + } else if (width < MATERIAL_LG_BREAKPOINT) { + crossAxisCount = 3; + } else { + crossAxisCount = 4; + } + return Scaffold( appBar: MainAppBar(AppLocalizations.of(context).labelDashboard), - body: const SingleChildScrollView( - padding: EdgeInsets.all(10), - child: Column( - children: [ - DashboardRoutineWidget(), - DashboardNutritionWidget(), - DashboardWeightWidget(), - DashboardMeasurementWidget(), - DashboardCalendarWidget(), - ], + body: Center( + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: MATERIAL_LG_BREAKPOINT), + child: isMobile + ? ListView.builder( + padding: const EdgeInsets.all(10), + itemBuilder: (context, index) => + _getDashboardWidget(user.dashboardWidgets[index]), + itemCount: user.dashboardWidgets.length, + ) + : GridView.builder( + padding: const EdgeInsets.all(10), + itemBuilder: (context, index) => SingleChildScrollView( + child: _getDashboardWidget(user.dashboardWidgets[index]), + ), + itemCount: user.dashboardWidgets.length, + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: crossAxisCount, + childAspectRatio: 0.7, + ), + ), ), ), ); } } - -class DashboardMuscleWidget extends StatefulWidget { - const DashboardMuscleWidget({super.key}); - - @override - _DashboardMuscleWidgetState createState() => _DashboardMuscleWidgetState(); -} - -class _DashboardMuscleWidgetState extends State { - List _data = []; - StreamSubscription? _subscription; - - _DashboardMuscleWidgetState(); - - @override - void initState() { - super.initState(); - final stream = Muscle.watchMuscles(); - _subscription = stream.listen((data) { - if (!context.mounted) { - return; - } - setState(() { - _data = data; - }); - }); - } - - @override - void dispose() { - _subscription?.cancel(); - super.dispose(); - } - - @override - Widget build(BuildContext context) { - return Container( - color: Colors.brown, - child: Column(children: [Text('muscles'), ..._data.map((e) => Text(e.name)).toList()]), - ); - } -} diff --git a/lib/screens/exercise_screen.dart b/lib/screens/exercise_screen.dart index 3ee0f2086..11b9058fa 100644 --- a/lib/screens/exercise_screen.dart +++ b/lib/screens/exercise_screen.dart @@ -17,6 +17,7 @@ */ import 'package:flutter/material.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/widgets/exercises/exercises.dart'; @@ -33,9 +34,11 @@ class ExerciseDetailScreen extends StatelessWidget { appBar: AppBar( title: Text(exercise.getTranslation(Localizations.localeOf(context).languageCode).name), ), - body: Padding( - padding: const EdgeInsets.symmetric(horizontal: 10), - child: ExerciseDetail(exercise), + body: WidescreenWrapper( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 10), + child: ExerciseDetail(exercise), + ), ), ); } diff --git a/lib/screens/exercises_screen.dart b/lib/screens/exercises_screen.dart index 6c3350254..8b37de71c 100644 --- a/lib/screens/exercises_screen.dart +++ b/lib/screens/exercises_screen.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/providers/exercises.dart'; @@ -23,21 +24,23 @@ class _ExercisesScreenState extends State { return Scaffold( appBar: EmptyAppBar(AppLocalizations.of(context).exercises), - body: Column( - children: [ - const FilterRow(), - Expanded( - child: exercisesList.isEmpty - ? const Center( - child: SizedBox( - height: 30, - width: 30, - child: CircularProgressIndicator(), - ), - ) - : _ExercisesList(exerciseList: exercisesList), - ), - ], + body: WidescreenWrapper( + child: Column( + children: [ + const FilterRow(), + Expanded( + child: exercisesList.isEmpty + ? const Center( + child: SizedBox( + height: 30, + width: 30, + child: CircularProgressIndicator(), + ), + ) + : _ExercisesList(exerciseList: exercisesList), + ), + ], + ), ), ); } diff --git a/lib/screens/form_screen.dart b/lib/screens/form_screen.dart index 1ff100b2d..ca63ee54c 100644 --- a/lib/screens/form_screen.dart +++ b/lib/screens/form_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; /// Arguments passed to the form screen class FormScreenArguments { @@ -54,18 +55,20 @@ class FormScreen extends StatelessWidget { return Scaffold( appBar: AppBar(title: Text(args.title)), - body: args.hasListView - ? Scrollable( - viewportBuilder: (BuildContext context, ViewportOffset position) => Padding( - padding: args.padding, - child: args.widget, + body: WidescreenWrapper( + child: args.hasListView + ? Scrollable( + viewportBuilder: (BuildContext context, ViewportOffset position) => Padding( + padding: args.padding, + child: args.widget, + ), + ) + : Column( + mainAxisSize: MainAxisSize.max, + mainAxisAlignment: MainAxisAlignment.end, + children: [Padding(padding: args.padding, child: args.widget)], ), - ) - : Column( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.end, - children: [Padding(padding: args.padding, child: args.widget)], - ), + ), ); } } diff --git a/lib/screens/gallery_screen.dart b/lib/screens/gallery_screen.dart index bebe39865..906bfa352 100644 --- a/lib/screens/gallery_screen.dart +++ b/lib/screens/gallery_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/helpers/platform.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/gallery.dart'; @@ -52,8 +53,10 @@ class GalleryScreen extends StatelessWidget { ); }, ), - body: Consumer( - builder: (context, workoutProvider, child) => const Gallery(), + body: WidescreenWrapper( + child: Consumer( + builder: (context, workoutProvider, child) => const Gallery(), + ), ), ); } diff --git a/lib/screens/gym_mode.dart b/lib/screens/gym_mode.dart index 8e28b527e..1b6d170e6 100644 --- a/lib/screens/gym_mode.dart +++ b/lib/screens/gym_mode.dart @@ -17,7 +17,9 @@ */ import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart' hide Consumer; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/routines/gym_mode/gym_mode.dart'; @@ -29,30 +31,23 @@ class GymModeArguments { const GymModeArguments(this.routineId, this.dayId, this.iteration); } -class GymModeScreen extends StatelessWidget { +class GymModeScreen extends ConsumerWidget { const GymModeScreen(); static const routeName = '/gym-mode'; @override - Widget build(BuildContext context) { + Widget build(BuildContext context, WidgetRef ref) { final args = ModalRoute.of(context)!.settings.arguments as GymModeArguments; - final routinesProvider = context.read(); - final routine = routinesProvider.findById(args.routineId); - final dayDataDisplay = routine.dayData.firstWhere( - (e) => e.iteration == args.iteration && e.day?.id == args.dayId, - ); - final dayDataGym = routine.dayDataGym - .where((e) => e.iteration == args.iteration && e.day?.id == args.dayId) - .first; - return Scaffold( // backgroundColor: Theme.of(context).cardColor, - // primary: false, + //primary: false, body: SafeArea( - child: Consumer( - builder: (context, value, child) => GymMode(dayDataGym, dayDataDisplay, args.iteration), + child: WidescreenWrapper( + child: Consumer( + builder: (context, value, child) => GymMode(args), + ), ), ), ); diff --git a/lib/screens/home_tabs_screen.dart b/lib/screens/home_tabs_screen.dart index eafb2ea32..91126cdf7 100644 --- a/lib/screens/home_tabs_screen.dart +++ b/lib/screens/home_tabs_screen.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -17,10 +17,12 @@ */ import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:logging/logging.dart'; import 'package:provider/provider.dart'; import 'package:rive/rive.dart'; +import 'package:wger/helpers/material.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/powersync.dart'; import 'package:wger/providers/auth.dart'; @@ -30,6 +32,7 @@ import 'package:wger/providers/gallery.dart'; import 'package:wger/providers/measurement.dart'; import 'package:wger/providers/nutrition.dart'; import 'package:wger/providers/routines.dart'; +import 'package:wger/providers/trophies.dart'; import 'package:wger/providers/user.dart'; import 'package:wger/screens/dashboard.dart'; import 'package:wger/screens/gallery_screen.dart'; @@ -37,7 +40,7 @@ import 'package:wger/screens/nutritional_plans_screen.dart'; import 'package:wger/screens/routine_list_screen.dart'; import 'package:wger/screens/weight_screen.dart'; -class HomeTabsScreen extends StatefulWidget { +class HomeTabsScreen extends ConsumerStatefulWidget { final _logger = Logger('HomeTabsScreen'); HomeTabsScreen(); @@ -48,10 +51,12 @@ class HomeTabsScreen extends StatefulWidget { _HomeTabsScreenState createState() => _HomeTabsScreenState(); } -class _HomeTabsScreenState extends State with SingleTickerProviderStateMixin { - late Future _initialData; +class _HomeTabsScreenState extends ConsumerState + with SingleTickerProviderStateMixin { + Future? _initialData; bool _errorHandled = false; int _selectedIndex = 0; + bool _isWideScreen = false; @override void initState() { @@ -59,9 +64,15 @@ class _HomeTabsScreenState extends State with SingleTickerProvid // do we need to await this? or if it's async, how do we handle failures? _setupPowersync(); + } - // Loading data here, since the build method can be called more than once - _initialData = _loadEntries(); + @override + void didChangeDependencies() { + super.didChangeDependencies(); + + final size = MediaQuery.sizeOf(context); + _isWideScreen = size.width > MATERIAL_XS_BREAKPOINT; + _initialData ??= _loadEntries(); } void _onItemTapped(int index) { @@ -99,7 +110,9 @@ class _HomeTabsScreenState extends State with SingleTickerProvid /// Load initial data from the server Future _loadEntries() async { + final languageCode = Localizations.localeOf(context).languageCode; final authProvider = context.read(); + final trophyNotifier = ref.read(trophyStateProvider.notifier); if (!authProvider.dataInit) { final routinesProvider = context.read(); @@ -141,6 +154,7 @@ class _HomeTabsScreenState extends State with SingleTickerProvid // routinesProvider.fetchAndSetAllRoutinesFull(), weightProvider.fetchAndSetEntries(), measurementProvider.fetchAndSetAllCategoriesAndEntries(), + trophyNotifier.fetchAll(language: languageCode), ]); // @@ -165,6 +179,57 @@ class _HomeTabsScreenState extends State with SingleTickerProvid @override Widget build(BuildContext context) { + final destinations = [ + NavigationDestination( + icon: const Icon(Icons.home), + label: AppLocalizations.of(context).labelDashboard, + ), + NavigationDestination( + icon: const Icon(Icons.fitness_center), + label: AppLocalizations.of(context).labelBottomNavWorkout, + ), + NavigationDestination( + icon: const Icon(Icons.restaurant), + label: AppLocalizations.of(context).labelBottomNavNutrition, + ), + NavigationDestination( + icon: const FaIcon(FontAwesomeIcons.weightScale, size: 20), + label: AppLocalizations.of(context).weight, + ), + NavigationDestination( + icon: const Icon(Icons.photo_library), + label: AppLocalizations.of(context).gallery, + ), + ]; + + /// Navigation bar for narrow screens + Widget getNavigationBar() { + return NavigationBar( + destinations: destinations, + onDestinationSelected: _onItemTapped, + selectedIndex: _selectedIndex, + labelBehavior: NavigationDestinationLabelBehavior.alwaysHide, + ); + } + + /// Navigation rail for wide screens + Widget getNavigationRail() { + return NavigationRail( + selectedIndex: _selectedIndex, + onDestinationSelected: _onItemTapped, + labelType: NavigationRailLabelType.all, + scrollable: true, + destinations: destinations + .map( + (d) => NavigationRailDestination( + icon: d.icon, + label: Text(d.label), + ), + ) + .toList(), + ); + } + return FutureBuilder( future: _initialData, builder: (context, snapshot) { @@ -197,34 +262,13 @@ class _HomeTabsScreenState extends State with SingleTickerProvid } return Scaffold( - body: _screenList.elementAt(_selectedIndex), - bottomNavigationBar: NavigationBar( - destinations: [ - NavigationDestination( - icon: const Icon(Icons.home), - label: AppLocalizations.of(context).labelDashboard, - ), - NavigationDestination( - icon: const Icon(Icons.fitness_center), - label: AppLocalizations.of(context).labelBottomNavWorkout, - ), - NavigationDestination( - icon: const Icon(Icons.restaurant), - label: AppLocalizations.of(context).labelBottomNavNutrition, - ), - NavigationDestination( - icon: const FaIcon(FontAwesomeIcons.weightScale, size: 20), - label: AppLocalizations.of(context).weight, - ), - NavigationDestination( - icon: const Icon(Icons.photo_library), - label: AppLocalizations.of(context).gallery, - ), + body: Row( + children: [ + if (_isWideScreen) getNavigationRail(), + Expanded(child: _screenList.elementAt(_selectedIndex)), ], - onDestinationSelected: _onItemTapped, - selectedIndex: _selectedIndex, - labelBehavior: NavigationDestinationLabelBehavior.alwaysHide, ), + bottomNavigationBar: _isWideScreen ? null : getNavigationBar(), ); }, ); diff --git a/lib/screens/log_meal_screen.dart b/lib/screens/log_meal_screen.dart index 0f2566d2d..a333c96c0 100644 --- a/lib/screens/log_meal_screen.dart +++ b/lib/screens/log_meal_screen.dart @@ -17,8 +17,8 @@ */ import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; -import 'package:wger/helpers/date.dart'; import 'package:wger/helpers/json.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/nutrition/meal.dart'; @@ -44,14 +44,13 @@ class LogMealScreen extends StatefulWidget { class _LogMealScreenState extends State { double portionPct = 100; - final _dateController = TextEditingController(); + final _dateController = TextEditingController(text: ''); final _timeController = TextEditingController(); @override void initState() { super.initState(); - _dateController.text = dateToYYYYMMDD(DateTime.now())!; _timeController.text = timeToString(TimeOfDay.now())!; } @@ -64,6 +63,10 @@ class _LogMealScreenState extends State { @override Widget build(BuildContext context) { + final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode); + final dateTimeFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode).add_Hm(); + final i18n = AppLocalizations.of(context); + final args = ModalRoute.of(context)!.settings.arguments as LogMealArguments; final meal = args.meal.copyWith( mealItems: args.meal.mealItems @@ -71,7 +74,9 @@ class _LogMealScreenState extends State { .toList(), ); - final i18n = AppLocalizations.of(context); + if (_dateController.text.isEmpty) { + _dateController.text = dateFormat.format(DateTime.now()); + } return Scaffold( appBar: AppBar(title: Text(i18n.logMeal)), @@ -123,12 +128,12 @@ class _LogMealScreenState extends State { final pickedDate = await showDatePicker( context: context, initialDate: DateTime.now(), - firstDate: DateTime(DateTime.now().year - 10), + firstDate: DateTime.now().subtract(const Duration(days: 3000)), lastDate: DateTime.now(), ); if (pickedDate != null) { - _dateController.text = dateToYYYYMMDD(pickedDate)!; + _dateController.text = dateFormat.format(pickedDate); } }, onSaved: (newValue) { @@ -170,15 +175,13 @@ class _LogMealScreenState extends State { TextButton( child: Text(i18n.save), onPressed: () async { - final loggedTime = getDateTimeFromDateAndTime( - _dateController.text, - _timeController.text, + final loggedDate = dateTimeFormat.parse( + '${_dateController.text} ${_timeController.text}', ); - await Provider.of( context, listen: false, - ).logMealToDiary(meal, loggedTime); + ).logMealToDiary(meal, loggedDate); if (context.mounted) { ScaffoldMessenger.of(context).showSnackBar( diff --git a/lib/screens/measurement_categories_screen.dart b/lib/screens/measurement_categories_screen.dart index e336dfed7..6feffb47a 100644 --- a/lib/screens/measurement_categories_screen.dart +++ b/lib/screens/measurement_categories_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/measurement.dart'; import 'package:wger/screens/form_screen.dart'; @@ -46,8 +47,10 @@ class MeasurementCategoriesScreen extends StatelessWidget { ); }, ), - body: Consumer( - builder: (context, provider, child) => const CategoriesList(), + body: WidescreenWrapper( + child: Consumer( + builder: (context, provider, child) => const CategoriesList(), + ), ), ); } diff --git a/lib/screens/measurement_entries_screen.dart b/lib/screens/measurement_entries_screen.dart index 9ed535fea..327d9316c 100644 --- a/lib/screens/measurement_entries_screen.dart +++ b/lib/screens/measurement_entries_screen.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -18,7 +18,10 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/measurements/measurement_category.dart'; import 'package:wger/providers/measurement.dart'; import 'package:wger/screens/form_screen.dart'; import 'package:wger/widgets/measurements/entries.dart'; @@ -34,7 +37,19 @@ class MeasurementEntriesScreen extends StatelessWidget { @override Widget build(BuildContext context) { final categoryId = ModalRoute.of(context)!.settings.arguments as int; - final category = Provider.of(context).findCategoryById(categoryId); + final provider = Provider.of(context); + MeasurementCategory? category; + + try { + category = provider.findCategoryById(categoryId); + } on NoSuchEntryException { + Future.microtask(() { + if (context.mounted && Navigator.of(context).canPop()) { + Navigator.of(context).pop(); + } + }); + return const SizedBox(); // Return empty widget until pop happens + } return Scaffold( appBar: AppBar( @@ -60,7 +75,9 @@ class MeasurementEntriesScreen extends StatelessWidget { context: context, builder: (BuildContext contextDialog) { return AlertDialog( - content: Text(AppLocalizations.of(context).confirmDelete(category.name)), + content: Text( + AppLocalizations.of(context).confirmDelete(category!.name), + ), actions: [ TextButton( child: Text(MaterialLocalizations.of(context).cancelButtonLabel), @@ -76,11 +93,12 @@ class MeasurementEntriesScreen extends StatelessWidget { Provider.of( context, listen: false, - ).deleteCategory(category.id!); - + ).deleteCategory(category!.id!); // Close the popup Navigator.of(contextDialog).pop(); + Navigator.of(context).pop(); // Exit detail screen + // and inform the user ScaffoldMessenger.of(context).showSnackBar( SnackBar( @@ -127,9 +145,11 @@ class MeasurementEntriesScreen extends StatelessWidget { ); }, ), - body: SingleChildScrollView( - child: Consumer( - builder: (context, provider, child) => EntriesList(category), + body: WidescreenWrapper( + child: SingleChildScrollView( + child: Consumer( + builder: (context, provider, child) => EntriesList(category!), + ), ), ), ); diff --git a/lib/screens/nutritional_diary_screen.dart b/lib/screens/nutritional_diary_screen.dart index 899cbdd70..6be709bc4 100644 --- a/lib/screens/nutritional_diary_screen.dart +++ b/lib/screens/nutritional_diary_screen.dart @@ -21,6 +21,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/models/nutrition/nutritional_plan.dart'; import 'package:wger/providers/nutrition.dart'; import 'package:wger/widgets/nutrition/nutritional_diary_detail.dart'; @@ -75,13 +76,13 @@ class _NutritionalDiaryScreenState extends State { appBar: AppBar( title: Text(DateFormat.yMd(Localizations.localeOf(context).languageCode).format(date)), ), - body: Consumer( - builder: (context, nutritionProvider, child) => SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(8.0), - child: _plan == null - ? const Text('plan not found') - : NutritionalDiaryDetailWidget(_plan!, date), + body: WidescreenWrapper( + child: Consumer( + builder: (context, nutritionProvider, child) => SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: NutritionalDiaryDetailWidget(_plan!, date), + ), ), ), ), diff --git a/lib/screens/nutritional_plans_screen.dart b/lib/screens/nutritional_plans_screen.dart index 030757f52..0fba3d5b5 100644 --- a/lib/screens/nutritional_plans_screen.dart +++ b/lib/screens/nutritional_plans_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/nutrition.dart'; import 'package:wger/screens/form_screen.dart'; @@ -48,8 +49,10 @@ class NutritionalPlansScreen extends StatelessWidget { ); }, ), - body: Consumer( - builder: (context, nutritionProvider, child) => NutritionalPlansList(), + body: WidescreenWrapper( + child: Consumer( + builder: (context, nutritionProvider, child) => NutritionalPlansList(), + ), ), ); } diff --git a/lib/screens/routine_edit_screen.dart b/lib/screens/routine_edit_screen.dart index a858a5099..ff877e96a 100644 --- a/lib/screens/routine_edit_screen.dart +++ b/lib/screens/routine_edit_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/core/app_bar.dart'; import 'package:wger/widgets/routines/routine_edit.dart'; @@ -34,7 +35,7 @@ class RoutineEditScreen extends StatelessWidget { return Scaffold( appBar: EmptyAppBar(routine.name), - body: RoutineEdit(routine), + body: WidescreenWrapper(child: RoutineEdit(routine)), ); } } diff --git a/lib/screens/routine_list_screen.dart b/lib/screens/routine_list_screen.dart index 4400c5fff..e97f37b2f 100644 --- a/lib/screens/routine_list_screen.dart +++ b/lib/screens/routine_list_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/routine.dart'; import 'package:wger/providers/routines.dart'; @@ -49,8 +50,10 @@ class RoutineListScreen extends StatelessWidget { }, child: const Icon(Icons.add, color: Colors.white), ), - body: Consumer( - builder: (context, workoutProvider, child) => RoutinesList(workoutProvider), + body: WidescreenWrapper( + child: Consumer( + builder: (context, workoutProvider, child) => RoutinesList(workoutProvider), + ), ), ); } diff --git a/lib/screens/routine_logs_screen.dart b/lib/screens/routine_logs_screen.dart index ab97ebe47..c9909b1ff 100644 --- a/lib/screens/routine_logs_screen.dart +++ b/lib/screens/routine_logs_screen.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -18,9 +18,10 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/core/app_bar.dart'; -import 'package:wger/widgets/routines/workout_logs.dart'; +import 'package:wger/widgets/routines/logs/log_overview_routine.dart'; class WorkoutLogsScreen extends StatelessWidget { const WorkoutLogsScreen(); @@ -34,7 +35,7 @@ class WorkoutLogsScreen extends StatelessWidget { return Scaffold( appBar: EmptyAppBar(routine.name), - body: WorkoutLogs(routine), + body: WidescreenWrapper(child: WorkoutLogs(routine)), ); } } diff --git a/lib/screens/routine_screen.dart b/lib/screens/routine_screen.dart index d5a3eb11e..7fb50c315 100644 --- a/lib/screens/routine_screen.dart +++ b/lib/screens/routine_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/routines/app_bar.dart'; import 'package:wger/widgets/routines/routine_detail.dart'; @@ -36,9 +37,11 @@ class RoutineScreen extends StatelessWidget { return Scaffold( appBar: RoutineDetailAppBar(routine), - body: SingleChildScrollView( - child: Consumer( - builder: (context, value, child) => RoutineDetail(routine), + body: WidescreenWrapper( + child: SingleChildScrollView( + child: Consumer( + builder: (context, value, child) => RoutineDetail(routine), + ), ), ), ); diff --git a/lib/screens/settings_dashboard_widgets_screen.dart b/lib/screens/settings_dashboard_widgets_screen.dart new file mode 100644 index 000000000..d3be77718 --- /dev/null +++ b/lib/screens/settings_dashboard_widgets_screen.dart @@ -0,0 +1,38 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/widgets/core/settings/dashboard_visibility.dart'; + +class ConfigureDashboardWidgetsScreen extends StatelessWidget { + static const routeName = '/ConfigureDashboardWidgetScreen'; + + const ConfigureDashboardWidgetsScreen({super.key}); + + @override + Widget build(BuildContext context) { + final i18n = AppLocalizations.of(context); + + return Scaffold( + appBar: AppBar(title: Text(i18n.dashboardWidgets)), + body: const WidescreenWrapper(child: SettingsDashboardVisibility()), + ); + } +} diff --git a/lib/screens/configure_plates_screen.dart b/lib/screens/settings_plates_screen.dart similarity index 80% rename from lib/screens/configure_plates_screen.dart rename to lib/screens/settings_plates_screen.dart index d31f1a38a..046b2403d 100644 --- a/lib/screens/configure_plates_screen.dart +++ b/lib/screens/settings_plates_screen.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/widgets/routines/plate_calculator.dart'; @@ -13,7 +14,7 @@ class ConfigurePlatesScreen extends StatelessWidget { return Scaffold( appBar: AppBar(title: Text(i18n.selectAvailablePlates)), - body: const ConfigureAvailablePlates(), + body: const WidescreenWrapper(child: ConfigureAvailablePlates()), ); } } diff --git a/lib/screens/trophy_screen.dart b/lib/screens/trophy_screen.dart new file mode 100644 index 000000000..5df5344be --- /dev/null +++ b/lib/screens/trophy_screen.dart @@ -0,0 +1,37 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/widgets/core/app_bar.dart'; +import 'package:wger/widgets/trophies/trophies_overview.dart'; + +class TrophyScreen extends StatelessWidget { + const TrophyScreen(); + + static const routeName = '/trophies'; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: EmptyAppBar(AppLocalizations.of(context).trophies), + body: const WidescreenWrapper(child: TrophiesOverview()), + ); + } +} diff --git a/lib/screens/weight_screen.dart b/lib/screens/weight_screen.dart index 6c91935c5..5f41f99a7 100644 --- a/lib/screens/weight_screen.dart +++ b/lib/screens/weight_screen.dart @@ -18,6 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/body_weight.dart'; import 'package:wger/screens/form_screen.dart'; @@ -47,9 +48,11 @@ class WeightScreen extends StatelessWidget { ); }, ), - body: SingleChildScrollView( - child: Consumer( - builder: (context, provider, child) => WeightOverview(provider), + body: WidescreenWrapper( + child: SingleChildScrollView( + child: Consumer( + builder: (context, provider, child) => WeightOverview(provider), + ), ), ), ); diff --git a/lib/widgets/add_exercise/steps/step_1_basics.dart b/lib/widgets/add_exercise/steps/step_1_basics.dart index 12eb38dd3..63365bade 100644 --- a/lib/widgets/add_exercise/steps/step_1_basics.dart +++ b/lib/widgets/add_exercise/steps/step_1_basics.dart @@ -71,7 +71,7 @@ class Step1Basics extends StatelessWidget { return AppLocalizations.of(context).selectEntry; } }, - displayName: (ExerciseCategory c) => getTranslation(c.name, context), + displayName: (ExerciseCategory c) => getServerStringTranslation(c.name, context), ), AddExerciseMultiselectButton( key: const Key('equipment-multiselect'), @@ -84,7 +84,7 @@ class Step1Basics extends StatelessWidget { onSaved: (dynamic entries) { addExerciseProvider.equipment = entries.cast(); }, - displayName: (Equipment e) => getTranslation(e.name, context), + displayName: (Equipment e) => getServerStringTranslation(e.name, context), ), AddExerciseMultiselectButton( key: const Key('primary-muscles-multiselect'), @@ -98,7 +98,10 @@ class Step1Basics extends StatelessWidget { addExerciseProvider.primaryMuscles = muscles.cast(); }, displayName: (Muscle e) => - e.name + (e.nameEn.isNotEmpty ? '\n(${getTranslation(e.nameEn, context)})' : ''), + e.name + + (e.nameEn.isNotEmpty + ? '\n(${getServerStringTranslation(e.nameEn, context)})' + : ''), ), AddExerciseMultiselectButton( key: const Key('secondary-muscles-multiselect'), @@ -112,7 +115,10 @@ class Step1Basics extends StatelessWidget { addExerciseProvider.secondaryMuscles = muscles.cast(); }, displayName: (Muscle e) => - e.name + (e.nameEn.isNotEmpty ? '\n(${getTranslation(e.nameEn, context)})' : ''), + e.name + + (e.nameEn.isNotEmpty + ? '\n(${getServerStringTranslation(e.nameEn, context)})' + : ''), ), MuscleRowWidget( muscles: provider.primaryMuscles, diff --git a/lib/widgets/auth/password_field.dart b/lib/widgets/auth/password_field.dart index c9955a5de..cffde58b4 100644 --- a/lib/widgets/auth/password_field.dart +++ b/lib/widgets/auth/password_field.dart @@ -22,6 +22,7 @@ class _PasswordFieldState extends State { Widget build(BuildContext context) { return TextFormField( key: const Key('inputPassword'), + autofillHints: const [AutofillHints.password], decoration: InputDecoration( labelText: AppLocalizations.of(context).password, prefixIcon: const Icon(Icons.password), diff --git a/lib/widgets/core/about.dart b/lib/widgets/core/about.dart index 863482699..5ad652df4 100644 --- a/lib/widgets/core/about.dart +++ b/lib/widgets/core/about.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2025 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -16,9 +16,12 @@ * along with this program. If not, see . */ +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/misc.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; @@ -53,164 +56,174 @@ class AboutPage extends StatelessWidget { return Scaffold( appBar: AppBar(title: Text(i18n.aboutPageTitle)), - body: SingleChildScrollView( - padding: const EdgeInsets.all(20.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Image.asset( - 'assets/images/logo.png', - width: 60, - semanticLabel: 'wger logo', - ), - const SizedBox(width: 20), + body: WidescreenWrapper( + child: SingleChildScrollView( + padding: const EdgeInsets.all(20.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image.asset( + 'assets/images/logo.png', + width: 60, + semanticLabel: 'wger logo', + ), + const SizedBox(width: 20), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text( + 'wger', + style: TextStyle( + fontSize: 23, + fontWeight: FontWeight.w600, + ), + ), + Text( + 'App: ${authProvider.applicationVersion?.version ?? 'N/A'}\n' + 'Server: ${authProvider.serverVersion ?? 'N/A'}', + style: Theme.of(context).textTheme.bodySmall, + ), + Padding( + padding: const EdgeInsets.only(top: 4.0), + child: Text( + '\u{a9} ${today.year} wger contributors', + style: Theme.of(context).textTheme.bodySmall, + ), + ), + ], + ), + ], + ), + + _buildSectionSpacer(), + _buildSectionHeader(context, i18n.aboutWhySupportTitle), + Text(i18n.aboutDescription), + + _buildSectionSpacer(), + _buildSectionHeader(context, i18n.aboutContributeTitle), + Text(i18n.aboutContributeText), + ListTile( + leading: const Icon(Icons.bug_report), + title: Text(i18n.aboutBugsListTitle), + contentPadding: EdgeInsets.zero, + onTap: () => launchURL(GITHUB_ISSUES_URL, context), + ), + ListTile( + leading: const Icon(Icons.translate), + title: Text(i18n.aboutTranslationListTitle), + contentPadding: EdgeInsets.zero, + onTap: () => launchURL(WEBLATE_URL, context), + ), + ListTile( + leading: const Icon(Icons.code), + title: Text(i18n.aboutSourceListTitle), + contentPadding: EdgeInsets.zero, + onTap: () => launchURL(GITHUB_PROJECT_URL, context), + ), + ListTile( + leading: const FaIcon(FontAwesomeIcons.dumbbell, size: 18), + title: Text(i18n.contributeExercise), + contentPadding: EdgeInsets.zero, + onTap: () => Navigator.of(context).pushNamed(AddExerciseScreen.routeName), + ), + + // Don't show the donate section under iOS. The app was rejected once because + // although the donations are optional, they must be done using in-app purchases + if (!Platform.isIOS) Column( crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text( - 'wger', - style: TextStyle( - fontSize: 23, - fontWeight: FontWeight.w600, - ), - ), - Text( - 'App: ${authProvider.applicationVersion?.version ?? 'N/A'}\n' - 'Server: ${authProvider.serverVersion ?? 'N/A'}', - style: Theme.of(context).textTheme.bodySmall, - ), - Padding( - padding: const EdgeInsets.only(top: 4.0), - child: Text( - '\u{a9} ${today.year} wger contributors', - style: Theme.of(context).textTheme.bodySmall, + _buildSectionSpacer(), + _buildSectionHeader(context, i18n.aboutDonateTitle), + Text(i18n.aboutDonateText), + const SizedBox(height: 15), + // Using Wrap for buttons to handle different screen sizes potentially + Center( + child: Wrap( + spacing: 10.0, + runSpacing: 10.0, + alignment: WrapAlignment.center, + children: [ + ElevatedButton.icon( + icon: const FaIcon(FontAwesomeIcons.mugHot, size: 18), + label: const Text('Buy me a coffee'), + onPressed: () => launchURL(BUY_ME_A_COFFEE_URL, context), + ), + ElevatedButton.icon( + icon: const FaIcon(FontAwesomeIcons.solidHeart, size: 18), + label: const Text('Liberapay'), + onPressed: () => launchURL(LIBERAPAY_URL, context), + ), + ElevatedButton.icon( + icon: const FaIcon(FontAwesomeIcons.github, size: 18), + label: const Text('GitHub Sponsors'), + onPressed: () => launchURL(GITHUB_SPONSORS_URL, context), + ), + ], ), ), ], ), - ], - ), - _buildSectionSpacer(), - _buildSectionHeader(context, i18n.aboutWhySupportTitle), - Text(i18n.aboutDescription), - - _buildSectionSpacer(), - _buildSectionHeader(context, i18n.aboutContributeTitle), - Text(i18n.aboutContributeText), - ListTile( - leading: const Icon(Icons.bug_report), - title: Text(i18n.aboutBugsListTitle), - contentPadding: EdgeInsets.zero, - onTap: () => launchURL(GITHUB_ISSUES_URL, context), - ), - ListTile( - leading: const Icon(Icons.translate), - title: Text(i18n.aboutTranslationListTitle), - contentPadding: EdgeInsets.zero, - onTap: () => launchURL(WEBLATE_URL, context), - ), - ListTile( - leading: const Icon(Icons.code), - title: Text(i18n.aboutSourceListTitle), - contentPadding: EdgeInsets.zero, - onTap: () => launchURL(GITHUB_PROJECT_URL, context), - ), - ListTile( - leading: const FaIcon(FontAwesomeIcons.dumbbell, size: 18), - title: Text(i18n.contributeExercise), - contentPadding: EdgeInsets.zero, - onTap: () => Navigator.of(context).pushNamed(AddExerciseScreen.routeName), - ), - - _buildSectionSpacer(), - _buildSectionHeader(context, i18n.aboutDonateTitle), - Text(i18n.aboutDonateText), - const SizedBox(height: 15), - // Using Wrap for buttons to handle different screen sizes potentially - Center( - child: Wrap( - spacing: 10.0, - runSpacing: 10.0, - alignment: WrapAlignment.center, - children: [ - ElevatedButton.icon( - icon: const FaIcon(FontAwesomeIcons.mugHot, size: 18), - label: const Text('Buy me a coffee'), - onPressed: () => launchURL(BUY_ME_A_COFFEE_URL, context), - ), - ElevatedButton.icon( - icon: const FaIcon(FontAwesomeIcons.solidHeart, size: 18), - label: const Text('Liberapay'), - onPressed: () => launchURL(LIBERAPAY_URL, context), - ), - ElevatedButton.icon( - icon: const FaIcon(FontAwesomeIcons.github, size: 18), - label: const Text('GitHub Sponsors'), - onPressed: () => launchURL(GITHUB_SPONSORS_URL, context), - ), - ], + _buildSectionSpacer(), + _buildSectionHeader(context, i18n.aboutJoinCommunityTitle), + ListTile( + leading: const FaIcon(FontAwesomeIcons.discord), + trailing: const Icon(Icons.arrow_outward), + title: Text(i18n.aboutDiscordTitle), + contentPadding: EdgeInsets.zero, + onTap: () => launchURL(DISCORD_URL, context), + ), + ListTile( + leading: const FaIcon(FontAwesomeIcons.mastodon), + trailing: const Icon(Icons.arrow_outward), + title: Text(i18n.aboutMastodonTitle), + contentPadding: EdgeInsets.zero, + onTap: () => launchURL(MASTODON_URL, context), ), - ), - _buildSectionSpacer(), - _buildSectionHeader(context, i18n.aboutJoinCommunityTitle), - ListTile( - leading: const FaIcon(FontAwesomeIcons.discord), - trailing: const Icon(Icons.arrow_outward), - title: Text(i18n.aboutDiscordTitle), - contentPadding: EdgeInsets.zero, - onTap: () => launchURL(DISCORD_URL, context), - ), - ListTile( - leading: const FaIcon(FontAwesomeIcons.mastodon), - trailing: const Icon(Icons.arrow_outward), - title: Text(i18n.aboutMastodonTitle), - contentPadding: EdgeInsets.zero, - onTap: () => launchURL(MASTODON_URL, context), - ), + _buildSectionSpacer(), + _buildSectionHeader(context, i18n.others), - _buildSectionSpacer(), - _buildSectionHeader(context, i18n.others), - - ListTile( - leading: const Icon(Icons.article), - trailing: const Icon(Icons.chevron_right), - title: Text(i18n.applicationLogs), - contentPadding: EdgeInsets.zero, - onTap: () { - Navigator.of(context).pushNamed(LogOverviewPage.routeName); - }, - ), - ListTile( - leading: const Icon(Icons.article), - trailing: const Icon(Icons.chevron_right), - title: const Text('View Licenses'), - contentPadding: EdgeInsets.zero, - onTap: () { - showLicensePage( - context: context, - applicationName: 'wger', - applicationVersion: - 'App: ${authProvider.applicationVersion?.version ?? 'N/A'} ' - 'Server: ${authProvider.serverVersion ?? 'N/A'}', - applicationLegalese: '\u{a9} ${today.year} wger contributors', - applicationIcon: Padding( - padding: const EdgeInsets.only(top: 10), - child: Image.asset( - 'assets/images/logo.png', - width: 60, - semanticLabel: 'wger logo', + ListTile( + leading: const Icon(Icons.article), + trailing: const Icon(Icons.chevron_right), + title: Text(i18n.applicationLogs), + contentPadding: EdgeInsets.zero, + onTap: () { + Navigator.of(context).pushNamed(LogOverviewPage.routeName); + }, + ), + ListTile( + leading: const Icon(Icons.article), + trailing: const Icon(Icons.chevron_right), + title: const Text('View Licenses'), + contentPadding: EdgeInsets.zero, + onTap: () { + showLicensePage( + context: context, + applicationName: 'wger', + applicationVersion: + 'App: ${authProvider.applicationVersion?.version ?? 'N/A'} ' + 'Server: ${authProvider.serverVersion ?? 'N/A'}', + applicationLegalese: '\u{a9} ${today.year} wger contributors', + applicationIcon: Padding( + padding: const EdgeInsets.only(top: 10), + child: Image.asset( + 'assets/images/logo.png', + width: 60, + semanticLabel: 'wger logo', + ), ), - ), - ); - }, - ), - ], + ); + }, + ), + ], + ), ), ), ); diff --git a/lib/widgets/core/app_bar.dart b/lib/widgets/core/app_bar.dart index b047c8755..3345d39b7 100644 --- a/lib/widgets/core/app_bar.dart +++ b/lib/widgets/core/app_bar.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -26,6 +26,7 @@ import 'package:wger/providers/nutrition.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/providers/user.dart'; import 'package:wger/screens/form_screen.dart'; +import 'package:wger/screens/settings_dashboard_widgets_screen.dart'; import 'package:wger/widgets/core/about.dart'; import 'package:wger/widgets/core/settings.dart'; import 'package:wger/widgets/user/forms.dart'; @@ -40,67 +41,19 @@ class MainAppBar extends StatelessWidget implements PreferredSizeWidget { return AppBar( title: Text(_title), actions: [ + IconButton( + icon: const Icon(Icons.widgets_outlined), + onPressed: () { + Navigator.of(context).pushNamed(ConfigureDashboardWidgetsScreen.routeName); + }, + ), IconButton( icon: const Icon(Icons.settings), onPressed: () async { return showDialog( context: context, builder: (BuildContext context) { - return AlertDialog( - title: Text(AppLocalizations.of(context).optionsLabel), - actions: [ - TextButton( - child: Text(MaterialLocalizations.of(context).closeButtonLabel), - onPressed: () => Navigator.of(context).pop(), - ), - ], - contentPadding: EdgeInsets.zero, - content: Column( - mainAxisSize: MainAxisSize.min, - children: [ - ListTile( - //dense: true, - leading: const Icon(Icons.person), - title: Text(AppLocalizations.of(context).userProfile), - onTap: () => Navigator.pushNamed( - context, - FormScreen.routeName, - arguments: FormScreenArguments( - AppLocalizations.of(context).userProfile, - UserProfileForm(context.read().profile!), - ), - ), - ), - ListTile( - leading: const Icon(Icons.settings), - onTap: () => Navigator.of(context).pushNamed(SettingsPage.routeName), - title: Text(AppLocalizations.of(context).settingsTitle), - ), - ListTile( - leading: const Icon(Icons.info), - onTap: () => Navigator.of(context).pushNamed(AboutPage.routeName), - title: Text(AppLocalizations.of(context).aboutPageTitle), - ), - const Divider(), - ListTile( - //dense: true, - leading: const Icon(Icons.exit_to_app), - title: Text(AppLocalizations.of(context).logout), - onTap: () { - context.read().logout(); - context.read().clear(); - context.read().clear(); - context.read().clear(); - context.read().clear(); - context.read().clear(); - - Navigator.of(context).pop(); - Navigator.of(context).pushReplacementNamed('/'); - }, - ), - ], - ), - ); + return const MainSettingsDialog(); }, ); }, @@ -113,6 +66,73 @@ class MainAppBar extends StatelessWidget implements PreferredSizeWidget { Size get preferredSize => const Size.fromHeight(kToolbarHeight); } +class MainSettingsDialog extends StatelessWidget { + const MainSettingsDialog({super.key}); + + @override + Widget build(BuildContext context) { + return AlertDialog( + title: Text(AppLocalizations.of(context).optionsLabel), + actions: [ + TextButton( + child: Text( + MaterialLocalizations.of(context).closeButtonLabel, + ), + onPressed: () => Navigator.of(context).pop(), + ), + ], + contentPadding: EdgeInsets.zero, + content: Column( + mainAxisSize: MainAxisSize.min, + children: [ + ListTile( + //dense: true, + leading: const Icon(Icons.person), + title: Text(AppLocalizations.of(context).userProfile), + onTap: () => Navigator.pushNamed( + context, + FormScreen.routeName, + arguments: FormScreenArguments( + AppLocalizations.of(context).userProfile, + UserProfileForm( + context.read().profile!, + ), + ), + ), + ), + ListTile( + leading: const Icon(Icons.settings), + onTap: () => Navigator.of(context).pushNamed(SettingsPage.routeName), + title: Text(AppLocalizations.of(context).settingsTitle), + ), + ListTile( + leading: const Icon(Icons.info), + onTap: () => Navigator.of(context).pushNamed(AboutPage.routeName), + title: Text(AppLocalizations.of(context).aboutPageTitle), + ), + const Divider(), + ListTile( + //dense: true, + leading: const Icon(Icons.exit_to_app), + title: Text(AppLocalizations.of(context).logout), + onTap: () { + context.read().logout(); + context.read().clear(); + context.read().clear(); + context.read().clear(); + context.read().clear(); + context.read().clear(); + + Navigator.of(context).pop(); + Navigator.of(context).pushReplacementNamed('/'); + }, + ), + ], + ), + ); + } +} + /// App bar that only displays a title class EmptyAppBar extends StatelessWidget implements PreferredSizeWidget { final String _title; diff --git a/lib/widgets/core/image.dart b/lib/widgets/core/image.dart index 49466b584..42b175dca 100644 --- a/lib/widgets/core/image.dart +++ b/lib/widgets/core/image.dart @@ -1,20 +1,73 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; +import 'package:logging/logging.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; -class ImageFormatNotSupported extends StatelessWidget { +Widget handleImageError( + BuildContext context, + Object error, + StackTrace? stackTrace, + String imageUrl, +) { + final imageFormat = imageUrl.split('.').last.toUpperCase(); + final logger = Logger('handleImageError'); + logger.warning('Failed to load image $imageUrl: $error, $stackTrace'); + + // NOTE: for the moment the other error messages are not localized + String message = ''; + switch (error.runtimeType) { + case NetworkImageLoadException: + message = 'Network error'; + case HttpException: + message = 'Http error'; + case FormatException: + //TODO: not sure if this is the right exception for unsupported image formats? + message = AppLocalizations.of(context).imageFormatNotSupported(imageFormat); + default: + message = 'Other exception'; + } + + return AspectRatio( + aspectRatio: 1, + child: ImageError( + message, + errorMessage: error.toString(), + ), + ); +} + +class ImageError extends StatelessWidget { final String title; + final String? errorMessage; - const ImageFormatNotSupported(this.title, {super.key}); + const ImageError(this.title, {this.errorMessage, super.key}); @override Widget build(BuildContext context) { final theme = Theme.of(context); return Container( + padding: const EdgeInsets.all(5), color: theme.colorScheme.errorContainer, - child: Row( + child: Column( + mainAxisSize: MainAxisSize.max, + crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, spacing: 8, - children: [const Icon(Icons.broken_image), Text(title)], + children: [ + if (errorMessage != null) + Tooltip(message: errorMessage, child: const Icon(Icons.broken_image)) + else + const Icon(Icons.broken_image), + + Text( + title, + overflow: TextOverflow.ellipsis, + maxLines: 2, + textAlign: TextAlign.center, + ), + ], ), ); } diff --git a/lib/widgets/core/settings.dart b/lib/widgets/core/settings.dart index e310ab035..014b281d9 100644 --- a/lib/widgets/core/settings.dart +++ b/lib/widgets/core/settings.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -16,13 +16,13 @@ * along with this program. If not, see . */ -//import 'package:drift/drift.dart'; import 'package:flutter/material.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/screens/configure_plates_screen.dart'; -import 'package:wger/widgets/core/settings/exercise_cache.dart'; -import 'package:wger/widgets/core/settings/ingredient_cache.dart'; -import 'package:wger/widgets/core/settings/theme.dart'; +import 'package:wger/screens/settings_plates_screen.dart'; + +import './settings/exercise_cache.dart'; +import './settings/ingredient_cache.dart'; +import './settings/theme.dart'; class SettingsPage extends StatelessWidget { static String routeName = '/SettingsPage'; diff --git a/lib/widgets/core/settings/dashboard_visibility.dart b/lib/widgets/core/settings/dashboard_visibility.dart new file mode 100644 index 000000000..23d0c66db --- /dev/null +++ b/lib/widgets/core/settings/dashboard_visibility.dart @@ -0,0 +1,80 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/user.dart'; + +class SettingsDashboardVisibility extends StatelessWidget { + const SettingsDashboardVisibility({super.key}); + + @override + Widget build(BuildContext context) { + final i18n = AppLocalizations.of(context); + + String getTitle(DashboardWidget w) { + switch (w) { + case DashboardWidget.routines: + return i18n.routines; + case DashboardWidget.weight: + return i18n.weight; + case DashboardWidget.measurements: + return i18n.measurements; + case DashboardWidget.calendar: + return i18n.calendar; + case DashboardWidget.nutrition: + return i18n.nutritionalPlans; + case DashboardWidget.trophies: + return i18n.trophies; + } + } + + return Consumer( + builder: (context, user, _) { + return ReorderableListView( + physics: const NeverScrollableScrollPhysics(), + buildDefaultDragHandles: false, + onReorder: user.setDashboardOrder, + children: user.allDashboardWidgets.asMap().entries.map((entry) { + final index = entry.key; + final w = entry.value; + + return ListTile( + key: ValueKey(w), + title: Text(getTitle(w)), + leading: IconButton( + icon: user.isDashboardWidgetVisible(w) + ? const Icon(Icons.visibility) + : const Icon(Icons.visibility_off, color: Colors.grey), + onPressed: () => user.setDashboardWidgetVisible( + w, + !user.isDashboardWidgetVisible(w), + ), + ), + trailing: ReorderableDragStartListener( + index: index, + child: const Icon(Icons.drag_handle), + ), + ); + }).toList(), + ); + }, + ); + } +} diff --git a/lib/widgets/dashboard/calendar.dart b/lib/widgets/dashboard/calendar.dart index af81ca08e..2809734c9 100644 --- a/lib/widgets/dashboard/calendar.dart +++ b/lib/widgets/dashboard/calendar.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -134,30 +134,29 @@ class _DashboardCalendarWidgetState extends State // Process workout sessions final routinesProvider = context.read(); - await routinesProvider.fetchSessionData().then((sessions) { - for (final session in sessions) { - final date = DateFormatLists.format(session.date); - if (!_events.containsKey(date)) { - _events[date] = []; - } - var time = ''; - time = '(${timeToString(session.timeStart)} - ${timeToString(session.timeEnd)})'; - - // Add events to lists - _events[date]?.add( - Event(EventType.session, '${i18n.impression}: ${session.impressionAsString} $time'), - ); - } - }); + final sessions = await routinesProvider.fetchSessionData(); if (!mounted) { return; } + for (final session in sessions) { + final date = DateFormatLists.format(session.date); + _events.putIfAbsent(date, () => []); + + final time = (session.timeStart != null && session.timeEnd != null) + ? '(${timeToString(session.timeStart)} - ${timeToString(session.timeEnd)})' + : ''; + + _events[date]?.add( + Event( + EventType.session, + '${i18n.impression}: ${session.impressionAsString(context)}${time.isNotEmpty ? ' $time' : ''}', + ), + ); + } + // Process nutritional plans - final NutritionPlansProvider nutritionProvider = Provider.of( - context, - listen: false, - ); + final nutritionProvider = context.read(); for (final plan in nutritionProvider.items) { for (final entry in plan.logEntriesValues.entries) { final date = DateFormatLists.format(entry.key); diff --git a/lib/widgets/dashboard/widgets/nothing_found.dart b/lib/widgets/dashboard/widgets/nothing_found.dart index 326d34175..86afc1405 100644 --- a/lib/widgets/dashboard/widgets/nothing_found.dart +++ b/lib/widgets/dashboard/widgets/nothing_found.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -22,10 +22,10 @@ import 'package:wger/theme/theme.dart'; class NothingFound extends StatelessWidget { final String _title; - final String _titleForm; - final Widget _form; + final String? _titleForm; + final Widget? _form; - const NothingFound(this._title, this._titleForm, this._form); + const NothingFound(this._title, [this._titleForm, this._form]); @override Widget build(BuildContext context) { @@ -35,21 +35,22 @@ class NothingFound extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ Text(_title), - IconButton( - iconSize: 30, - icon: const Icon(Icons.add_box, color: wgerPrimaryButtonColor), - onPressed: () { - Navigator.pushNamed( - context, - FormScreen.routeName, - arguments: FormScreenArguments( - _titleForm, - hasListView: true, - _form, - ), - ); - }, - ), + if (_titleForm != null && _form != null) + IconButton( + iconSize: 30, + icon: const Icon(Icons.add_box, color: wgerPrimaryButtonColor), + onPressed: () { + Navigator.pushNamed( + context, + FormScreen.routeName, + arguments: FormScreenArguments( + _titleForm, + hasListView: true, + _form, + ), + ); + }, + ), ], ), ); diff --git a/lib/widgets/dashboard/widgets/nutrition.dart b/lib/widgets/dashboard/widgets/nutrition.dart index ee611ba47..08f875c83 100644 --- a/lib/widgets/dashboard/widgets/nutrition.dart +++ b/lib/widgets/dashboard/widgets/nutrition.dart @@ -85,46 +85,62 @@ class _DashboardNutritionWidgetState extends State { PlanForm(), ), if (_hasContent) - Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - TextButton( - child: Text(AppLocalizations.of(context).goToDetailPage), - onPressed: () { - Navigator.of(context).pushNamed( - NutritionalPlanScreen.routeName, - arguments: _plan, - ); - }, - ), - Expanded(child: Container()), - IconButton( - icon: const SvgIcon( - icon: SvgIconData('assets/icons/ingredient-diary.svg'), + LayoutBuilder( + builder: (context, constraints) { + return SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: ConstrainedBox( + constraints: BoxConstraints(minWidth: constraints.maxWidth), + child: Row( + mainAxisSize: MainAxisSize.max, + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + TextButton( + child: Text(AppLocalizations.of(context).goToDetailPage), + onPressed: () { + Navigator.of(context).pushNamed( + NutritionalPlanScreen.routeName, + arguments: _plan, + ); + }, + ), + Row( + children: [ + IconButton( + icon: const SvgIcon( + icon: SvgIconData('assets/icons/ingredient-diary.svg'), + ), + tooltip: AppLocalizations.of(context).logIngredient, + onPressed: () { + Navigator.pushNamed( + context, + FormScreen.routeName, + arguments: FormScreenArguments( + AppLocalizations.of(context).logIngredient, + getIngredientLogForm(_plan!), + hasListView: true, + ), + ); + }, + ), + IconButton( + icon: const SvgIcon( + icon: SvgIconData('assets/icons/meal-diary.svg'), + ), + tooltip: AppLocalizations.of(context).logMeal, + onPressed: () { + Navigator.of( + context, + ).pushNamed(LogMealsScreen.routeName, arguments: _plan); + }, + ), + ], + ), + ], + ), ), - tooltip: AppLocalizations.of(context).logIngredient, - onPressed: () { - Navigator.pushNamed( - context, - FormScreen.routeName, - arguments: FormScreenArguments( - AppLocalizations.of(context).logIngredient, - getIngredientLogForm(_plan!), - hasListView: true, - ), - ); - }, - ), - IconButton( - icon: const SvgIcon( - icon: SvgIconData('assets/icons/meal-diary.svg'), - ), - tooltip: AppLocalizations.of(context).logMeal, - onPressed: () { - Navigator.of(context).pushNamed(LogMealsScreen.routeName, arguments: _plan); - }, - ), - ], + ); + }, ), ], ), diff --git a/lib/widgets/dashboard/widgets/routines.dart b/lib/widgets/dashboard/widgets/routines.dart index 5077d9052..20e21f8aa 100644 --- a/lib/widgets/dashboard/widgets/routines.dart +++ b/lib/widgets/dashboard/widgets/routines.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -58,7 +58,7 @@ class _DashboardRoutineWidgetState extends State { ), subtitle: Text( _hasContent - ? '${dateFormat.format(routine!.start)} - ${dateFormat.format(routine!.end)}' + ? '${dateFormat.format(routine!.start)} - ${dateFormat.format(routine.end)}' : '', ), leading: Icon( @@ -80,7 +80,7 @@ class _DashboardRoutineWidgetState extends State { if (_hasContent) ...[ Padding( padding: const EdgeInsets.symmetric(horizontal: 10), - child: DetailContentWidget(routine!.dayDataCurrentIteration, _showDetail), + child: DetailContentWidget(routine!.dayDataCurrentIterationFiltered, _showDetail), ), Row( mainAxisAlignment: MainAxisAlignment.start, diff --git a/lib/widgets/dashboard/widgets/trophies.dart b/lib/widgets/dashboard/widgets/trophies.dart new file mode 100644 index 000000000..42e1cfd4f --- /dev/null +++ b/lib/widgets/dashboard/widgets/trophies.dart @@ -0,0 +1,142 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/trophies/trophy.dart'; +import 'package:wger/providers/trophies.dart'; +import 'package:wger/screens/trophy_screen.dart'; + +class DashboardTrophiesWidget extends ConsumerWidget { + const DashboardTrophiesWidget(); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final trophiesState = ref.read(trophyStateProvider); + final i18n = AppLocalizations.of(context); + + return Card( + color: Colors.transparent, + shadowColor: Colors.transparent, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (trophiesState.nonPrTrophies.isEmpty) + Card( + child: Column( + children: [ + ListTile( + title: Text( + i18n.trophies, + style: Theme.of(context).textTheme.headlineSmall, + ), + // leading: Icon(Icons.widgets_outlined), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: Text( + i18n.noTrophies, + style: Theme.of(context).textTheme.bodyMedium, + ), + ), + ], + ), + ) + else + SizedBox( + height: 140, + child: ListView.separated( + padding: const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0), + scrollDirection: Axis.horizontal, + itemCount: trophiesState.nonPrTrophies.length, + separatorBuilder: (context, index) => const SizedBox(width: 12), + itemBuilder: (context, index) { + final userTrophy = trophiesState.nonPrTrophies[index]; + + return SizedBox( + width: 220, + child: TrophyCard(trophy: userTrophy.trophy), + ); + }, + ), + ), + ], + ), + ); + } +} + +class TrophyCard extends StatelessWidget { + const TrophyCard({ + super.key, + required this.trophy, + }); + + final Trophy trophy; + + @override + Widget build(BuildContext context) { + return Card.filled( + child: InkWell( + onTap: () { + Navigator.of(context).pushNamed(TrophyScreen.routeName); + }, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + CircleAvatar( + radius: 30, + backgroundImage: NetworkImage(trophy.image), + ), + const SizedBox(width: 10), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text( + trophy.name, + style: Theme.of(context).textTheme.titleMedium, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + const SizedBox(height: 4), + Text( + trophy.description, + style: Theme.of(context).textTheme.bodySmall, + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ], + ), + ), + ], + ), + ], + ), + ), + ), + ); + } +} diff --git a/lib/widgets/dashboard/widgets/weight.dart b/lib/widgets/dashboard/widgets/weight.dart index dd568dc0e..d13e14199 100644 --- a/lib/widgets/dashboard/widgets/weight.dart +++ b/lib/widgets/dashboard/widgets/weight.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -42,7 +42,7 @@ class DashboardWeightWidget extends StatelessWidget { ); return Consumer( - builder: (context, _, __) => Card( + builder: (context, _, _) => Card( child: Column( mainAxisSize: MainAxisSize.min, children: [ @@ -75,36 +75,47 @@ class DashboardWeightWidget extends StatelessWidget { entries7dAvg.last, weightUnit(profile.isMetric, context), ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - TextButton( - child: Text( - AppLocalizations.of(context).goToDetailPage, - ), - onPressed: () { - Navigator.of(context).pushNamed(WeightScreen.routeName); - }, - ), - IconButton( - icon: const Icon(Icons.add), - onPressed: () { - Navigator.pushNamed( - context, - FormScreen.routeName, - arguments: FormScreenArguments( - AppLocalizations.of(context).newEntry, - WeightForm( - weightProvider.getNewestEntry()?.copyWith( - id: null, - date: DateTime.now(), + LayoutBuilder( + builder: (context, constraints) { + return SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: ConstrainedBox( + constraints: BoxConstraints(minWidth: constraints.maxWidth), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + TextButton( + child: Text( + AppLocalizations.of(context).goToDetailPage, + overflow: TextOverflow.ellipsis, ), + onPressed: () { + Navigator.of(context).pushNamed(WeightScreen.routeName); + }, ), - ), - ); - }, - ), - ], + IconButton( + icon: const Icon(Icons.add), + onPressed: () { + Navigator.pushNamed( + context, + FormScreen.routeName, + arguments: FormScreenArguments( + AppLocalizations.of(context).newEntry, + WeightForm( + weightProvider.getNewestEntry()?.copyWith( + id: null, + date: DateTime.now(), + ), + ), + ), + ); + }, + ), + ], + ), + ), + ); + }, ), ], ) diff --git a/lib/widgets/exercises/exercises.dart b/lib/widgets/exercises/exercises.dart index 373515f01..76dff772b 100644 --- a/lib/widgets/exercises/exercises.dart +++ b/lib/widgets/exercises/exercises.dart @@ -229,7 +229,7 @@ class ExerciseDetail extends StatelessWidget { Padding( padding: const EdgeInsets.symmetric(horizontal: 4), child: Chip( - label: Text(getTranslation(_exercise.category!.name, context)), + label: Text(getServerStringTranslation(_exercise.category!.name, context)), padding: EdgeInsets.zero, backgroundColor: theme.splashColor, ), @@ -241,7 +241,7 @@ class ExerciseDetail extends StatelessWidget { (e) => Padding( padding: const EdgeInsets.symmetric(horizontal: 4), child: Chip( - label: Text(getTranslation(e.name, context)), + label: Text(getServerStringTranslation(e.name, context)), padding: EdgeInsets.zero, backgroundColor: theme.splashColor, ), diff --git a/lib/widgets/exercises/filter_modal.dart b/lib/widgets/exercises/filter_modal.dart index eb6758c7b..98dd12c51 100644 --- a/lib/widgets/exercises/filter_modal.dart +++ b/lib/widgets/exercises/filter_modal.dart @@ -67,7 +67,7 @@ class _ExerciseFilterModalBodyState extends State { body: Column( children: filterCategory.items.entries.map((currentEntry) { return SwitchListTile( - title: Text(getTranslation(currentEntry.key.name, context)), + title: Text(getServerStringTranslation(currentEntry.key.name, context)), value: currentEntry.value, onChanged: (_) { setState(() { diff --git a/lib/widgets/exercises/images.dart b/lib/widgets/exercises/images.dart index 66a546860..595586b51 100644 --- a/lib/widgets/exercises/images.dart +++ b/lib/widgets/exercises/images.dart @@ -37,14 +37,12 @@ class ExerciseImageWidget extends StatelessWidget { ? Image.network( image!.url, semanticLabel: 'Exercise image', - errorBuilder: (context, error, stackTrace) { - _logger.warning('Failed to load image ${image!.url}: $error, $stackTrace'); - final imageFormat = image!.url.split('.').last.toUpperCase(); - - return ImageFormatNotSupported( - i18n.imageFormatNotSupported(imageFormat), - ); - }, + errorBuilder: (context, error, stackTrace) => handleImageError( + context, + error, + stackTrace, + image!.url, + ), ) : const Image( image: AssetImage('assets/images/placeholder.png'), diff --git a/lib/widgets/exercises/list_tile.dart b/lib/widgets/exercises/list_tile.dart index c49bfe93a..9e6d034bc 100644 --- a/lib/widgets/exercises/list_tile.dart +++ b/lib/widgets/exercises/list_tile.dart @@ -29,8 +29,6 @@ class ExerciseListTile extends StatelessWidget { @override Widget build(BuildContext context) { - //final size = MediaQuery.of(context).size; - //final theme = Theme.of(context); const double IMG_SIZE = 60; return ListTile( @@ -54,7 +52,7 @@ class ExerciseListTile extends StatelessWidget { maxLines: 2, ), subtitle: Text( - '${getTranslation(exercise.category!.name, context)} / ${exercise.equipment.map((e) => getTranslation(e.name, context)).toList().join(', ')}', + '${getServerStringTranslation(exercise.category!.name, context)} / ${exercise.equipment.map((e) => getServerStringTranslation(e.name, context)).toList().join(', ')}', ), onTap: () { Navigator.pushNamed(context, ExerciseDetailScreen.routeName, arguments: exercise); diff --git a/lib/widgets/exercises/videos.dart b/lib/widgets/exercises/videos.dart index 8f38da569..18d76ef98 100644 --- a/lib/widgets/exercises/videos.dart +++ b/lib/widgets/exercises/videos.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -20,6 +20,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:logging/logging.dart'; import 'package:video_player/video_player.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/models/exercises/video.dart'; @@ -33,9 +34,10 @@ class ExerciseVideoWidget extends StatefulWidget { } class _ExerciseVideoWidgetState extends State { + final logger = Logger('ExerciseVideoWidgetState'); + late VideoPlayerController _controller; bool hasError = false; - final logger = Logger('ExerciseVideoWidgetState'); @override void initState() { @@ -66,10 +68,14 @@ class _ExerciseVideoWidgetState extends State { @override Widget build(BuildContext context) { return hasError - ? const GeneralErrorsWidget( - [ - 'An error happened while loading the video. If you can, please check the application logs.', - ], + ? FormHttpErrorsWidget( + WgerHttpException.fromMap( + const { + 'error': + 'An error happened while loading the video. If you can, ' + 'please check the application logs.', + }, + ), ) : _controller.value.isInitialized ? AspectRatio( diff --git a/lib/widgets/gallery/forms.dart b/lib/widgets/gallery/forms.dart index 104e16149..1e8f977ec 100644 --- a/lib/widgets/gallery/forms.dart +++ b/lib/widgets/gallery/forms.dart @@ -20,9 +20,9 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; +import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; import 'package:wger/helpers/consts.dart'; -import 'package:wger/helpers/json.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/gallery/image.dart' as gallery; import 'package:wger/providers/gallery.dart'; @@ -43,7 +43,7 @@ class _ImageFormState extends State { XFile? _file; - final dateController = TextEditingController(); + final dateController = TextEditingController(text: ''); final TextEditingController descriptionController = TextEditingController(); @override @@ -57,7 +57,6 @@ class _ImageFormState extends State { void initState() { super.initState(); - dateController.text = dateToYYYYMMDD(widget._image.date)!; descriptionController.text = widget._image.description; } @@ -97,6 +96,12 @@ class _ImageFormState extends State { @override Widget build(BuildContext context) { + final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode); + + if (dateController.text.isEmpty) { + dateController.text = dateFormat.format(widget._image.date); + } + return Form( key: _form, child: Column( @@ -154,14 +159,15 @@ class _ImageFormState extends State { final pickedDate = await showDatePicker( context: context, initialDate: widget._image.date, - firstDate: DateTime(DateTime.now().year - 10), + firstDate: DateTime.now().subtract(const Duration(days: 3000)), lastDate: DateTime.now(), ); - - dateController.text = dateToYYYYMMDD(pickedDate)!; + if (pickedDate != null) { + dateController.text = dateFormat.format(pickedDate); + } }, onSaved: (newValue) { - widget._image.date = DateTime.parse(newValue!); + widget._image.date = dateFormat.parse(newValue!); }, validator: (value) { if (widget._image.id == null && _file == null) { diff --git a/lib/widgets/gallery/overview.dart b/lib/widgets/gallery/overview.dart index 0900ffa58..01fd229fb 100644 --- a/lib/widgets/gallery/overview.dart +++ b/lib/widgets/gallery/overview.dart @@ -36,8 +36,6 @@ class Gallery extends StatelessWidget { @override Widget build(BuildContext context) { final provider = Provider.of(context); - final i18n = AppLocalizations.of(context); - final theme = Theme.of(context); return Padding( padding: const EdgeInsets.all(5), @@ -66,23 +64,12 @@ class Gallery extends StatelessWidget { image: NetworkImage(currentImage.url!), fit: BoxFit.cover, imageSemanticLabel: currentImage.description, - imageErrorBuilder: (context, error, stackTrace) { - final imageFormat = currentImage.url!.split('.').last.toUpperCase(); - return AspectRatio( - aspectRatio: 1, - child: Container( - color: theme.colorScheme.errorContainer, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - spacing: 8, - children: [ - const Icon(Icons.broken_image), - Text(i18n.imageFormatNotSupported(imageFormat)), - ], - ), - ), - ); - }, + imageErrorBuilder: (context, error, stackTrace) => handleImageError( + context, + error, + stackTrace, + currentImage.url!, + ), ), ); }, @@ -102,7 +89,6 @@ class ImageDetail extends StatelessWidget { @override Widget build(BuildContext context) { - final i18n = AppLocalizations.of(context); return Container( key: Key('image-${image.id!}-detail'), padding: const EdgeInsets.all(10), @@ -116,13 +102,12 @@ class ImageDetail extends StatelessWidget { child: Image.network( image.url!, semanticLabel: image.description, - errorBuilder: (context, error, stackTrace) { - final imageFormat = image.url!.split('.').last.toUpperCase(); - - return ImageFormatNotSupported( - i18n.imageFormatNotSupported(imageFormat), - ); - }, + errorBuilder: (context, error, stackTrace) => handleImageError( + context, + error, + stackTrace, + image.url!, + ), ), ), Padding( diff --git a/lib/widgets/measurements/categories_card.dart b/lib/widgets/measurements/categories_card.dart index 32fa04b81..27ef09df2 100644 --- a/lib/widgets/measurements/categories_card.dart +++ b/lib/widgets/measurements/categories_card.dart @@ -49,33 +49,43 @@ class CategoriesCard extends StatelessWidget { currentCategory.unit, ), const Divider(), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - TextButton( - child: Text(AppLocalizations.of(context).goToDetailPage), - onPressed: () { - Navigator.pushNamed( - context, - MeasurementEntriesScreen.routeName, - arguments: currentCategory.id, - ); - }, - ), - IconButton( - onPressed: () async { - await Navigator.pushNamed( - context, - FormScreen.routeName, - arguments: FormScreenArguments( - AppLocalizations.of(context).newEntry, - MeasurementEntryForm(currentCategory.id!), - ), - ); - }, - icon: const Icon(Icons.add), - ), - ], + LayoutBuilder( + builder: (context, constraints) { + return SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: ConstrainedBox( + constraints: BoxConstraints(minWidth: constraints.maxWidth), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + TextButton( + child: Text(AppLocalizations.of(context).goToDetailPage), + onPressed: () { + Navigator.pushNamed( + context, + MeasurementEntriesScreen.routeName, + arguments: currentCategory.id, + ); + }, + ), + IconButton( + onPressed: () async { + await Navigator.pushNamed( + context, + FormScreen.routeName, + arguments: FormScreenArguments( + AppLocalizations.of(context).newEntry, + MeasurementEntryForm(currentCategory.id!), + ), + ); + }, + icon: const Icon(Icons.add), + ), + ], + ), + ), + ); + }, ), ], ), diff --git a/lib/widgets/measurements/forms.dart b/lib/widgets/measurements/forms.dart index 41a2ea099..d315d5f36 100644 --- a/lib/widgets/measurements/forms.dart +++ b/lib/widgets/measurements/forms.dart @@ -20,7 +20,6 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; import 'package:wger/helpers/consts.dart'; -import 'package:wger/helpers/json.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/measurements/measurement_category.dart'; import 'package:wger/models/measurements/measurement_entry.dart'; @@ -136,7 +135,7 @@ class MeasurementEntryForm extends StatelessWidget { final _form = GlobalKey(); final int _categoryId; final _valueController = TextEditingController(); - final _dateController = TextEditingController(); + final _dateController = TextEditingController(text: ''); final _notesController = TextEditingController(); late final Map _entryData; @@ -158,18 +157,23 @@ class MeasurementEntryForm extends StatelessWidget { _entryData['notes'] = entry.notes; } - _dateController.text = dateToYYYYMMDD(_entryData['date'])!; _valueController.text = ''; _notesController.text = _entryData['notes']!; } @override Widget build(BuildContext context) { + final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode); + final measurementProvider = Provider.of(context, listen: false); final measurementCategory = measurementProvider.categories.firstWhere( (category) => category.id == _categoryId, ); + if (_dateController.text.isEmpty) { + _dateController.text = dateFormat.format(_entryData['date']); + } + final numberFormat = NumberFormat.decimalPattern(Localizations.localeOf(context).toString()); // If the value is not empty, format it @@ -213,10 +217,10 @@ class MeasurementEntryForm extends StatelessWidget { }, ); - _dateController.text = pickedDate == null ? '' : dateToYYYYMMDD(pickedDate)!; + _dateController.text = pickedDate == null ? '' : dateFormat.format(pickedDate); }, onSaved: (newValue) { - _entryData['date'] = DateTime.parse(newValue!); + _entryData['date'] = dateFormat.parse(newValue!); }, validator: (value) { if (value!.isEmpty) { diff --git a/lib/widgets/nutrition/forms.dart b/lib/widgets/nutrition/forms.dart index df92aad97..f6d84557c 100644 --- a/lib/widgets/nutrition/forms.dart +++ b/lib/widgets/nutrition/forms.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -20,7 +20,6 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; import 'package:wger/helpers/consts.dart'; -import 'package:wger/helpers/date.dart'; import 'package:wger/helpers/json.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/nutrition/ingredient.dart'; @@ -176,18 +175,10 @@ class IngredientFormState extends State { final _ingredientIdController = TextEditingController(); final _amountController = TextEditingController(); final _dateController = TextEditingController(); // optional - final _timeController = TextEditingController(); // optional + final _timeController = TextEditingController(text: ''); // optional final _mealItem = MealItem.empty(); var _searchQuery = ''; // copy from typeahead. for filtering suggestions - @override - void initState() { - super.initState(); - final now = DateTime.now(); - _dateController.text = dateToYYYYMMDD(now)!; - _timeController.text = timeToString(TimeOfDay.fromDateTime(now))!; - } - @override void dispose() { _ingredientController.dispose(); @@ -230,6 +221,19 @@ class IngredientFormState extends State { @override Widget build(BuildContext context) { + final languageCode = Localizations.localeOf(context).languageCode; + final dateFormat = DateFormat.yMd(languageCode); + final timeFormat = DateFormat.Hm(languageCode); + final dateTimeFormat = DateFormat.yMd(languageCode).add_Hm(); + + if (_dateController.text.isEmpty) { + _dateController.text = dateFormat.format(DateTime.now()); + } + + if (_timeController.text.isEmpty) { + _timeController.text = timeFormat.format(DateTime.now()); + } + final String unit = AppLocalizations.of(context).g; final queryLower = _searchQuery.toLowerCase(); final suggestions = widget.recent @@ -305,7 +309,7 @@ class IngredientFormState extends State { ); if (pickedDate != null) { - _dateController.text = dateToYYYYMMDD(pickedDate)!; + _dateController.text = dateFormat.format(pickedDate); } }, onSaved: (newValue) { @@ -396,9 +400,8 @@ class IngredientFormState extends State { _form.currentState!.save(); _mealItem.ingredientId = int.parse(_ingredientIdController.text); - final loggedDate = getDateTimeFromDateAndTime( - _dateController.text, - _timeController.text, + final loggedDate = dateTimeFormat.parse( + '${_dateController.text} ${_timeController.text}', ); widget.onSave(context, _mealItem, loggedDate); diff --git a/lib/widgets/nutrition/widgets.dart b/lib/widgets/nutrition/widgets.dart index c44b2bd30..f2fc364f9 100644 --- a/lib/widgets/nutrition/widgets.dart +++ b/lib/widgets/nutrition/widgets.dart @@ -184,7 +184,10 @@ class _IngredientTypeaheadState extends State { opacity: CurvedAnimation(parent: animation, curve: Curves.fastOutSlowIn), child: child, ), - onSelected: (suggestion) { + onSelected: (suggestion) async { + // Cache selected ingredient + final provider = Provider.of(context, listen: false); + await provider.cacheIngredient(suggestion); widget.selectIngredient(suggestion.id, suggestion.name, null); }, ), diff --git a/lib/widgets/routines/forms/day.dart b/lib/widgets/routines/forms/day.dart index a0ae3c253..6af0dc10f 100644 --- a/lib/widgets/routines/forms/day.dart +++ b/lib/widgets/routines/forms/day.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; diff --git a/lib/widgets/routines/forms/log_form.dart b/lib/widgets/routines/forms/log_form.dart new file mode 100644 index 000000000..fcd6be0ee --- /dev/null +++ b/lib/widgets/routines/forms/log_form.dart @@ -0,0 +1,209 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:provider/provider.dart' as provider; +import 'package:wger/core/exceptions/http_exception.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/workouts/set_config_data.dart'; +import 'package:wger/providers/gym_log_state.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/providers/routines.dart'; +import 'package:wger/widgets/core/progress_indicator.dart'; +import 'package:wger/widgets/routines/forms/repetitions.dart'; +import 'package:wger/widgets/routines/forms/rir.dart'; +import 'package:wger/widgets/routines/forms/weight.dart'; + +class LogFormWidget extends ConsumerStatefulWidget { + final PageController controller; + final SetConfigData configData; + + const LogFormWidget({ + super.key, + required this.controller, + required this.configData, + }); + + @override + _LogFormWidgetState createState() => _LogFormWidgetState(); +} + +class _LogFormWidgetState extends ConsumerState { + final _form = GlobalKey(); + var _detailed = false; + bool _isSaving = false; + + @override + Widget build(BuildContext context) { + final i18n = AppLocalizations.of(context); + final log = ref.watch(gymLogProvider); + + return Form( + key: _form, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + i18n.newEntry, + style: Theme.of(context).textTheme.titleLarge, + textAlign: TextAlign.center, + ), + if (!_detailed) + Row( + children: [ + Flexible( + child: RepetitionInputWidget( + key: const ValueKey('logs-reps-widget'), + valueChange: widget.configData.repetitionsRounding, + ), + ), + const SizedBox(width: 8), + Flexible( + child: WeightInputWidget( + key: const ValueKey('logs-weight-widget'), + valueChange: widget.configData.weightRounding, + ), + ), + ], + ), + if (_detailed) + Row( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Flexible( + child: RepetitionInputWidget( + key: const ValueKey('logs-reps-widget'), + valueChange: widget.configData.repetitionsRounding, + ), + ), + const SizedBox(width: 8), + Flexible( + child: RepetitionUnitInputWidget( + key: const ValueKey('repetition-unit-input-widget'), + log?.repetitionsUnitObj, + onChanged: (v) => ref.read(gymLogProvider.notifier).setRepetitionUnit(v), + ), + ), + const SizedBox(width: 8), + ], + ), + if (_detailed) + Row( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Flexible( + child: WeightInputWidget( + key: const ValueKey('logs-weight-widget'), + valueChange: widget.configData.weightRounding, + ), + ), + const SizedBox(width: 8), + Flexible( + child: WeightUnitInputWidget( + log?.weightUnitObj, + onChanged: (v) => ref.read(gymLogProvider.notifier).setWeightUnit(v), + key: const ValueKey('weight-unit-input-widget'), + ), + ), + const SizedBox(width: 8), + ], + ), + if (_detailed) + RiRInputWidget( + key: const ValueKey('rir-input-widget'), + log?.rir, + onChanged: (value) { + if (log == null) { + return; + } + log.rir = value == '' ? null : num.parse(value); + }, + ), + SwitchListTile( + key: const ValueKey('units-switch'), + dense: true, + title: Text(i18n.setUnitsAndRir), + value: _detailed, + onChanged: (value) { + setState(() { + _detailed = !_detailed; + }); + }, + ), + FilledButton( + key: const ValueKey('save-log-button'), + onPressed: _isSaving + ? null + : () async { + final isValid = _form.currentState!.validate(); + if (!isValid) { + return; + } + _isSaving = true; + _form.currentState!.save(); + + try { + final gymState = ref.read(gymStateProvider); + final gymProvider = ref.read(gymStateProvider.notifier); + + final logToSave = ref.read(gymLogProvider); + await provider.Provider.of( + context, + listen: false, + ).addLog(logToSave!); + final page = gymState.getSlotEntryPageByIndex()!; + gymProvider.markSlotPageAsDone(page.uuid, isDone: true); + + if (mounted) { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + duration: const Duration(seconds: 2), + content: Text( + i18n.successfullySaved, + textAlign: TextAlign.center, + ), + ), + ); + } + widget.controller.nextPage( + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ); + setState(() { + _isSaving = false; + }); + } on WgerHttpException { + setState(() { + _isSaving = false; + }); + rethrow; + } finally { + setState(() { + _isSaving = false; + }); + } + }, + child: _isSaving ? const FormProgressIndicator() : Text(i18n.save), + ), + ], + ), + ); + } +} diff --git a/lib/widgets/routines/forms/repetitions.dart b/lib/widgets/routines/forms/repetitions.dart new file mode 100644 index 000000000..dfddb2c91 --- /dev/null +++ b/lib/widgets/routines/forms/repetitions.dart @@ -0,0 +1,192 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:intl/intl.dart'; +import 'package:logging/logging.dart'; +import 'package:provider/provider.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/workouts/repetition_unit.dart'; +import 'package:wger/providers/gym_log_state.dart'; +import 'package:wger/providers/routines.dart'; + +/// Input widget for repetition units +/// +/// Can be used with a Setting or a Log object +class RepetitionUnitInputWidget extends StatefulWidget { + final RepetitionUnit? initialRepetitionUnit; + final ValueChanged onChanged; + + const RepetitionUnitInputWidget(this.initialRepetitionUnit, {super.key, required this.onChanged}); + + @override + _RepetitionUnitInputWidgetState createState() => _RepetitionUnitInputWidgetState(); +} + +class _RepetitionUnitInputWidgetState extends State { + @override + Widget build(BuildContext context) { + final unitProvider = context.read(); + + RepetitionUnit? selectedWeightUnit = widget.initialRepetitionUnit; + + return DropdownButtonFormField( + initialValue: selectedWeightUnit, + decoration: InputDecoration(labelText: AppLocalizations.of(context).repetitionUnit), + isDense: true, + onChanged: (RepetitionUnit? newValue) { + if (newValue == null) { + return; + } + + setState(() { + selectedWeightUnit = newValue; + widget.onChanged(newValue); + }); + }, + items: unitProvider.repetitionUnits.map>(( + RepetitionUnit value, + ) { + return DropdownMenuItem( + key: Key(value.id.toString()), + value: value, + child: Text(value.name), + ); + }).toList(), + ); + } +} + +class RepetitionInputWidget extends ConsumerStatefulWidget { + final num valueChange; + final TextEditingController? controller; + + const RepetitionInputWidget({ + super.key, + this.controller, + num? valueChange, + }) : valueChange = valueChange ?? 1; + + @override + ConsumerState createState() => _RepetitionInputWidgetState(); +} + +class _RepetitionInputWidgetState extends ConsumerState { + final _logger = Logger('LogsRepsWidget'); + late TextEditingController _controller; + num? _lastReps; + + @override + void initState() { + super.initState(); + _controller = widget.controller ?? TextEditingController(); + } + + @override + void dispose() { + if (widget.controller == null) { + _controller.dispose(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final numberFormat = NumberFormat.decimalPattern(Localizations.localeOf(context).toString()); + final i18n = AppLocalizations.of(context); + + final logNotifier = ref.read(gymLogProvider.notifier); + final log = ref.watch(gymLogProvider); + final currentReps = log?.repetitions; + + // Only update the controller when the provider value actually changed + if (currentReps != _lastReps) { + WidgetsBinding.instance.addPostFrameCallback((_) { + if (!mounted) { + return; + } + if (currentReps != null) { + _controller.text = numberFormat.format(currentReps); + } else { + _controller.clear(); + } + _lastReps = currentReps; + }); + } + + return Row( + children: [ + // "Quick-remove" button + IconButton( + icon: const Icon(Icons.remove, color: Colors.black), + onPressed: () { + final base = currentReps ?? 0; + final newValue = base - widget.valueChange; + if (newValue >= 0 && log != null) { + logNotifier.setRepetitions(newValue); + } + }, + ), + + // Text field + Expanded( + child: TextFormField( + decoration: InputDecoration(labelText: i18n.repetitions), + enabled: true, + controller: _controller, + keyboardType: textInputTypeDecimal, + onChanged: (value) { + try { + final newValue = numberFormat.parse(value); + logNotifier.setRepetitions(newValue); + } on FormatException catch (error) { + _logger.finer('Error parsing repetitions: $error'); + } + }, + onSaved: (newValue) { + if (newValue == null || log == null) { + return; + } + logNotifier.setRepetitions(numberFormat.parse(newValue)); + }, + validator: (value) { + if (numberFormat.tryParse(value ?? '') == null) { + return i18n.enterValidNumber; + } + return null; + }, + ), + ), + + // "Quick-add" button + IconButton( + icon: const Icon(Icons.add, color: Colors.black), + onPressed: () { + final base = currentReps ?? 0; + final newValue = base + widget.valueChange; + if (newValue >= 0 && log != null) { + logNotifier.setRepetitions(newValue); + } + }, + ), + ], + ); + } +} diff --git a/lib/widgets/routines/forms/reps_unit.dart b/lib/widgets/routines/forms/reps_unit.dart deleted file mode 100644 index 70e53c3b5..000000000 --- a/lib/widgets/routines/forms/reps_unit.dart +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team - * - * wger Workout Manager is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wger Workout Manager is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import 'package:flutter/material.dart'; -import 'package:provider/provider.dart'; -import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/workouts/repetition_unit.dart'; -import 'package:wger/providers/routines.dart'; - -/// Input widget for repetition units -/// -/// Can be used with a Setting or a Log object -class RepetitionUnitInputWidget extends StatefulWidget { - late int? selectedRepetitionUnit; - final ValueChanged onChanged; - - RepetitionUnitInputWidget(initialValue, {required this.onChanged}) { - selectedRepetitionUnit = initialValue; - } - - @override - _RepetitionUnitInputWidgetState createState() => _RepetitionUnitInputWidgetState(); -} - -class _RepetitionUnitInputWidgetState extends State { - @override - Widget build(BuildContext context) { - final unitProvider = context.read(); - - RepetitionUnit? selectedWeightUnit = widget.selectedRepetitionUnit != null - ? unitProvider.findRepetitionUnitById(widget.selectedRepetitionUnit!) - : null; - - return DropdownButtonFormField( - value: selectedWeightUnit, - decoration: InputDecoration( - labelText: AppLocalizations.of(context).repetitionUnit, - ), - isDense: true, - onChanged: (RepetitionUnit? newValue) { - setState(() { - selectedWeightUnit = newValue!; - widget.selectedRepetitionUnit = newValue.id; - widget.onChanged(newValue.id); - }); - }, - items: Provider.of(context, listen: false).repetitionUnits - .map>((RepetitionUnit value) { - return DropdownMenuItem( - key: Key(value.id.toString()), - value: value, - child: Text(value.name), - ); - }) - .toList(), - ); - } -} diff --git a/lib/widgets/routines/forms/rir.dart b/lib/widgets/routines/forms/rir.dart index 254a3603d..da4066591 100644 --- a/lib/widgets/routines/forms/rir.dart +++ b/lib/widgets/routines/forms/rir.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -17,27 +17,21 @@ */ import 'package:flutter/material.dart'; +import 'package:logging/logging.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/slot_entry.dart'; /// Input widget for Reps In Reserve class RiRInputWidget extends StatefulWidget { + final _logger = Logger('RiRInputWidget'); + final num? _initialValue; final ValueChanged onChanged; - late String dropdownValue; - late double _currentSetSliderValue; static const SLIDER_START = -0.5; - RiRInputWidget(this._initialValue, {required this.onChanged}) { - dropdownValue = _initialValue != null ? _initialValue.toString() : SlotEntry.DEFAULT_RIR; - - // Read string RiR into a double - if (_initialValue != null) { - _currentSetSliderValue = _initialValue.toDouble(); - } else { - _currentSetSliderValue = SLIDER_START; - } + RiRInputWidget(this._initialValue, {super.key, required this.onChanged}) { + _logger.finer('Initializing with initial value: $_initialValue'); } @override @@ -45,6 +39,28 @@ class RiRInputWidget extends StatefulWidget { } class _RiRInputWidgetState extends State { + late double _currentSetSliderValue; + + @override + void initState() { + super.initState(); + _currentSetSliderValue = widget._initialValue?.toDouble() ?? RiRInputWidget.SLIDER_START; + widget._logger.finer('initState - starting slider value: ${widget._initialValue}'); + } + + @override + void didUpdateWidget(covariant RiRInputWidget oldWidget) { + super.didUpdateWidget(oldWidget); + + final newValue = widget._initialValue?.toDouble() ?? RiRInputWidget.SLIDER_START; + if (widget._initialValue != oldWidget._initialValue) { + widget._logger.finer('didUpdateWidget - new initial value: ${widget._initialValue}'); + setState(() { + _currentSetSliderValue = newValue; + }); + } + } + /// Returns the string used in the slider String getSliderLabel(double value) { if (value < 0) { @@ -77,15 +93,15 @@ class _RiRInputWidgetState extends State { Text(AppLocalizations.of(context).rir), Expanded( child: Slider( - value: widget._currentSetSliderValue, + value: _currentSetSliderValue, min: RiRInputWidget.SLIDER_START, max: (SlotEntry.POSSIBLE_RIR_VALUES.length - 2) / 2, divisions: SlotEntry.POSSIBLE_RIR_VALUES.length - 1, - label: getSliderLabel(widget._currentSetSliderValue), + label: getSliderLabel(_currentSetSliderValue), onChanged: (double value) { widget.onChanged(mapDoubleToAllowedRir(value)); setState(() { - widget._currentSetSliderValue = value; + _currentSetSliderValue = value; }); }, ), diff --git a/lib/widgets/routines/forms/routine.dart b/lib/widgets/routines/forms/routine.dart index bbdc9bb20..cb6d3b01d 100644 --- a/lib/widgets/routines/forms/routine.dart +++ b/lib/widgets/routines/forms/routine.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; diff --git a/lib/widgets/routines/forms/session.dart b/lib/widgets/routines/forms/session.dart index 191f3615e..b09cbbef3 100644 --- a/lib/widgets/routines/forms/session.dart +++ b/lib/widgets/routines/forms/session.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -20,7 +20,7 @@ import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/helpers/json.dart'; @@ -100,6 +100,7 @@ class _SessionFormState extends State { children: [ errorMessage, ToggleButtons( + key: const ValueKey('impression-toggle-buttons'), renderBorder: false, onPressed: (int index) { setState(() { @@ -142,6 +143,15 @@ class _SessionFormState extends State { decoration: InputDecoration( labelText: AppLocalizations.of(context).timeStart, errorMaxLines: 2, + suffix: IconButton( + onPressed: () => { + setState(() { + timeStartController.text = ''; + widget._session.timeStart = null; + }), + }, + icon: const Icon(Icons.clear), + ), ), controller: timeStartController, onFieldSubmitted: (_) {}, @@ -187,6 +197,15 @@ class _SessionFormState extends State { key: const ValueKey('time-end'), decoration: InputDecoration( labelText: AppLocalizations.of(context).timeEnd, + suffix: IconButton( + onPressed: () => { + setState(() { + timeEndController.text = ''; + widget._session.timeEnd = null; + }), + }, + icon: const Icon(Icons.clear), + ), ), controller: timeEndController, onFieldSubmitted: (_) {}, diff --git a/lib/widgets/routines/forms/slot.dart b/lib/widgets/routines/forms/slot.dart index 59ab4aa96..f392d997a 100644 --- a/lib/widgets/routines/forms/slot.dart +++ b/lib/widgets/routines/forms/slot.dart @@ -18,7 +18,7 @@ import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/day.dart'; diff --git a/lib/widgets/routines/forms/slot_entry.dart b/lib/widgets/routines/forms/slot_entry.dart index 94ccd7f5b..654cfb1eb 100644 --- a/lib/widgets/routines/forms/slot_entry.dart +++ b/lib/widgets/routines/forms/slot_entry.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -19,7 +19,7 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/errors.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; @@ -29,9 +29,9 @@ import 'package:wger/models/workouts/slot_entry.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/core/progress_indicator.dart'; import 'package:wger/widgets/exercises/autocompleter.dart'; -import 'package:wger/widgets/routines/forms/reps_unit.dart'; +import 'package:wger/widgets/routines/forms/repetitions.dart'; import 'package:wger/widgets/routines/forms/rir.dart'; -import 'package:wger/widgets/routines/forms/weight_unit.dart'; +import 'package:wger/widgets/routines/forms/weight.dart'; import 'package:wger/widgets/routines/slot.dart'; class SlotEntryForm extends StatefulWidget { @@ -216,9 +216,10 @@ class _SlotEntryFormState extends State { ), if (!widget.simpleMode) WeightUnitInputWidget( - widget.entry.weightUnitId, + widget.entry.weightUnitObj, onChanged: (value) { - widget.entry.weightUnitId = value; + widget.entry.weightUnitObj = null; + widget.entry.weightUnitId = null; }, ), Row( @@ -257,9 +258,10 @@ class _SlotEntryFormState extends State { ), if (!widget.simpleMode) RepetitionUnitInputWidget( - widget.entry.repetitionUnitId, + widget.entry.repetitionUnitObj, onChanged: (value) { - widget.entry.repetitionUnitId = value; + widget.entry.repetitionUnitObj = null; + widget.entry.repetitionUnitId = null; }, ), Row( diff --git a/lib/widgets/routines/forms/weight.dart b/lib/widgets/routines/forms/weight.dart new file mode 100644 index 000000000..51987ce96 --- /dev/null +++ b/lib/widgets/routines/forms/weight.dart @@ -0,0 +1,191 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:intl/intl.dart'; +import 'package:logging/logging.dart'; +import 'package:provider/provider.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/workouts/weight_unit.dart'; +import 'package:wger/providers/gym_log_state.dart'; +import 'package:wger/providers/plate_weights.dart'; +import 'package:wger/providers/routines.dart'; + +/// Input widget for workout weight units +/// +/// Can be used with a Setting or a Log object +class WeightUnitInputWidget extends StatefulWidget { + final WeightUnit? selectedWeightUnit; + final ValueChanged onChanged; + + const WeightUnitInputWidget(this.selectedWeightUnit, {super.key, required this.onChanged}); + + @override + _WeightUnitInputWidgetState createState() => _WeightUnitInputWidgetState(); +} + +class _WeightUnitInputWidgetState extends State { + @override + Widget build(BuildContext context) { + final unitProvider = context.read(); + + WeightUnit? selectedWeightUnit = widget.selectedWeightUnit; + + return DropdownButtonFormField( + initialValue: selectedWeightUnit, + decoration: InputDecoration(labelText: AppLocalizations.of(context).weightUnit), + onChanged: (WeightUnit? newValue) { + if (newValue == null) { + return; + } + + setState(() { + selectedWeightUnit = newValue; + widget.onChanged(newValue); + }); + }, + items: unitProvider.weightUnits.map>((WeightUnit value) { + return DropdownMenuItem( + key: Key(value.id.toString()), + value: value, + child: Text(value.name), + ); + }).toList(), + ); + } +} + +class WeightInputWidget extends ConsumerStatefulWidget { + final num valueChange; + final TextEditingController? controller; + + const WeightInputWidget({ + super.key, + this.controller, + num? valueChange, + }) : valueChange = valueChange ?? 1.25; + + @override + ConsumerState createState() => _WeightInputWidgetState(); +} + +class _WeightInputWidgetState extends ConsumerState { + final _logger = Logger('LogsWeightWidget'); + late TextEditingController _controller; + num? _lastWeight; + + @override + void initState() { + super.initState(); + _controller = widget.controller ?? TextEditingController(); + } + + @override + void dispose() { + if (widget.controller == null) { + _controller.dispose(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final numberFormat = NumberFormat.decimalPattern(Localizations.localeOf(context).toString()); + final i18n = AppLocalizations.of(context); + + final plateProvider = ref.read(plateCalculatorProvider.notifier); + final logProvider = ref.read(gymLogProvider.notifier); + final log = ref.watch(gymLogProvider); + final currentWeight = log?.weight; + + // Only update when provider value changed + if (currentWeight != _lastWeight) { + WidgetsBinding.instance.addPostFrameCallback((_) { + if (!mounted) { + return; + } + if (currentWeight != null) { + _controller.text = numberFormat.format(currentWeight); + } else { + _controller.clear(); + } + _lastWeight = currentWeight; + }); + } + + return Row( + children: [ + IconButton( + // "Quick-remove" button + icon: const Icon(Icons.remove, color: Colors.black), + onPressed: () { + final base = currentWeight ?? 0; + final newValue = base - widget.valueChange; + if (newValue >= 0 && log != null) { + logProvider.setWeight(newValue); + } + }, + ), + + // Text field + Expanded( + child: TextFormField( + controller: _controller, + decoration: InputDecoration(labelText: i18n.weight), + keyboardType: textInputTypeDecimal, + onChanged: (value) { + try { + final newValue = numberFormat.parse(value); + plateProvider.setWeight(newValue); + logProvider.setWeight(newValue); + } on FormatException catch (error) { + _logger.finer('Error parsing weight: $error'); + } + }, + onSaved: (newValue) { + if (newValue == null || log == null) { + return; + } + logProvider.setWeight(numberFormat.parse(newValue)); + }, + validator: (value) { + if (numberFormat.tryParse(value ?? '') == null) { + return i18n.enterValidNumber; + } + return null; + }, + ), + ), + + // "Quick-add" button + IconButton( + icon: const Icon(Icons.add, color: Colors.black), + onPressed: () { + final base = currentWeight ?? 0; + final newValue = base + widget.valueChange; + if (log != null) { + logProvider.setWeight(newValue); + } + }, + ), + ], + ); + } +} diff --git a/lib/widgets/routines/forms/weight_unit.dart b/lib/widgets/routines/forms/weight_unit.dart deleted file mode 100644 index 8afb67843..000000000 --- a/lib/widgets/routines/forms/weight_unit.dart +++ /dev/null @@ -1,70 +0,0 @@ -/* - * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team - * - * wger Workout Manager is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wger Workout Manager is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import 'package:flutter/material.dart'; -import 'package:provider/provider.dart'; -import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/workouts/weight_unit.dart'; -import 'package:wger/providers/routines.dart'; - -/// Input widget for workout weight units -/// -/// Can be used with a Setting or a Log object -class WeightUnitInputWidget extends StatefulWidget { - late int? selectedWeightUnit; - final ValueChanged onChanged; - - WeightUnitInputWidget(int? initialValue, {required this.onChanged}) { - selectedWeightUnit = initialValue; - } - - @override - _WeightUnitInputWidgetState createState() => _WeightUnitInputWidgetState(); -} - -class _WeightUnitInputWidgetState extends State { - @override - Widget build(BuildContext context) { - final unitProvider = context.read(); - - WeightUnit? selectedWeightUnit = widget.selectedWeightUnit != null - ? unitProvider.findWeightUnitById(widget.selectedWeightUnit!) - : null; - - return DropdownButtonFormField( - value: selectedWeightUnit, - decoration: InputDecoration(labelText: AppLocalizations.of(context).weightUnit), - onChanged: (WeightUnit? newValue) { - setState(() { - selectedWeightUnit = newValue!; - widget.selectedWeightUnit = newValue.id; - widget.onChanged(newValue.id); - }); - }, - items: Provider.of(context, listen: false).weightUnits - .map>((WeightUnit value) { - return DropdownMenuItem( - key: Key(value.id.toString()), - value: value, - child: Text(value.name), - ); - }) - .toList(), - ); - } -} diff --git a/lib/widgets/routines/gym_mode/exercise_overview.dart b/lib/widgets/routines/gym_mode/exercise_overview.dart index df34e8818..e823816a6 100644 --- a/lib/widgets/routines/gym_mode/exercise_overview.dart +++ b/lib/widgets/routines/gym_mode/exercise_overview.dart @@ -16,44 +16,45 @@ * along with this program. If not, see . */ import 'package:flutter/material.dart'; -import 'package:wger/models/exercises/exercise.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:logging/logging.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/widgets/exercises/exercises.dart'; import 'package:wger/widgets/routines/gym_mode/navigation.dart'; -class ExerciseOverview extends StatelessWidget { +class ExerciseOverview extends ConsumerWidget { + final _logger = Logger('ExerciseOverview'); final PageController _controller; - final Exercise _exercise; - final double _ratioCompleted; - final Map _exercisePages; - final int _totalPages; - const ExerciseOverview( - this._controller, - this._exercise, - this._ratioCompleted, - this._exercisePages, - this._totalPages, - ); + ExerciseOverview(this._controller); @override - Widget build(BuildContext context) { + Widget build(BuildContext context, WidgetRef ref) { + final page = ref.watch(gymStateProvider).getSlotEntryPageByIndex(); + + if (page == null) { + _logger.info( + 'getPageByIndex returned null, showing empty container.', + ); + return Container(); + } + final exercise = page.setConfigData!.exercise; + return Column( children: [ NavigationHeader( - _exercise.getTranslation(Localizations.localeOf(context).languageCode).name, + exercise.getTranslation(Localizations.localeOf(context).languageCode).name, _controller, - totalPages: _totalPages, - exercisePages: _exercisePages, ), Expanded( child: SingleChildScrollView( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 10), - child: ExerciseDetail(_exercise), + child: ExerciseDetail(exercise), ), ), ), - NavigationFooter(_controller, _ratioCompleted), + NavigationFooter(_controller), ], ); } diff --git a/lib/widgets/routines/gym_mode/gym_mode.dart b/lib/widgets/routines/gym_mode/gym_mode.dart index e769ed9bb..6cab0bc9f 100644 --- a/lib/widgets/routines/gym_mode/gym_mode.dart +++ b/lib/widgets/routines/gym_mode/gym_mode.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (C) 2020, 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -15,178 +15,107 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logging/logging.dart'; -import 'package:provider/provider.dart' as provider; -import 'package:wger/models/exercises/exercise.dart'; -import 'package:wger/models/workouts/day_data.dart'; -import 'package:wger/providers/exercises.dart'; +import 'package:provider/provider.dart'; import 'package:wger/providers/gym_state.dart'; import 'package:wger/providers/routines.dart'; -import 'package:wger/widgets/routines/gym_mode/exercise_overview.dart'; -import 'package:wger/widgets/routines/gym_mode/log_page.dart'; -import 'package:wger/widgets/routines/gym_mode/session_page.dart'; -import 'package:wger/widgets/routines/gym_mode/start_page.dart'; -import 'package:wger/widgets/routines/gym_mode/timer.dart'; +import 'package:wger/screens/gym_mode.dart'; +import 'package:wger/widgets/core/progress_indicator.dart'; + +import 'exercise_overview.dart'; +import 'log_page.dart'; +import 'session_page.dart'; +import 'start_page.dart'; +import 'summary.dart'; +import 'timer.dart'; class GymMode extends ConsumerStatefulWidget { - final DayData _dayDataGym; - final DayData _dayDataDisplay; - final int _iteration; + final GymModeArguments _args; final _logger = Logger('GymMode'); - GymMode(this._dayDataGym, this._dayDataDisplay, this._iteration); + GymMode(this._args); @override ConsumerState createState() => _GymModeState(); } class _GymModeState extends ConsumerState { - var _totalElements = 1; - var _totalPages = 1; late Future _initData; bool _initialPageJumped = false; - - /// Map with the first (navigation) page for each exercise - final Map _exercisePages = {}; late final PageController _controller; + @override + void initState() { + super.initState(); + _controller = PageController(initialPage: 0); + _initData = _loadGymState(); + } + @override void dispose() { _controller.dispose(); super.dispose(); } - @override - void initState() { - super.initState(); - _initData = _loadGymState(); - _controller = PageController(initialPage: 0); - _calculatePages(); - - WidgetsBinding.instance.addPostFrameCallback((_) { - ref.read(gymStateProvider.notifier).setExercisePages(_exercisePages); - }); - } - Future _loadGymState() async { - // Re-fetch the current routine data to ensure we have the latest session - // data since it is possible that the user created or deleted it from the - // web interface. - await context.read().fetchAndSetRoutineFull( - widget._dayDataGym.day!.routineId, + widget._logger.fine('Loading gym state'); + final routine = await context.read().fetchAndSetRoutineFull( + widget._args.routineId, ); - widget._logger.fine('Refreshed routine data'); - - final validUntil = ref.read(gymStateProvider).validUntil; - final currentPage = ref.read(gymStateProvider).currentPage; - final savedDayId = ref.read(gymStateProvider).dayId; - final newDayId = widget._dayDataGym.day!.id!; - - final shouldReset = newDayId != savedDayId || validUntil.isBefore(DateTime.now()); - if (shouldReset) { - widget._logger.fine('Day ID mismatch or expired validUntil date. Resetting to page 0.'); - } - final initialPage = shouldReset ? 0 : currentPage; - - WidgetsBinding.instance.addPostFrameCallback((_) { - ref.read(gymStateProvider.notifier) - ..setDayId(newDayId) - ..setCurrentPage(initialPage); - }); + final gymViewModel = ref.read(gymStateProvider.notifier); + final initialPage = gymViewModel.initData( + routine, + widget._args.dayId, + widget._args.iteration, + ); + await gymViewModel.loadPrefs(); + gymViewModel.calculatePages(); return initialPage; } - void _calculatePages() { - for (final slot in widget._dayDataGym.slots) { - _totalElements += slot.setConfigs.length; - // add 1 for each exercise - _totalPages += 1; - for (final config in slot.setConfigs) { - // add nrOfSets * 2, 1 for log page and 1 for timer - _totalPages += (config.nrOfSets! * 2).toInt(); - } - } - _exercisePages.clear(); - var currentPage = 1; - - for (final slot in widget._dayDataGym.slots) { - var firstPage = true; - for (final config in slot.setConfigs) { - final exercise = context.read().findExerciseById(config.exerciseId); - - if (firstPage) { - _exercisePages[exercise] = currentPage; - currentPage++; - } - currentPage += 2; - firstPage = false; - } - } - } - - List getContent() { - final state = ref.watch(gymStateProvider); - final exerciseProvider = context.read(); - final routinesProvider = context.read(); - var currentElement = 1; + List _getContent(GymModeState state) { + final gymState = ref.watch(gymStateProvider); final List out = []; - for (final slotData in widget._dayDataGym.slots) { - var firstPage = true; - for (final config in slotData.setConfigs) { - final ratioCompleted = currentElement / _totalElements; - final exercise = exerciseProvider.findExerciseById(config.exerciseId); - currentElement++; + // Workout overview + out.add(StartPage(_controller)); - if (firstPage && state.showExercisePages) { - out.add( - ExerciseOverview( - _controller, - exercise, - ratioCompleted, - state.exercisePages, - _totalPages, - ), - ); + // Sets + for (final page in state.pages) { + for (final slotPage in page.slotPages) { + if (slotPage.type == SlotPageType.exerciseOverview) { + out.add(ExerciseOverview(_controller)); } - out.add( - LogPage( - _controller, - config, - slotData, - exercise, - routinesProvider.findById(widget._dayDataGym.day!.routineId), - ratioCompleted, - state.exercisePages, - _totalPages, - widget._iteration, - ), - ); - - // If there is a rest time, add a countdown timer - if (config.restTime != null) { - out.add( - TimerCountdownWidget( - _controller, - config.restTime!.toInt(), - ratioCompleted, - state.exercisePages, - _totalPages, - ), - ); - } else { - out.add(TimerWidget(_controller, ratioCompleted, state.exercisePages, _totalPages)); + if (slotPage.type == SlotPageType.log) { + out.add(LogPage(_controller)); } - firstPage = false; + // Timer. Use rest time from config data if available, otherwise use user settings + final rest = slotPage.setConfigData?.restTime; + if (slotPage.type == SlotPageType.timer) { + out.add( + (rest != null || gymState.useCountdownBetweenSets) + ? TimerCountdownWidget( + _controller, + (rest ?? gymState.countdownDuration.inSeconds).toInt(), + ) + : TimerWidget(_controller), + ); + } } } + + // End + out.add(SessionPage(_controller)); + out.add(WorkoutSummary(_controller)); + return out; } @@ -196,43 +125,40 @@ class _GymModeState extends ConsumerState { future: _initData, builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { - return const Center(child: CircularProgressIndicator()); + return const BoxedProgressIndicator(); } else if (snapshot.hasError) { - return Center(child: Text('Error: ${snapshot.error}')); + return Center(child: Text('Error: ${snapshot.error}: ${snapshot.stackTrace}')); + } else if (snapshot.connectionState == ConnectionState.done) { + final initialPage = snapshot.data!; + + WidgetsBinding.instance.addPostFrameCallback((_) { + if (!_initialPageJumped && _controller.hasClients) { + _controller.jumpToPage(initialPage); + setState(() => _initialPageJumped = true); + } + }); + + final state = ref.watch(gymStateProvider); + final children = [ + ..._getContent(state), + ]; + + return PageView( + controller: _controller, + onPageChanged: (page) { + ref.read(gymStateProvider.notifier).setCurrentPage(page); + + // Check if the last page is reached + if (page == children.length - 1) { + widget._logger.finer('Last page reached, clearing gym state'); + ref.read(gymStateProvider.notifier).clear(); + } + }, + children: children, + ); } - final initialPage = snapshot.data!; - WidgetsBinding.instance.addPostFrameCallback((_) { - if (!_initialPageJumped && _controller.hasClients) { - _controller.jumpToPage(initialPage); - setState(() => _initialPageJumped = true); - } - }); - - final List children = [ - StartPage(_controller, widget._dayDataDisplay, _exercisePages), - ...getContent(), - SessionPage( - context.read().findById(widget._dayDataGym.day!.routineId), - _controller, - ref.read(gymStateProvider).startTime, - _exercisePages, - dayId: widget._dayDataGym.day!.id!, - ), - ]; - - return PageView( - controller: _controller, - onPageChanged: (page) { - ref.read(gymStateProvider.notifier).setCurrentPage(page); - - // Check if the last page is reached - if (page == children.length - 1) { - ref.read(gymStateProvider.notifier).clear(); - } - }, - children: children, - ); + return const Center(child: Text('Unexpected state')); }, ); } diff --git a/lib/widgets/routines/gym_mode/log_page.dart b/lib/widgets/routines/gym_mode/log_page.dart index 899d82ea0..cd0eef568 100644 --- a/lib/widgets/routines/gym_mode/log_page.dart +++ b/lib/widgets/routines/gym_mode/log_page.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -15,88 +15,65 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:intl/intl.dart'; import 'package:logging/logging.dart'; -import 'package:provider/provider.dart' as provider; -import 'package:wger/exceptions/http_exception.dart'; -import 'package:wger/helpers/consts.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/models/workouts/log.dart'; -import 'package:wger/models/workouts/routine.dart'; -import 'package:wger/models/workouts/set_config_data.dart'; -import 'package:wger/models/workouts/slot_data.dart'; import 'package:wger/models/workouts/slot_entry.dart'; +import 'package:wger/providers/gym_log_state.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/providers/plate_weights.dart'; -import 'package:wger/providers/routines.dart'; -import 'package:wger/screens/configure_plates_screen.dart'; +import 'package:wger/screens/settings_plates_screen.dart'; import 'package:wger/widgets/core/core.dart'; -import 'package:wger/widgets/core/progress_indicator.dart'; -import 'package:wger/widgets/routines/forms/reps_unit.dart'; -import 'package:wger/widgets/routines/forms/rir.dart'; -import 'package:wger/widgets/routines/forms/weight_unit.dart'; +import 'package:wger/widgets/routines/forms/log_form.dart'; import 'package:wger/widgets/routines/gym_mode/navigation.dart'; import 'package:wger/widgets/routines/plate_calculator.dart'; -class LogPage extends ConsumerStatefulWidget { +class LogPage extends ConsumerWidget { + final _logger = Logger('LogPage'); + final PageController _controller; - final SetConfigData _configData; - final SlotData _slotData; - final Exercise _exercise; - final Routine _routine; - final double _ratioCompleted; - final Map _exercisePages; - final Log _log; - final int _totalPages; - - LogPage( - this._controller, - this._configData, - this._slotData, - this._exercise, - this._routine, - this._ratioCompleted, - this._exercisePages, - this._totalPages, - int? iteration, - ) : _log = Log.fromSetConfigData(_configData) - ..routineId = _routine.id! - ..iteration = iteration; + LogPage(this._controller); @override - _LogPageState createState() => _LogPageState(); -} - -class _LogPageState extends ConsumerState { - final GlobalKey<_LogFormWidgetState> _logFormKey = GlobalKey<_LogFormWidgetState>(); - - late FocusNode focusNode; - - @override - void initState() { - super.initState(); - focusNode = FocusNode(); - } - - @override - void dispose() { - focusNode.dispose(); - super.dispose(); - } - - @override - Widget build(BuildContext context) { + Widget build(BuildContext context, WidgetRef ref) { final theme = Theme.of(context); + final gymState = ref.watch(gymStateProvider); + final languageCode = Localizations.localeOf(context).languageCode; + + final page = gymState.getPageByIndex(); + if (page == null) { + _logger.info( + 'getPageByIndex for ${gymState.currentPage} returned null, showing empty container.', + ); + return Container(); + } + + final slotEntryPage = gymState.getSlotEntryPageByIndex(); + if (slotEntryPage == null) { + _logger.info( + 'getSlotPageByIndex for ${gymState.currentPage} returned null, showing empty container', + ); + return Container(); + } + final setConfigData = slotEntryPage.setConfigData!; + + final log = ref.read(gymLogProvider); + + // Mark done sets + final decorationStyle = slotEntryPage.logDone + ? TextDecoration.lineThrough + : TextDecoration.none; return Column( children: [ NavigationHeader( - widget._exercise.getTranslation(Localizations.localeOf(context).languageCode).name, - widget._controller, - totalPages: widget._totalPages, - exercisePages: widget._exercisePages, + log!.exercise.getTranslation(languageCode).name, + _controller, + key: const ValueKey('log-page-navigation-header'), ), Container( @@ -105,40 +82,46 @@ class _LogPageState extends ConsumerState { child: Center( child: Column( children: [ + Column( + children: [ + Text( + setConfigData.textRepr, + textAlign: TextAlign.center, + style: theme.textTheme.headlineMedium?.copyWith( + color: Theme.of(context).colorScheme.primary, + decoration: decorationStyle, + ), + ), + if (setConfigData.type != SlotEntryType.normal) + Text( + setConfigData.type.name.toUpperCase(), + textAlign: TextAlign.center, + style: theme.textTheme.headlineSmall?.copyWith( + color: Theme.of(context).colorScheme.primary, + decoration: decorationStyle, + ), + ), + ], + ), Text( - widget._configData.textRepr, - style: theme.textTheme.headlineMedium?.copyWith( + '${slotEntryPage.setIndex + 1} / ${page.slotPages.where((e) => e.type == SlotPageType.log).length}', + style: theme.textTheme.bodyLarge?.copyWith( color: Theme.of(context).colorScheme.primary, ), textAlign: TextAlign.center, ), - if (widget._configData.type != SlotEntryType.normal) - Text( - widget._configData.type.name.toUpperCase(), - style: theme.textTheme.headlineMedium?.copyWith( - color: Theme.of(context).colorScheme.primary, - ), - textAlign: TextAlign.center, - ), ], ), ), ), - if (widget._log.exercise.showPlateCalculator) const LogsPlatesWidget(), - if (widget._slotData.comment.isNotEmpty) - Text(widget._slotData.comment, textAlign: TextAlign.center), + if (log.exercise.showPlateCalculator) const LogsPlatesWidget(), + if (slotEntryPage.setConfigData!.comment.isNotEmpty) + Text(slotEntryPage.setConfigData!.comment, textAlign: TextAlign.center), const SizedBox(height: 10), Expanded( - child: (widget._routine.filterLogsByExercise(widget._exercise.id!).isNotEmpty) + child: (gymState.routine.filterLogsByExercise(log.exerciseId).isNotEmpty) ? LogsPastLogsWidget( - log: widget._log, - pastLogs: widget._routine.filterLogsByExercise(widget._exercise.id!), - onCopy: (pastLog) { - _logFormKey.currentState?.copyFromPastLog(pastLog); - }, - setStateCallback: (fn) { - setState(fn); - }, + pastLogs: gymState.routine.filterLogsByExercise(log.exerciseId), ) : Container(), ), @@ -151,16 +134,14 @@ class _LogPageState extends ConsumerState { child: Padding( padding: const EdgeInsets.symmetric(vertical: 5), child: LogFormWidget( - key: _logFormKey, - controller: widget._controller, - configData: widget._configData, - log: widget._log, - focusNode: focusNode, + controller: _controller, + configData: setConfigData, + key: ValueKey('log-form-${slotEntryPage.uuid}'), ), ), ), ), - NavigationFooter(widget._controller, widget._ratioCompleted), + NavigationFooter(_controller), ], ); } @@ -220,216 +201,19 @@ class LogsPlatesWidget extends ConsumerWidget { } } -class LogsRepsWidget extends StatelessWidget { - final TextEditingController controller; - final SetConfigData configData; - final FocusNode focusNode; - final Log log; - final void Function(VoidCallback fn) setStateCallback; +class LogsPastLogsWidget extends ConsumerWidget { + final List pastLogs; - final _logger = Logger('LogsRepsWidget'); - - LogsRepsWidget({ + const LogsPastLogsWidget({ super.key, - required this.controller, - required this.configData, - required this.focusNode, - required this.log, - required this.setStateCallback, - }); - - @override - Widget build(BuildContext context) { - final repsValueChange = configData.repetitionsRounding ?? 1; - final numberFormat = NumberFormat.decimalPattern(Localizations.localeOf(context).toString()); - - final i18n = AppLocalizations.of(context); - - return Row( - children: [ - IconButton( - icon: const Icon(Icons.remove, color: Colors.black), - onPressed: () { - final currentValue = numberFormat.tryParse(controller.text) ?? 0; - final newValue = currentValue - repsValueChange; - if (newValue >= 0) { - setStateCallback(() { - log.repetitions = newValue; - controller.text = numberFormat.format(newValue); - }); - } - }, - ), - Expanded( - child: TextFormField( - decoration: InputDecoration(labelText: i18n.repetitions), - enabled: true, - controller: controller, - keyboardType: textInputTypeDecimal, - focusNode: focusNode, - onChanged: (value) { - try { - final newValue = numberFormat.parse(value); - setStateCallback(() { - log.repetitions = newValue; - }); - } on FormatException catch (error) { - _logger.fine('Error parsing repetitions: $error'); - } - }, - onSaved: (newValue) { - _logger.info('Saving new reps value: $newValue'); - setStateCallback(() { - log.repetitions = numberFormat.parse(newValue!); - }); - }, - validator: (value) { - if (numberFormat.tryParse(value ?? '') == null) { - return i18n.enterValidNumber; - } - return null; - }, - ), - ), - IconButton( - icon: const Icon(Icons.add, color: Colors.black), - onPressed: () { - try { - final newValue = numberFormat.parse(controller.text) + repsValueChange; - setStateCallback(() { - log.repetitions = newValue; - controller.text = numberFormat.format(newValue); - }); - } on FormatException catch (error) { - _logger.fine('Error parsing reps during quick-add: $error'); - } - }, - ), - ], - ); - } -} - -class LogsWeightWidget extends ConsumerWidget { - final TextEditingController controller; - final SetConfigData configData; - final FocusNode focusNode; - final Log log; - final void Function(VoidCallback fn) setStateCallback; - - final _logger = Logger('LogsWeightWidget'); - - LogsWeightWidget({ - super.key, - required this.controller, - required this.configData, - required this.focusNode, - required this.log, - required this.setStateCallback, + required this.pastLogs, }); @override Widget build(BuildContext context, WidgetRef ref) { - final weightValueChange = configData.weightRounding ?? 1.25; - final numberFormat = NumberFormat.decimalPattern(Localizations.localeOf(context).toString()); - final i18n = AppLocalizations.of(context); + final logProvider = ref.read(gymLogProvider.notifier); + final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode); - return Row( - children: [ - IconButton( - icon: const Icon(Icons.remove, color: Colors.black), - onPressed: () { - try { - final newValue = numberFormat.parse(controller.text) - weightValueChange; - if (newValue > 0) { - setStateCallback(() { - log.weight = newValue; - controller.text = numberFormat.format(newValue); - ref - .read(plateCalculatorProvider.notifier) - .setWeight( - controller.text == '' ? 0 : newValue, - ); - }); - } - } on FormatException catch (error) { - _logger.fine('Error parsing weight during quick-remove: $error'); - } - }, - ), - Expanded( - child: TextFormField( - decoration: InputDecoration(labelText: i18n.weight), - controller: controller, - keyboardType: textInputTypeDecimal, - onChanged: (value) { - try { - final newValue = numberFormat.parse(value); - setStateCallback(() { - log.weight = newValue; - ref - .read(plateCalculatorProvider.notifier) - .setWeight( - controller.text == '' ? 0 : numberFormat.parse(controller.text), - ); - }); - } on FormatException catch (error) { - _logger.fine('Error parsing weight: $error'); - } - }, - onSaved: (newValue) { - setStateCallback(() { - log.weight = numberFormat.parse(newValue!); - }); - }, - validator: (value) { - if (numberFormat.tryParse(value ?? '') == null) { - return i18n.enterValidNumber; - } - return null; - }, - ), - ), - IconButton( - icon: const Icon(Icons.add, color: Colors.black), - onPressed: () { - try { - final newValue = numberFormat.parse(controller.text) + weightValueChange; - setStateCallback(() { - log.weight = newValue; - controller.text = numberFormat.format(newValue); - ref - .read(plateCalculatorProvider.notifier) - .setWeight( - controller.text == '' ? 0 : newValue, - ); - }); - } on FormatException catch (error) { - _logger.fine('Error parsing weight during quick-add: $error'); - } - }, - ), - ], - ); - } -} - -class LogsPastLogsWidget extends StatelessWidget { - final Log log; - final List pastLogs; - final void Function(Log pastLog) onCopy; - final void Function(VoidCallback fn) setStateCallback; - - const LogsPastLogsWidget({ - super.key, - required this.log, - required this.pastLogs, - required this.onCopy, - required this.setStateCallback, - }); - - @override - Widget build(BuildContext context) { return Container( padding: const EdgeInsets.symmetric(vertical: 8), child: ListView( @@ -441,26 +225,16 @@ class LogsPastLogsWidget extends StatelessWidget { ), ...pastLogs.map((pastLog) { return ListTile( - title: Text(pastLog.singleLogRepTextNoNl), - subtitle: Text( - DateFormat.yMd(Localizations.localeOf(context).languageCode).format(pastLog.date), - ), + key: ValueKey('past-log-${pastLog.id}'), + title: Text(pastLog.repTextNoNl(context)), + subtitle: Text(dateFormat.format(pastLog.date)), trailing: const Icon(Icons.copy), onTap: () { - setStateCallback(() { - log.rir = pastLog.rir; - log.repetitionUnit = pastLog.repetitionsUnitObj; - log.weightUnit = pastLog.weightUnitObj; - - onCopy(pastLog); - - ScaffoldMessenger.of(context).hideCurrentSnackBar(); - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: Text(AppLocalizations.of(context).dataCopied), - ), - ); - }); + logProvider.setLog(pastLog); + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of(context).showSnackBar( + SnackBar(content: Text(AppLocalizations.of(context).dataCopied)), + ); }, contentPadding: const EdgeInsets.symmetric(horizontal: 40), ); @@ -470,233 +244,3 @@ class LogsPastLogsWidget extends StatelessWidget { ); } } - -class LogFormWidget extends ConsumerStatefulWidget { - final PageController controller; - final SetConfigData configData; - final Log log; - final FocusNode focusNode; - - const LogFormWidget({ - super.key, - required this.controller, - required this.configData, - required this.log, - required this.focusNode, - }); - - @override - _LogFormWidgetState createState() => _LogFormWidgetState(); -} - -class _LogFormWidgetState extends ConsumerState { - final _form = GlobalKey(); - var _detailed = false; - bool _isSaving = false; - - late final TextEditingController _repetitionsController; - late final TextEditingController _weightController; - - @override - void initState() { - super.initState(); - - _repetitionsController = TextEditingController(); - _weightController = TextEditingController(); - - WidgetsBinding.instance.addPostFrameCallback((_) { - final locale = Localizations.localeOf(context).toString(); - final numberFormat = NumberFormat.decimalPattern(locale); - - if (widget.configData.repetitions != null) { - _repetitionsController.text = numberFormat.format(widget.configData.repetitions); - } - - if (widget.configData.weight != null) { - _weightController.text = numberFormat.format(widget.configData.weight); - } - }); - } - - @override - void dispose() { - _repetitionsController.dispose(); - _weightController.dispose(); - super.dispose(); - } - - void copyFromPastLog(Log pastLog) { - final locale = Localizations.localeOf(context).toString(); - final numberFormat = NumberFormat.decimalPattern(locale); - - setState(() { - _repetitionsController.text = pastLog.repetitions != null - ? numberFormat.format(pastLog.repetitions) - : ''; - _weightController.text = pastLog.weight != null ? numberFormat.format(pastLog.weight) : ''; - }); - } - - @override - Widget build(BuildContext context) { - final i18n = AppLocalizations.of(context); - - return Form( - key: _form, - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - i18n.newEntry, - style: Theme.of(context).textTheme.titleLarge, - textAlign: TextAlign.center, - ), - if (!_detailed) - Row( - children: [ - Flexible( - child: LogsRepsWidget( - controller: _repetitionsController, - configData: widget.configData, - focusNode: widget.focusNode, - log: widget.log, - setStateCallback: (fn) { - setState(fn); - }, - ), - ), - const SizedBox(width: 8), - Flexible( - child: LogsWeightWidget( - controller: _weightController, - configData: widget.configData, - focusNode: widget.focusNode, - log: widget.log, - setStateCallback: (fn) { - setState(fn); - }, - ), - ), - ], - ), - if (_detailed) - Row( - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Flexible( - child: LogsRepsWidget( - controller: _repetitionsController, - configData: widget.configData, - focusNode: widget.focusNode, - log: widget.log, - setStateCallback: (fn) { - setState(fn); - }, - ), - ), - const SizedBox(width: 8), - Flexible( - child: RepetitionUnitInputWidget( - widget.log.repetitionsUnitId, - onChanged: (v) => {}, - ), - ), - const SizedBox(width: 8), - ], - ), - if (_detailed) - Row( - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Flexible( - child: LogsWeightWidget( - controller: _weightController, - configData: widget.configData, - focusNode: widget.focusNode, - log: widget.log, - setStateCallback: (fn) { - setState(fn); - }, - ), - ), - const SizedBox(width: 8), - Flexible( - child: WeightUnitInputWidget(widget.log.weightUnitId, onChanged: (v) => {}), - ), - const SizedBox(width: 8), - ], - ), - if (_detailed) - RiRInputWidget( - widget.log.rir, - onChanged: (value) { - if (value == '') { - widget.log.rir = null; - } else { - widget.log.rir = num.parse(value); - } - }, - ), - SwitchListTile( - dense: true, - title: Text(i18n.setUnitsAndRir), - value: _detailed, - onChanged: (value) { - setState(() { - _detailed = !_detailed; - }); - }, - ), - FilledButton( - onPressed: _isSaving - ? null - : () async { - final isValid = _form.currentState!.validate(); - if (!isValid) { - return; - } - _isSaving = true; - _form.currentState!.save(); - - try { - await provider.Provider.of( - context, - listen: false, - ).addLog(widget.log); - - if (mounted) { - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - duration: const Duration(seconds: 2), - content: Text( - i18n.successfullySaved, - textAlign: TextAlign.center, - ), - ), - ); - } - widget.controller.nextPage( - duration: DEFAULT_ANIMATION_DURATION, - curve: DEFAULT_ANIMATION_CURVE, - ); - setState(() { - _isSaving = false; - }); - } on WgerHttpException { - setState(() { - _isSaving = false; - }); - rethrow; - } finally { - setState(() { - _isSaving = false; - }); - } - }, - child: _isSaving ? const FormProgressIndicator() : Text(i18n.save), - ), - ], - ), - ); - } -} diff --git a/lib/widgets/routines/gym_mode/navigation.dart b/lib/widgets/routines/gym_mode/navigation.dart index 3ff2391cd..f770ae88f 100644 --- a/lib/widgets/routines/gym_mode/navigation.dart +++ b/lib/widgets/routines/gym_mode/navigation.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -17,131 +17,24 @@ */ import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:wger/helpers/consts.dart'; -import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/exercises/exercise.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/theme/theme.dart'; - -class NavigationFooter extends StatelessWidget { - final PageController _controller; - final double _ratioCompleted; - final bool showPrevious; - final bool showNext; - - const NavigationFooter( - this._controller, - this._ratioCompleted, { - this.showPrevious = true, - this.showNext = true, - }); - - @override - Widget build(BuildContext context) { - return Row( - children: [ - if (showPrevious) - IconButton( - icon: const Icon(Icons.chevron_left), - onPressed: () { - _controller.previousPage( - duration: DEFAULT_ANIMATION_DURATION, - curve: DEFAULT_ANIMATION_CURVE, - ); - }, - ) - else - const SizedBox(width: 48), - Expanded( - child: LinearProgressIndicator( - minHeight: 3, - value: _ratioCompleted, - valueColor: const AlwaysStoppedAnimation(wgerPrimaryColor), - ), - ), - if (showNext) - IconButton( - icon: const Icon(Icons.chevron_right), - onPressed: () { - _controller.nextPage( - duration: DEFAULT_ANIMATION_DURATION, - curve: DEFAULT_ANIMATION_CURVE, - ); - }, - ) - else - const SizedBox(width: 48), - ], - ); - } -} +import 'package:wger/widgets/routines/gym_mode/workout_menu.dart'; class NavigationHeader extends StatelessWidget { final PageController _controller; final String _title; - final Map exercisePages; - final int? totalPages; + final bool showEndWorkoutButton; const NavigationHeader( this._title, this._controller, { - this.totalPages, - required this.exercisePages, + this.showEndWorkoutButton = true, + super.key, }); - Widget getDialog(BuildContext context) { - final TextButton? endWorkoutButton = totalPages != null - ? TextButton( - child: Text(AppLocalizations.of(context).endWorkout), - onPressed: () { - _controller.animateToPage( - totalPages!, - duration: DEFAULT_ANIMATION_DURATION, - curve: DEFAULT_ANIMATION_CURVE, - ); - - Navigator.of(context).pop(); - }, - ) - : null; - - return AlertDialog( - title: Text( - AppLocalizations.of(context).jumpTo, - textAlign: TextAlign.center, - ), - contentPadding: EdgeInsets.zero, - content: SingleChildScrollView( - child: Column( - children: [ - ...exercisePages.keys.map((e) { - return ListTile( - title: Text(e.getTranslation(Localizations.localeOf(context).languageCode).name), - trailing: const Icon(Icons.chevron_right), - onTap: () { - _controller.animateToPage( - exercisePages[e]!, - duration: DEFAULT_ANIMATION_DURATION, - curve: DEFAULT_ANIMATION_CURVE, - ); - Navigator.of(context).pop(); - }, - ); - }), - ], - ), - ), - actions: [ - ?endWorkoutButton, - TextButton( - child: Text(MaterialLocalizations.of(context).closeButtonLabel), - onPressed: () { - Navigator.of(context).pop(); - }, - ), - ], - ); - } - @override Widget build(BuildContext context) { return Row( @@ -163,11 +56,11 @@ class NavigationHeader extends StatelessWidget { ), ), IconButton( - icon: const Icon(Icons.toc), + icon: const Icon(Icons.menu), onPressed: () { showDialog( context: context, - builder: (ctx) => getDialog(context), + builder: (ctx) => WorkoutMenuDialog(_controller), ); }, ), @@ -175,3 +68,65 @@ class NavigationHeader extends StatelessWidget { ); } } + +class NavigationFooter extends ConsumerWidget { + final PageController _controller; + final bool showPrevious; + final bool showNext; + + const NavigationFooter( + this._controller, { + this.showPrevious = true, + this.showNext = true, + }); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final gymState = ref.watch(gymStateProvider); + + return Row( + children: [ + if (showPrevious) + IconButton( + icon: const Icon(Icons.chevron_left), + onPressed: () { + _controller.previousPage( + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ); + }, + ) + else + const SizedBox(width: 48), + Expanded( + child: GestureDetector( + onTap: () => showDialog( + context: context, + builder: (ctx) => WorkoutMenuDialog(_controller, initialIndex: 1), + ), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 15), + child: LinearProgressIndicator( + minHeight: 3, + value: gymState.ratioCompleted, + valueColor: const AlwaysStoppedAnimation(wgerPrimaryColor), + ), + ), + ), + ), + if (showNext) + IconButton( + icon: const Icon(Icons.chevron_right), + onPressed: () { + _controller.nextPage( + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ); + }, + ) + else + const SizedBox(width: 48), + ], + ); + } +} diff --git a/lib/widgets/routines/gym_mode/session_page.dart b/lib/widgets/routines/gym_mode/session_page.dart index 455091566..f1789a87c 100644 --- a/lib/widgets/routines/gym_mode/session_page.dart +++ b/lib/widgets/routines/gym_mode/session_page.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -15,62 +15,96 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:provider/provider.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/date.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/models/workouts/routine.dart'; import 'package:wger/models/workouts/session.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/routines/forms/session.dart'; import 'package:wger/widgets/routines/gym_mode/navigation.dart'; -class SessionPage extends StatelessWidget { - final Routine _routine; - final WorkoutSession _session; +class SessionPage extends ConsumerStatefulWidget { final PageController _controller; - final Map _exercisePages; - SessionPage( - this._routine, - this._controller, - TimeOfDay start, - this._exercisePages, { - int? dayId, - }) : _session = _routine.sessions - .map((sessionApi) => sessionApi.session) - .firstWhere( - (session) => session.date.isSameDayAs(clock.now()), - orElse: () => WorkoutSession( - dayId: dayId, - routineId: _routine.id!, - impression: DEFAULT_IMPRESSION, - date: clock.now(), - timeStart: start, - timeEnd: TimeOfDay.fromDateTime(clock.now()), - ), - ); + const SessionPage(this._controller); + + @override + ConsumerState createState() => _SessionPageState(); +} + +class _SessionPageState extends ConsumerState { + late Future _initData; + late Routine _routine; + + @override + void initState() { + super.initState(); + _initData = _reloadRoutineData(); + } + + Future _reloadRoutineData() async { + final gymState = ref.read(gymStateProvider); + _routine = await context.read().fetchAndSetRoutineFull(gymState.routine.id!); + } @override Widget build(BuildContext context) { + final i18n = AppLocalizations.of(context); + final gymState = ref.read(gymStateProvider); + return Column( children: [ - NavigationHeader( - AppLocalizations.of(context).workoutSession, - _controller, - exercisePages: _exercisePages, - ), - Expanded(child: Container()), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 15), - child: SessionForm( - _routine.id!, - onSaved: () => Navigator.of(context).pop(), - session: _session, + NavigationHeader(i18n.workoutSession, widget._controller), + Expanded( + child: FutureBuilder( + future: _initData, + builder: (context, snapshot) { + if (snapshot.connectionState == ConnectionState.waiting) { + return const Center(child: CircularProgressIndicator()); + } else if (snapshot.hasError) { + return Center(child: Text('Error: ${snapshot.error}')); + } else { + final session = _routine.sessions + .map((sessionApi) => sessionApi.session) + .firstWhere( + (s) => s.date.isSameDayAs(clock.now()), + orElse: () => WorkoutSession( + dayId: gymState.dayId, + date: clock.now(), + routineId: gymState.routine.id, + timeStart: gymState.startTime, + timeEnd: TimeOfDay.fromDateTime(clock.now()), + ), + ); + + return Column( + children: [ + Expanded(child: Container()), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 15), + child: SessionForm( + gymState.routine.id, + onSaved: () => widget._controller.nextPage( + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ), + session: session, + ), + ), + ], + ); + } + }, ), ), - NavigationFooter(_controller, 1, showNext: false), + NavigationFooter(widget._controller), ], ); } diff --git a/lib/widgets/routines/gym_mode/start_page.dart b/lib/widgets/routines/gym_mode/start_page.dart index ca6721339..f609a1420 100644 --- a/lib/widgets/routines/gym_mode/start_page.dart +++ b/lib/widgets/routines/gym_mode/start_page.dart @@ -1,78 +1,243 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (C) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * wger Workout Manager is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/exercises/exercise.dart'; import 'package:wger/models/workouts/day.dart'; -import 'package:wger/models/workouts/day_data.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/widgets/exercises/images.dart'; import 'package:wger/widgets/routines/gym_mode/navigation.dart'; -class StartPage extends StatelessWidget { - final PageController _controller; - final DayData _dayData; - final Map _exercisePages; +class GymModeOptions extends ConsumerStatefulWidget { + const GymModeOptions({super.key}); - const StartPage(this._controller, this._dayData, this._exercisePages); + @override + ConsumerState createState() => _GymModeOptionsState(); +} + +class _GymModeOptionsState extends ConsumerState { + bool _showOptions = false; + late TextEditingController _countdownController; + + @override + void initState() { + super.initState(); + final initial = ref.read(gymStateProvider).countdownDuration.inSeconds.toString(); + _countdownController = TextEditingController(text: initial); + } + + @override + void dispose() { + _countdownController.dispose(); + super.dispose(); + } @override Widget build(BuildContext context) { + final gymState = ref.watch(gymStateProvider); + final gymNotifier = ref.watch(gymStateProvider.notifier); + final i18n = AppLocalizations.of(context); + + // If the value in the provider changed, update the controller text + final currentText = gymState.countdownDuration.inSeconds.toString(); + if (_countdownController.text != currentText) { + _countdownController.text = currentText; + } + + return Column( + children: [ + AnimatedCrossFade( + firstChild: const SizedBox.shrink(), + secondChild: Padding( + padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6), + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 400), + child: Card( + child: SingleChildScrollView( + child: Column( + children: [ + SwitchListTile( + key: const ValueKey('gym-mode-option-show-exercises'), + title: Text(i18n.gymModeShowExercises), + value: gymState.showExercisePages, + onChanged: (value) => gymNotifier.setShowExercisePages(value), + ), + SwitchListTile( + key: const ValueKey('gym-mode-option-show-timer'), + title: Text(i18n.gymModeShowTimer), + value: gymState.showTimerPages, + onChanged: (value) => gymNotifier.setShowTimerPages(value), + ), + ListTile( + key: const ValueKey('gym-mode-timer-type'), + enabled: gymState.showTimerPages, + title: Text(i18n.gymModeTimerType), + trailing: DropdownButton( + key: const ValueKey('countdown-type-dropdown'), + value: gymState.useCountdownBetweenSets, + onChanged: gymState.showTimerPages + ? (bool? newValue) { + if (newValue != null) { + gymNotifier.setUseCountdownBetweenSets(newValue); + } + } + : null, + items: [false, true].map>((bool value) { + final label = value ? i18n.countdown : i18n.stopwatch; + + return DropdownMenuItem(value: value, child: Text(label)); + }).toList(), + ), + subtitle: Text(i18n.gymModeTimerTypeHelText), + ), + ListTile( + key: const ValueKey('gym-mode-default-countdown-time'), + enabled: gymState.showTimerPages, + title: TextFormField( + controller: _countdownController, + keyboardType: TextInputType.number, + decoration: InputDecoration( + labelText: i18n.gymModeDefaultCountdownTime, + suffix: IconButton( + onPressed: gymState.showTimerPages && gymState.useCountdownBetweenSets + ? () => gymNotifier.setCountdownDuration( + DEFAULT_COUNTDOWN_DURATION, + ) + : null, + icon: const Icon(Icons.refresh), + ), + ), + onChanged: (value) { + final intValue = int.tryParse(value); + if (intValue != null && + intValue > 0 && + intValue < MAX_COUNTDOWN_DURATION) { + gymNotifier.setCountdownDuration(intValue); + } + }, + autovalidateMode: AutovalidateMode.onUserInteraction, + validator: (String? value) { + final intValue = int.tryParse(value!); + if (intValue == null || + intValue < MIN_COUNTDOWN_DURATION || + intValue > MAX_COUNTDOWN_DURATION) { + return i18n.formMinMaxValues( + MIN_COUNTDOWN_DURATION, + MAX_COUNTDOWN_DURATION, + ); + } + return null; + }, + enabled: gymState.showTimerPages && gymState.useCountdownBetweenSets, + ), + ), + SwitchListTile( + key: const ValueKey('gym-mode-notify-countdown'), + title: Text(i18n.gymModeNotifyOnCountdownFinish), + value: gymState.alertOnCountdownEnd, + onChanged: (gymState.showTimerPages && gymState.useCountdownBetweenSets) + ? (value) => gymNotifier.setAlertOnCountdownEnd(value) + : null, + ), + ], + ), + ), + ), + ), + ), + crossFadeState: _showOptions ? CrossFadeState.showSecond : CrossFadeState.showFirst, + duration: const Duration(milliseconds: 200), + ), + + ListTile( + key: const ValueKey('gym-mode-options-tile'), + title: Text(i18n.settingsTitle), + leading: const Icon(Icons.settings), + onTap: () => setState(() => _showOptions = !_showOptions), + ), + ], + ); + } +} + +class StartPage extends ConsumerWidget { + final PageController _controller; + + const StartPage(this._controller); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final dayDataDisplay = ref.watch(gymStateProvider).dayDataDisplay; + return Column( children: [ NavigationHeader( AppLocalizations.of(context).todaysWorkout, _controller, - exercisePages: _exercisePages, + showEndWorkoutButton: false, ), + Expanded( child: ListView( children: [ - if (_dayData.day!.isSpecialType) + if (dayDataDisplay.day!.isSpecialType) Center( child: Padding( padding: const EdgeInsets.all(15), child: Text( - '${_dayData.day!.type.name.toUpperCase()}\n${_dayData.day!.type.i18Label(AppLocalizations.of(context))}', + '${dayDataDisplay.day!.type.name.toUpperCase()}\n${dayDataDisplay.day!.type.i18Label(AppLocalizations.of(context))}', textAlign: TextAlign.center, style: Theme.of(context).textTheme.headlineSmall, ), ), ), - ..._dayData.slots.map((slotData) { - return Column( - children: [ - ...slotData.setConfigs - .fold>>({}, (acc, entry) { - acc.putIfAbsent(entry.exercise, () => []).add(entry.textReprWithType); - return acc; - }) - .entries - .map((entry) { - final exercise = entry.key; - return Column( - children: [ - ListTile( - leading: SizedBox( - width: 45, - child: ExerciseImageWidget(image: exercise.getMainImage), - ), - title: Text( - exercise - .getTranslation(Localizations.localeOf(context).languageCode) - .name, - ), - subtitle: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: entry.value.map((text) => Text(text)).toList(), - ), - ), - ], - ); - }), - ], - ); - }), + ...dayDataDisplay.slots + .expand((slot) => slot.setConfigs) + .fold>>({}, (acc, entry) { + acc.putIfAbsent(entry.exercise, () => []).add(entry.textReprWithType); + return acc; + }) + .entries + .map((entry) { + final exercise = entry.key; + return Column( + children: [ + ListTile( + leading: SizedBox( + width: 45, + child: ExerciseImageWidget(image: exercise.getMainImage), + ), + title: Text( + exercise + .getTranslation(Localizations.localeOf(context).languageCode) + .name, + ), + subtitle: Text(entry.value.toList().join('\n')), + ), + ], + ); + }), ], ), ), + const GymModeOptions(), FilledButton( child: Text(AppLocalizations.of(context).start), onPressed: () { @@ -82,7 +247,7 @@ class StartPage extends StatelessWidget { ); }, ), - NavigationFooter(_controller, 0, showPrevious: false), + NavigationFooter(_controller, showPrevious: false), ], ); } diff --git a/lib/widgets/routines/gym_mode/summary.dart b/lib/widgets/routines/gym_mode/summary.dart new file mode 100644 index 000000000..e50975008 --- /dev/null +++ b/lib/widgets/routines/gym_mode/summary.dart @@ -0,0 +1,238 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:clock/clock.dart'; +import 'package:collection/collection.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:logging/logging.dart'; +import 'package:provider/provider.dart'; +import 'package:wger/helpers/date.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/trophies/user_trophy.dart'; +import 'package:wger/models/workouts/routine.dart'; +import 'package:wger/models/workouts/session_api.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/providers/routines.dart'; +import 'package:wger/providers/trophies.dart'; +import 'package:wger/widgets/core/progress_indicator.dart'; +import 'package:wger/widgets/routines/gym_mode/navigation.dart'; + +import '../logs/exercises_expansion_card.dart'; +import '../logs/muscle_groups.dart'; + +class WorkoutSummary extends ConsumerStatefulWidget { + final _logger = Logger('WorkoutSummary'); + final PageController _controller; + + WorkoutSummary(this._controller); + + @override + ConsumerState createState() => _WorkoutSummaryState(); +} + +class _WorkoutSummaryState extends ConsumerState { + late Future _initData; + late Routine _routine; + bool _didInit = false; + + @override + void initState() { + super.initState(); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + if (!_didInit) { + final languageCode = Localizations.localeOf(context).languageCode; + _initData = _reloadRoutineData(languageCode); + _didInit = true; + } + } + + Future _reloadRoutineData(String languageCode) async { + widget._logger.fine('Loading routine data'); + final gymState = ref.read(gymStateProvider); + + _routine = await context.read().fetchAndSetRoutineFull( + gymState.routine.id!, + ); + + final trophyNotifier = ref.read(trophyStateProvider.notifier); + await trophyNotifier.fetchUserTrophies(language: languageCode); + } + + @override + Widget build(BuildContext context) { + final trophyState = ref.watch(trophyStateProvider); + + return Column( + children: [ + NavigationHeader( + AppLocalizations.of(context).workoutCompleted, + widget._controller, + showEndWorkoutButton: false, + ), + Expanded( + child: FutureBuilder( + future: _initData, + builder: (context, snapshot) { + if (snapshot.connectionState == ConnectionState.waiting) { + return const BoxedProgressIndicator(); + } else if (snapshot.hasError) { + widget._logger.warning(snapshot.error); + widget._logger.warning(snapshot.stackTrace); + return Center(child: Text('Error: ${snapshot.error}')); + } else if (snapshot.connectionState == ConnectionState.done) { + final apiSession = _routine.sessions.firstWhereOrNull( + (s) => s.session.date.isSameDayAs(clock.now()), + ); + final userTrophies = trophyState.prTrophies + .where((t) => t.contextData?.sessionId == apiSession?.session.id) + .toList(); + + return WorkoutSessionStats( + apiSession, + userTrophies, + ); + } + + return const Center(child: Text('Unexpected state!')); + }, + ), + ), + NavigationFooter(widget._controller, showNext: false), + ], + ); + } +} + +class WorkoutSessionStats extends ConsumerWidget { + final _logger = Logger('WorkoutSessionStats'); + final WorkoutSessionApi? _sessionApi; + final List _userPrTrophies; + + WorkoutSessionStats(this._sessionApi, this._userPrTrophies, {super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final i18n = AppLocalizations.of(context); + final theme = Theme.of(context); + + if (_sessionApi == null) { + return Center( + child: Text( + 'Nothing logged yet.', + style: Theme.of(context).textTheme.titleMedium, + ), + ); + } + + final session = _sessionApi.session; + final sessionDuration = session.duration; + final totalVolume = _sessionApi.volume; + + /// We assume that users will do exercises (mostly) either in metric or imperial + /// units so we just display the higher one. + String volumeUnit; + num volumeValue; + if (totalVolume['metric']! > totalVolume['imperial']!) { + volumeValue = totalVolume['metric']!; + volumeUnit = i18n.kg; + } else { + volumeValue = totalVolume['imperial']!; + volumeUnit = i18n.lb; + } + + return ListView( + padding: const EdgeInsets.all(16.0), + children: [ + Row( + children: [ + Expanded( + child: InfoCard( + title: i18n.duration, + value: sessionDuration != null + ? i18n.durationHoursMinutes( + sessionDuration.inHours, + sessionDuration.inMinutes.remainder(60), + ) + : '-/-', + ), + ), + const SizedBox(width: 10), + Expanded( + child: InfoCard( + title: i18n.volume, + value: '${volumeValue.toStringAsFixed(0)} $volumeUnit', + ), + ), + ], + ), + if (_userPrTrophies.isNotEmpty) + Padding( + padding: const EdgeInsets.only(top: 10), + child: InfoCard( + title: i18n.personalRecords, + value: _userPrTrophies.length.toString(), + color: theme.colorScheme.tertiaryContainer, + ), + ), + const SizedBox(height: 10), + MuscleGroupsCard(_sessionApi.logs), + const SizedBox(height: 10), + ExercisesCard(_sessionApi, _userPrTrophies), + FilledButton( + onPressed: () { + ref.read(gymStateProvider.notifier).clear(); + Navigator.of(context).pop(); + }, + child: Text(i18n.endWorkout), + ), + ], + ); + } +} + +class InfoCard extends StatelessWidget { + final String title; + final String value; + final Color? color; + + const InfoCard({required this.title, required this.value, this.color, super.key}); + + @override + Widget build(BuildContext context) { + final theme = Theme.of(context); + return Card( + color: color, + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(title, style: theme.textTheme.titleMedium), + const SizedBox(height: 8), + Text(value, style: theme.textTheme.headlineMedium), + ], + ), + ), + ); + } +} diff --git a/lib/widgets/routines/gym_mode/timer.dart b/lib/widgets/routines/gym_mode/timer.dart index e9ccb5482..9d2201ee6 100644 --- a/lib/widgets/routines/gym_mode/timer.dart +++ b/lib/widgets/routines/gym_mode/timer.dart @@ -1,6 +1,6 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (C) 2020, 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -18,19 +18,18 @@ import 'dart:async'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:intl/intl.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/exercises/exercise.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/theme/theme.dart'; import 'package:wger/widgets/routines/gym_mode/navigation.dart'; class TimerWidget extends StatefulWidget { final PageController _controller; - final double _ratioCompleted; - final Map _exercisePages; - final _totalPages; - const TimerWidget(this._controller, this._ratioCompleted, this._exercisePages, this._totalPages); + const TimerWidget(this._controller); @override _TimerWidgetState createState() => _TimerWidgetState(); @@ -69,8 +68,6 @@ class _TimerWidgetState extends State { NavigationHeader( AppLocalizations.of(context).pause, widget._controller, - totalPages: widget._totalPages, - exercisePages: widget._exercisePages, ), Expanded( child: Center( @@ -80,35 +77,31 @@ class _TimerWidgetState extends State { ), ), ), - NavigationFooter(widget._controller, widget._ratioCompleted), + NavigationFooter(widget._controller), ], ); } } -class TimerCountdownWidget extends StatefulWidget { +class TimerCountdownWidget extends ConsumerStatefulWidget { final PageController _controller; - final double _ratioCompleted; final int _seconds; - final Map _exercisePages; - final int _totalPages; const TimerCountdownWidget( this._controller, this._seconds, - this._ratioCompleted, - this._exercisePages, - this._totalPages, ); @override _TimerCountdownWidgetState createState() => _TimerCountdownWidgetState(); } -class _TimerCountdownWidgetState extends State { +class _TimerCountdownWidgetState extends ConsumerState { late DateTime _endTime; late Timer _uiTimer; + bool _hasNotified = false; + @override void initState() { super.initState(); @@ -131,24 +124,40 @@ class _TimerCountdownWidgetState extends State { final remaining = _endTime.difference(DateTime.now()); final remainingSeconds = remaining.inSeconds <= 0 ? 0 : remaining.inSeconds; final displayTime = DateTime(2000, 1, 1, 0, 0, 0).add(Duration(seconds: remainingSeconds)); + final gymState = ref.watch(gymStateProvider); + + // When countdown finishes, notify ONCE, and respect settings + if (remainingSeconds == 0 && !_hasNotified) { + if (gymState.alertOnCountdownEnd) { + HapticFeedback.mediumImpact(); + + // Not that this only works on desktop platforms + SystemSound.play(SystemSoundType.alert); + } + setState(() { + _hasNotified = true; + }); + } return Column( children: [ NavigationHeader( AppLocalizations.of(context).pause, widget._controller, - totalPages: widget._totalPages, - exercisePages: widget._exercisePages, ), Expanded( - child: Center( - child: Text( - DateFormat('m:ss').format(displayTime), - style: Theme.of(context).textTheme.displayLarge!.copyWith(color: wgerPrimaryColor), - ), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + DateFormat('m:ss').format(displayTime), + style: Theme.of(context).textTheme.displayLarge!.copyWith(color: wgerPrimaryColor), + ), + const SizedBox(height: 16), + ], ), ), - NavigationFooter(widget._controller, widget._ratioCompleted), + NavigationFooter(widget._controller), ], ); } diff --git a/lib/widgets/routines/gym_mode/workout_menu.dart b/lib/widgets/routines/gym_mode/workout_menu.dart new file mode 100644 index 000000000..84bcb191b --- /dev/null +++ b/lib/widgets/routines/gym_mode/workout_menu.dart @@ -0,0 +1,454 @@ +// /* +// * This file is part of wger Workout Manager . +// * Copyright (C) 2020, 2025 wger Team +// * +// * wger Workout Manager is free software: you can redistribute it and/or modify +// * it under the terms of the GNU Affero General Public License as published by +// * the Free Software Foundation, either version 3 of the License, or +// * (at your option) any later version. +// * +// * wger Workout Manager is distributed in the hope that it will be useful, +// * but WITHOUT ANY WARRANTY; without even the implied warranty of +// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// * GNU Affero General Public License for more details. +// * +// * You should have received a copy of the GNU Affero General Public License +// * along with this program. If not, see . +// */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:logging/logging.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/widgets/exercises/autocompleter.dart'; + +class WorkoutMenu extends StatelessWidget { + final PageController _controller; + final int initialIndex; + + const WorkoutMenu(this._controller, {this.initialIndex = 0, super.key}); + + @override + Widget build(BuildContext context) { + return DefaultTabController( + initialIndex: initialIndex, + length: 2, + child: Column( + children: [ + const TabBar( + tabs: [ + Tab(icon: Icon(Icons.menu_open)), + Tab(icon: Icon(Icons.stacked_bar_chart)), + ], + ), + Flexible( + child: TabBarView( + children: [ + NavigationTab(_controller), + ProgressionTab(_controller), + ], + ), + ), + ], + ), + ); + } +} + +class NavigationTab extends ConsumerWidget { + final PageController _controller; + + const NavigationTab(this._controller); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final state = ref.watch(gymStateProvider); + + return SingleChildScrollView( + child: Column( + children: [ + ...state.pages.where((pageEntry) => pageEntry.type == PageType.set).map((page) { + return ListTile( + leading: page.allLogsDone ? const Icon(Icons.check) : null, + title: Text( + page.exercises + .map( + (exercise) => exercise + .getTranslation(Localizations.localeOf(context).languageCode) + .name, + ) + .toList() + .join('\n'), + style: TextStyle( + decoration: page.allLogsDone ? TextDecoration.lineThrough : TextDecoration.none, + ), + ), + trailing: const Icon(Icons.chevron_right), + onTap: () { + _controller.animateToPage( + page.pageIndex, + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ); + Navigator.of(context).pop(); + }, + ); + }), + ], + ), + ); + } +} + +class ProgressionTab extends ConsumerStatefulWidget { + final _logger = Logger('ProgressionTab'); + final PageController _controller; + + ProgressionTab(this._controller, {super.key}); + + @override + ConsumerState createState() => _ProgressionTabState(); +} + +class _ProgressionTabState extends ConsumerState { + String? showSwapWidgetToPage; + String? showAddExerciseWidgetToPage; + _ProgressionTabState(); + + @override + Widget build(BuildContext context) { + final state = ref.watch(gymStateProvider); + final theme = Theme.of(context); + final languageCode = Localizations.localeOf(context).languageCode; + + return SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 15), + child: Column( + children: [ + ...state.pages.where((page) => page.type == PageType.set).map((page) { + if (page.exercises.isEmpty) { + widget._logger.warning('Page ${page.uuid} has no exercises, skipping'); + return Container(); + } + + // For supersets, prefix the exercise with A, B, C so it can be identified + // in the set list below + final isSuperset = page.exercises.length > 1; + final pageExerciseTitle = isSuperset + ? page.exercises + .asMap() + .entries + .map((entry) { + final label = String.fromCharCode(65 + entry.key); + final name = entry.value + .getTranslation(Localizations.localeOf(context).languageCode) + .name; + return '$label: $name'; + }) + .join('\n') + : page.exercises.first.getTranslation(languageCode).name; + + return Column( + mainAxisSize: MainAxisSize.max, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(pageExerciseTitle, style: Theme.of(context).textTheme.bodyLarge), + ...page.slotPages.where((slotPage) => slotPage.type == SlotPageType.log).map( + (slotPage) { + String setPrefix = ''; + if (isSuperset) { + final exerciseIndex = page.exercises.indexWhere( + (ex) => ex.id == slotPage.setConfigData!.exercise.id, + ); + if (exerciseIndex != -1) { + setPrefix = '${String.fromCharCode(65 + exerciseIndex)}: '; + } + } + + // Sets that are done are marked with a strikethrough + final decoration = slotPage.logDone + ? TextDecoration.lineThrough + : TextDecoration.none; + + // Sets that are done have a lighter color + final color = slotPage.logDone + ? theme.colorScheme.onSurface.withValues(alpha: 0.6) + : null; + + // The row for the current page is highlighted in bold + final fontWeight = state.currentPage == slotPage.pageIndex + ? FontWeight.bold + : null; + + IconData icon = Icons.circle_outlined; + if (slotPage.logDone) { + icon = Icons.check_circle_rounded; + } else if (state.currentPage == slotPage.pageIndex) { + icon = Icons.play_circle_fill; + } + + return Row( + children: [ + Icon(icon, size: 16), + const SizedBox(width: 4), + Text( + '$setPrefix${slotPage.setConfigData!.textReprWithType}', + style: theme.textTheme.bodyMedium!.copyWith( + decoration: decoration, + fontWeight: fontWeight, + color: color, + ), + ), + ], + ); + }, + ), + + Row( + mainAxisSize: MainAxisSize.max, + //mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + IconButton( + onPressed: page.allLogsDone + ? null + : () { + if (showSwapWidgetToPage == page.uuid) { + setState(() { + showSwapWidgetToPage = null; + }); + } else { + setState(() { + showSwapWidgetToPage = page.uuid; + showAddExerciseWidgetToPage = null; + }); + } + }, + icon: Icon( + key: ValueKey('swap-icon-${page.uuid}'), + showSwapWidgetToPage == page.uuid + ? Icons.change_circle + : Icons.change_circle_outlined, + ), + ), + IconButton( + onPressed: page.allLogsDone + ? null + : () { + if (showAddExerciseWidgetToPage == page.uuid) { + setState(() { + showAddExerciseWidgetToPage = null; + }); + } else { + setState(() { + showAddExerciseWidgetToPage = page.uuid; + showSwapWidgetToPage = null; + }); + } + }, + icon: Icon( + key: ValueKey('add-icon-${page.uuid}'), + showAddExerciseWidgetToPage == page.uuid ? Icons.add_circle : Icons.add, + ), + ), + Expanded(child: Container()), + IconButton( + onPressed: () { + widget._controller.animateToPage( + page.pageIndex, + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ); + Navigator.of(context).pop(); + }, + icon: const Icon(Icons.chevron_right), + ), + ], + ), + if (showSwapWidgetToPage == page.uuid) + ExerciseSwapWidget( + page.uuid, + onDone: () { + setState(() { + showSwapWidgetToPage = null; + }); + }, + ), + if (showAddExerciseWidgetToPage == page.uuid) + ExerciseAddWidget( + page.uuid, + onDone: () { + setState(() { + showAddExerciseWidgetToPage = null; + }); + }, + ), + const SizedBox(height: 8), + ], + ); + }), + Padding( + padding: const EdgeInsets.all(8.0), + child: Text( + 'Swapping or adding an exercise only affects the current workout, ' + 'no changes are saved.', + style: Theme.of(context).textTheme.bodySmall, + textAlign: TextAlign.center, + ), + ), + ], + ), + ), + ); + } +} + +class ExerciseSwapWidget extends ConsumerWidget { + final _logger = Logger('ExerciseSwapWidget'); + + final String pageUUID; + final VoidCallback? onDone; + + ExerciseSwapWidget(this.pageUUID, {this.onDone, super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final state = ref.watch(gymStateProvider); + final gymProvider = ref.read(gymStateProvider.notifier); + final page = state.pages.firstWhere((p) => p.uuid == pageUUID); + + return Padding( + padding: const EdgeInsets.symmetric(vertical: 10), + child: Card( + child: Padding( + padding: const EdgeInsets.all(5), + child: Column( + children: [ + ...page.exercises.map((e) { + return Column( + mainAxisSize: MainAxisSize.max, + children: [ + Text( + e.getTranslation(Localizations.localeOf(context).languageCode).name, + style: Theme.of(context).textTheme.bodyLarge, + ), + const Icon(Icons.swap_vert), + ExerciseAutocompleter( + onExerciseSelected: (exercise) { + gymProvider.replaceExercises( + page.uuid, + originalExerciseId: e.id!, + newExercise: exercise, + ); + onDone?.call(); + _logger.fine('Replaced exercise ${e.id} with ${exercise.id}'); + }, + ), + const SizedBox(height: 10), + ], + ); + }), + ], + ), + ), + ), + ); + } +} + +class ExerciseAddWidget extends ConsumerWidget { + final _logger = Logger('ExerciseAddWidget'); + + final String pageUUID; + final VoidCallback? onDone; + + ExerciseAddWidget(this.pageUUID, {this.onDone, super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final state = ref.watch(gymStateProvider); + final gymProvider = ref.read(gymStateProvider.notifier); + final page = state.pages.firstWhere((p) => p.uuid == pageUUID); + + return Padding( + padding: const EdgeInsets.symmetric(vertical: 10), + child: Card( + child: Padding( + padding: const EdgeInsets.all(5), + child: Column( + children: [ + ExerciseAutocompleter( + onExerciseSelected: (exercise) { + gymProvider.addExerciseAfterPage( + page.uuid, + newExercise: exercise, + ); + onDone?.call(); + _logger.fine('Added exercise ${exercise.id} after page $pageUUID'); + }, + ), + const Icon(Icons.arrow_downward), + const SizedBox(height: 10), + ], + ), + ), + ), + ); + } +} + +class WorkoutMenuDialog extends ConsumerWidget { + final PageController controller; + final bool showEndWorkoutButton; + final int initialIndex; + + const WorkoutMenuDialog( + this.controller, { + super.key, + this.showEndWorkoutButton = true, + this.initialIndex = 0, + }); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final gymState = ref.watch(gymStateProvider); + + final endWorkoutButton = true + ? TextButton( + child: Text(AppLocalizations.of(context).endWorkout), + onPressed: () { + controller.animateToPage( + gymState.totalPages, + duration: DEFAULT_ANIMATION_DURATION, + curve: DEFAULT_ANIMATION_CURVE, + ); + + Navigator.of(context).pop(); + }, + ) + : null; + + return AlertDialog( + title: Text( + AppLocalizations.of(context).jumpTo, + textAlign: TextAlign.center, + ), + contentPadding: EdgeInsets.zero, + content: SizedBox( + width: double.maxFinite, + child: WorkoutMenu(controller, initialIndex: initialIndex), + ), + actions: [ + ?endWorkoutButton, + TextButton( + child: Text(MaterialLocalizations.of(context).closeButtonLabel), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ); + } +} diff --git a/lib/widgets/routines/log.dart b/lib/widgets/routines/log.dart deleted file mode 100644 index 9613ec1da..000000000 --- a/lib/widgets/routines/log.dart +++ /dev/null @@ -1,225 +0,0 @@ -/* - * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team - * - * wger Workout Manager is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wger Workout Manager is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import 'package:flutter/material.dart'; -import 'package:intl/intl.dart'; -import 'package:wger/helpers/colors.dart'; -import 'package:wger/helpers/date.dart'; -import 'package:wger/helpers/errors.dart'; -import 'package:wger/helpers/misc.dart'; -import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/models/workouts/log.dart'; -import 'package:wger/models/workouts/routine.dart'; -import 'package:wger/models/workouts/session.dart'; -import 'package:wger/widgets/measurements/charts.dart'; -import 'package:wger/widgets/routines/charts.dart'; -import 'package:wger/widgets/routines/forms/session.dart'; - -class SessionInfo extends StatefulWidget { - final WorkoutSession _session; - - const SessionInfo(this._session); - - @override - State createState() => _SessionInfoState(); -} - -class _SessionInfoState extends State { - bool editMode = false; - - @override - Widget build(BuildContext context) { - final i18n = AppLocalizations.of(context); - - return Padding( - padding: const EdgeInsets.all(16.0), - child: Column( - children: [ - ListTile( - title: Text( - i18n.workoutSession, - style: Theme.of(context).textTheme.headlineSmall, - ), - subtitle: Text( - DateFormat.yMd( - Localizations.localeOf(context).languageCode, - ).format(widget._session.date), - ), - onTap: () => setState(() => editMode = !editMode), - trailing: Icon(editMode ? Icons.edit_off : Icons.edit), - contentPadding: EdgeInsets.zero, - ), - if (editMode) - SessionForm( - widget._session.routineId!, - onSaved: () => setState(() => editMode = false), - session: widget._session, - ) - else - Column( - children: [ - _buildInfoRow( - context, - i18n.timeStart, - widget._session.timeStart != null - ? MaterialLocalizations.of( - context, - ).formatTimeOfDay(widget._session.timeStart!) - : '-/-', - ), - _buildInfoRow( - context, - i18n.timeEnd, - widget._session.timeEnd != null - ? MaterialLocalizations.of(context).formatTimeOfDay(widget._session.timeEnd!) - : '-/-', - ), - _buildInfoRow( - context, - i18n.impression, - widget._session.impressionAsString, - ), - _buildInfoRow( - context, - i18n.notes, - widget._session.notes.isNotEmpty ? widget._session.notes : '-/-', - ), - ], - ), - ], - ), - ); - } - - Widget _buildInfoRow(BuildContext context, String label, String value) { - return Padding( - padding: const EdgeInsets.symmetric(vertical: 4.0), - child: Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - '$label: ', - style: Theme.of(context).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold), - ), - Expanded(child: Text(value)), - ], - ), - ); - } -} - -class ExerciseLogChart extends StatelessWidget { - final Map> _logs; - final DateTime _selectedDate; - - const ExerciseLogChart(this._logs, this._selectedDate); - - @override - Widget build(BuildContext context) { - final colors = generateChartColors(_logs.keys.length).iterator; - - return Column( - mainAxisSize: MainAxisSize.max, - children: [ - LogChartWidgetFl(_logs, _selectedDate), - SingleChildScrollView( - scrollDirection: Axis.horizontal, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - ..._logs.keys.map((reps) { - colors.moveNext(); - - return Indicator( - color: colors.current, - text: formatNum(reps).toString(), - isSquare: false, - ); - }), - ], - ), - ), - const SizedBox(height: 15), - ], - ); - } -} - -class DayLogWidget extends StatelessWidget { - final DateTime _date; - final Routine _routine; - - const DayLogWidget(this._date, this._routine); - - @override - Widget build(BuildContext context) { - final sessionApi = _routine.sessions.firstWhere( - (sessionApi) => sessionApi.session.date.isSameDayAs(_date), - ); - final exercises = sessionApi.exercises; - - return Card( - child: Column( - children: [ - SessionInfo(sessionApi.session), - ...exercises.map((exercise) { - final translation = exercise.getTranslation( - Localizations.localeOf(context).languageCode, - ); - return Column( - children: [ - Text( - translation.name, - style: Theme.of(context).textTheme.titleMedium, - ), - ...sessionApi.logs - .where((l) => l.exerciseId == exercise.id) - .map( - (log) => Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text(log.singleLogRepTextNoNl), - IconButton( - icon: const Icon(Icons.delete), - key: ValueKey('delete-log-${log.id}'), - onPressed: () { - showDeleteDialog(context, translation.name, log); - }, - ), - ], - ), - ), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 15), - child: ExerciseLogChart( - _routine.groupLogsByRepetition( - logs: _routine.filterLogsByExercise(exercise.id!), - filterNullReps: true, - filterNullWeights: true, - ), - _date, - ), - ), - ], - ); - }), - ], - ), - ); - } -} diff --git a/lib/widgets/routines/logs/day_logs_container.dart b/lib/widgets/routines/logs/day_logs_container.dart new file mode 100644 index 000000000..506723d2e --- /dev/null +++ b/lib/widgets/routines/logs/day_logs_container.dart @@ -0,0 +1,132 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:wger/helpers/date.dart'; +import 'package:wger/helpers/errors.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/workouts/routine.dart'; +import 'package:wger/providers/trophies.dart'; + +import '../gym_mode/summary.dart'; +import 'exercise_log_chart.dart'; +import 'muscle_groups.dart'; +import 'session_info.dart'; + +class DayLogWidget extends ConsumerWidget { + final DateTime _date; + final Routine _routine; + + const DayLogWidget(this._date, this._routine); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final i18n = AppLocalizations.of(context); + final theme = Theme.of(context); + + final trophyState = ref.read(trophyStateProvider); + + final sessionApi = _routine.sessions.firstWhere( + (sessionApi) => sessionApi.session.date.isSameDayAs(_date), + ); + final exercises = sessionApi.exercises; + + final prTrophies = trophyState.prTrophies + .where((t) => t.contextData?.sessionId == sessionApi.session.id) + .toList(); + + return Column( + spacing: 10, + children: [ + Card(child: SessionInfo(sessionApi.session)), + if (prTrophies.isNotEmpty) + SizedBox( + width: double.infinity, + child: InfoCard( + title: i18n.personalRecords, + value: prTrophies.length.toString(), + color: theme.colorScheme.tertiaryContainer, + ), + ), + MuscleGroupsCard(sessionApi.logs), + Column( + spacing: 10, + children: [ + ...exercises.map((exercise) { + final translation = exercise.getTranslation( + Localizations.localeOf(context).languageCode, + ); + return Card( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + children: [ + Text( + translation.name, + style: Theme.of(context).textTheme.titleLarge, + ), + ...sessionApi.logs + .where((l) => l.exerciseId == exercise.id) + .map( + (log) => Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + children: [ + if (prTrophies.any((t) => t.contextData?.logId == log.id)) + Icon( + Icons.emoji_events, + color: theme.colorScheme.primary, + size: 20, + ), + Text(log.repTextNoNl(context)), + ], + ), + IconButton( + icon: const Icon(Icons.delete), + key: ValueKey('delete-log-${log.id}'), + onPressed: () { + showDeleteDialog(context, translation.name, log); + }, + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 15), + child: ExerciseLogChart( + _routine.groupLogsByRepetition( + logs: _routine.filterLogsByExercise(exercise.id!), + filterNullReps: true, + filterNullWeights: true, + ), + _date, + ), + ), + ], + ), + ), + ); + }), + ], + ), + ], + ); + } +} diff --git a/lib/widgets/routines/logs/exercise_log_chart.dart b/lib/widgets/routines/logs/exercise_log_chart.dart new file mode 100644 index 000000000..c40af1162 --- /dev/null +++ b/lib/widgets/routines/logs/exercise_log_chart.dart @@ -0,0 +1,61 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/widgets.dart'; +import 'package:wger/helpers/colors.dart'; +import 'package:wger/helpers/misc.dart'; +import 'package:wger/models/workouts/log.dart'; +import 'package:wger/widgets/measurements/charts.dart'; +import 'package:wger/widgets/routines/charts.dart'; + +class ExerciseLogChart extends StatelessWidget { + final Map> _logs; + final DateTime _selectedDate; + + const ExerciseLogChart(this._logs, this._selectedDate); + + @override + Widget build(BuildContext context) { + final colors = generateChartColors(_logs.keys.length).iterator; + + return Column( + mainAxisSize: MainAxisSize.max, + children: [ + LogChartWidgetFl(_logs, _selectedDate), + SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ..._logs.keys.map((reps) { + colors.moveNext(); + + return Indicator( + color: colors.current, + text: formatNum(reps).toString(), + isSquare: false, + ); + }), + ], + ), + ), + const SizedBox(height: 15), + ], + ); + } +} diff --git a/lib/widgets/routines/logs/exercises_expansion_card.dart b/lib/widgets/routines/logs/exercises_expansion_card.dart new file mode 100644 index 000000000..0a1a35169 --- /dev/null +++ b/lib/widgets/routines/logs/exercises_expansion_card.dart @@ -0,0 +1,126 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:wger/helpers/i18n.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/exercises/exercise.dart'; +import 'package:wger/models/trophies/user_trophy.dart'; +import 'package:wger/models/workouts/log.dart'; +import 'package:wger/models/workouts/session_api.dart'; + +class ExercisesCard extends StatelessWidget { + final WorkoutSessionApi session; + final List userPrTrophies; + + const ExercisesCard(this.session, this.userPrTrophies, {super.key}); + + @override + Widget build(BuildContext context) { + final exercises = session.exercises; + return Card( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + AppLocalizations.of(context).exercises, + style: Theme.of(context).textTheme.titleLarge, + ), + const SizedBox(height: 16), + ...exercises.map((exercise) { + final logs = session.logs.where((log) => log.exerciseId == exercise.id).toList(); + return _ExerciseExpansionTile( + exercise: exercise, + logs: logs, + userPrTrophies: userPrTrophies, + ); + }), + ], + ), + ), + ); + } +} + +class _ExerciseExpansionTile extends StatelessWidget { + const _ExerciseExpansionTile({ + required this.exercise, + required this.logs, + required this.userPrTrophies, + }); + + final List userPrTrophies; + final Exercise exercise; + final List logs; + + @override + Widget build(BuildContext context) { + final languageCode = Localizations.localeOf(context).languageCode; + final theme = Theme.of(context); + final i18n = AppLocalizations.of(context); + + final topSet = logs.isEmpty + ? null + : logs.reduce((a, b) => (a.weight ?? 0) > (b.weight ?? 0) ? a : b); + final topSetWeight = topSet?.weight?.toStringAsFixed(0) ?? 'N/A'; + final topSetWeightUnit = topSet?.weightUnitObj != null + ? getServerStringTranslation(topSet!.weightUnitObj!.name, context) + : ''; + return ExpansionTile( + // leading: const Icon(Icons.fitness_center), + title: Text(exercise.getTranslation(languageCode).name, style: theme.textTheme.titleMedium), + subtitle: Text(i18n.topSet('$topSetWeight $topSetWeightUnit')), + children: logs.map((log) => _SetDataRow(log: log, userPrTrophies: userPrTrophies)).toList(), + ); + } +} + +class _SetDataRow extends StatelessWidget { + const _SetDataRow({required this.log, required this.userPrTrophies}); + + final Log log; + final List userPrTrophies; + + @override + Widget build(BuildContext context) { + final theme = Theme.of(context); + + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + spacing: 5, + children: [ + Text( + log.repTextNoNl(context), + style: theme.textTheme.bodyMedium, + ), + if (userPrTrophies.any((trophy) => trophy.contextData?.logId == log.id)) + Icon(Icons.emoji_events, color: theme.colorScheme.primary, size: 20), + // if (log.volume() > 0) + // Text( + // '${log.volume().toStringAsFixed(0)} ${getServerStringTranslation(log.weightUnitObj!.name, context)}', + // style: theme.textTheme.bodyMedium, + // ), + ], + ), + ); + } +} diff --git a/lib/widgets/routines/workout_logs.dart b/lib/widgets/routines/logs/log_overview_routine.dart similarity index 73% rename from lib/widgets/routines/workout_logs.dart rename to lib/widgets/routines/logs/log_overview_routine.dart index 66ab75aa2..34f0be5ad 100644 --- a/lib/widgets/routines/workout_logs.dart +++ b/lib/widgets/routines/logs/log_overview_routine.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -18,20 +18,26 @@ import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:table_calendar/table_calendar.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/routine.dart'; +import 'package:wger/providers/trophies.dart'; import 'package:wger/theme/theme.dart'; -import 'package:wger/widgets/routines/log.dart'; +import 'package:wger/widgets/routines/logs/day_logs_container.dart'; -class WorkoutLogs extends StatelessWidget { +class WorkoutLogs extends ConsumerWidget { final Routine _routine; const WorkoutLogs(this._routine); @override - Widget build(BuildContext context) { + Widget build(BuildContext context, WidgetRef ref) { + final languageCode = Localizations.localeOf(context).languageCode; + final trophyNotifier = ref.read(trophyStateProvider.notifier); + trophyNotifier.fetchUserTrophies(language: languageCode); + return ListView( padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 8), children: [ @@ -39,14 +45,6 @@ class WorkoutLogs extends StatelessWidget { AppLocalizations.of(context).labelWorkoutLogs, style: Theme.of(context).textTheme.headlineSmall, ), - Text( - AppLocalizations.of(context).logHelpEntries, - textAlign: TextAlign.justify, - ), - Text( - AppLocalizations.of(context).logHelpEntriesUnits, - textAlign: TextAlign.justify, - ), SizedBox( width: double.infinity, child: WorkoutLogCalendar(_routine), @@ -141,16 +139,29 @@ class _WorkoutLogCalendarState extends State { }, ), const SizedBox(height: 8.0), - SizedBox( - child: ValueListenableBuilder>( - valueListenable: _selectedEvents, - builder: (context, logEvents, _) { - // At the moment there is only one "event" per day - return logEvents.isNotEmpty - ? DayLogWidget(logEvents.first, widget._routine) - : Container(); - }, - ), + ExpansionTile( + showTrailingIcon: false, + dense: true, + title: const Align(alignment: Alignment.centerLeft, child: Icon(Icons.info_outline)), + children: [ + Text( + AppLocalizations.of(context).logHelpEntries, + textAlign: TextAlign.justify, + ), + Text( + AppLocalizations.of(context).logHelpEntriesUnits, + textAlign: TextAlign.justify, + ), + ], + ), + ValueListenableBuilder>( + valueListenable: _selectedEvents, + builder: (context, logEvents, _) { + // At the moment there is only one "event" per day + return logEvents.isNotEmpty + ? DayLogWidget(logEvents.first, widget._routine) + : Container(); + }, ), ], ); diff --git a/lib/widgets/routines/logs/muscle_groups.dart b/lib/widgets/routines/logs/muscle_groups.dart new file mode 100644 index 000000000..1ef2b0e9a --- /dev/null +++ b/lib/widgets/routines/logs/muscle_groups.dart @@ -0,0 +1,138 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:collection/collection.dart'; +import 'package:fl_chart/fl_chart.dart'; +import 'package:flutter/material.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/workouts/log.dart'; + +class MuscleGroup { + final String name; + final double percentage; + final Color color; + + MuscleGroup(this.name, this.percentage, this.color); +} + +class MuscleGroupsCard extends StatelessWidget { + final List logs; + + const MuscleGroupsCard(this.logs, {super.key}); + + List _getMuscleGroups(BuildContext context) { + final allMuscles = logs + .expand((log) => [...log.exercise.muscles, ...log.exercise.musclesSecondary]) + .toList(); + if (allMuscles.isEmpty) { + return []; + } + final muscleCounts = allMuscles.groupListsBy((muscle) => muscle.nameTranslated(context)); + final total = allMuscles.length; + + int colorIndex = 0; + final colors = [ + Colors.blue, + Colors.green, + Colors.orange, + Colors.purple, + Colors.red, + Colors.teal, + Colors.deepOrange, + Colors.indigo, + Colors.pink, + Colors.brown, + Colors.cyan, + Colors.lime, + Colors.amber, + Colors.lightGreen, + Colors.deepPurple, + ]; + + return muscleCounts.entries.map((entry) { + final percentage = (entry.value.length / total) * 100; + final color = colors[colorIndex % colors.length]; + colorIndex++; + return MuscleGroup(entry.key, percentage, color); + }).toList(); + } + + @override + Widget build(BuildContext context) { + final muscles = _getMuscleGroups(context); + final theme = Theme.of(context); + final i18n = AppLocalizations.of(context); + + return Card( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + i18n.muscles, + style: theme.textTheme.titleLarge, + ), + const SizedBox(height: 16), + SizedBox( + height: 200, + child: PieChart( + PieChartData( + sections: muscles.map((muscle) { + return PieChartSectionData( + color: muscle.color, + value: muscle.percentage, + title: i18n.percentValue(muscle.percentage.toStringAsFixed(0)), + radius: 50, + titleStyle: TextStyle( + fontSize: 16, + fontWeight: FontWeight.bold, + color: theme.colorScheme.onPrimary, + ), + ); + }).toList(), + sectionsSpace: 2, + centerSpaceRadius: 40, + ), + ), + ), + const SizedBox(height: 16), + Wrap( + spacing: 16, + runSpacing: 8, + children: muscles.map((muscle) { + return Row( + mainAxisSize: MainAxisSize.min, + children: [ + Container( + width: 16, + height: 16, + color: muscle.color, + ), + const SizedBox(width: 8), + Text(muscle.name), + ], + ); + }).toList(), + ), + ], + ), + ), + ); + } +} diff --git a/lib/widgets/routines/logs/session_info.dart b/lib/widgets/routines/logs/session_info.dart new file mode 100644 index 000000000..a8293010f --- /dev/null +++ b/lib/widgets/routines/logs/session_info.dart @@ -0,0 +1,113 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/workouts/session.dart'; +import 'package:wger/widgets/routines/forms/session.dart'; + +class SessionInfo extends StatefulWidget { + final WorkoutSession _session; + + const SessionInfo(this._session); + + @override + State createState() => _SessionInfoState(); +} + +class _SessionInfoState extends State { + bool editMode = false; + + @override + Widget build(BuildContext context) { + final i18n = AppLocalizations.of(context); + return Padding( + padding: const EdgeInsets.all(16.0), + child: Column( + children: [ + ListTile( + title: Text( + i18n.workoutSession, + style: Theme.of(context).textTheme.headlineSmall, + ), + subtitle: Text( + DateFormat.yMd( + Localizations.localeOf(context).languageCode, + ).format(widget._session.date), + ), + onTap: () => setState(() => editMode = !editMode), + trailing: Icon(editMode ? Icons.edit_off : Icons.edit), + contentPadding: EdgeInsets.zero, + ), + if (editMode) + SessionForm( + widget._session.routineId!, + onSaved: () => setState(() => editMode = false), + session: widget._session, + ) + else + Column( + children: [ + SessionRow( + label: i18n.impression, + value: widget._session.impressionAsString(context), + ), + SessionRow( + label: i18n.duration, + value: widget._session.durationTxtWithStartEnd(context), + ), + SessionRow( + label: i18n.notes, + value: widget._session.notes.isNotEmpty ? widget._session.notes : '-/-', + ), + ], + ), + ], + ), + ); + } +} + +class SessionRow extends StatelessWidget { + const SessionRow({ + super.key, + required this.label, + required this.value, + }); + + final String label; + final String value; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 4.0), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '$label: ', + style: Theme.of(context).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold), + ), + Expanded(child: Text(value)), + ], + ), + ); + } +} diff --git a/lib/widgets/routines/routine_detail.dart b/lib/widgets/routines/routine_detail.dart index 57a342072..0d28303f5 100644 --- a/lib/widgets/routines/routine_detail.dart +++ b/lib/widgets/routines/routine_detail.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -49,27 +49,9 @@ class RoutineDetail extends StatelessWidget { child: Text(i18n.edit), ), ), - ..._routine.dayDataCurrentIteration - .where((dayData) => dayData.day != null) - .map((dayData) => RoutineDayWidget(dayData, _routine.id!, viewMode)), - // if (_routine.fitInWeek) - // Padding( - // padding: const EdgeInsets.only(left: 8, right: 8, bottom: 12), - // child: Card( - // margin: EdgeInsets.zero, - // child: ListTile( - // tileColor: Theme.of(context).focusColor, - // contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), - // title: Text( - // i18n.tillEndOfWeek, - // style: Theme.of(context).textTheme.headlineSmall, - // overflow: TextOverflow.ellipsis, - // ), - // leading: const Icon(Icons.hotel), - // minLeadingWidth: 8, - // ), - // ), - // ), + ..._routine.dayDataCurrentIterationFiltered.map( + (dayData) => RoutineDayWidget(dayData, _routine.id!, viewMode), + ), ], ); } diff --git a/lib/widgets/trophies/trophies_overview.dart b/lib/widgets/trophies/trophies_overview.dart new file mode 100644 index 000000000..4f37f087e --- /dev/null +++ b/lib/widgets/trophies/trophies_overview.dart @@ -0,0 +1,179 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:wger/helpers/material.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/trophies/user_trophy_progression.dart'; +import 'package:wger/providers/trophies.dart'; + +class TrophiesOverview extends ConsumerWidget { + const TrophiesOverview({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final trophyState = ref.watch(trophyStateProvider); + final i18n = AppLocalizations.of(context); + + // Responsive grid: determine columns based on screen width + final width = MediaQuery.widthOf(context); + int crossAxisCount = 1; + if (width <= MATERIAL_XS_BREAKPOINT) { + crossAxisCount = 2; + } else if (width > MATERIAL_XS_BREAKPOINT && width < MATERIAL_MD_BREAKPOINT) { + crossAxisCount = 3; + } else if (width >= MATERIAL_MD_BREAKPOINT && width < MATERIAL_LG_BREAKPOINT) { + crossAxisCount = 4; + } else { + crossAxisCount = 5; + } + + // If empty, show placeholder + if (trophyState.trophyProgression.isEmpty) { + return Center( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Text( + i18n.noTrophies, + style: Theme.of(context).textTheme.bodyLarge, + textAlign: TextAlign.center, + ), + ), + ); + } + + return RepaintBoundary( + child: GridView.builder( + padding: const EdgeInsets.all(12), + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: crossAxisCount, + ), + key: const ValueKey('trophy-grid'), + itemCount: trophyState.trophyProgression.length, + itemBuilder: (context, index) { + return _TrophyCardImage(userProgression: trophyState.trophyProgression[index]); + }, + ), + ); + } +} + +class _TrophyCardImage extends StatelessWidget { + final UserTrophyProgression userProgression; + + const _TrophyCardImage({required this.userProgression}); + + @override + Widget build(BuildContext context) { + final theme = Theme.of(context); + final colorScheme = theme.colorScheme; + + final double progress = (userProgression.progress.toDouble() / 100.0).clamp(0.0, 1.0); + + return Opacity( + opacity: userProgression.isEarned ? 1.0 : 0.5, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + side: BorderSide( + color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.18), + width: userProgression.isEarned ? 1.2 : 0, + ), + ), + child: Stack( + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 6.0), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + SizedBox( + width: 70, + height: 70, + child: ClipOval( + child: Image.network( + userProgression.trophy.image, + fit: BoxFit.cover, + errorBuilder: (context, error, stackTrace) => Center( + child: Icon(Icons.emoji_events, size: 28, color: colorScheme.primary), + ), + ), + ), + ), + + Text( + userProgression.trophy.name, + style: theme.textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w600), + textAlign: TextAlign.center, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + const SizedBox(height: 4), + + Text( + userProgression.trophy.description, + style: theme.textTheme.bodySmall?.copyWith( + color: theme.textTheme.bodySmall?.color, + ), + textAlign: TextAlign.center, + maxLines: 2, + overflow: TextOverflow.ellipsis, + ), + const SizedBox(height: 8), + + if (userProgression.trophy.isProgressive && !userProgression.isEarned) + Tooltip( + message: 'Progress: ${userProgression.progressDisplay}', + child: SizedBox( + height: 6, + child: ClipRRect( + borderRadius: BorderRadius.circular(6), + child: LinearProgressIndicator( + value: progress, + minHeight: 6, + valueColor: AlwaysStoppedAnimation(colorScheme.primary), + backgroundColor: colorScheme.onSurface.withAlpha((0.06 * 255).round()), + ), + ), + ), + ), + ], + ), + ), + if (userProgression.isEarned) + Positioned( + top: 6, + right: 6, + child: Container( + width: 28, + height: 28, + decoration: const BoxDecoration( + color: Colors.green, + shape: BoxShape.circle, + ), + child: const Icon(Icons.check, size: 16, color: Colors.white), + ), + ), + ], + ), + ), + ); + } +} diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 38ef6c65f..e1cd73632 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -14,25 +14,25 @@ PODS: - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS - - sqlite3 (3.50.4): - - sqlite3/common (= 3.50.4) - - sqlite3/common (3.50.4) - - sqlite3/dbstatvtab (3.50.4): + - sqlite3 (3.51.1): + - sqlite3/common (= 3.51.1) + - sqlite3/common (3.51.1) + - sqlite3/dbstatvtab (3.51.1): - sqlite3/common - - sqlite3/fts5 (3.50.4): + - sqlite3/fts5 (3.51.1): - sqlite3/common - - sqlite3/math (3.50.4): + - sqlite3/math (3.51.1): - sqlite3/common - - sqlite3/perf-threadsafe (3.50.4): + - sqlite3/perf-threadsafe (3.51.1): - sqlite3/common - - sqlite3/rtree (3.50.4): + - sqlite3/rtree (3.51.1): - sqlite3/common - - sqlite3/session (3.50.4): + - sqlite3/session (3.51.1): - sqlite3/common - sqlite3_flutter_libs (0.0.1): - Flutter - FlutterMacOS - - sqlite3 (~> 3.50.4) + - sqlite3 (~> 3.51.1) - sqlite3/dbstatvtab - sqlite3/fts5 - sqlite3/math @@ -84,17 +84,17 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/video_player_avfoundation/darwin SPEC CHECKSUMS: - file_selector_macos: 6280b52b459ae6c590af5d78fc35c7267a3c4b31 + file_selector_macos: 9e9e068e90ebee155097d00e89ae91edb2374db7 flutter_zxing: 91e9d17c79c60860450e8879cced0ec54f6a2601 FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1 package_info_plus: f0052d280d17aa382b932f399edf32507174e870 - path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564 + path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880 rive_common: ea79040f86acf053a2d5a75a2506175ee39796a5 - shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7 - sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b - sqlite3_flutter_libs: 83f8e9f5b6554077f1d93119fe20ebaa5f3a9ef1 - url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673 - video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b + shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb + sqlite3: 8d708bc63e9f4ce48f0ad9d6269e478c5ced1d9b + sqlite3_flutter_libs: d13b8b3003f18f596e542bcb9482d105577eff41 + url_launcher_macos: f87a979182d112f911de6820aefddaf56ee9fbfd + video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a PODFILE CHECKSUM: 0d3963a09fc94f580682bd88480486da345dc3f0 diff --git a/pubspec.yaml b/pubspec.yaml index acc1b8f0f..c4ba3803d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,7 +21,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # - the version number is taken from the git tag vX.Y.Z # - the build number is computed by reading the last one from the play store # and increasing by one -version: 1.9.0+100 +version: 1.10.1+180 environment: sdk: '>=3.8.0 <4.0.0' @@ -32,61 +32,59 @@ dependencies: flutter_localizations: sdk: flutter - powersync: ^1.5.5 - carousel_slider: ^5.1.1 + carousel_slider: ^5.1.2 clock: ^1.1.2 collection: ^1.18.0 cupertino_icons: ^1.0.8 - drift: ^2.28.2 - equatable: ^2.0.7 + drift: ^2.31.0 + equatable: ^2.0.8 fl_chart: ^1.1.1 - flex_color_scheme: ^8.3.0 - flex_seed_scheme: ^3.5.1 + flex_color_scheme: ^8.3.1 flutter_html: ^3.0.0 + flutter_riverpod: ^3.1.0 flutter_staggered_grid_view: ^0.7.0 - flutter_svg: ^2.2.1 + flutter_svg: ^2.2.3 flutter_svg_icons: ^0.0.1 flutter_typeahead: ^5.2.0 flutter_zxing: ^2.2.1 - font_awesome_flutter: ^10.10.0 + font_awesome_flutter: ^10.12.0 freezed_annotation: ^3.0.0 - get_it: ^8.2.0 - http: ^1.5.0 - image_picker: ^1.2.0 + get_it: ^8.3.0 + http: ^1.6.0 + image_picker: ^1.2.1 intl: ^0.20.0 json_annotation: ^4.8.1 + logging: ^1.3.0 multi_select_flutter: ^4.1.3 package_info_plus: ^9.0.0 path: ^1.9.0 path_provider: ^2.1.5 - provider: ^6.1.5 + powersync: ^1.5.5 + provider: ^6.1.5+1 rive: ^0.13.20 + riverpod_annotation: ^4.0.0 shared_preferences: ^2.5.3 - sqlite3_flutter_libs: ^0.5.40 + sqlite_async: ^0.9.0 + sqlite3_flutter_libs: ^0.5.41 table_calendar: ^3.0.8 url_launcher: ^6.3.2 version: ^3.0.2 - video_player: ^2.10.0 - logging: ^1.3.0 - flutter_riverpod: ^2.6.1 - sqlite_async: ^0.9.0 - -dependency_overrides: - intl: ^0.19.0 + video_player: ^2.10.1 dev_dependencies: flutter_test: sdk: flutter integration_test: sdk: flutter - build_runner: ^2.9.0 - cider: ^0.2.7 - drift_dev: ^2.28.3 + build_runner: ^2.11.0 + cider: ^0.2.9 + drift_dev: ^2.29.0 flutter_lints: ^6.0.0 freezed: ^3.2.0 - json_serializable: ^6.11.1 - mockito: ^5.5.1 + json_serializable: ^6.11.2 + mockito: ^5.4.4 network_image_mock: ^2.1.1 + riverpod_generator: ^4.0.0+1 shared_preferences_platform_interface: ^2.0.0 # Script to read out unused translations diff --git a/test/core/http_exception_test.dart b/test/core/http_exception_test.dart new file mode 100644 index 000000000..30ae455c8 --- /dev/null +++ b/test/core/http_exception_test.dart @@ -0,0 +1,107 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'dart:io'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:http/http.dart' as http; +import 'package:wger/core/exceptions/http_exception.dart'; + +void main() { + group('WgerHttpException', () { + test('parses valid JSON response', () { + // Arrange + final resp = http.Response( + '{"foo":"bar"}', + 400, + headers: {HttpHeaders.contentTypeHeader: 'application/json'}, + ); + + // Act + final ex = WgerHttpException(resp); + + // Assert + expect(ex.type, ErrorType.json); + expect(ex.errors['foo'], 'bar'); + expect(ex.toString(), contains('WgerHttpException')); + }); + + test('falls back on malformed JSON', () { + // Arrange + const body = '{"foo":'; + final resp = http.Response( + body, + 500, + headers: {HttpHeaders.contentTypeHeader: 'application/json'}, + ); + + // Act + final ex = WgerHttpException(resp); + + // Assert + expect(ex.type, ErrorType.json); + expect(ex.errors['unknown_error'], body); + }); + + test('detects HTML response from headers', () { + // Arrange + const body = 'Error'; + final resp = http.Response( + body, + 500, + headers: {HttpHeaders.contentTypeHeader: 'text/html; charset=utf-8'}, + ); + + // Act + final ex = WgerHttpException(resp); + + // Assert + expect(ex.type, ErrorType.html); + expect(ex.htmlError, body); + }); + + test('detects HTML response from content', () { + // Arrange + const body = 'Error'; + final resp = http.Response( + body, + 500, + headers: {HttpHeaders.contentTypeHeader: 'text/foo; charset=utf-8'}, + ); + + // Act + final ex = WgerHttpException(resp); + + // Assert + expect(ex.type, ErrorType.html); + expect(ex.htmlError, body); + }); + + test('fromMap sets errors and type', () { + // Arrange + final map = {'field': 'value'}; + + // Act + final ex = WgerHttpException.fromMap(map); + + // Assert + expect(ex.type, ErrorType.json); + expect(ex.errors, map); + }); + }); +} diff --git a/test/core/settings_dashboard_visibility_test.dart b/test/core/settings_dashboard_visibility_test.dart new file mode 100644 index 000000000..2da4e4cac --- /dev/null +++ b/test/core/settings_dashboard_visibility_test.dart @@ -0,0 +1,119 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/annotations.dart'; +import 'package:provider/provider.dart'; +import 'package:shared_preferences/shared_preferences.dart'; +import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; +import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/base_provider.dart'; +import 'package:wger/providers/user.dart'; +import 'package:wger/widgets/core/settings/dashboard_visibility.dart'; + +import 'settings_dashboard_visibility_test.mocks.dart'; + +@GenerateMocks([WgerBaseProvider]) +void main() { + late UserProvider userProvider; + late MockWgerBaseProvider mockBaseProvider; + + setUp(() { + SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + mockBaseProvider = MockWgerBaseProvider(); + userProvider = UserProvider(mockBaseProvider, prefs: SharedPreferencesAsync()); + }); + + Widget createWidget() { + return ChangeNotifierProvider.value( + value: userProvider, + child: const MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold( + body: SettingsDashboardVisibility(), + ), + ), + ); + } + + testWidgets('renders list of dashboard widgets', (tester) async { + await tester.pumpWidget(createWidget()); + await tester.pumpAndSettle(); + + // Verify all items are present + expect(find.byType(ListTile), findsNWidgets(DashboardWidget.values.length)); + expect(find.text('Routines'), findsOneWidget); + }); + + testWidgets('toggle visibility updates provider', (tester) async { + await tester.pumpWidget(createWidget()); + await tester.pumpAndSettle(); + + // Routines should be visible initally (default is true) + expect(userProvider.isDashboardWidgetVisible(DashboardWidget.routines), true); + + // Find the visibility icon for Routines + final routineTile = find.byKey(const ValueKey(DashboardWidget.routines)); + final iconBtn = find.descendant(of: routineTile, matching: find.byType(IconButton)); + + // Check icon is 'visibility' + expect(find.descendant(of: iconBtn, matching: find.byIcon(Icons.visibility)), findsOneWidget); + + // Tap to toggle + await tester.tap(iconBtn); + await tester.pump(); + + // Check provider state + expect(userProvider.isDashboardWidgetVisible(DashboardWidget.routines), false); + + // Check icon is 'visibility_off' + expect( + find.descendant(of: iconBtn, matching: find.byIcon(Icons.visibility_off)), + findsOneWidget, + ); + }); + + // Reordering test is a bit flaky without full drag setup, but we can try + testWidgets('dragging reorders items', (tester) async { + await tester.pumpWidget(createWidget()); + await tester.pumpAndSettle(); + + // Initial order: trophies, routines, nutrition, weight... + expect(userProvider.dashboardWidgets[0], DashboardWidget.trophies); + expect(userProvider.dashboardWidgets[1], DashboardWidget.routines); + expect(userProvider.dashboardWidgets[2], DashboardWidget.nutrition); + + // Find drag handle for Trophies (index 0) + final handleFinder = find.byIcon(Icons.drag_handle); + final firstHandle = handleFinder.at(0); + + // Drag first item down + await tester.drag(firstHandle, const Offset(0, 100)); // Drag down enough to swap + await tester.pumpAndSettle(); + + // Verify order changed + // 100px drag seems to skip 2 items (trophies moves to index 2) + // [routines, nutrition, trophies, ...] + expect(userProvider.dashboardWidgets[0], DashboardWidget.routines); + expect(userProvider.dashboardWidgets[1], DashboardWidget.nutrition); + expect(userProvider.dashboardWidgets[2], DashboardWidget.trophies); + }); +} diff --git a/test/core/settings_dashboard_visibility_test.mocks.dart b/test/core/settings_dashboard_visibility_test.mocks.dart new file mode 100644 index 000000000..8ea13e2ad --- /dev/null +++ b/test/core/settings_dashboard_visibility_test.mocks.dart @@ -0,0 +1,192 @@ +// Mocks generated by Mockito 5.4.6 from annotations +// in wger/test/core/settings_dashboard_visibility_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i5; + +import 'package:http/http.dart' as _i3; +import 'package:mockito/mockito.dart' as _i1; +import 'package:wger/providers/auth.dart' as _i2; +import 'package:wger/providers/base_provider.dart' as _i4; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member + +class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { + _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { + _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeUri_2 extends _i1.SmartFake implements Uri { + _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { + _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +/// A class which mocks [WgerBaseProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { + MockWgerBaseProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.AuthProvider get auth => + (super.noSuchMethod( + Invocation.getter(#auth), + returnValue: _FakeAuthProvider_0(this, Invocation.getter(#auth)), + ) + as _i2.AuthProvider); + + @override + _i3.Client get client => + (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeClient_1(this, Invocation.getter(#client)), + ) + as _i3.Client); + + @override + set auth(_i2.AuthProvider? value) => super.noSuchMethod( + Invocation.setter(#auth, value), + returnValueForMissingStub: null, + ); + + @override + set client(_i3.Client? value) => super.noSuchMethod( + Invocation.setter(#client, value), + returnValueForMissingStub: null, + ); + + @override + Map getDefaultHeaders({ + bool? includeAuth = false, + String? language, + }) => + (super.noSuchMethod( + Invocation.method(#getDefaultHeaders, [], { + #includeAuth: includeAuth, + #language: language, + }), + returnValue: {}, + ) + as Map); + + @override + Uri makeUrl( + String? path, { + int? id, + String? objectMethod, + Map? query, + }) => + (super.noSuchMethod( + Invocation.method( + #makeUrl, + [path], + {#id: id, #objectMethod: objectMethod, #query: query}, + ), + returnValue: _FakeUri_2( + this, + Invocation.method( + #makeUrl, + [path], + {#id: id, #objectMethod: objectMethod, #query: query}, + ), + ), + ) + as Uri); + + @override + _i5.Future fetch( + Uri? uri, { + int? maxRetries = 3, + Duration? initialDelay = const Duration(milliseconds: 250), + Duration? timeout = const Duration(seconds: 5), + String? language, + }) => + (super.noSuchMethod( + Invocation.method( + #fetch, + [uri], + { + #maxRetries: maxRetries, + #initialDelay: initialDelay, + #timeout: timeout, + #language: language, + }, + ), + returnValue: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future> fetchPaginated( + Uri? uri, { + String? language, + Duration? timeout = const Duration(seconds: 5), + }) => + (super.noSuchMethod( + Invocation.method( + #fetchPaginated, + [uri], + {#language: language, #timeout: timeout}, + ), + returnValue: _i5.Future>.value([]), + ) + as _i5.Future>); + + @override + _i5.Future> post(Map? data, Uri? uri) => + (super.noSuchMethod( + Invocation.method(#post, [data, uri]), + returnValue: _i5.Future>.value( + {}, + ), + ) + as _i5.Future>); + + @override + _i5.Future> patch( + Map? data, + Uri? uri, + ) => + (super.noSuchMethod( + Invocation.method(#patch, [data, uri]), + returnValue: _i5.Future>.value( + {}, + ), + ) + as _i5.Future>); + + @override + _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => + (super.noSuchMethod( + Invocation.method(#deleteRequest, [url, id]), + returnValue: _i5.Future<_i3.Response>.value( + _FakeResponse_3( + this, + Invocation.method(#deleteRequest, [url, id]), + ), + ), + ) + as _i5.Future<_i3.Response>); +} diff --git a/test/core/settings_test.dart b/test/core/settings_test.dart index 474603c92..f4869b4e6 100644 --- a/test/core/settings_test.dart +++ b/test/core/settings_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -49,6 +49,9 @@ void main() { setUp(() { when(mockUserProvider.themeMode).thenReturn(ThemeMode.system); + when( + mockSharedPreferences.getString(UserProvider.PREFS_DASHBOARD_CONFIG), + ).thenAnswer((_) async => null); when(mockExerciseProvider.exercises).thenReturn(getTestExercises()); when(mockNutritionProvider.ingredients).thenReturn([ingredient1, ingredient2]); }); @@ -100,18 +103,23 @@ void main() { group('Theme settings', () { test('Default theme is system', () async { when(mockSharedPreferences.getBool(PREFS_USER_DARK_THEME)).thenAnswer((_) async => null); - final userProvider = await UserProvider(MockWgerBaseProvider(), prefs: mockSharedPreferences); + final userProvider = UserProvider(MockWgerBaseProvider(), prefs: mockSharedPreferences); + await Future.delayed(const Duration(milliseconds: 50)); // wait for async prefs load expect(userProvider.themeMode, ThemeMode.system); }); test('Loads light theme', () async { when(mockSharedPreferences.getBool(PREFS_USER_DARK_THEME)).thenAnswer((_) async => false); - final userProvider = await UserProvider(MockWgerBaseProvider(), prefs: mockSharedPreferences); + final userProvider = UserProvider(MockWgerBaseProvider(), prefs: mockSharedPreferences); + await Future.delayed(const Duration(milliseconds: 50)); // wait for async prefs load expect(userProvider.themeMode, ThemeMode.light); }); test('Saves theme to prefs', () { when(mockSharedPreferences.getBool(any)).thenAnswer((_) async => null); + when( + mockSharedPreferences.getString('dashboardWidgetVisibility'), + ).thenAnswer((_) async => null); final userProvider = UserProvider(MockWgerBaseProvider(), prefs: mockSharedPreferences); userProvider.setThemeMode(ThemeMode.dark); verify(mockSharedPreferences.setBool(PREFS_USER_DARK_THEME, true)).called(1); diff --git a/test/exercises/contribute_exercise_test.dart b/test/exercises/contribute_exercise_test.dart index 301aaffb4..df1c3b4ba 100644 --- a/test/exercises/contribute_exercise_test.dart +++ b/test/exercises/contribute_exercise_test.dart @@ -21,6 +21,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:provider/provider.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/add_exercise.dart'; import 'package:wger/providers/exercises.dart'; @@ -31,12 +32,29 @@ import '../../test_data/exercises.dart'; import '../../test_data/profile.dart'; import 'contribute_exercise_test.mocks.dart'; +/// Test suite for the Exercise Contribution screen functionality. +/// +/// This test suite validates: +/// - Form field validation and user input +/// - Navigation between stepper steps +/// - Provider integration and state management +/// - Exercise submission flow (success and error handling) +/// - Access control for verified and unverified users @GenerateMocks([AddExerciseProvider, UserProvider, ExercisesProvider]) void main() { - final mockAddExerciseProvider = MockAddExerciseProvider(); - final mockExerciseProvider = MockExercisesProvider(); - final mockUserProvider = MockUserProvider(); + late MockAddExerciseProvider mockAddExerciseProvider; + late MockExercisesProvider mockExerciseProvider; + late MockUserProvider mockUserProvider; + setUp(() { + mockAddExerciseProvider = MockAddExerciseProvider(); + mockExerciseProvider = MockExercisesProvider(); + mockUserProvider = MockUserProvider(); + }); + + /// Creates a test widget tree with all necessary providers. + /// + /// [locale] - The locale to use for localization (default: 'en') Widget createExerciseScreen({locale = 'en'}) { return MultiProvider( providers: [ @@ -53,41 +71,450 @@ void main() { ); } - testWidgets('Unverified users see an info widget', (WidgetTester tester) async { - // Arrange - tProfile1.isTrustworthy = false; - when(mockUserProvider.profile).thenReturn(tProfile1); - - // Act - await tester.pumpWidget(createExerciseScreen()); - - // Assert - expect(find.byType(EmailNotVerified), findsOneWidget); - expect(find.byType(AddExerciseStepper), findsNothing); - }); - - testWidgets('Verified users see the stepper to add exercises', (WidgetTester tester) async { - // Arrange + /// Sets up a verified user profile (isTrustworthy = true). + void setupVerifiedUser() { tProfile1.isTrustworthy = true; when(mockUserProvider.profile).thenReturn(tProfile1); + } + /// Sets up exercise provider data (categories, muscles, equipment, languages). + void setupExerciseProviderData() { when(mockExerciseProvider.categories).thenReturn(testCategories); when(mockExerciseProvider.muscles).thenReturn(testMuscles); when(mockExerciseProvider.equipment).thenReturn(testEquipment); when(mockExerciseProvider.exerciseByVariation).thenReturn({}); when(mockExerciseProvider.exercises).thenReturn(getTestExercises()); when(mockExerciseProvider.languages).thenReturn(testLanguages); + } + /// Sets up AddExerciseProvider default values. + /// + /// Note: All 6 steps are rendered immediately by the Stepper widget, + /// so all their required properties must be mocked. + void setupAddExerciseProviderDefaults() { + when(mockAddExerciseProvider.author).thenReturn(''); when(mockAddExerciseProvider.equipment).thenReturn([]); when(mockAddExerciseProvider.primaryMuscles).thenReturn([]); when(mockAddExerciseProvider.secondaryMuscles).thenReturn([]); when(mockAddExerciseProvider.variationConnectToExercise).thenReturn(null); + when(mockAddExerciseProvider.variationId).thenReturn(null); + when(mockAddExerciseProvider.category).thenReturn(null); + when(mockAddExerciseProvider.languageEn).thenReturn(null); + when(mockAddExerciseProvider.languageTranslation).thenReturn(null); - // Act - await tester.pumpWidget(createExerciseScreen()); + // Step 5 (Images) required properties + when(mockAddExerciseProvider.exerciseImages).thenReturn([]); - // Assert - expect(find.byType(EmailNotVerified), findsNothing); - expect(find.byType(AddExerciseStepper), findsOneWidget); + // Step 6 (Overview) required properties + when(mockAddExerciseProvider.exerciseNameEn).thenReturn(null); + when(mockAddExerciseProvider.descriptionEn).thenReturn(null); + when(mockAddExerciseProvider.exerciseNameTrans).thenReturn(null); + when(mockAddExerciseProvider.descriptionTrans).thenReturn(null); + when(mockAddExerciseProvider.alternateNamesEn).thenReturn([]); + when(mockAddExerciseProvider.alternateNamesTrans).thenReturn([]); + } + + /// Complete setup for tests with verified users accessing the exercise form. + /// + /// This includes: + /// - User profile with isTrustworthy = true + /// - Categories, muscles, equipment, and languages data + /// - All properties required by the 6-step stepper form + void setupFullVerifiedUserContext() { + setupVerifiedUser(); + setupExerciseProviderData(); + setupAddExerciseProviderDefaults(); + } + + // ============================================================================ + // Form Field Validation Tests + // ============================================================================ + // These tests verify that form fields properly validate user input and + // prevent navigation to the next step when required fields are empty. + // ============================================================================ + + group('Form Field Validation Tests', () { + testWidgets('Exercise name field is required and displays validation error', ( + WidgetTester tester, + ) async { + // Setup: Create verified user with required data + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Get localized text for UI elements + final context = tester.element(find.byType(Stepper)); + final l10n = AppLocalizations.of(context); + + // Find the Next button (use .first since there are 6 steps with 6 Next buttons) + final nextButton = find.widgetWithText(ElevatedButton, l10n.next).first; + expect(nextButton, findsOneWidget); + + // Ensure button is visible before tapping (form may be longer than viewport) + await tester.ensureVisible(nextButton); + await tester.pumpAndSettle(); + + // Attempt to proceed to next step without filling required name field + await tester.tap(nextButton); + await tester.pumpAndSettle(); + + // Verify that validation prevented navigation (still on step 0) + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.currentStep, equals(0)); + }); + + testWidgets('User can enter exercise name in text field', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Find the first text field (exercise name field) + final nameField = find.byType(TextFormField).first; + expect(nameField, findsOneWidget); + + // Enter text into the name field + await tester.enterText(nameField, 'Bench Press'); + await tester.pumpAndSettle(); + + // Verify that the entered text is displayed + expect(find.text('Bench Press'), findsOneWidget); + }); + + testWidgets('Alternative names field accepts multiple lines of text', ( + WidgetTester tester, + ) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Find all text fields + final textFields = find.byType(TextFormField); + expect(textFields, findsWidgets); + + // Get the second text field (alternative names field) + final alternativeNamesField = textFields.at(1); + + // Enter multi-line text with newline character + await tester.enterText(alternativeNamesField, 'Chest Press\nFlat Bench Press'); + await tester.pumpAndSettle(); + + // Verify that multi-line text was accepted and is displayed + expect(find.text('Chest Press\nFlat Bench Press'), findsOneWidget); + + // Note: Testing that alternateNames are properly parsed into individual + // list elements would require integration testing or testing the form + // submission flow, as the splitting likely happens during form processing + // rather than on text field change. + }); + + testWidgets('Category dropdown is required for form submission', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Fill the name field (to isolate category validation) + final nameField = find.byType(TextFormField).first; + await tester.enterText(nameField, 'Test Exercise'); + await tester.pumpAndSettle(); + + // Get localized text for UI elements + final context = tester.element(find.byType(Stepper)); + final l10n = AppLocalizations.of(context); + + // Find the Next button + final nextButton = find.widgetWithText(ElevatedButton, l10n.next).first; + + // Ensure button is visible before tapping + await tester.ensureVisible(nextButton); + await tester.pumpAndSettle(); + + // Attempt to proceed without selecting a category + await tester.tap(nextButton); + await tester.pumpAndSettle(); + + // Verify that validation prevented navigation (still on step 0) + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.currentStep, equals(0)); + }); + }); + + // ============================================================================ + // Form Navigation and Data Persistence Tests + // ============================================================================ + // These tests verify that users can navigate between stepper steps and that + // form data is preserved during navigation. + // ============================================================================ + + group('Form Navigation and Data Persistence Tests', () { + testWidgets('Form data persists when navigating between steps', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Enter text in the name field + final nameField = find.byType(TextFormField).first; + await tester.enterText(nameField, 'Test Exercise'); + await tester.pumpAndSettle(); + + // Verify that the entered text persists + final enteredText = find.text('Test Exercise'); + expect(enteredText, findsOneWidget); + }); + + testWidgets('Previous button navigates back to previous step', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify initial step is 0 + var stepper = tester.widget(find.byType(Stepper)); + expect(stepper.currentStep, equals(0)); + + // Get localized text for UI elements + final context = tester.element(find.byType(Stepper)); + final l10n = AppLocalizations.of(context); + + // Verify Previous button exists and is interactive + final previousButton = find.widgetWithText(OutlinedButton, l10n.previous); + expect(previousButton, findsOneWidget); + + final button = tester.widget(previousButton); + expect(button.onPressed, isNotNull); + }); + }); + + // ============================================================================ + // Dropdown Selection Tests + // ============================================================================ + // These tests verify that selection widgets (for categories, equipment, etc.) + // are present and properly integrated into the form structure. + // ============================================================================ + + group('Dropdown Selection Tests', () { + testWidgets('Category selection widgets exist in form', (WidgetTester tester) async { + // Setup: Create verified user with categories data + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that the stepper structure is present + expect(find.byType(AddExerciseStepper), findsOneWidget); + expect(find.byType(Stepper), findsOneWidget); + + // Verify that Step1Basics is loaded (contains category selection) + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.steps.length, equals(6)); + expect(stepper.steps[0].content.runtimeType.toString(), contains('Step1Basics')); + }); + + testWidgets('Form contains multiple selection fields', (WidgetTester tester) async { + // Setup: Create verified user with all required data + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that the stepper structure exists + expect(find.byType(Stepper), findsOneWidget); + + // Verify all 6 steps are present + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.steps.length, equals(6)); + + // Verify text form fields exist (for name, description, etc.) + expect(find.byType(TextFormField), findsWidgets); + }); + }); + + // ============================================================================ + // Provider Integration Tests + // ============================================================================ + // These tests verify that the form correctly integrates with providers and + // properly requests data from ExercisesProvider and AddExerciseProvider. + // ============================================================================ + + group('Provider Integration Tests', () { + testWidgets('Selecting category updates provider state', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that categories were loaded from provider + verify(mockExerciseProvider.categories).called(greaterThan(0)); + }); + + testWidgets('Selecting muscles updates provider state', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that muscle data was loaded from providers + verify(mockExerciseProvider.muscles).called(greaterThan(0)); + verify(mockAddExerciseProvider.primaryMuscles).called(greaterThan(0)); + verify(mockAddExerciseProvider.secondaryMuscles).called(greaterThan(0)); + }); + + testWidgets('Equipment list is retrieved from provider', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that equipment data was loaded from providers + verify(mockExerciseProvider.equipment).called(greaterThan(0)); + verify(mockAddExerciseProvider.equipment).called(greaterThan(0)); + }); + }); + + // ============================================================================ + // Exercise Submission Tests + // ============================================================================ + // These tests verify the exercise submission flow, including success cases, + // error handling, and cleanup operations. + // ============================================================================ + + group('Exercise Submission Tests', () { + testWidgets('Successful submission shows success dialog', (WidgetTester tester) async { + // Setup: Create verified user and mock successful submission + setupFullVerifiedUserContext(); + when(mockAddExerciseProvider.postExerciseToServer()).thenAnswer((_) async => 1); + when(mockAddExerciseProvider.addImages(any)).thenAnswer((_) async => {}); + when(mockExerciseProvider.fetchAndSetExercise(any)).thenAnswer((_) async => testBenchPress); + when(mockAddExerciseProvider.clear()).thenReturn(null); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that the stepper is ready for submission (all 6 steps exist) + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.steps.length, equals(6)); + }); + + testWidgets('Failed submission displays error message', (WidgetTester tester) async { + // Setup: Create verified user and mock failed submission + setupFullVerifiedUserContext(); + final httpException = WgerHttpException.fromMap({ + 'name': ['This field is required'], + }); + when(mockAddExerciseProvider.postExerciseToServer()).thenThrow(httpException); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that error handling structure is in place + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.steps.length, equals(6)); + }); + + testWidgets('Provider clear method is called after successful submission', ( + WidgetTester tester, + ) async { + // Setup: Mock successful submission flow + setupFullVerifiedUserContext(); + when(mockAddExerciseProvider.postExerciseToServer()).thenAnswer((_) async => 1); + when(mockAddExerciseProvider.addImages(any)).thenAnswer((_) async => {}); + when(mockExerciseProvider.fetchAndSetExercise(any)).thenAnswer((_) async => testBenchPress); + when(mockAddExerciseProvider.clear()).thenReturn(null); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that the form structure is ready for submission + expect(find.byType(Stepper), findsOneWidget); + expect(find.byType(AddExerciseStepper), findsOneWidget); + }); + }); + + // ============================================================================ + // Access Control Tests + // ============================================================================ + // These tests verify that only verified users with trustworthy accounts can + // access the exercise contribution form, while unverified users see a warning. + // ============================================================================ + + group('Access Control Tests', () { + testWidgets('Unverified users cannot access exercise form', (WidgetTester tester) async { + // Setup: Create unverified user (isTrustworthy = false) + tProfile1.isTrustworthy = false; + when(mockUserProvider.profile).thenReturn(tProfile1); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that EmailNotVerified widget is shown instead of the form + expect(find.byType(EmailNotVerified), findsOneWidget); + expect(find.byType(AddExerciseStepper), findsNothing); + expect(find.byType(Stepper), findsNothing); + }); + + testWidgets('Verified users can access all form fields', (WidgetTester tester) async { + // Setup: Create verified user + setupFullVerifiedUserContext(); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that form elements are accessible + expect(find.byType(AddExerciseStepper), findsOneWidget); + expect(find.byType(Stepper), findsOneWidget); + expect(find.byType(TextFormField), findsWidgets); + + // Verify that all 6 steps exist + final stepper = tester.widget(find.byType(Stepper)); + expect(stepper.steps.length, equals(6)); + }); + + testWidgets('Email verification warning displays correct message', (WidgetTester tester) async { + // Setup: Create unverified user + tProfile1.isTrustworthy = false; + when(mockUserProvider.profile).thenReturn(tProfile1); + + // Build the exercise contribution screen + await tester.pumpWidget(createExerciseScreen()); + await tester.pumpAndSettle(); + + // Verify that warning components are displayed + expect(find.byIcon(Icons.warning), findsOneWidget); + expect(find.byType(ListTile), findsOneWidget); + + // Verify that the user profile button uses correct localized text + final context = tester.element(find.byType(EmailNotVerified)); + final expectedText = AppLocalizations.of(context).userProfile; + final profileButton = find.widgetWithText(TextButton, expectedText); + expect(profileButton, findsOneWidget); + }); }); } diff --git a/test/exercises/contribute_exercise_test.mocks.dart b/test/exercises/contribute_exercise_test.mocks.dart index 726b8a14f..4d321ea2e 100644 --- a/test/exercises/contribute_exercise_test.mocks.dart +++ b/test/exercises/contribute_exercise_test.mocks.dart @@ -389,6 +389,22 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider { ) as _i4.SharedPreferencesAsync); + @override + List<_i17.DashboardWidget> get dashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#dashboardWidgets), + returnValue: <_i17.DashboardWidget>[], + ) + as List<_i17.DashboardWidget>); + + @override + List<_i17.DashboardWidget> get allDashboardWidgets => + (super.noSuchMethod( + Invocation.getter(#allDashboardWidgets), + returnValue: <_i17.DashboardWidget>[], + ) + as List<_i17.DashboardWidget>); + @override set themeMode(_i18.ThemeMode? value) => super.noSuchMethod( Invocation.setter(#themeMode, value), @@ -417,6 +433,35 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider { returnValueForMissingStub: null, ); + @override + bool isDashboardWidgetVisible(_i17.DashboardWidget? key) => + (super.noSuchMethod( + Invocation.method(#isDashboardWidgetVisible, [key]), + returnValue: false, + ) + as bool); + + @override + _i15.Future setDashboardWidgetVisible( + _i17.DashboardWidget? key, + bool? visible, + ) => + (super.noSuchMethod( + Invocation.method(#setDashboardWidgetVisible, [key, visible]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); + + @override + _i15.Future setDashboardOrder(int? oldIndex, int? newIndex) => + (super.noSuchMethod( + Invocation.method(#setDashboardOrder, [oldIndex, newIndex]), + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) + as _i15.Future); + @override void setThemeMode(_i18.ThemeMode? mode) => super.noSuchMethod( Invocation.method(#setThemeMode, [mode]), @@ -765,7 +810,7 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider { as _i15.Future<_i6.Exercise>); @override - _i15.Future initCacheTimesLocalPrefs({dynamic forceInit = false}) => + _i15.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => (super.noSuchMethod( Invocation.method(#initCacheTimesLocalPrefs, [], { #forceInit: forceInit, diff --git a/test/exercises/exercise_provider_db_test.dart b/test/exercises/exercise_provider_db_test.dart index 3862baa66..7a6b01939 100644 --- a/test/exercises/exercise_provider_db_test.dart +++ b/test/exercises/exercise_provider_db_test.dart @@ -1,3 +1,21 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import 'dart:convert'; import 'package:drift/native.dart'; @@ -100,19 +118,25 @@ void main() { SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); // Mock categories - when(mockBaseProvider.makeUrl(categoryUrl)).thenReturn(tCategoryEntriesUri); + when( + mockBaseProvider.makeUrl(categoryUrl, query: anyNamed('query')), + ).thenReturn(tCategoryEntriesUri); when( mockBaseProvider.fetchPaginated(tCategoryEntriesUri), ).thenAnswer((_) => Future.value(tCategoryMap['results'])); // Mock muscles - when(mockBaseProvider.makeUrl(muscleUrl)).thenReturn(tMuscleEntriesUri); + when( + mockBaseProvider.makeUrl(muscleUrl, query: anyNamed('query')), + ).thenReturn(tMuscleEntriesUri); when( mockBaseProvider.fetchPaginated(tMuscleEntriesUri), ).thenAnswer((_) => Future.value(tMuscleMap['results'])); // Mock equipment - when(mockBaseProvider.makeUrl(equipmentUrl)).thenReturn(tEquipmentEntriesUri); + when( + mockBaseProvider.makeUrl(equipmentUrl, query: anyNamed('query')), + ).thenReturn(tEquipmentEntriesUri); when( mockBaseProvider.fetchPaginated(tEquipmentEntriesUri), ).thenAnswer((_) => Future.value(tEquipmentMap['results'])); @@ -127,12 +151,12 @@ void main() { // Mock base info response when(mockBaseProvider.makeUrl(exerciseInfoUrl)).thenReturn(tExerciseInfoUri); - when(mockBaseProvider.fetch(tExerciseInfoUri)).thenAnswer( + when(mockBaseProvider.fetch(tExerciseInfoUri, timeout: anyNamed('timeout'))).thenAnswer( (_) => Future.value(tExerciseInfoMap), ); when(mockBaseProvider.makeUrl(exerciseInfoUrl, id: 9)).thenReturn(tExerciseInfoDetailUri); - when(mockBaseProvider.fetch(tExerciseInfoDetailUri)).thenAnswer( + when(mockBaseProvider.fetch(tExerciseInfoDetailUri, timeout: anyNamed('timeout'))).thenAnswer( (_) => Future.value(tExerciseInfoMap), ); }); @@ -480,7 +504,7 @@ void main() { )..where((e) => e.id.equals(9))).getSingleOrNull(); // Assert - verify(mockBaseProvider.fetch(any)); + verify(mockBaseProvider.fetch(any, timeout: anyNamed('timeout'))); expect(provider.exercises.length, 1); expect(provider.exercises.first.id, 9); expect(provider.exercises.first.uuid, '1b020b3a-3732-4c7e-92fd-a0cec90ed69b'); @@ -515,7 +539,7 @@ void main() { final exerciseData = ExerciseApiData.fromString(exerciseDb!.data); // Assert - verify(mockBaseProvider.fetch(any)); + verify(mockBaseProvider.fetch(any, timeout: anyNamed('timeout'))); expect(provider.exercises.length, 1); expect(provider.exercises.first.id, 9); expect(provider.exercises.first.uuid, '1b020b3a-3732-4c7e-92fd-a0cec90ed69b'); diff --git a/test/exercises/exercise_provider_test.dart b/test/exercises/exercise_provider_test.dart index 82a9d8610..d597759c4 100644 --- a/test/exercises/exercise_provider_test.dart +++ b/test/exercises/exercise_provider_test.dart @@ -1,3 +1,21 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import 'dart:convert'; import 'package:drift/drift.dart'; @@ -7,8 +25,8 @@ import 'package:mockito/mockito.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; import 'package:wger/database/exercises/exercise_database.dart'; -import 'package:wger/exceptions/no_such_entry_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/shared_preferences.dart'; import 'package:wger/models/exercises/category.dart'; @@ -105,19 +123,25 @@ void main() { driftRuntimeOptions.dontWarnAboutMultipleDatabases = true; // Mock categories - when(mockBaseProvider.makeUrl(categoryUrl)).thenReturn(tCategoryEntriesUri); + when( + mockBaseProvider.makeUrl(categoryUrl, query: anyNamed('query')), + ).thenReturn(tCategoryEntriesUri); when( mockBaseProvider.fetchPaginated(tCategoryEntriesUri), ).thenAnswer((_) => Future.value(tCategoryMap['results'])); // Mock muscles - when(mockBaseProvider.makeUrl(muscleUrl)).thenReturn(tMuscleEntriesUri); + when( + mockBaseProvider.makeUrl(muscleUrl, query: anyNamed('query')), + ).thenReturn(tMuscleEntriesUri); when( mockBaseProvider.fetchPaginated(tMuscleEntriesUri), ).thenAnswer((_) => Future.value(tMuscleMap['results'])); // Mock equipment - when(mockBaseProvider.makeUrl(equipmentUrl)).thenReturn(tEquipmentEntriesUri); + when( + mockBaseProvider.makeUrl(equipmentUrl, query: anyNamed('query')), + ).thenReturn(tEquipmentEntriesUri); when( mockBaseProvider.fetchPaginated(tEquipmentEntriesUri), ).thenAnswer((_) => Future.value(tEquipmentMap['results'])); diff --git a/test/exercises/exercises_detail_widget_test.mocks.dart b/test/exercises/exercises_detail_widget_test.mocks.dart index 00197a343..f340ea63c 100644 --- a/test/exercises/exercises_detail_widget_test.mocks.dart +++ b/test/exercises/exercises_detail_widget_test.mocks.dart @@ -352,7 +352,7 @@ class MockExercisesProvider extends _i1.Mock implements _i9.ExercisesProvider { as _i10.Future<_i4.Exercise>); @override - _i10.Future initCacheTimesLocalPrefs({dynamic forceInit = false}) => + _i10.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => (super.noSuchMethod( Invocation.method(#initCacheTimesLocalPrefs, [], { #forceInit: forceInit, diff --git a/test/utils/errors_test.dart b/test/helpers/errors_test.dart similarity index 100% rename from test/utils/errors_test.dart rename to test/helpers/errors_test.dart diff --git a/test/helpers/json_test.dart b/test/helpers/json_test.dart index 098d8e67d..13f72a035 100644 --- a/test/helpers/json_test.dart +++ b/test/helpers/json_test.dart @@ -57,13 +57,20 @@ void main() { }); }); - group('dateToIsoWithTimezone', () { + group('Iso8601 and timezones', () { test('should format DateTime to a string with timezone', () { expect( dateToUtcIso8601(DateTime.parse('2025-05-16T18:15:00+02:00')), '2025-05-16T16:15:00.000Z', ); }); + + test('should convert an iso8601 datetime to local', () { + expect( + utcIso8601ToLocalDate('2025-11-18T18:15:00+08:00'), + DateTime.parse('2025-11-18T11:15:00.000'), + ); + }); }); group('stringToTime', () { diff --git a/test/measurements/measurement_category_test.dart b/test/measurements/measurement_category_test.dart index 21009d0e7..3e16394dd 100644 --- a/test/measurements/measurement_category_test.dart +++ b/test/measurements/measurement_category_test.dart @@ -1,5 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; -import 'package:wger/exceptions/no_such_entry_exception.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; import 'package:wger/models/measurements/measurement_category.dart'; import 'package:wger/models/measurements/measurement_entry.dart'; diff --git a/test/measurements/measurement_provider_test.dart b/test/measurements/measurement_provider_test.dart index 799ac261a..675f6c1b9 100644 --- a/test/measurements/measurement_provider_test.dart +++ b/test/measurements/measurement_provider_test.dart @@ -4,8 +4,8 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; -import 'package:wger/exceptions/http_exception.dart'; -import 'package:wger/exceptions/no_such_entry_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/no_such_entry_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/models/measurements/measurement_category.dart'; import 'package:wger/models/measurements/measurement_entry.dart'; @@ -271,7 +271,7 @@ void main() { 'should re-add the "removed" MeasurementCategory and relay the exception on WgerHttpException', () { // arrange - when(mockWgerBaseProvider.deleteRequest(any, any)).thenThrow(WgerHttpException('{}')); + when(mockWgerBaseProvider.deleteRequest(any, any)).thenThrow(WgerHttpException.fromMap({})); // act & assert expect( @@ -330,7 +330,7 @@ void main() { test('should keep categories list as is on WgerHttpException', () { // arrange - when(mockWgerBaseProvider.patch(any, any)).thenThrow(WgerHttpException('{}')); + when(mockWgerBaseProvider.patch(any, any)).thenThrow(WgerHttpException.fromMap({})); // act & assert expect( @@ -550,7 +550,7 @@ void main() { ), const MeasurementCategory(id: 2, name: 'Biceps', unit: 'cm'), ]; - when(mockWgerBaseProvider.deleteRequest(any, any)).thenThrow(WgerHttpException('{}')); + when(mockWgerBaseProvider.deleteRequest(any, any)).thenThrow(WgerHttpException.fromMap({})); // act & assert expect( diff --git a/test/nutrition/goldens/nutritional_plan_1_default_view.png b/test/nutrition/goldens/nutritional_plan_1_default_view.png index f021c9f1c..1368b8a7d 100644 Binary files a/test/nutrition/goldens/nutritional_plan_1_default_view.png and b/test/nutrition/goldens/nutritional_plan_1_default_view.png differ diff --git a/test/nutrition/goldens/nutritional_plan_2_one_meal_with_ingredients.png b/test/nutrition/goldens/nutritional_plan_2_one_meal_with_ingredients.png index ab57450a6..116422648 100644 Binary files a/test/nutrition/goldens/nutritional_plan_2_one_meal_with_ingredients.png and b/test/nutrition/goldens/nutritional_plan_2_one_meal_with_ingredients.png differ diff --git a/test/nutrition/goldens/nutritional_plan_3_both_meals_with_ingredients.png b/test/nutrition/goldens/nutritional_plan_3_both_meals_with_ingredients.png index 02b148cd0..99c589735 100644 Binary files a/test/nutrition/goldens/nutritional_plan_3_both_meals_with_ingredients.png and b/test/nutrition/goldens/nutritional_plan_3_both_meals_with_ingredients.png differ diff --git a/test/nutrition/nutrition_provider_test.dart b/test/nutrition/nutrition_provider_test.dart index bc5d8dd99..6d1ecc427 100644 --- a/test/nutrition/nutrition_provider_test.dart +++ b/test/nutrition/nutrition_provider_test.dart @@ -207,11 +207,13 @@ void main() { description: 'Old active plan', startDate: now.subtract(const Duration(days: 10)), endDate: now.add(const Duration(days: 10)), + creationDate: now.subtract(const Duration(days: 10)), ); final newerPlan = NutritionalPlan( description: 'Newer active plan', startDate: now.subtract(const Duration(days: 5)), endDate: now.add(const Duration(days: 5)), + creationDate: now.subtract(const Duration(days: 1)), ); nutritionProvider = NutritionPlansProvider(mockWgerBaseProvider, [ olderPlan, @@ -222,6 +224,19 @@ void main() { }); group('Ingredient cache DB', () { + test('cacheIngredient saves to both in-memory and database cache', () async { + nutritionProvider.ingredients = []; + final ingredient = Ingredient.fromJson(ingredient59887Response); + + await nutritionProvider.cacheIngredient(ingredient, database: database); + + expect(nutritionProvider.ingredients.length, 1); + expect(nutritionProvider.ingredients.first.id, 59887); + + final rows = await database.select(database.ingredients).get(); + expect(rows.length, 1); + expect(rows.first.id, ingredient.id); + }); test('that if there is already valid data in the DB, the API is not hit', () async { // Arrange nutritionProvider.ingredients = []; diff --git a/test/nutrition/nutritional_meal_item_form_test.dart b/test/nutrition/nutritional_meal_item_form_test.dart index 63ef84db9..bbe423031 100644 --- a/test/nutrition/nutritional_meal_item_form_test.dart +++ b/test/nutrition/nutritional_meal_item_form_test.dart @@ -292,41 +292,74 @@ void main() { expect(find.text('Please enter a valid number'), findsOneWidget); }); - testWidgets('save complete ingredient with correct weight input type', ( + testWidgets( + 'save complete ingredient with correct weight input type', + ( + WidgetTester tester, + ) async { + await tester.pumpWidget(createMealItemFormScreen(meal1, '123', true)); + + final IngredientFormState formState = tester.state(find.byType(IngredientForm)); + + await tester.tap(find.byKey(const Key('scan-button'))); + await tester.pumpAndSettle(); + + expect(find.byKey(const Key('ingredient-scan-result-dialog')), findsOneWidget); + + await tester.tap(find.byKey(const Key('ingredient-scan-result-dialog-confirm-button'))); + await tester.pumpAndSettle(); + + expect(formState.ingredientIdController.text, '1'); + + await tester.enterText(find.byKey(const Key('field-weight')), '2'); + + // once ID and weight are set, it'll fetchIngredient and show macros preview and ingredient image + when(mockNutrition.fetchIngredient(1)).thenAnswer( + (_) => Future.value( + Ingredient.fromJson(jsonDecode(fixture('nutrition/ingredientinfo_59887.json'))), + ), + ); + await mockNetworkImagesFor(() => tester.pumpAndSettle()); + + expect(find.byKey(const Key('ingredient-scan-result-dialog')), findsNothing); + + await tester.tap(find.byKey(const Key(SUBMIT_BUTTON_KEY_NAME))); + await tester.pumpAndSettle(); + + expect(formState.mealItem.amount, 2); + + verify(mockNutrition.addMealItem(any, meal1)); + }, + ); + + testWidgets('selecting ingredient from autocomplete calls cacheIngredient', ( WidgetTester tester, ) async { - await tester.pumpWidget(createMealItemFormScreen(meal1, '123', true)); - - final IngredientFormState formState = tester.state(find.byType(IngredientForm)); - - await tester.tap(find.byKey(const Key('scan-button'))); + await tester.pumpWidget(createMealItemFormScreen(meal1, '', true)); await tester.pumpAndSettle(); - expect(find.byKey(const Key('ingredient-scan-result-dialog')), findsOneWidget); + clearInteractions(mockNutrition); - await tester.tap(find.byKey(const Key('ingredient-scan-result-dialog-confirm-button'))); - await tester.pumpAndSettle(); - - expect(formState.ingredientIdController.text, '1'); - - await tester.enterText(find.byKey(const Key('field-weight')), '2'); - - // once ID and weight are set, it'll fetchIngredient and show macros preview and ingredient image - when(mockNutrition.fetchIngredient(1)).thenAnswer( - (_) => Future.value( - Ingredient.fromJson(jsonDecode(fixture('nutrition/ingredientinfo_59887.json'))), + when( + mockNutrition.searchIngredient( + any, + languageCode: anyNamed('languageCode'), + searchEnglish: anyNamed('searchEnglish'), ), - ); - await mockNetworkImagesFor(() => tester.pumpAndSettle()); + ).thenAnswer((_) => Future.value([ingredient1])); - expect(find.byKey(const Key('ingredient-scan-result-dialog')), findsNothing); + when( + mockNutrition.cacheIngredient(any), + ).thenAnswer((_) => Future.value(null)); - await tester.tap(find.byKey(const Key(SUBMIT_BUTTON_KEY_NAME))); + await tester.enterText(find.byType(TextFormField).first, 'Water'); + await tester.pumpAndSettle(const Duration(milliseconds: 600)); await tester.pumpAndSettle(); - expect(formState.mealItem.amount, 2); + await tester.tap(find.byType(ListTile).first); + await tester.pumpAndSettle(); - verify(mockNutrition.addMealItem(any, meal1)); + verify(mockNutrition.cacheIngredient(ingredient1)).called(1); }); }); } diff --git a/test/providers/base_provider.dart b/test/providers/base_provider.dart new file mode 100644 index 000000000..203973c3e --- /dev/null +++ b/test/providers/base_provider.dart @@ -0,0 +1,135 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'dart:io'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:http/http.dart'; +import 'package:mockito/annotations.dart'; +import 'package:mockito/mockito.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; +import 'package:wger/providers/base_provider.dart'; + +import '../utils.dart'; +import 'base_provider.mocks.dart'; + +@GenerateMocks([Client]) +void main() { + final Uri testUri = Uri(scheme: 'https', host: 'localhost', path: 'api/v2/test/'); + + test('Retry on SocketException then succeeds', () async { + // Arrange + final mockClient = MockClient(); + var callCount = 0; + when(mockClient.get(testUri, headers: anyNamed('headers'))).thenAnswer((_) { + if (callCount == 0) { + callCount++; + return Future.error(const SocketException('conn fail')); + } + return Future.value(Response('{"ok": true}', 200)); + }); + + // Act + final provider = WgerBaseProvider(testAuthProvider, mockClient); + final result = await provider.fetch(testUri, initialDelay: const Duration(milliseconds: 1)); + + // Assert + expect(result, isA()); + expect(result['ok'], isTrue); + verify(mockClient.get(testUri, headers: anyNamed('headers'))).called(2); + }); + + test('Retry on 5xx then succeeds', () async { + // Arrange + final mockClient = MockClient(); + var callCount = 0; + when(mockClient.get(testUri, headers: anyNamed('headers'))).thenAnswer((_) { + if (callCount == 0) { + callCount++; + return Future.value(Response('{"msg":"error"}', 502)); + } + return Future.value(Response('{"ok": true}', 200)); + }); + + // Act + final provider = WgerBaseProvider(testAuthProvider, mockClient); + final result = await provider.fetch(testUri, initialDelay: const Duration(milliseconds: 1)); + + // Assert + expect(result, isA()); + expect(result['ok'], isTrue); + verify(mockClient.get(testUri, headers: anyNamed('headers'))).called(2); + }); + + test('Do not retry on 4xx client error', () async { + // Arrange + final mockClient = MockClient(); + when( + mockClient.get(testUri, headers: anyNamed('headers')), + ).thenAnswer((_) => Future.value(Response('{"error":"bad"}', 400))); + + // Act + final provider = WgerBaseProvider(testAuthProvider, mockClient); + + // Assert + await expectLater( + provider.fetch(testUri, initialDelay: const Duration(milliseconds: 1)), + throwsA(isA()), + ); + verify(mockClient.get(testUri, headers: anyNamed('headers'))).called(1); + }); + + test('Exceed max retries and rethrow after retries', () async { + // Arrange + final mockClient = MockClient(); + when( + mockClient.get(testUri, headers: anyNamed('headers')), + ).thenAnswer((_) => Future.error(ClientException('conn fail'))); + + // Act + final provider = WgerBaseProvider(testAuthProvider, mockClient); + dynamic caught; + try { + await provider.fetch(testUri, initialDelay: const Duration(milliseconds: 1)); + } catch (e) { + caught = e; + } + + // Assert + expect(caught, isA()); + // initial try + 3 retries = 4 calls + verify(mockClient.get(testUri, headers: anyNamed('headers'))).called(4); + }); + + test('Request succeeds without retries', () async { + // Arrange + final mockClient = MockClient(); + when( + mockClient.get(testUri, headers: anyNamed('headers')), + ).thenAnswer((_) => Future.value(Response('{"ok": true}', 200))); + + // Act + final provider = WgerBaseProvider(testAuthProvider, mockClient); + final result = await provider.fetch(testUri); + + // Assert + expect(result, isA()); + expect(result['ok'], isTrue); + verify(mockClient.get(testUri, headers: anyNamed('headers'))).called(1); + }); +} diff --git a/test/providers/base_provider.mocks.dart b/test/providers/base_provider.mocks.dart new file mode 100644 index 000000000..5111102b5 --- /dev/null +++ b/test/providers/base_provider.mocks.dart @@ -0,0 +1,218 @@ +// Mocks generated by Mockito 5.4.6 from annotations +// in wger/test/providers/base_provider.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; +import 'dart:convert' as _i4; +import 'dart:typed_data' as _i6; + +import 'package:http/http.dart' as _i2; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member + +class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response { + _FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeStreamedResponse_1 extends _i1.SmartFake implements _i2.StreamedResponse { + _FakeStreamedResponse_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +/// A class which mocks [Client]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockClient extends _i1.Mock implements _i2.Client { + MockClient() { + _i1.throwOnMissingStub(this); + } + + @override + _i3.Future<_i2.Response> head(Uri? url, {Map? headers}) => + (super.noSuchMethod( + Invocation.method(#head, [url], {#headers: headers}), + returnValue: _i3.Future<_i2.Response>.value( + _FakeResponse_0( + this, + Invocation.method(#head, [url], {#headers: headers}), + ), + ), + ) + as _i3.Future<_i2.Response>); + + @override + _i3.Future<_i2.Response> get(Uri? url, {Map? headers}) => + (super.noSuchMethod( + Invocation.method(#get, [url], {#headers: headers}), + returnValue: _i3.Future<_i2.Response>.value( + _FakeResponse_0( + this, + Invocation.method(#get, [url], {#headers: headers}), + ), + ), + ) + as _i3.Future<_i2.Response>); + + @override + _i3.Future<_i2.Response> post( + Uri? url, { + Map? headers, + Object? body, + _i4.Encoding? encoding, + }) => + (super.noSuchMethod( + Invocation.method( + #post, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + returnValue: _i3.Future<_i2.Response>.value( + _FakeResponse_0( + this, + Invocation.method( + #post, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + ), + ), + ) + as _i3.Future<_i2.Response>); + + @override + _i3.Future<_i2.Response> put( + Uri? url, { + Map? headers, + Object? body, + _i4.Encoding? encoding, + }) => + (super.noSuchMethod( + Invocation.method( + #put, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + returnValue: _i3.Future<_i2.Response>.value( + _FakeResponse_0( + this, + Invocation.method( + #put, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + ), + ), + ) + as _i3.Future<_i2.Response>); + + @override + _i3.Future<_i2.Response> patch( + Uri? url, { + Map? headers, + Object? body, + _i4.Encoding? encoding, + }) => + (super.noSuchMethod( + Invocation.method( + #patch, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + returnValue: _i3.Future<_i2.Response>.value( + _FakeResponse_0( + this, + Invocation.method( + #patch, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + ), + ), + ) + as _i3.Future<_i2.Response>); + + @override + _i3.Future<_i2.Response> delete( + Uri? url, { + Map? headers, + Object? body, + _i4.Encoding? encoding, + }) => + (super.noSuchMethod( + Invocation.method( + #delete, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + returnValue: _i3.Future<_i2.Response>.value( + _FakeResponse_0( + this, + Invocation.method( + #delete, + [url], + {#headers: headers, #body: body, #encoding: encoding}, + ), + ), + ), + ) + as _i3.Future<_i2.Response>); + + @override + _i3.Future read(Uri? url, {Map? headers}) => + (super.noSuchMethod( + Invocation.method(#read, [url], {#headers: headers}), + returnValue: _i3.Future.value( + _i5.dummyValue( + this, + Invocation.method(#read, [url], {#headers: headers}), + ), + ), + ) + as _i3.Future); + + @override + _i3.Future<_i6.Uint8List> readBytes( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method(#readBytes, [url], {#headers: headers}), + returnValue: _i3.Future<_i6.Uint8List>.value(_i6.Uint8List(0)), + ) + as _i3.Future<_i6.Uint8List>); + + @override + _i3.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) => + (super.noSuchMethod( + Invocation.method(#send, [request]), + returnValue: _i3.Future<_i2.StreamedResponse>.value( + _FakeStreamedResponse_1( + this, + Invocation.method(#send, [request]), + ), + ), + ) + as _i3.Future<_i2.StreamedResponse>); + + @override + void close() => super.noSuchMethod( + Invocation.method(#close, []), + returnValueForMissingStub: null, + ); +} diff --git a/test/providers/gym_state_test.dart b/test/providers/gym_state_test.dart new file mode 100644 index 000000000..2333435a5 --- /dev/null +++ b/test/providers/gym_state_test.dart @@ -0,0 +1,276 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/providers/gym_state.dart'; + +import '../../test_data/exercises.dart'; +import '../../test_data/routines.dart'; + +void main() { + late GymStateNotifier notifier; + late ProviderContainer container; + + setUp(() { + container = ProviderContainer.test(); + notifier = container.read(gymStateProvider.notifier); + notifier.state = notifier.state.copyWith( + showExercisePages: true, + showTimerPages: true, + dayId: 1, + iteration: 1, + routine: getTestRoutine(), + ); + notifier.calculatePages(); + }); + + group('GymStateNotifier.markSlotPageAsDone', () { + test('Correctly changes the flag', () { + // Arrange + final slotPage = notifier.state.pages[1].slotPages[1]; + expect(slotPage.type, SlotPageType.log); + expect( + notifier.state.pages.every((p) => p.slotPages.every((s) => !s.logDone)), + true, + reason: 'All slot pages are initially not done', + ); + + // Act + notifier.markSlotPageAsDone(slotPage.uuid, isDone: true); + + // Assert + for (final page in notifier.state.pages.where((p) => p.type == PageType.set)) { + for (final slot in page.slotPages.where((s) => s.type == SlotPageType.log)) { + if (slot.uuid == slotPage.uuid) { + expect(slot.logDone, true); + } else { + expect(slot.logDone, false); + } + } + } + }); + }); + + group('GymStateNotifier.recalculateIndices', () { + test('Correctly recalculates indices if new pages are added', () { + // Arrange + final newPages = [ + ...notifier.state.pages.sublist(0, 2), + PageEntry( + type: PageType.set, + pageIndex: 1111, + uuid: 'new-page-1', + ), + PageEntry( + type: PageType.set, + pageIndex: 9, + uuid: 'new-page-2', + ), + ...notifier.state.pages.sublist(2), + PageEntry( + type: PageType.set, + pageIndex: 0, + uuid: 'new-page-3', + slotPages: [ + SlotPageEntry( + type: SlotPageType.timer, + pageIndex: 10, + setIndex: 9, + uuid: 'new-slot-1', + ), + SlotPageEntry( + type: SlotPageType.timer, + pageIndex: 10, + setIndex: 6, + uuid: 'new-slot-2', + ), + SlotPageEntry( + type: SlotPageType.timer, + pageIndex: 100, + setIndex: 100, + uuid: 'new-slot-3', + ), + ], + ), + ]; + notifier.state = notifier.state.copyWith(pages: newPages); + + // Act + notifier.recalculateIndices(); + + // Assert + final pages = notifier.state.pages; + expect(pages[0].pageIndex, 0); + expect(pages[1].pageIndex, 1); + + // These three have the same pageIndex because the new ones don't have any slot + // pages (this should not happen in practice) + expect(pages[2].pageIndex, 8); + expect(pages[3].pageIndex, 8); + expect(pages[4].pageIndex, 8); + + expect(pages[5].pageIndex, 15); + expect(pages[6].pageIndex, 16); + expect(pages[7].pageIndex, 17); + + // Preserve the order of new pages + expect(pages[7].uuid, 'new-page-3'); + + // Slot pages have correct indices, the original order is preserved + final slotPages = pages[7].slotPages; + expect(slotPages[0].uuid, 'new-slot-1'); + expect(slotPages[0].pageIndex, 17); + expect(slotPages[0].setIndex, 0); + expect(slotPages[1].uuid, 'new-slot-2'); + expect(slotPages[1].pageIndex, 18); + expect(slotPages[1].setIndex, 1); + expect(slotPages[2].uuid, 'new-slot-3'); + expect(slotPages[2].pageIndex, 19); + expect(slotPages[2].setIndex, 2); + }); + }); + + group('GymStateNotifier.replaceExercises', () { + test('Correctly swaps an exercise', () { + // Arrange + final slotPage = notifier.state.pages[1].slotPages[1]; + expect(slotPage.type, SlotPageType.log); + notifier.state.pages.every((p) => p.exercises.every((s) => s.id != testSquats.id)); + + // Act + notifier.replaceExercises(slotPage.uuid, originalExerciseId: 1, newExercise: testSquats); + // print(notifier.readPageStructure()); + + // Assert + expect(notifier.state.pages[1].exercises.first.id, testSquats.id); + }); + }); + + group('GymStateNotifier.calculatePages', () { + test( + 'Correctly generates pages - exercise and timer', + () { + // Arrange + notifier.state = notifier.state.copyWith( + showExercisePages: true, + showTimerPages: true, + ); + + // Act + notifier.calculatePages(); + + // Assert + final pages = notifier.state.pages; + final setEntry = pages.firstWhere((p) => p.type == PageType.set); + expect(pages.length, 5, reason: '5 PageEntries (start, set 1, set 2, session, summary)'); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.log).length, + 3, + reason: 'Three sets', + ); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.timer).length, + 3, + reason: 'One timer after each set', + ); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.exerciseOverview).length, + 1, + reason: 'One exercise overview at the start', + ); + expect(setEntry.slotPages[0].type, SlotPageType.exerciseOverview); + expect(setEntry.slotPages[1].type, SlotPageType.log); + expect(setEntry.slotPages[2].type, SlotPageType.timer); + expect(notifier.state.totalPages, 17); + }, + ); + + test('Correctly generates pages - no exercises and no timer', () { + // Arrange + notifier.state = notifier.state.copyWith( + showExercisePages: false, + showTimerPages: false, + ); + + // Act + notifier.calculatePages(); + + // Assert + final pages = notifier.state.pages; + final setEntry = pages.firstWhere((p) => p.type == PageType.set); + expect(pages.length, 5, reason: '4 PageEntries (start, set 1, set 2, session, summary)'); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.log).length, + 3, + reason: 'Three sets', + ); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.timer).length, + 0, + reason: 'No timer', + ); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.exerciseOverview).length, + 0, + reason: 'No overview', + ); + expect(setEntry.slotPages[0].type, SlotPageType.log); + expect(setEntry.slotPages[1].type, SlotPageType.log); + expect(setEntry.slotPages[2].type, SlotPageType.log); + expect(notifier.state.totalPages, 9); + }); + + test('Correctly generates pages - exercises and no timer', () { + // Arrange + notifier.state = notifier.state.copyWith( + showExercisePages: true, + showTimerPages: false, + ); + + // Act + notifier.calculatePages(); + + // Assert + final pages = notifier.state.pages; + final setEntry = pages.firstWhere((p) => p.type == PageType.set); + expect(pages.length, 5, reason: '5 PageEntries (start, set 1, set 2, session, summary)'); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.log).length, + 3, + reason: 'Three sets', + ); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.timer).length, + 0, + reason: 'No timer', + ); + expect( + setEntry.slotPages.where((p) => p.type == SlotPageType.exerciseOverview).length, + 1, + reason: 'One exercise overview at the start', + ); + expect(setEntry.slotPages.length, 4); + expect(setEntry.slotPages[0].type, SlotPageType.exerciseOverview); + expect(setEntry.slotPages[1].type, SlotPageType.log); + expect(setEntry.slotPages[2].type, SlotPageType.log); + expect(setEntry.slotPages[3].type, SlotPageType.log); + expect(notifier.state.totalPages, 11); + }); + }); +} diff --git a/test/providers/plate_calculator_test.dart b/test/providers/plate_calculator_test.dart index 1be3d0704..3ebcd333b 100644 --- a/test/providers/plate_calculator_test.dart +++ b/test/providers/plate_calculator_test.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; // Added for annotations import 'package:mockito/mockito.dart'; // Added for mockito @@ -12,6 +13,7 @@ import 'plate_calculator_test.mocks.dart'; void main() { group('PlateWeightsNotifier', () { late PlateCalculatorNotifier notifier; + late ProviderContainer container; late MockSharedPreferencesAsync mockPrefs; setUp(() { @@ -19,7 +21,14 @@ void main() { when(mockPrefs.getString(PREFS_KEY_PLATES)).thenAnswer((_) async => null); when(mockPrefs.setString(any, any)).thenAnswer((_) async => true); - notifier = PlateCalculatorNotifier(prefs: mockPrefs); + container = ProviderContainer.test( + overrides: [ + plateCalculatorProvider.overrideWith( + () => PlateCalculatorNotifier(prefs: mockPrefs), + ), + ], + ); + notifier = container.read(plateCalculatorProvider.notifier); }); test('toggleSelection adds and removes plates', () async { diff --git a/test/routine/forms/session_form_test.dart b/test/routine/forms/session_form_test.dart index 53302ea94..53febec2c 100644 --- a/test/routine/forms/session_form_test.dart +++ b/test/routine/forms/session_form_test.dart @@ -4,7 +4,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/session.dart'; import 'package:wger/providers/routines.dart'; diff --git a/test/routine/goldens/routine_logs_screen_detail.png b/test/routine/goldens/routine_logs_screen_detail.png index 0edaa0a24..4c83c8171 100644 Binary files a/test/routine/goldens/routine_logs_screen_detail.png and b/test/routine/goldens/routine_logs_screen_detail.png differ diff --git a/test/routine/goldens/routine_screen_detail.png b/test/routine/goldens/routine_screen_detail.png index d3f5cb48b..07b1f4967 100644 Binary files a/test/routine/goldens/routine_screen_detail.png and b/test/routine/goldens/routine_screen_detail.png differ diff --git a/test/routine/gym_mode/goldens/gym_mode_progression_tab.png b/test/routine/gym_mode/goldens/gym_mode_progression_tab.png new file mode 100644 index 000000000..ce11ed83b Binary files /dev/null and b/test/routine/gym_mode/goldens/gym_mode_progression_tab.png differ diff --git a/test/routine/gym_mode/gym_mode_test.dart b/test/routine/gym_mode/gym_mode_test.dart new file mode 100644 index 000000000..685873163 --- /dev/null +++ b/test/routine/gym_mode/gym_mode_test.dart @@ -0,0 +1,310 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:clock/clock.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart' as riverpod; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/annotations.dart'; +import 'package:mockito/mockito.dart'; +import 'package:provider/provider.dart'; +import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; +import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/base_provider.dart'; +import 'package:wger/providers/exercises.dart'; +import 'package:wger/providers/routines.dart'; +import 'package:wger/screens/gym_mode.dart'; +import 'package:wger/screens/routine_screen.dart'; +import 'package:wger/widgets/routines/forms/repetitions.dart'; +import 'package:wger/widgets/routines/forms/rir.dart'; +import 'package:wger/widgets/routines/forms/weight.dart'; +import 'package:wger/widgets/routines/gym_mode/exercise_overview.dart'; +import 'package:wger/widgets/routines/gym_mode/log_page.dart'; +import 'package:wger/widgets/routines/gym_mode/session_page.dart'; +import 'package:wger/widgets/routines/gym_mode/start_page.dart'; +import 'package:wger/widgets/routines/gym_mode/summary.dart'; +import 'package:wger/widgets/routines/gym_mode/timer.dart'; + +import '../../../test_data/exercises.dart'; +import '../../../test_data/routines.dart'; +import 'gym_mode_test.mocks.dart'; + +@GenerateMocks([WgerBaseProvider, ExercisesProvider, RoutinesProvider]) +void main() { + final key = GlobalKey(); + + final mockRoutinesProvider = MockRoutinesProvider(); + final mockExerciseProvider = MockExercisesProvider(); + final testRoutine = getTestRoutine(); + final testExercises = getTestExercises(); + + setUp(() { + when(mockRoutinesProvider.findById(any)).thenReturn(testRoutine); + when(mockRoutinesProvider.items).thenReturn([testRoutine]); + when(mockRoutinesProvider.repetitionUnits).thenReturn(testRepetitionUnits); + when(mockRoutinesProvider.findRepetitionUnitById(1)).thenReturn(testRepetitionUnit1); + when(mockRoutinesProvider.weightUnits).thenReturn(testWeightUnits); + when(mockRoutinesProvider.findWeightUnitById(1)).thenReturn(testWeightUnit1); + when( + mockRoutinesProvider.fetchAndSetRoutineFull(any), + ).thenAnswer((_) => Future.value(testRoutine)); + + SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + }); + + Widget renderGymMode({locale = 'en'}) { + return ChangeNotifierProvider( + create: (context) => mockRoutinesProvider, + child: ChangeNotifierProvider( + create: (context) => mockExerciseProvider, + child: riverpod.ProviderScope( + child: MaterialApp( + locale: Locale(locale), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + navigatorKey: key, + home: TextButton( + onPressed: () => key.currentState!.push( + MaterialPageRoute( + settings: const RouteSettings(arguments: GymModeArguments(1, 1, 1)), + builder: (_) => const GymModeScreen(), + ), + ), + child: const SizedBox(), + ), + routes: {RoutineScreen.routeName: (ctx) => const RoutineScreen()}, + ), + ), + ), + ); + } + + testWidgets( + 'Test the widgets on the gym mode screen', + (WidgetTester tester) async { + when(mockExerciseProvider.findExerciseById(1)).thenReturn(testExercises[0]); + when(mockExerciseProvider.findExerciseById(6)).thenReturn(testExercises[5]); + when( + mockExerciseProvider.findExercisesByVariationId( + null, + exerciseIdToExclude: anyNamed('exerciseIdToExclude'), + ), + ).thenReturn([]); + + await withClock(Clock.fixed(DateTime(2025, 3, 29, 14, 33)), () async { + await tester.pumpWidget(renderGymMode()); + await tester.pumpAndSettle(); + await tester.tap(find.byType(TextButton)); + await tester.pumpAndSettle(); + + // + // Start page + // + expect(find.byType(StartPage), findsOneWidget); + expect(find.text('Your workout today'), findsOneWidget); + expect(find.text('Bench press'), findsOneWidget); + expect(find.text('Side raises'), findsOneWidget); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.menu), findsOneWidget); + expect(find.byIcon(Icons.chevron_left), findsNothing); + expect(find.byIcon(Icons.chevron_right), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Bench press - exercise overview page + // + expect(find.text('Bench press'), findsOneWidget); + expect(find.byType(ExerciseOverview), findsOneWidget); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.menu), findsOneWidget); + expect(find.byIcon(Icons.chevron_left), findsOneWidget); + expect(find.byIcon(Icons.chevron_right), findsOneWidget); + await tester.drag(find.byType(ExerciseOverview), const Offset(-500.0, 0.0)); + await tester.pumpAndSettle(); + + // + // Bench press - Log + // + expect(find.text('Bench press'), findsOneWidget); + expect(find.byType(LogPage), findsOneWidget); + expect(find.byType(Form), findsOneWidget); + expect(find.text('10 × 10 kg (1.5 RiR)'), findsOneWidget); + expect(find.text('12 × 10 kg (2 RiR)'), findsOneWidget); + + // TODO: commented out for now + // expect(find.text('Make sure to warm up'), findsOneWidget, reason: 'Set comment'); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.menu), findsOneWidget); + expect(find.byIcon(Icons.chevron_left), findsOneWidget); + expect(find.byIcon(Icons.chevron_right), findsOneWidget); + + // Form shows only weight and reps + expect(find.byType(SwitchListTile), findsOneWidget); + expect(find.byType(TextFormField), findsNWidgets(2)); + expect(find.byType(RepetitionUnitInputWidget), findsNothing); + expect(find.byType(WeightUnitInputWidget), findsNothing); + expect(find.byType(RiRInputWidget), findsNothing); + + // Form shows unit and rir after tapping the toggle button + await tester.tap(find.byType(SwitchListTile)); + await tester.pump(); + expect(find.byType(RepetitionUnitInputWidget), findsOneWidget); + expect(find.byType(WeightUnitInputWidget), findsOneWidget); + expect(find.byType(RiRInputWidget), findsOneWidget); + await tester.drag(find.byType(LogPage), const Offset(-500.0, 0.0)); + await tester.pumpAndSettle(); + + // + // Bench press - pause + // + expect(find.text('Pause'), findsOneWidget); + expect(find.byType(TimerCountdownWidget), findsOneWidget); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.menu), findsOneWidget); + expect(find.byIcon(Icons.chevron_left), findsOneWidget); + expect(find.byIcon(Icons.chevron_right), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Bench press - log + // + expect(find.text('Bench press'), findsOneWidget); + expect(find.byType(LogPage), findsOneWidget); + expect(find.byType(Form), findsOneWidget); + await tester.drag(find.byType(LogPage), const Offset(-500.0, 0.0)); + await tester.pumpAndSettle(); + + // + // Pause + // + expect(find.text('Pause'), findsOneWidget); + expect(find.byType(TimerCountdownWidget), findsOneWidget); + expect(find.byIcon(Icons.chevron_left), findsOneWidget); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.chevron_right), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Bench press - log + // + expect(find.text('Bench press'), findsOneWidget); + expect(find.byType(LogPage), findsOneWidget); + expect(find.byType(Form), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Pause + // + expect(find.text('Pause'), findsOneWidget); + expect(find.byType(TimerCountdownWidget), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - overview + // + expect(find.text('Side raises'), findsOneWidget); + expect(find.byType(ExerciseOverview), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - log + // + expect(find.text('Side raises'), findsOneWidget); + expect(find.byType(LogPage), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - timer + // + expect(find.byType(TimerWidget), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - log + // + expect(find.text('Side raises'), findsOneWidget); + expect(find.byType(LogPage), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - timer + // + expect(find.byType(TimerWidget), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - log + // + expect(find.text('Side raises'), findsOneWidget); + expect(find.byType(LogPage), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Side raises - timer + // + expect(find.byType(TimerWidget), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Session + // + expect(find.text('Workout session'), findsOneWidget); + expect(find.byType(SessionPage), findsOneWidget); + expect(find.byType(Form), findsOneWidget); + expect(find.byIcon(Icons.sentiment_very_dissatisfied), findsOneWidget); + expect(find.byIcon(Icons.sentiment_neutral), findsOneWidget); + expect(find.byIcon(Icons.sentiment_very_satisfied), findsOneWidget); + expect( + find.text('14:33'), + findsNWidgets(2), + reason: 'start and end time are the same', + ); + final toggleButtons = tester.widget(find.byType(ToggleButtons)); + expect(toggleButtons.isSelected[1], isTrue); + expect(find.byIcon(Icons.chevron_left), findsOneWidget); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.chevron_right), findsOneWidget); + await tester.tap(find.byIcon(Icons.chevron_right)); + await tester.pumpAndSettle(); + + // + // Workout summary + // + expect(find.byType(WorkoutSummary), findsOneWidget); + expect(find.byIcon(Icons.chevron_left), findsOneWidget); + expect(find.byIcon(Icons.close), findsOneWidget); + expect(find.byIcon(Icons.chevron_right), findsNothing); + }); + }, + tags: ['golden'], + semanticsEnabled: false, + ); +} diff --git a/test/routine/gym_mode_screen_test.mocks.dart b/test/routine/gym_mode/gym_mode_test.mocks.dart similarity index 97% rename from test/routine/gym_mode_screen_test.mocks.dart rename to test/routine/gym_mode/gym_mode_test.mocks.dart index 400d7e1f9..8924daedb 100644 --- a/test/routine/gym_mode_screen_test.mocks.dart +++ b/test/routine/gym_mode/gym_mode_test.mocks.dart @@ -1,5 +1,5 @@ // Mocks generated by Mockito 5.4.6 from annotations -// in wger/test/routine/gym_mode_screen_test.dart. +// in wger/test/routine/gym_mode/gym_mode_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -167,10 +167,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ); @override - Map getDefaultHeaders({bool? includeAuth = false}) => + Map getDefaultHeaders({ + bool? includeAuth = false, + String? language, + }) => (super.noSuchMethod( Invocation.method(#getDefaultHeaders, [], { #includeAuth: includeAuth, + #language: language, }), returnValue: {}, ) @@ -201,17 +205,40 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i20.Future fetch(Uri? uri) => + _i20.Future fetch( + Uri? uri, { + int? maxRetries = 3, + Duration? initialDelay = const Duration(milliseconds: 250), + Duration? timeout = const Duration(seconds: 5), + String? language, + }) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + { + #maxRetries: maxRetries, + #initialDelay: initialDelay, + #timeout: timeout, + #language: language, + }, + ), returnValue: _i20.Future.value(), ) as _i20.Future); @override - _i20.Future> fetchPaginated(Uri? uri) => + _i20.Future> fetchPaginated( + Uri? uri, { + String? language, + Duration? timeout = const Duration(seconds: 5), + }) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + {#language: language, #timeout: timeout}, + ), returnValue: _i20.Future>.value([]), ) as _i20.Future>); @@ -546,7 +573,7 @@ class MockExercisesProvider extends _i1.Mock implements _i21.ExercisesProvider { as _i20.Future<_i6.Exercise>); @override - _i20.Future initCacheTimesLocalPrefs({dynamic forceInit = false}) => + _i20.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => (super.noSuchMethod( Invocation.method(#initCacheTimesLocalPrefs, [], { #forceInit: forceInit, diff --git a/test/routine/gym_mode_session_screen_test.dart b/test/routine/gym_mode/session_page_test.dart similarity index 68% rename from test/routine/gym_mode_session_screen_test.dart rename to test/routine/gym_mode/session_page_test.dart index bb5c77f49..60382d66f 100644 --- a/test/routine/gym_mode_session_screen_test.dart +++ b/test/routine/gym_mode/session_page_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) wger Team + * Copyright (c) 2020 - 2025 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -18,6 +18,7 @@ import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; @@ -26,38 +27,58 @@ import 'package:wger/helpers/json.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/routine.dart'; import 'package:wger/models/workouts/session.dart'; +import 'package:wger/providers/gym_state.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/widgets/routines/gym_mode/session_page.dart'; -import '../../test_data/routines.dart'; -import 'gym_mode_session_screen_test.mocks.dart'; +import '../../../test_data/routines.dart'; +import 'session_page_test.mocks.dart'; @GenerateMocks([RoutinesProvider]) void main() { final mockRoutinesProvider = MockRoutinesProvider(); late Routine testRoutine; + late GymStateNotifier notifier; + late ProviderContainer container; setUp(() { testRoutine = getTestRoutine(); - + container = ProviderContainer.test(); + notifier = container.read(gymStateProvider.notifier); + notifier.state = notifier.state.copyWith( + showExercisePages: true, + showTimerPages: true, + dayId: 1, + iteration: 1, + routine: getTestRoutine(), + ); + notifier.calculatePages(); when(mockRoutinesProvider.editSession(any)).thenAnswer( (_) => Future.value(testRoutine.sessions[0].session), ); + when(mockRoutinesProvider.fetchAndSetRoutineFull(any)).thenAnswer( + (_) => Future.value(testRoutine), + ); }); Widget renderSessionPage({locale = 'en'}) { - return ChangeNotifierProvider( - create: (context) => mockRoutinesProvider, - child: MaterialApp( - locale: Locale(locale), - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - home: Scaffold( - body: SessionPage( - testRoutine, - PageController(), - const TimeOfDay(hour: 13, minute: 35), - const {}, + final controller = PageController(initialPage: 0); + + return UncontrolledProviderScope( + container: container, + child: ChangeNotifierProvider( + create: (context) => mockRoutinesProvider, + child: MaterialApp( + locale: Locale(locale), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold( + body: PageView( + controller: controller, + children: [ + SessionPage(controller), + ], + ), ), ), ), @@ -67,6 +88,9 @@ void main() { testWidgets('Test that data from session is loaded', (WidgetTester tester) async { withClock(Clock.fixed(DateTime(2021, 5, 1)), () async { await tester.pumpWidget(renderSessionPage()); + await tester.pumpAndSettle(); + + debugDumpApp(); expect(find.text('10:00'), findsOneWidget); expect(find.text('12:34'), findsOneWidget); expect(find.text('This is a note'), findsOneWidget); @@ -79,8 +103,12 @@ void main() { testRoutine.sessions[0].session.timeStart = null; testRoutine.sessions[0].session.timeEnd = null; + notifier.state = notifier.state.copyWith(routine: testRoutine); + notifier.calculatePages(); + withClock(Clock.fixed(DateTime(2021, 5, 1)), () async { await tester.pumpWidget(renderSessionPage()); + await tester.pumpAndSettle(); final startTimeField = find.byKey(const ValueKey('time-start')); expect(startTimeField, findsOneWidget); @@ -93,10 +121,18 @@ void main() { }); testWidgets('Test correct default data (no existing session)', (WidgetTester tester) async { + // Arrange testRoutine.sessions = []; final timeNow = timeToString(TimeOfDay.now())!; + notifier.state = notifier.state.copyWith( + startTime: const TimeOfDay(hour: 13, minute: 35), + ); + // Act await tester.pumpWidget(renderSessionPage()); + await tester.pumpAndSettle(); + + // Assert expect(find.text('13:35'), findsOneWidget); expect(find.text(timeNow), findsOneWidget); final toggleButtons = tester.widget(find.byType(ToggleButtons)); @@ -106,6 +142,7 @@ void main() { testWidgets('Test that correct data is send to server', (WidgetTester tester) async { withClock(Clock.fixed(DateTime(2021, 5, 1)), () async { await tester.pumpWidget(renderSessionPage()); + await tester.pumpAndSettle(); await tester.tap(find.byKey(const ValueKey('save-button'))); final captured = verify(mockRoutinesProvider.editSession(captureAny)).captured.single as WorkoutSession; diff --git a/test/routine/gym_mode_session_screen_test.mocks.dart b/test/routine/gym_mode/session_page_test.mocks.dart similarity index 99% rename from test/routine/gym_mode_session_screen_test.mocks.dart rename to test/routine/gym_mode/session_page_test.mocks.dart index 0248af2ce..c5a36024c 100644 --- a/test/routine/gym_mode_session_screen_test.mocks.dart +++ b/test/routine/gym_mode/session_page_test.mocks.dart @@ -1,5 +1,5 @@ // Mocks generated by Mockito 5.4.6 from annotations -// in wger/test/routine/gym_mode_session_screen_test.dart. +// in wger/test/routine/gym_mode/session_page_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes diff --git a/test/routine/gym_mode/workout_menu_test.dart b/test/routine/gym_mode/workout_menu_test.dart new file mode 100644 index 000000000..6171deac4 --- /dev/null +++ b/test/routine/gym_mode/workout_menu_test.dart @@ -0,0 +1,98 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/widgets/routines/gym_mode/workout_menu.dart'; + +import '../../../test_data/routines.dart'; + +void main() { + late GymStateNotifier notifier; + late ProviderContainer container; + + setUp(() { + container = ProviderContainer.test(); + notifier = container.read(gymStateProvider.notifier); + notifier.state = notifier.state.copyWith( + showExercisePages: false, + showTimerPages: false, + dayId: 1, + iteration: 1, + routine: getTestRoutine(), + ); + notifier.calculatePages(); + }); + + Widget renderWidget({locale = 'en'}) { + return UncontrolledProviderScope( + container: container, + child: MaterialApp( + locale: Locale(locale), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold( + body: ProgressionTab(PageController()), + ), + ), + ); + } + + testWidgets( + 'Smoke and golden test', + (WidgetTester tester) async { + tester.view.physicalSize = const Size(500, 1000); + tester.view.devicePixelRatio = 1.0; // Ensure correct pixel ratio + + await tester.pumpWidget(renderWidget()); + + if (Platform.isLinux) { + await expectLater( + find.byType(MaterialApp), + matchesGoldenFile('goldens/gym_mode_progression_tab.png'), + ); + } + }, + tags: ['golden'], + ); + + testWidgets('Opens the exercise swap widget', (WidgetTester tester) async { + await tester.pumpWidget(renderWidget()); + + expect(find.byType(ExerciseSwapWidget), findsNothing); + + await tester.tap(find.byKey(Key('swap-icon-${notifier.state.pages[1].uuid}'))); + await tester.pumpAndSettle(); + expect(find.byType(ExerciseSwapWidget), findsOne); + }); + + testWidgets('Opens the add exercise widget', (WidgetTester tester) async { + await tester.pumpWidget(renderWidget()); + + expect(find.byType(ExerciseAddWidget), findsNothing); + + await tester.tap(find.byKey(Key('add-icon-${notifier.state.pages[1].uuid}'))); + await tester.pumpAndSettle(); + expect(find.byType(ExerciseAddWidget), findsOne); + }); +} diff --git a/test/routine/gym_mode_screen_test.dart b/test/routine/gym_mode_screen_test.dart deleted file mode 100644 index 8c332e1f7..000000000 --- a/test/routine/gym_mode_screen_test.dart +++ /dev/null @@ -1,298 +0,0 @@ -/* - * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team - * - * wger Workout Manager is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * wger Workout Manager is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import 'package:clock/clock.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart' as riverpod; -import 'package:flutter_test/flutter_test.dart'; -import 'package:mockito/annotations.dart'; -import 'package:mockito/mockito.dart'; -import 'package:provider/provider.dart'; -import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; -import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; -import 'package:wger/l10n/generated/app_localizations.dart'; -import 'package:wger/providers/base_provider.dart'; -import 'package:wger/providers/exercises.dart'; -import 'package:wger/providers/routines.dart'; -import 'package:wger/screens/gym_mode.dart'; -import 'package:wger/screens/routine_screen.dart'; -import 'package:wger/widgets/routines/forms/reps_unit.dart'; -import 'package:wger/widgets/routines/forms/rir.dart'; -import 'package:wger/widgets/routines/forms/weight_unit.dart'; -import 'package:wger/widgets/routines/gym_mode/exercise_overview.dart'; -import 'package:wger/widgets/routines/gym_mode/log_page.dart'; -import 'package:wger/widgets/routines/gym_mode/session_page.dart'; -import 'package:wger/widgets/routines/gym_mode/start_page.dart'; -import 'package:wger/widgets/routines/gym_mode/timer.dart'; - -import '../../test_data/exercises.dart'; -import '../../test_data/routines.dart'; -import 'gym_mode_screen_test.mocks.dart'; - -@GenerateMocks([WgerBaseProvider, ExercisesProvider, RoutinesProvider]) -void main() { - final key = GlobalKey(); - - final mockRoutinesProvider = MockRoutinesProvider(); - final mockExerciseProvider = MockExercisesProvider(); - final testRoutine = getTestRoutine(); - final testExercises = getTestExercises(); - - setUp(() { - when(mockRoutinesProvider.findById(any)).thenReturn(testRoutine); - when(mockRoutinesProvider.items).thenReturn([testRoutine]); - when(mockRoutinesProvider.repetitionUnits).thenReturn(testRepetitionUnits); - when(mockRoutinesProvider.findRepetitionUnitById(1)).thenReturn(testRepetitionUnit1); - when(mockRoutinesProvider.weightUnits).thenReturn(testWeightUnits); - when(mockRoutinesProvider.findWeightUnitById(1)).thenReturn(testWeightUnit1); - when( - mockRoutinesProvider.fetchAndSetRoutineFull(any), - ).thenAnswer((_) => Future.value(testRoutine)); - - SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); - }); - - Widget renderGymMode({locale = 'en'}) { - return ChangeNotifierProvider( - create: (context) => mockRoutinesProvider, - child: ChangeNotifierProvider( - create: (context) => mockExerciseProvider, - child: riverpod.ProviderScope( - child: MaterialApp( - locale: Locale(locale), - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - navigatorKey: key, - home: TextButton( - onPressed: () => key.currentState!.push( - MaterialPageRoute( - settings: const RouteSettings(arguments: GymModeArguments(1, 1, 1)), - builder: (_) => const GymModeScreen(), - ), - ), - child: const SizedBox(), - ), - routes: {RoutineScreen.routeName: (ctx) => const RoutineScreen()}, - ), - ), - ), - ); - } - - testWidgets('Test the widgets on the gym mode screen', (WidgetTester tester) async { - when(mockExerciseProvider.findExerciseById(1)).thenReturn(testExercises[0]); - when(mockExerciseProvider.findExerciseById(6)).thenReturn(testExercises[5]); - when( - mockExerciseProvider.findExercisesByVariationId( - null, - exerciseIdToExclude: anyNamed('exerciseIdToExclude'), - ), - ).thenReturn([]); - - await withClock(Clock.fixed(DateTime(2025, 3, 29, 14, 33)), () async { - await tester.pumpWidget(renderGymMode()); - - await tester.pumpAndSettle(); - await tester.tap(find.byType(TextButton)); - - await tester.pumpAndSettle(); - //await tester.ensureVisible(find.byKey(Key(key as String))); - // - // Start page - // - expect(find.byType(StartPage), findsOneWidget); - expect(find.text('Your workout today'), findsOneWidget); - expect(find.text('Bench press'), findsOneWidget); - expect(find.text('Side raises'), findsOneWidget); - expect(find.byIcon(Icons.close), findsOneWidget); - expect(find.byIcon(Icons.toc), findsOneWidget); - expect(find.byIcon(Icons.chevron_left), findsNothing); - expect(find.byIcon(Icons.chevron_right), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Bench press - exercise overview page - // - expect(find.text('Bench press'), findsOneWidget); - expect(find.byType(ExerciseOverview), findsOneWidget); - expect(find.byIcon(Icons.close), findsOneWidget); - expect(find.byIcon(Icons.toc), findsOneWidget); - expect(find.byIcon(Icons.chevron_left), findsOneWidget); - expect(find.byIcon(Icons.chevron_right), findsOneWidget); - await tester.drag(find.byType(ExerciseOverview), const Offset(-500.0, 0.0)); - await tester.pumpAndSettle(); - - // - // Bench press - Log - // - expect(find.text('Bench press'), findsOneWidget); - expect(find.byType(LogPage), findsOneWidget); - expect(find.byType(Form), findsOneWidget); - // print(find.byType(Form)); - expect(find.byType(ListTile), findsNWidgets(3), reason: 'Two logs and the switch tile'); - expect(find.text('10 × 10 kg (1.5 RiR)'), findsOneWidget); - expect(find.text('12 × 10 kg (2 RiR)'), findsOneWidget); - expect(find.text('Make sure to warm up'), findsOneWidget, reason: 'Set comment'); - expect(find.byIcon(Icons.close), findsOneWidget); - expect(find.byIcon(Icons.toc), findsOneWidget); - expect(find.byIcon(Icons.chevron_left), findsOneWidget); - expect(find.byIcon(Icons.chevron_right), findsOneWidget); - - // Form shows only weight and reps - expect(find.byType(SwitchListTile), findsOneWidget); - expect(find.byType(TextFormField), findsNWidgets(2)); - expect(find.byType(RepetitionUnitInputWidget), findsNothing); - expect(find.byType(WeightUnitInputWidget), findsNothing); - expect(find.byType(RiRInputWidget), findsNothing); - - // Form shows unit and rir after tapping the toggle button - await tester.tap(find.byType(SwitchListTile)); - await tester.pump(); - expect(find.byType(RepetitionUnitInputWidget), findsOneWidget); - expect(find.byType(WeightUnitInputWidget), findsOneWidget); - expect(find.byType(RiRInputWidget), findsOneWidget); - await tester.drag(find.byType(LogPage), const Offset(-500.0, 0.0)); - await tester.pumpAndSettle(); - - // - // Bench press - pause - // - expect(find.text('Pause'), findsOneWidget); - expect(find.byType(TimerCountdownWidget), findsOneWidget); - expect(find.byIcon(Icons.close), findsOneWidget); - expect(find.byIcon(Icons.toc), findsOneWidget); - expect(find.byIcon(Icons.chevron_left), findsOneWidget); - expect(find.byIcon(Icons.chevron_right), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Bench press - log - // - expect(find.text('Bench press'), findsOneWidget); - expect(find.byType(LogPage), findsOneWidget); - expect(find.byType(Form), findsOneWidget); - await tester.drag(find.byType(LogPage), const Offset(-500.0, 0.0)); - await tester.pumpAndSettle(); - - // - // Pause - // - expect(find.text('Pause'), findsOneWidget); - expect(find.byType(TimerCountdownWidget), findsOneWidget); - expect(find.byIcon(Icons.chevron_left), findsOneWidget); - expect(find.byIcon(Icons.close), findsOneWidget); - expect(find.byIcon(Icons.chevron_right), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Bench press - log - // - expect(find.text('Bench press'), findsOneWidget); - expect(find.byType(LogPage), findsOneWidget); - expect(find.byType(Form), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Pause - // - expect(find.text('Pause'), findsOneWidget); - expect(find.byType(TimerCountdownWidget), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - overview - // - expect(find.text('Side raises'), findsOneWidget); - expect(find.byType(ExerciseOverview), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - log - // - expect(find.text('Side raises'), findsOneWidget); - expect(find.byType(LogPage), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - timer - // - expect(find.byType(TimerWidget), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - log - // - expect(find.text('Side raises'), findsOneWidget); - expect(find.byType(LogPage), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - timer - // - expect(find.byType(TimerWidget), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - log - // - expect(find.text('Side raises'), findsOneWidget); - expect(find.byType(LogPage), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Side raises - timer - // - expect(find.byType(TimerWidget), findsOneWidget); - await tester.tap(find.byIcon(Icons.chevron_right)); - await tester.pumpAndSettle(); - - // - // Session - // - expect(find.text('Workout session'), findsOneWidget); - expect(find.byType(SessionPage), findsOneWidget); - expect(find.byType(Form), findsOneWidget); - expect(find.byIcon(Icons.sentiment_very_dissatisfied), findsOneWidget); - expect(find.byIcon(Icons.sentiment_neutral), findsOneWidget); - expect(find.byIcon(Icons.sentiment_very_satisfied), findsOneWidget); - expect( - find.text('14:33'), - findsNWidgets(2), - reason: 'start and end time are the same', - ); - final toggleButtons = tester.widget(find.byType(ToggleButtons)); - expect(toggleButtons.isSelected[1], isTrue); - expect(find.byIcon(Icons.chevron_left), findsOneWidget); - expect(find.byIcon(Icons.close), findsOneWidget); - expect(find.byIcon(Icons.chevron_right), findsNothing); - - // - }); - }); -} diff --git a/test/routine/models/log_test.dart b/test/routine/models/log_test.dart new file mode 100644 index 000000000..ba8f53367 --- /dev/null +++ b/test/routine/models/log_test.dart @@ -0,0 +1,128 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/models/workouts/log.dart'; + +void main() { + group('Log.volume', () { + test('returns weight * repetitions for metric (kg) and repetition unit', () { + final log = Log( + exerciseId: 1, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 100, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 5, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + expect(log.volume(metric: true), equals(500)); + }); + + test('returns 0 when weight unit does not match metric flag', () { + final log = Log( + exerciseId: 2, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 100, + weightUnitId: WEIGHT_UNIT_LB, // pounds + repetitions: 5, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + // metric = true expects KG -> mismatch -> 0 + expect(log.volume(metric: true), equals(0)); + }); + + test('returns weight * repetitions for imperial (lb) when metric=false', () { + final log = Log( + exerciseId: 3, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 220, // lb + weightUnitId: WEIGHT_UNIT_LB, + repetitions: 3, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + expect(log.volume(metric: false), equals(660)); + }); + + test('returns 0 when repetitions unit is not repetitions', () { + final log = Log( + exerciseId: 4, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 50, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 10, + repetitionsUnitId: 999, // some other unit id + ); + + expect(log.volume(metric: true), equals(0)); + }); + + test('returns 0 when weight or repetitions are null', () { + final a = Log( + exerciseId: 5, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: null, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 5, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + final b = Log( + exerciseId: 6, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 50, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: null, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + expect(a.volume(metric: true), equals(0)); + expect(b.volume(metric: true), equals(0)); + }); + + test('works with non-integer (num) weight and repetitions', () { + final log = Log( + exerciseId: 7, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 10.5, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 3, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + expect(log.volume(metric: true), closeTo(31.5, 0.0001)); + }); + }); +} diff --git a/test/routine/models/routine_test.dart b/test/routine/models/routine_test.dart new file mode 100644 index 000000000..a5d9f69ad --- /dev/null +++ b/test/routine/models/routine_test.dart @@ -0,0 +1,42 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_test/flutter_test.dart'; + +import '../../../test_data/routines.dart'; + +void main() { + group('Routine model tests', () { + test('correctly filters out null days', () { + // Arrange + final routine = getTestRoutine(); + routine.dayData = [ + getTestRoutine().dayData[0], + getTestRoutine().dayData[0], + getTestRoutine().dayData[0], + ]; + routine.dayData[0].date = DateTime(2026, 1, 1); + routine.dayData[1].date = DateTime(2026, 1, 2); + routine.dayData[2].date = DateTime(2026, 1, 3); + + // Assert + expect(routine.dayDataCurrentIteration.length, equals(3)); + expect(routine.dayDataCurrentIterationFiltered.length, equals(1)); + }); + }); +} diff --git a/test/routine/models/session_test.dart b/test/routine/models/session_test.dart new file mode 100644 index 000000000..14fd1297b --- /dev/null +++ b/test/routine/models/session_test.dart @@ -0,0 +1,175 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/helpers/consts.dart'; +import 'package:wger/models/workouts/log.dart'; +import 'package:wger/models/workouts/session.dart'; + +void main() { + group('WorkoutSession.volume', () { + test('sums metric volumes correctly', () { + final session = WorkoutSession(routineId: 1); + + final a = Log( + exerciseId: 1, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 100, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 3, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + final b = Log( + exerciseId: 2, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 50, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 2, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + session.logs = [a, b]; + + final vol = session.volume; + expect(vol['metric'], equals(100 * 3 + 50 * 2)); + expect(vol['imperial'], equals(0)); + }); + + test('sums imperial volumes correctly', () { + final session = WorkoutSession(routineId: 1); + + final a = Log( + exerciseId: 3, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 220, + weightUnitId: WEIGHT_UNIT_LB, + repetitions: 4, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + final b = Log( + exerciseId: 4, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 150, + weightUnitId: WEIGHT_UNIT_LB, + repetitions: 1, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + session.logs = [a, b]; + + final vol = session.volume; + expect(vol['imperial'], equals(220 * 4 + 150 * 1)); + expect(vol['metric'], equals(0)); + }); + + test('ignores logs with non-matching units or non-rep units', () { + final session = WorkoutSession(routineId: 1); + + final a = Log( + exerciseId: 5, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 100, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 5, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + final b = Log( + exerciseId: 6, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 60, + weightUnitId: WEIGHT_UNIT_LB, // different unit + repetitions: 2, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + final c = Log( + exerciseId: 7, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 30, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 20, + repetitionsUnitId: 999, // some other repetition unit -> should be ignored + ); + + session.logs = [a, b, c]; + + final vol = session.volume; + // only 'a' should count for metric, only 'b' for imperial + expect(vol['metric'], equals(100 * 5)); + expect(vol['imperial'], equals(60 * 2)); + }); + + test('returns zero for empty logs', () { + final session = WorkoutSession(routineId: 1); + session.logs = []; + + final vol = session.volume; + expect(vol['metric'], equals(0)); + expect(vol['imperial'], equals(0)); + }); + + test('works with fractional weights and reps', () { + final session = WorkoutSession(routineId: 1); + + final a = Log( + exerciseId: 8, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 10.5, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 3, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + final b = Log( + exerciseId: 9, + routineId: 1, + rir: null, + date: DateTime.now(), + weight: 5.25, + weightUnitId: WEIGHT_UNIT_KG, + repetitions: 2.5, + repetitionsUnitId: REP_UNIT_REPETITIONS_ID, + ); + + session.logs = [a, b]; + + final vol = session.volume; + expect(vol['metric'], closeTo(10.5 * 3 + 5.25 * 2.5, 1e-9)); + expect(vol['imperial'], equals(0)); + }); + }); +} diff --git a/test/routine/repetition_unit_form_widget_test.dart b/test/routine/repetition_unit_form_widget_test.dart index 16d16949f..9eab12390 100644 --- a/test/routine/repetition_unit_form_widget_test.dart +++ b/test/routine/repetition_unit_form_widget_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -26,7 +26,7 @@ import 'package:wger/models/workouts/repetition_unit.dart'; import 'package:wger/models/workouts/slot_entry.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/screens/routine_screen.dart'; -import 'package:wger/widgets/routines/forms/reps_unit.dart'; +import 'package:wger/widgets/routines/forms/repetitions.dart'; import 'repetition_unit_form_widget_test.mocks.dart'; @@ -37,7 +37,7 @@ void main() { const unit2 = RepetitionUnit(id: 2, name: 'another name'); const unit3 = RepetitionUnit(id: 3, name: 'this is repetition number 3'); - int? result; + RepetitionUnit? result; final slotEntry = SlotEntry( slotId: 1, @@ -54,8 +54,6 @@ void main() { mockWorkoutPlans = MockRoutinesProvider(); result = null; when(mockWorkoutPlans.repetitionUnits).thenAnswer((_) => [unit1, unit2, unit3]); - when(mockWorkoutPlans.findRepetitionUnitById(1)).thenReturn(unit1); - when(mockWorkoutPlans.findRepetitionUnitById(2)).thenReturn(unit2); }); Widget renderWidget() { @@ -67,7 +65,12 @@ void main() { localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, navigatorKey: key, - home: Scaffold(body: RepetitionUnitInputWidget(1, onChanged: (value) => result = value)), + home: Scaffold( + body: RepetitionUnitInputWidget( + unit1, + onChanged: (value) => result = value, + ), + ), routes: {RoutineScreen.routeName: (ctx) => const RoutineScreen()}, ), ); @@ -96,6 +99,6 @@ void main() { await tester.tap(find.text('another name').last); // assert - expect(result, equals(2)); + expect(result, equals(unit2)); }); } diff --git a/test/routine/routine_form_test.dart b/test/routine/routine_form_test.dart index 8f287f097..c40c7426f 100644 --- a/test/routine/routine_form_test.dart +++ b/test/routine/routine_form_test.dart @@ -21,7 +21,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; import 'package:provider/provider.dart'; -import 'package:wger/exceptions/http_exception.dart'; +import 'package:wger/core/exceptions/http_exception.dart'; import 'package:wger/helpers/consts.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/routine.dart'; diff --git a/test/routine/routine_logs_screen_test.dart b/test/routine/routine_logs_screen_test.dart index 8d57b942f..1081171c7 100644 --- a/test/routine/routine_logs_screen_test.dart +++ b/test/routine/routine_logs_screen_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -20,6 +20,7 @@ import 'dart:io'; import 'package:clock/clock.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; @@ -27,14 +28,16 @@ import 'package:provider/provider.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/routine.dart'; import 'package:wger/providers/routines.dart'; +import 'package:wger/providers/trophies.dart'; import 'package:wger/screens/routine_logs_screen.dart'; import 'package:wger/screens/routine_screen.dart'; -import 'package:wger/widgets/routines/workout_logs.dart'; +import 'package:wger/widgets/routines/logs/log_overview_routine.dart'; import '../../test_data/routines.dart'; +import '../test_data/trophies.dart'; import 'routine_logs_screen_test.mocks.dart'; -@GenerateMocks([RoutinesProvider]) +@GenerateMocks([RoutinesProvider, TrophyRepository]) void main() { late Routine routine; final mockRoutinesProvider = MockRoutinesProvider(); @@ -49,25 +52,39 @@ void main() { Widget renderWidget({locale = 'en'}) { final key = GlobalKey(); - return ChangeNotifierProvider( - create: (context) => mockRoutinesProvider, - child: MaterialApp( - locale: Locale(locale), - localizationsDelegates: AppLocalizations.localizationsDelegates, - supportedLocales: AppLocalizations.supportedLocales, - navigatorKey: key, - home: TextButton( - onPressed: () => key.currentState!.push( - MaterialPageRoute( - settings: RouteSettings(arguments: routine.id), - builder: (_) => const WorkoutLogsScreen(), + // Arrange + final mockRepository = MockTrophyRepository(); + when( + mockRepository.fetchUserTrophies( + filterQuery: anyNamed('filterQuery'), + language: anyNamed('language'), + ), + ).thenAnswer((_) async => getUserTrophies()); + + return ProviderScope( + overrides: [ + trophyRepositoryProvider.overrideWithValue(mockRepository), + ], + child: ChangeNotifierProvider( + create: (context) => mockRoutinesProvider, + child: MaterialApp( + locale: Locale(locale), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + navigatorKey: key, + home: TextButton( + onPressed: () => key.currentState!.push( + MaterialPageRoute( + settings: RouteSettings(arguments: routine.id), + builder: (_) => const WorkoutLogsScreen(), + ), ), + child: const SizedBox(), ), - child: const SizedBox(), + routes: { + RoutineScreen.routeName: (ctx) => const WorkoutLogsScreen(), + }, ), - routes: { - RoutineScreen.routeName: (ctx) => const WorkoutLogsScreen(), - }, ), ); } diff --git a/test/routine/routine_logs_screen_test.mocks.dart b/test/routine/routine_logs_screen_test.mocks.dart index dca48e937..015095bb0 100644 --- a/test/routine/routine_logs_screen_test.mocks.dart +++ b/test/routine/routine_logs_screen_test.mocks.dart @@ -9,6 +9,9 @@ import 'dart:ui' as _i17; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i16; import 'package:wger/models/exercises/exercise.dart' as _i15; +import 'package:wger/models/trophies/trophy.dart' as _i19; +import 'package:wger/models/trophies/user_trophy.dart' as _i20; +import 'package:wger/models/trophies/user_trophy_progression.dart' as _i21; import 'package:wger/models/workouts/base_config.dart' as _i9; import 'package:wger/models/workouts/day.dart' as _i6; import 'package:wger/models/workouts/day_data.dart' as _i14; @@ -21,6 +24,7 @@ import 'package:wger/models/workouts/slot_entry.dart' as _i8; import 'package:wger/models/workouts/weight_unit.dart' as _i3; import 'package:wger/providers/base_provider.dart' as _i2; import 'package:wger/providers/routines.dart' as _i12; +import 'package:wger/providers/trophies.dart' as _i18; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -592,3 +596,107 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider { returnValueForMissingStub: null, ); } + +/// A class which mocks [TrophyRepository]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockTrophyRepository extends _i1.Mock implements _i18.TrophyRepository { + MockTrophyRepository() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.WgerBaseProvider get base => + (super.noSuchMethod( + Invocation.getter(#base), + returnValue: _FakeWgerBaseProvider_0( + this, + Invocation.getter(#base), + ), + ) + as _i2.WgerBaseProvider); + + @override + String get trophiesPath => + (super.noSuchMethod( + Invocation.getter(#trophiesPath), + returnValue: _i16.dummyValue( + this, + Invocation.getter(#trophiesPath), + ), + ) + as String); + + @override + String get userTrophiesPath => + (super.noSuchMethod( + Invocation.getter(#userTrophiesPath), + returnValue: _i16.dummyValue( + this, + Invocation.getter(#userTrophiesPath), + ), + ) + as String); + + @override + String get userTrophyProgressionPath => + (super.noSuchMethod( + Invocation.getter(#userTrophyProgressionPath), + returnValue: _i16.dummyValue( + this, + Invocation.getter(#userTrophyProgressionPath), + ), + ) + as String); + + @override + _i13.Future> fetchTrophies({String? language}) => + (super.noSuchMethod( + Invocation.method(#fetchTrophies, [], {#language: language}), + returnValue: _i13.Future>.value(<_i19.Trophy>[]), + ) + as _i13.Future>); + + @override + _i13.Future> fetchUserTrophies({ + Map? filterQuery, + String? language, + }) => + (super.noSuchMethod( + Invocation.method(#fetchUserTrophies, [], { + #filterQuery: filterQuery, + #language: language, + }), + returnValue: _i13.Future>.value( + <_i20.UserTrophy>[], + ), + ) + as _i13.Future>); + + @override + _i13.Future> fetchProgression({ + Map? filterQuery, + String? language, + }) => + (super.noSuchMethod( + Invocation.method(#fetchProgression, [], { + #filterQuery: filterQuery, + #language: language, + }), + returnValue: _i13.Future>.value( + <_i21.UserTrophyProgression>[], + ), + ) + as _i13.Future>); + + @override + List<_i19.Trophy> filterByType( + List<_i19.Trophy>? list, + _i19.TrophyType? type, + ) => + (super.noSuchMethod( + Invocation.method(#filterByType, [list, type]), + returnValue: <_i19.Trophy>[], + ) + as List<_i19.Trophy>); +} diff --git a/test/routine/routine_screen_test.mocks.dart b/test/routine/routine_screen_test.mocks.dart index 99fe1643b..5ef17e3a5 100644 --- a/test/routine/routine_screen_test.mocks.dart +++ b/test/routine/routine_screen_test.mocks.dart @@ -78,10 +78,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ); @override - Map getDefaultHeaders({bool? includeAuth = false}) => + Map getDefaultHeaders({ + bool? includeAuth = false, + String? language, + }) => (super.noSuchMethod( Invocation.method(#getDefaultHeaders, [], { #includeAuth: includeAuth, + #language: language, }), returnValue: {}, ) @@ -112,17 +116,40 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i5.Future fetch(Uri? uri) => + _i5.Future fetch( + Uri? uri, { + int? maxRetries = 3, + Duration? initialDelay = const Duration(milliseconds: 250), + Duration? timeout = const Duration(seconds: 5), + String? language, + }) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + { + #maxRetries: maxRetries, + #initialDelay: initialDelay, + #timeout: timeout, + #language: language, + }, + ), returnValue: _i5.Future.value(), ) as _i5.Future); @override - _i5.Future> fetchPaginated(Uri? uri) => + _i5.Future> fetchPaginated( + Uri? uri, { + String? language, + Duration? timeout = const Duration(seconds: 5), + }) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + {#language: language, #timeout: timeout}, + ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); diff --git a/test/routine/routines_provider_test.mocks.dart b/test/routine/routines_provider_test.mocks.dart index 063265063..84263f151 100644 --- a/test/routine/routines_provider_test.mocks.dart +++ b/test/routine/routines_provider_test.mocks.dart @@ -117,10 +117,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ); @override - Map getDefaultHeaders({bool? includeAuth = false}) => + Map getDefaultHeaders({ + bool? includeAuth = false, + String? language, + }) => (super.noSuchMethod( Invocation.method(#getDefaultHeaders, [], { #includeAuth: includeAuth, + #language: language, }), returnValue: {}, ) @@ -151,17 +155,40 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i11.Future fetch(Uri? uri) => + _i11.Future fetch( + Uri? uri, { + int? maxRetries = 3, + Duration? initialDelay = const Duration(milliseconds: 250), + Duration? timeout = const Duration(seconds: 5), + String? language, + }) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + { + #maxRetries: maxRetries, + #initialDelay: initialDelay, + #timeout: timeout, + #language: language, + }, + ), returnValue: _i11.Future.value(), ) as _i11.Future); @override - _i11.Future> fetchPaginated(Uri? uri) => + _i11.Future> fetchPaginated( + Uri? uri, { + String? language, + Duration? timeout = const Duration(seconds: 5), + }) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + {#language: language, #timeout: timeout}, + ), returnValue: _i11.Future>.value([]), ) as _i11.Future>); @@ -496,7 +523,7 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider { as _i11.Future<_i6.Exercise>); @override - _i11.Future initCacheTimesLocalPrefs({dynamic forceInit = false}) => + _i11.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => (super.noSuchMethod( Invocation.method(#initCacheTimesLocalPrefs, [], { #forceInit: forceInit, diff --git a/test/routine/routines_screen_test.mocks.dart b/test/routine/routines_screen_test.mocks.dart index 2607f048f..b8d82b181 100644 --- a/test/routine/routines_screen_test.mocks.dart +++ b/test/routine/routines_screen_test.mocks.dart @@ -78,10 +78,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { ); @override - Map getDefaultHeaders({bool? includeAuth = false}) => + Map getDefaultHeaders({ + bool? includeAuth = false, + String? language, + }) => (super.noSuchMethod( Invocation.method(#getDefaultHeaders, [], { #includeAuth: includeAuth, + #language: language, }), returnValue: {}, ) @@ -112,17 +116,40 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { as Uri); @override - _i5.Future fetch(Uri? uri) => + _i5.Future fetch( + Uri? uri, { + int? maxRetries = 3, + Duration? initialDelay = const Duration(milliseconds: 250), + Duration? timeout = const Duration(seconds: 5), + String? language, + }) => (super.noSuchMethod( - Invocation.method(#fetch, [uri]), + Invocation.method( + #fetch, + [uri], + { + #maxRetries: maxRetries, + #initialDelay: initialDelay, + #timeout: timeout, + #language: language, + }, + ), returnValue: _i5.Future.value(), ) as _i5.Future); @override - _i5.Future> fetchPaginated(Uri? uri) => + _i5.Future> fetchPaginated( + Uri? uri, { + String? language, + Duration? timeout = const Duration(seconds: 5), + }) => (super.noSuchMethod( - Invocation.method(#fetchPaginated, [uri]), + Invocation.method( + #fetchPaginated, + [uri], + {#language: language, #timeout: timeout}, + ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); diff --git a/test/routine/slot_entry_form_test.dart b/test/routine/slot_entry_form_test.dart index 81ec22a24..8a4784f6f 100644 --- a/test/routine/slot_entry_form_test.dart +++ b/test/routine/slot_entry_form_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -25,10 +25,10 @@ import 'package:wger/helpers/consts.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/models/workouts/slot_entry.dart'; import 'package:wger/providers/routines.dart'; -import 'package:wger/widgets/routines/forms/reps_unit.dart'; +import 'package:wger/widgets/routines/forms/repetitions.dart'; import 'package:wger/widgets/routines/forms/rir.dart'; import 'package:wger/widgets/routines/forms/slot_entry.dart'; -import 'package:wger/widgets/routines/forms/weight_unit.dart'; +import 'package:wger/widgets/routines/forms/weight.dart'; import '../../test_data/routines.dart'; import './slot_entry_form_test.mocks.dart'; diff --git a/test/routine/weight_unit_form_widget_test.dart b/test/routine/weight_unit_form_widget_test.dart index 231e32eab..b1a07dc6f 100644 --- a/test/routine/weight_unit_form_widget_test.dart +++ b/test/routine/weight_unit_form_widget_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -26,14 +26,14 @@ import 'package:wger/models/workouts/slot_entry.dart'; import 'package:wger/models/workouts/weight_unit.dart'; import 'package:wger/providers/routines.dart'; import 'package:wger/screens/routine_screen.dart'; -import 'package:wger/widgets/routines/forms/weight_unit.dart'; +import 'package:wger/widgets/routines/forms/weight.dart'; import 'weight_unit_form_widget_test.mocks.dart'; @GenerateMocks([RoutinesProvider]) void main() { var mockWorkoutPlans = MockRoutinesProvider(); - int? result; + WeightUnit? result; const unit1 = WeightUnit(id: 1, name: 'kg'); const unit2 = WeightUnit(id: 2, name: 'donkeys'); @@ -54,8 +54,6 @@ void main() { result = null; mockWorkoutPlans = MockRoutinesProvider(); when(mockWorkoutPlans.weightUnits).thenAnswer((_) => [unit1, unit2, unit3]); - when(mockWorkoutPlans.findWeightUnitById(1)).thenReturn(unit1); - when(mockWorkoutPlans.findWeightUnitById(2)).thenReturn(unit2); }); Widget renderWidget() { @@ -67,7 +65,7 @@ void main() { localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, navigatorKey: key, - home: Scaffold(body: WeightUnitInputWidget(1, onChanged: (value) => result = value)), + home: Scaffold(body: WeightUnitInputWidget(unit1, onChanged: (value) => result = value)), routes: {RoutineScreen.routeName: (ctx) => const RoutineScreen()}, ), ); @@ -97,6 +95,6 @@ void main() { await tester.tap(find.text('donkeys').last); // assert - expect(result, equals(2)); + expect(result, equals(unit2)); }); } diff --git a/test/test_data/trophies.dart b/test/test_data/trophies.dart new file mode 100644 index 000000000..8fc13d286 --- /dev/null +++ b/test/test_data/trophies.dart @@ -0,0 +1,85 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:wger/models/trophies/trophy.dart'; +import 'package:wger/models/trophies/user_trophy.dart'; +import 'package:wger/models/trophies/user_trophy_progression.dart'; + +List getTestTrophies() { + return [ + Trophy( + id: 1, + uuid: '31a71d9a-bf26-4f18-b82f-afefe6f50df2', + name: 'New Year, New Me', + description: 'Work out on January 1st', + image: 'https://example.com/5362e55b-eaf1-4e34-9ef8-661538a3bdd9.png', + type: TrophyType.date, + isHidden: false, + isProgressive: false, + ), + Trophy( + id: 2, + uuid: 'b605b6a1-953d-41fb-87c9-a2f88b5f5907', + name: 'Unstoppable', + description: 'Maintain a 30-day workout streak', + image: 'https://example.com/b605b6a1-953d-41fb-87c9-a2f88b5f5907.png', + type: TrophyType.sequence, + isHidden: false, + isProgressive: true, + ), + ]; +} + +List getUserTrophyProgression() { + final trophies = getTestTrophies(); + + return [ + UserTrophyProgression( + trophy: trophies[0], + progress: 100, + isEarned: true, + earnedAt: DateTime(2025, 12, 20), + currentValue: null, + targetValue: null, + progressDisplay: null, + ), + UserTrophyProgression( + trophy: trophies[1], + progress: 40, + isEarned: false, + earnedAt: null, + currentValue: 12, + targetValue: 30, + progressDisplay: '12 / 30', + ), + ]; +} + +List getUserTrophies() { + final trophies = getTestTrophies(); + + return [ + UserTrophy( + id: 4, + earnedAt: DateTime(2025, 12, 20), + isNotified: true, + progress: 100, + trophy: trophies[0], + ), + ]; +} diff --git a/test/trophies/models/trophy_test.dart b/test/trophies/models/trophy_test.dart new file mode 100644 index 000000000..3285b589b --- /dev/null +++ b/test/trophies/models/trophy_test.dart @@ -0,0 +1,72 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/models/trophies/trophy.dart'; + +void main() { + group('Trophy model', () { + final sampleJson = { + 'id': 1, + 'uuid': '550e8400-e29b-41d4-a716-446655440000', + 'name': 'First Steps', + 'description': 'Awarded for the first workout', + 'image': 'https://example.org/trophy.png', + 'trophy_type': 'count', + 'is_hidden': false, + 'is_progressive': true, + }; + + test('fromJson creates valid Trophy instance', () { + final trophy = Trophy.fromJson(sampleJson); + + expect(trophy.id, 1); + expect(trophy.uuid, '550e8400-e29b-41d4-a716-446655440000'); + expect(trophy.name, 'First Steps'); + expect(trophy.description, 'Awarded for the first workout'); + expect(trophy.image, 'https://example.org/trophy.png'); + expect(trophy.type, TrophyType.count); + expect(trophy.isHidden, isFalse); + expect(trophy.isProgressive, isTrue); + }); + + test('toJson returns expected map', () { + final trophy = Trophy( + id: 2, + uuid: '00000000-0000-0000-0000-000000000000', + name: 'Progressor', + description: 'Progressive trophy', + image: 'https://example.org/prog.png', + type: TrophyType.time, + isHidden: true, + isProgressive: false, + ); + + final json = trophy.toJson(); + + expect(json['id'], 2); + expect(json['uuid'], '00000000-0000-0000-0000-000000000000'); + expect(json['name'], 'Progressor'); + expect(json['description'], 'Progressive trophy'); + expect(json['image'], 'https://example.org/prog.png'); + expect(json['trophy_type'], 'time'); + expect(json['is_hidden'], true); + expect(json['is_progressive'], false); + }); + }); +} diff --git a/test/trophies/models/user_trophy_progression_test.dart b/test/trophies/models/user_trophy_progression_test.dart new file mode 100644 index 000000000..ccbb1d06a --- /dev/null +++ b/test/trophies/models/user_trophy_progression_test.dart @@ -0,0 +1,97 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_test/flutter_test.dart'; +import 'package:wger/models/trophies/trophy.dart'; +import 'package:wger/models/trophies/user_trophy_progression.dart'; + +void main() { + group('UserTrophyProgression model', () { + final trophyJson = { + 'id': 1, + 'uuid': '550e8400-e29b-41d4-a716-446655440000', + 'name': 'First Steps', + 'description': 'Awarded for the first workout', + 'image': 'https://example.org/trophy.png', + 'trophy_type': 'count', + 'is_hidden': false, + 'is_progressive': true, + }; + + final trophyProgressionJson = { + 'trophy': trophyJson, + 'is_earned': false, + 'earned_at': '2020-01-02T15:04:05Z', + 'progress': 42.5, + 'current_value': '12.5', + 'target_value': '100', + 'progress_display': '12.5/100', + }; + + test('fromJson creates valid UserTrophyProgression instance', () { + final utp = UserTrophyProgression.fromJson(trophyProgressionJson); + + expect(utp.trophy.id, 1); + expect(utp.trophy.uuid, '550e8400-e29b-41d4-a716-446655440000'); + expect(utp.isEarned, isFalse); + + final expectedEarnedAt = DateTime.parse('2020-01-02T15:04:05Z').toLocal(); + expect(utp.earnedAt, expectedEarnedAt); + + expect(utp.progress, 42.5); + expect(utp.currentValue, 12.5); + expect(utp.targetValue, 100); + expect(utp.progressDisplay, '12.5/100'); + }); + + test('toJson returns expected map', () { + final trophy = Trophy( + id: 2, + uuid: '00000000-0000-0000-0000-000000000000', + name: 'Progressor', + description: 'Progressive trophy', + image: 'https://example.org/prog.png', + type: TrophyType.time, + isHidden: true, + isProgressive: false, + ); + + final earnedAt = DateTime.parse('2020-01-02T15:04:05Z').toLocal(); + + final utp = UserTrophyProgression( + trophy: trophy, + isEarned: true, + earnedAt: earnedAt, + progress: 75, + currentValue: 75, + targetValue: 100, + progressDisplay: '75/100', + ); + + final json = utp.toJson(); + + expect(json['trophy'], same(trophy)); + expect(json['is_earned'], true); + expect(json['earned_at'], earnedAt.toIso8601String()); + expect(json['progress'], 75); + expect(json['current_value'], 75); + expect(json['target_value'], 100); + expect(json['progress_display'], '75/100'); + }); + }); +} diff --git a/test/trophies/provider/trophies_provider_test.dart b/test/trophies/provider/trophies_provider_test.dart new file mode 100644 index 000000000..456a806a5 --- /dev/null +++ b/test/trophies/provider/trophies_provider_test.dart @@ -0,0 +1,99 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/annotations.dart'; +import 'package:mockito/mockito.dart'; +import 'package:wger/providers/base_provider.dart'; +import 'package:wger/providers/trophies.dart'; + +import 'trophies_provider_test.mocks.dart'; + +const trophyJson = { + 'id': 1, + 'uuid': '550e8400-e29b-41d4-a716-446655440000', + 'name': 'First Steps', + 'description': 'Awarded for the first workout', + 'image': 'https://example.org/trophy.png', + 'trophy_type': 'count', + 'is_hidden': false, + 'is_progressive': true, +}; + +@GenerateMocks([WgerBaseProvider]) +void main() { + group('Trophy repository', () { + test('fetches list of trophies', () async { + // Arrange + final mockBase = MockWgerBaseProvider(); + when(mockBase.fetchPaginated(any)).thenAnswer((_) async => [trophyJson]); + when( + mockBase.makeUrl( + any, + id: anyNamed('id'), + objectMethod: anyNamed('objectMethod'), + query: anyNamed('query'), + ), + ).thenReturn(Uri.parse('https://example.org/trophies')); + final repository = TrophyRepository(mockBase); + + // Act + final result = await repository.fetchTrophies(); + + // Assert + expect(result, isA()); + expect(result, hasLength(1)); + final trophy = result.first; + expect(trophy.id, 1); + expect(trophy.name, 'First Steps'); + expect(trophy.type.toString(), contains('count')); + }); + + test('fetches list of user trophy progression', () async { + // Arrange + final progressionJson = { + 'trophy': trophyJson, + 'is_earned': true, + 'earned_at': '2020-01-02T15:04:05Z', + 'progress': 42.5, + 'current_value': '12.5', + 'target_value': '100', + 'progress_display': '12.5/100', + }; + + final mockBase = MockWgerBaseProvider(); + when(mockBase.fetch(any)).thenAnswer((_) async => [progressionJson]); + when(mockBase.makeUrl(any)).thenReturn(Uri.parse('https://example.org/user_progressions')); + final repository = TrophyRepository(mockBase); + + // Act + final result = await repository.fetchProgression(); + + // Assert + expect(result, isA()); + expect(result, hasLength(1)); + final p = result.first; + expect(p.isEarned, isTrue); + expect(p.progress, 42.5); + expect(p.currentValue, 12.5); + expect(p.progressDisplay, '12.5/100'); + + verify(mockBase.fetch(any)).called(1); + }); + }); +} diff --git a/test/trophies/provider/trophies_provider_test.mocks.dart b/test/trophies/provider/trophies_provider_test.mocks.dart new file mode 100644 index 000000000..24a629368 --- /dev/null +++ b/test/trophies/provider/trophies_provider_test.mocks.dart @@ -0,0 +1,192 @@ +// Mocks generated by Mockito 5.4.6 from annotations +// in wger/test/trophies/provider/trophies_provider_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i5; + +import 'package:http/http.dart' as _i3; +import 'package:mockito/mockito.dart' as _i1; +import 'package:wger/providers/auth.dart' as _i2; +import 'package:wger/providers/base_provider.dart' as _i4; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member + +class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider { + _FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeClient_1 extends _i1.SmartFake implements _i3.Client { + _FakeClient_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeUri_2 extends _i1.SmartFake implements Uri { + _FakeUri_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeResponse_3 extends _i1.SmartFake implements _i3.Response { + _FakeResponse_3(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +/// A class which mocks [WgerBaseProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider { + MockWgerBaseProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.AuthProvider get auth => + (super.noSuchMethod( + Invocation.getter(#auth), + returnValue: _FakeAuthProvider_0(this, Invocation.getter(#auth)), + ) + as _i2.AuthProvider); + + @override + _i3.Client get client => + (super.noSuchMethod( + Invocation.getter(#client), + returnValue: _FakeClient_1(this, Invocation.getter(#client)), + ) + as _i3.Client); + + @override + set auth(_i2.AuthProvider? value) => super.noSuchMethod( + Invocation.setter(#auth, value), + returnValueForMissingStub: null, + ); + + @override + set client(_i3.Client? value) => super.noSuchMethod( + Invocation.setter(#client, value), + returnValueForMissingStub: null, + ); + + @override + Map getDefaultHeaders({ + bool? includeAuth = false, + String? language, + }) => + (super.noSuchMethod( + Invocation.method(#getDefaultHeaders, [], { + #includeAuth: includeAuth, + #language: language, + }), + returnValue: {}, + ) + as Map); + + @override + Uri makeUrl( + String? path, { + int? id, + String? objectMethod, + Map? query, + }) => + (super.noSuchMethod( + Invocation.method( + #makeUrl, + [path], + {#id: id, #objectMethod: objectMethod, #query: query}, + ), + returnValue: _FakeUri_2( + this, + Invocation.method( + #makeUrl, + [path], + {#id: id, #objectMethod: objectMethod, #query: query}, + ), + ), + ) + as Uri); + + @override + _i5.Future fetch( + Uri? uri, { + int? maxRetries = 3, + Duration? initialDelay = const Duration(milliseconds: 250), + Duration? timeout = const Duration(seconds: 5), + String? language, + }) => + (super.noSuchMethod( + Invocation.method( + #fetch, + [uri], + { + #maxRetries: maxRetries, + #initialDelay: initialDelay, + #timeout: timeout, + #language: language, + }, + ), + returnValue: _i5.Future.value(), + ) + as _i5.Future); + + @override + _i5.Future> fetchPaginated( + Uri? uri, { + String? language, + Duration? timeout = const Duration(seconds: 5), + }) => + (super.noSuchMethod( + Invocation.method( + #fetchPaginated, + [uri], + {#language: language, #timeout: timeout}, + ), + returnValue: _i5.Future>.value([]), + ) + as _i5.Future>); + + @override + _i5.Future> post(Map? data, Uri? uri) => + (super.noSuchMethod( + Invocation.method(#post, [data, uri]), + returnValue: _i5.Future>.value( + {}, + ), + ) + as _i5.Future>); + + @override + _i5.Future> patch( + Map? data, + Uri? uri, + ) => + (super.noSuchMethod( + Invocation.method(#patch, [data, uri]), + returnValue: _i5.Future>.value( + {}, + ), + ) + as _i5.Future>); + + @override + _i5.Future<_i3.Response> deleteRequest(String? url, int? id) => + (super.noSuchMethod( + Invocation.method(#deleteRequest, [url, id]), + returnValue: _i5.Future<_i3.Response>.value( + _FakeResponse_3( + this, + Invocation.method(#deleteRequest, [url, id]), + ), + ), + ) + as _i5.Future<_i3.Response>); +} diff --git a/test/trophies/widgets/dashboard_trophies_widget_test.dart b/test/trophies/widgets/dashboard_trophies_widget_test.dart new file mode 100644 index 000000000..d8549d92c --- /dev/null +++ b/test/trophies/widgets/dashboard_trophies_widget_test.dart @@ -0,0 +1,79 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_riverpod/misc.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:network_image_mock/network_image_mock.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/trophies.dart'; +import 'package:wger/widgets/dashboard/widgets/trophies.dart'; + +import '../../test_data/trophies.dart'; + +void main() { + Future pumpOverview(WidgetTester tester, [List overrides = const []]) async { + await tester.pumpWidget( + ProviderScope( + overrides: overrides, + child: const MaterialApp( + locale: Locale('en'), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold( + body: DashboardTrophiesWidget(), + ), + ), + ), + ); + } + + group('DashboardTrophiesWidget tests', () { + testWidgets('shows trophies', (WidgetTester tester) async { + // Act + await mockNetworkImagesFor(() async { + await pumpOverview( + tester, + [ + trophyStateProvider.overrideWithValue( + TrophyState( + userTrophies: getUserTrophies(), + trophies: getTestTrophies(), + ), + ), + ], + ); + await tester.pumpAndSettle(); + + // Assert + expect(find.text('New Year, New Me'), findsOneWidget); + }); + }); + + testWidgets('handles empty results', (WidgetTester tester) async { + // Act + await pumpOverview(tester); + await tester.pumpAndSettle(); + + // Assert + expect(find.text('Trophies'), findsOneWidget); + expect(find.text('You have no trophies yet'), findsOneWidget); + }); + }); +} diff --git a/test/trophies/widgets/trophies_overview_test.dart b/test/trophies/widgets/trophies_overview_test.dart new file mode 100644 index 000000000..1a843a213 --- /dev/null +++ b/test/trophies/widgets/trophies_overview_test.dart @@ -0,0 +1,62 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:network_image_mock/network_image_mock.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/trophies.dart'; +import 'package:wger/widgets/trophies/trophies_overview.dart'; + +import '../../test_data/trophies.dart'; + +void main() { + testWidgets('TrophiesOverview shows trophies', (WidgetTester tester) async { + // Act + await mockNetworkImagesFor(() async { + await tester.pumpWidget( + ProviderScope( + overrides: [ + trophyStateProvider.overrideWithValue( + TrophyState( + trophyProgression: getUserTrophyProgression(), + userTrophies: getUserTrophies(), + trophies: getTestTrophies(), + ), + ), + ], + child: const MaterialApp( + locale: Locale('en'), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold(body: TrophiesOverview()), + ), + ), + ); + await tester.pumpAndSettle(); + + // Assert + expect(find.text('New Year, New Me'), findsOneWidget); + expect(find.text('Work out on January 1st'), findsOneWidget); + + expect(find.text('Unstoppable'), findsOneWidget); + expect(find.text('Maintain a 30-day workout streak'), findsOneWidget); + }); + }); +} diff --git a/test/user/provider_test.dart b/test/user/provider_test.dart index 8297b3308..fdb9b1f00 100644 --- a/test/user/provider_test.dart +++ b/test/user/provider_test.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -21,6 +21,7 @@ import 'dart:convert'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; +import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; import 'package:wger/providers/base_provider.dart'; @@ -51,10 +52,9 @@ void main() { ); setUp(() { - /// Replacement for SharedPreferences.setMockInitialValues() SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); mockWgerBaseProvider = MockWgerBaseProvider(); - userProvider = UserProvider(mockWgerBaseProvider); + userProvider = UserProvider(mockWgerBaseProvider, prefs: SharedPreferencesAsync()); when(mockWgerBaseProvider.makeUrl(any)).thenReturn(tProfileUri); when( @@ -103,4 +103,84 @@ void main() { verify(userProvider.baseProvider.fetch(tEmailVerifyUri)); }); }); + + group('dashboard config', () { + test('initial config should be default (all visible, default order)', () { + expect(userProvider.dashboardWidgets.length, 6); + + expect( + userProvider.allDashboardWidgets, + orderedEquals([ + DashboardWidget.trophies, + DashboardWidget.routines, + DashboardWidget.nutrition, + DashboardWidget.weight, + DashboardWidget.measurements, + DashboardWidget.calendar, + ]), + ); + expect(userProvider.isDashboardWidgetVisible(DashboardWidget.routines), true); + }); + + test('toggling visibility should update state', () async { + // act + await userProvider.setDashboardWidgetVisible(DashboardWidget.routines, false); + + // assert + expect(userProvider.isDashboardWidgetVisible(DashboardWidget.routines), false); + + // re-enable + await userProvider.setDashboardWidgetVisible(DashboardWidget.routines, true); + expect(userProvider.isDashboardWidgetVisible(DashboardWidget.routines), true); + }); + + test('reordering should update order', () async { + // arrange + final initialFirst = userProvider.dashboardWidgets[0]; + final initialSecond = userProvider.dashboardWidgets[1]; + + // act: move first to second position + // oldIndex: 0, newIndex: 2 (because insert is before index) + await userProvider.setDashboardOrder(0, 2); + + // assert + expect(userProvider.dashboardWidgets[0], initialSecond); + expect(userProvider.dashboardWidgets[1], initialFirst); + }); + + test('should load config from prefs', () async { + // arrange + final prefs = SharedPreferencesAsync(); + final customConfig = [ + {'widget': 'nutrition', 'visible': true}, + {'widget': 'routines', 'visible': false}, + ]; + await prefs.setString( + UserProvider.PREFS_DASHBOARD_CONFIG, + jsonEncode(customConfig), + ); + + // act + final newProvider = UserProvider(mockWgerBaseProvider, prefs: prefs); + await Future.delayed(const Duration(milliseconds: 100)); // wait for async prefs load + + // assert + // Loaded: [nutrition, routines] + // Missing: trophies (0), weight (3), measurements (4), calendar (5) + // 1. trophies (index 0) inserted at 0 -> [trophies, nutrition, routines] + // 2. weight (index 3) inserted at 3 -> [trophies, nutrition, routines, weight] + expect(newProvider.allDashboardWidgets[0], DashboardWidget.trophies); + expect(newProvider.allDashboardWidgets[1], DashboardWidget.nutrition); + expect(newProvider.allDashboardWidgets[2], DashboardWidget.routines); + expect(newProvider.allDashboardWidgets[3], DashboardWidget.weight); + + // Check visibility + expect(newProvider.isDashboardWidgetVisible(DashboardWidget.nutrition), true); + expect(newProvider.isDashboardWidgetVisible(DashboardWidget.routines), false); + + // Missing items should be visible by default + expect(newProvider.isDashboardWidgetVisible(DashboardWidget.weight), true); + expect(newProvider.isDashboardWidgetVisible(DashboardWidget.trophies), true); + }); + }); } diff --git a/test/weight/weight_model_test.dart b/test/weight/weight_model_test.dart index 0bebf4566..ebc283246 100644 --- a/test/weight/weight_model_test.dart +++ b/test/weight/weight_model_test.dart @@ -23,13 +23,13 @@ void main() { group('fetchPost', () { test('Test that the weight entries are correctly converted to json', () { expect( - WeightEntry(id: 1, weight: 80, date: DateTime(2020, 12, 31, 12, 34)).toJson(), - {'id': 1, 'weight': '80', 'date': '2020-12-31T12:34:00.000'}, + WeightEntry(id: 1, weight: 80, date: DateTime.utc(2020, 12, 31, 12, 34)).toJson(), + {'id': 1, 'weight': '80', 'date': '2020-12-31T12:34:00.000Z'}, ); expect( - WeightEntry(id: 2, weight: 70.2, date: DateTime(2020, 12, 01)).toJson(), - {'id': 2, 'weight': '70.2', 'date': '2020-12-01T00:00:00.000'}, + WeightEntry(id: 2, weight: 70.2, date: DateTime.utc(2020, 12, 01)).toJson(), + {'id': 2, 'weight': '70.2', 'date': '2020-12-01T00:00:00.000Z'}, ); }); @@ -53,12 +53,11 @@ void main() { group('model', () { test('Test the individual values from the model', () { WeightEntry weightModel; - //_weightModel = WeightEntry(); - weightModel = WeightEntry(id: 1, weight: 80, date: DateTime(2020, 10, 01)); + weightModel = WeightEntry(id: 1, weight: 80, date: DateTime.utc(2020, 10, 01)); expect(weightModel.id, 1); expect(weightModel.weight, 80); - expect(weightModel.date, DateTime(2020, 10, 01)); + expect(weightModel.date, DateTime.utc(2020, 10, 01)); }); }); } diff --git a/test/weight/weight_provider_test.dart b/test/weight/weight_provider_test.dart index 726992094..61ceffe80 100644 --- a/test/weight/weight_provider_test.dart +++ b/test/weight/weight_provider_test.dart @@ -72,14 +72,14 @@ void main() { when(mockBaseProvider.makeUrl(any, query: anyNamed('query'))).thenReturn(uri); when( mockBaseProvider.post( - {'id': null, 'weight': '80', 'date': '2021-01-01T00:00:00.000'}, + {'id': null, 'weight': '80', 'date': '2021-01-01T00:00:00.000Z'}, uri, ), ).thenAnswer((_) => Future.value({'id': 25, 'date': '2021-01-01', 'weight': '80'})); // Act final BodyWeightProvider provider = BodyWeightProvider(mockBaseProvider); - final WeightEntry weightEntry = WeightEntry(date: DateTime(2021, 1, 1), weight: 80); + final WeightEntry weightEntry = WeightEntry(date: DateTime.utc(2021, 1, 1), weight: 80); final WeightEntry weightEntryNew = await provider.addEntry(weightEntry); // Assert diff --git a/test/widgets/routines/gym_mode/gym_mode_options_test.dart b/test/widgets/routines/gym_mode/gym_mode_options_test.dart new file mode 100644 index 000000000..cd7ea51f2 --- /dev/null +++ b/test/widgets/routines/gym_mode/gym_mode_options_test.dart @@ -0,0 +1,171 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2020, 2025 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; +import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/widgets/routines/gym_mode/start_page.dart'; + +import '../../../../test_data/routines.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + late ProviderContainer container; + + setUp(() { + // Use in-memory shared preferences to avoid platform channels during tests + SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + + container = ProviderContainer( + overrides: [ + gymStateProvider.overrideWith(() => GymStateNotifier()), + ], + ); + + final routine = getTestRoutine(); + final notifier = container.read(gymStateProvider.notifier); + notifier.state = GymModeState( + showExercisePages: true, + showTimerPages: true, + useCountdownBetweenSets: true, + countdownDuration: const Duration(seconds: DEFAULT_COUNTDOWN_DURATION), + alertOnCountdownEnd: false, + dayId: routine.days.first.id, + iteration: 1, + routine: routine, + ); + + notifier.calculatePages(); + }); + + tearDown(() { + container.dispose(); + }); + + Future pumpGymModeOptions(WidgetTester tester) async { + await tester.pumpWidget( + UncontrolledProviderScope( + container: container, + child: const MaterialApp( + locale: Locale('en'), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold( + body: GymModeOptions(), + ), + ), + ), + ); + await tester.pumpAndSettle(); + } + + testWidgets('Switches update the notifier state', (tester) async { + await pumpGymModeOptions(tester); + + // Open options (tap the ListTile to toggle _showOptions) + final optionsTile = find.byKey(const ValueKey('gym-mode-options-tile')); + expect(optionsTile, findsOneWidget); + await tester.tap(optionsTile); + await tester.pumpAndSettle(); + + // Toggle notify countdown first (it is only enabled while timer/countdown are active) + final notifySwitch = find.byKey(const ValueKey('gym-mode-notify-countdown')); + expect(notifySwitch, findsOneWidget); + await tester.tap(notifySwitch); + await tester.pumpAndSettle(); + + // Now toggle show exercises + final showExercisesSwitch = find.byKey(const ValueKey('gym-mode-option-show-exercises')); + expect(showExercisesSwitch, findsOneWidget); + await tester.tap(showExercisesSwitch); + await tester.pumpAndSettle(); + + // Toggle show timer (this will disable notify switch) + final showTimerSwitch = find.byKey(const ValueKey('gym-mode-option-show-timer')); + expect(showTimerSwitch, findsOneWidget); + await tester.tap(showTimerSwitch); + await tester.pumpAndSettle(); + + final notifier = container.read(gymStateProvider.notifier); + expect(notifier.state.showExercisePages, isFalse); + expect(notifier.state.showTimerPages, isFalse); + expect(notifier.state.alertOnCountdownEnd, isTrue); + }); + + testWidgets('Dropdown, text field and refresh button update notifier state', (tester) async { + await pumpGymModeOptions(tester); + + // Open options + final optionsTile = find.byKey(const ValueKey('gym-mode-options-tile')); + await tester.tap(optionsTile); + await tester.pumpAndSettle(); + + final notifier = container.read(gymStateProvider.notifier); + + // Change dropdown (countdown type) -> switch to stopwatch (false) + final dropdown = find.byKey(const ValueKey('countdown-type-dropdown')); + expect(dropdown, findsOneWidget); + + await tester.tap(dropdown); + await tester.pumpAndSettle(); + + // Select the visible menu entry by its text label (English: 'Stopwatch') to avoid hit-test issues + final stopwatchText = find.text('Stopwatch'); + expect(stopwatchText, findsWidgets); + await tester.tap(stopwatchText.first); + await tester.pumpAndSettle(); + + expect(notifier.state.useCountdownBetweenSets, isFalse); + + // switch back to countdown (true) + await tester.tap(dropdown); + await tester.pumpAndSettle(); + final countdownText = find.text('Countdown'); + expect(countdownText, findsWidgets); + await tester.tap(countdownText.first); + await tester.pumpAndSettle(); + + expect(notifier.state.useCountdownBetweenSets, isTrue); + + // Enter a new countdown duration in the TextFormField + final countdownField = find.byKey(const ValueKey('gym-mode-default-countdown-time')); + expect(countdownField, findsOneWidget); + + // The TextFormField is a descendant; find the editable TextField + final textField = find.descendant(of: countdownField, matching: find.byType(TextFormField)); + expect(textField, findsOneWidget); + + await tester.enterText(textField, '60'); + await tester.pumpAndSettle(); + + expect(notifier.state.countdownDuration.inSeconds, 60); + + // Tap refresh button (suffix icon). Find IconButton inside the input decoration + final refreshIcon = find.descendant(of: countdownField, matching: find.byIcon(Icons.refresh)); + expect(refreshIcon, findsOneWidget); + await tester.tap(refreshIcon); + await tester.pumpAndSettle(); + + expect(notifier.state.countdownDuration.inSeconds, DEFAULT_COUNTDOWN_DURATION); + }); +} diff --git a/test/widgets/routines/gym_mode/log_page_test.dart b/test/widgets/routines/gym_mode/log_page_test.dart new file mode 100644 index 000000000..cda242608 --- /dev/null +++ b/test/widgets/routines/gym_mode/log_page_test.dart @@ -0,0 +1,361 @@ +/* + * This file is part of wger Workout Manager . + * Copyright (c) 2025 - 2026 wger Team + * + * wger Workout Manager is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/annotations.dart'; +import 'package:mockito/mockito.dart'; +import 'package:provider/provider.dart' as provider; +import 'package:shared_preferences_platform_interface/in_memory_shared_preferences_async.dart'; +import 'package:shared_preferences_platform_interface/shared_preferences_async_platform_interface.dart'; +import 'package:wger/l10n/generated/app_localizations.dart'; +import 'package:wger/models/exercises/exercise.dart'; +import 'package:wger/models/workouts/day_data.dart'; +import 'package:wger/models/workouts/log.dart'; +import 'package:wger/models/workouts/set_config_data.dart'; +import 'package:wger/models/workouts/slot_data.dart'; +import 'package:wger/providers/exercises.dart'; +import 'package:wger/providers/gym_state.dart'; +import 'package:wger/providers/routines.dart'; +import 'package:wger/widgets/routines/gym_mode/log_page.dart'; + +import '../../../../test_data/exercises.dart'; +import '../../../../test_data/routines.dart' as testdata; +import 'log_page_test.mocks.dart'; + +@GenerateMocks([ExercisesProvider, RoutinesProvider]) +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + group('LogPage tests', () { + late List testExercises; + late ProviderContainer container; + + setUp(() { + SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + testExercises = getTestExercises(); + container = ProviderContainer.test(); + }); + + Future pumpLogPage(WidgetTester tester, {RoutinesProvider? routinesProvider}) async { + final providerValue = routinesProvider ?? MockRoutinesProvider(); + + await tester.pumpWidget( + UncontrolledProviderScope( + container: container, + child: provider.ChangeNotifierProvider.value( + value: providerValue, + child: MaterialApp( + locale: const Locale('en'), + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: Scaffold( + // Provide a PageView so the PageController used by LogPage is attached + body: Builder( + builder: (context) { + final controller = PageController(); + return PageView( + controller: controller, + children: [LogPage(controller)], + ); + }, + ), + ), + ), + ), + ), + ); + + await tester.pumpAndSettle(); + } + + testWidgets('handles null values', (tester) async { + // Arrange + final notifier = container.read(gymStateProvider.notifier); + final routine = testdata.getTestRoutine(); + routine.dayDataGym = [ + DayData( + iteration: 1, + date: DateTime(2024, 11, 01), + label: '', + day: routine.dayDataGym.first.day, + slots: [ + SlotData( + isSuperset: false, + exerciseIds: [testExercises[0].id!], + setConfigs: [ + SetConfigData( + exerciseId: testExercises[0].id!, + exercise: testExercises[0], + slotEntryId: 1, + nrOfSets: 1, + repetitions: null, + repetitionsUnit: null, + weight: null, + weightUnit: null, + restTime: 120, + rir: 1.5, + rpe: 8, + textRepr: '3x100kg', + ), + ], + ), + ], + ), + ]; + notifier.state = notifier.state.copyWith( + dayId: routine.days.first.id, + routine: routine, + iteration: 1, + currentPage: 2, + ); + + // Act + notifier.calculatePages(); + notifier.setCurrentPage(2); + + // Assert + expect(notifier.state.getSlotEntryPageByIndex()!.type, SlotPageType.log); + await pumpLogPage(tester); + expect(find.byType(LogPage), findsOneWidget); + }); + + testWidgets('renders without crashing for default slotEntryPage', (tester) async { + final notifier = container.read(gymStateProvider.notifier); + final routine = testdata.getTestRoutine(); + notifier.state = notifier.state.copyWith( + dayId: routine.days.first.id, + routine: routine, + iteration: 1, + ); + notifier.calculatePages(); + await pumpLogPage(tester); + + expect(find.byType(LogPage), findsOneWidget); + }); + + testWidgets('copy from past log updates form fields and shows SnackBar', (tester) async { + // Arrange + final notifier = container.read(gymStateProvider.notifier); + final routine = testdata.getTestRoutine(); + notifier.state = notifier.state.copyWith( + dayId: routine.days.first.id, + routine: routine, + iteration: 1, + ); + notifier.calculatePages(); + notifier.setCurrentPage(2); + + // Act + // Log page is at index 2 + notifier.state = notifier.state.copyWith(currentPage: 2); + expect(notifier.state.getSlotEntryPageByIndex()!.type, SlotPageType.log); + await pumpLogPage(tester); + + // Assert + final pastLogTile = find.byKey(const ValueKey('past-log-1')); + expect(pastLogTile, findsOneWidget); + await tester.tap(pastLogTile); + await tester.pumpAndSettle(); + + final editableFields = find.byType(EditableText); + expect(editableFields, findsWidgets); + + // Get controller texts + final repControllerText = tester.widget(editableFields.at(0)).controller.text; + final weightControllerText = tester + .widget(editableFields.at(1)) + .controller + .text; + + expect(repControllerText, contains('10')); + expect(weightControllerText, contains('10')); + expect(find.byType(SnackBar), findsOneWidget); + }); + + testWidgets('save button calls addLog on RoutinesProvider', (tester) async { + // Arrange + final notifier = container.read(gymStateProvider.notifier); + final routine = testdata.getTestRoutine(); + notifier.state = notifier.state.copyWith( + dayId: routine.days.first.id, + routine: routine, + iteration: 1, + ); + notifier.calculatePages(); + notifier.setCurrentPage(2); + notifier.state = notifier.state.copyWith(currentPage: 2); + final mockRoutines = MockRoutinesProvider(); + + // Act + await pumpLogPage(tester, routinesProvider: mockRoutines); + + final editableFields = find.byType(EditableText); + expect(editableFields, findsWidgets); + + await tester.enterText(editableFields.at(0), '12'); // Reps + await tester.enterText(editableFields.at(1), '34'); // Weight + await tester.pumpAndSettle(); + + Log? capturedLog; + when(mockRoutines.addLog(any)).thenAnswer((invocation) async { + capturedLog = invocation.positionalArguments[0] as Log; + capturedLog!.id = 42; + return capturedLog!; + }); + + final saveButton = find.byKey(const ValueKey('save-log-button')); + expect(saveButton, findsOneWidget); + + await tester.tap(saveButton); + await tester.pumpAndSettle(); + + // Assert + verify(mockRoutines.addLog(any)).called(1); + expect(capturedLog, isNotNull); + expect(capturedLog!.repetitions, equals(12)); + expect(capturedLog!.weight, equals(34)); + + final currentSlotPage = notifier.state.getSlotEntryPageByIndex()!; + expect(capturedLog!.slotEntryId, equals(currentSlotPage.setConfigData!.slotEntryId)); + expect(capturedLog!.routineId, equals(notifier.state.routine.id)); + expect(capturedLog!.iteration, equals(notifier.state.iteration)); + }); + + testWidgets('LogsRepsWidget quick buttons update values', (tester) async { + // Arrange + final notifier = container.read(gymStateProvider.notifier); + final routine = testdata.getTestRoutine(); + routine.dayDataGym[0].slots[0].setConfigs[0].repetitions = 0; + notifier.state = notifier.state.copyWith( + dayId: routine.days.first.id, + routine: routine, + iteration: 1, + ); + notifier.calculatePages(); + notifier.setCurrentPage(2); + notifier.state = notifier.state.copyWith(currentPage: 2); + final mockRoutines = MockRoutinesProvider(); + await pumpLogPage(tester, routinesProvider: mockRoutines); + + // Act + final repsWidgetFinder = find.byKey(const ValueKey('logs-reps-widget')); + expect(repsWidgetFinder, findsOneWidget); + final addBtn = find.descendant( + of: repsWidgetFinder, + matching: find.byIcon(Icons.add), + ); + final removeBtn = find.descendant( + of: repsWidgetFinder, + matching: find.byIcon(Icons.remove), + ); + + // Assert + // Increment 0 -> 1 + await tester.tap(addBtn); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 100)); + await tester.pumpAndSettle(); + expect( + find.descendant(of: repsWidgetFinder, matching: find.text('1')), + findsOneWidget, + ); + + // Increment 1 -> 2 + await tester.tap(addBtn); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 100)); + await tester.pumpAndSettle(); + expect( + find.descendant(of: repsWidgetFinder, matching: find.text('2')), + findsOneWidget, + ); + + // Decrement 2 -> 1 + await tester.tap(removeBtn); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 100)); + await tester.pumpAndSettle(); + expect( + find.descendant(of: repsWidgetFinder, matching: find.text('1')), + findsOneWidget, + ); + }); + + testWidgets('LogsWeightWidget quick buttons update values', (tester) async { + // Arrange + final notifier = container.read(gymStateProvider.notifier); + final routine = testdata.getTestRoutine(); + routine.dayDataGym[0].slots[0].setConfigs[0].weight = 0; + notifier.state = notifier.state.copyWith( + dayId: routine.days.first.id, + routine: routine, + iteration: 1, + ); + notifier.calculatePages(); + notifier.setCurrentPage(2); + notifier.state = notifier.state.copyWith(currentPage: 2); + final mockRoutines = MockRoutinesProvider(); + await pumpLogPage(tester, routinesProvider: mockRoutines); + + // Act + final weightWidgetFinder = find.byKey(const ValueKey('logs-weight-widget')); + expect(weightWidgetFinder, findsOneWidget); + final addBtn = find.descendant( + of: weightWidgetFinder, + matching: find.byIcon(Icons.add), + ); + final removeBtn = find.descendant( + of: weightWidgetFinder, + matching: find.byIcon(Icons.remove), + ); + + // Assert + // Increment 0 -> 1.25 + await tester.tap(addBtn); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 100)); + await tester.pumpAndSettle(); + expect( + find.descendant(of: weightWidgetFinder, matching: find.text('1.25')), + findsOneWidget, + ); + + // Increment 1.25 -> 2.5 + await tester.tap(addBtn); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 100)); + await tester.pumpAndSettle(); + expect( + find.descendant(of: weightWidgetFinder, matching: find.text('2.5')), + findsOneWidget, + ); + + // Decrement 2.5 -> 1.25 + await tester.tap(removeBtn); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 100)); + await tester.pumpAndSettle(); + expect( + find.descendant(of: weightWidgetFinder, matching: find.text('1.25')), + findsOneWidget, + ); + }); + }); +} diff --git a/test/widgets/routines/gym_mode/log_page_test.mocks.dart b/test/widgets/routines/gym_mode/log_page_test.mocks.dart new file mode 100644 index 000000000..c3f7c8fce --- /dev/null +++ b/test/widgets/routines/gym_mode/log_page_test.mocks.dart @@ -0,0 +1,1051 @@ +// Mocks generated by Mockito 5.4.6 from annotations +// in wger/test/widgets/routines/gym_mode/log_page_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i19; +import 'dart:ui' as _i20; + +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i23; +import 'package:wger/database/exercises/exercise_database.dart' as _i3; +import 'package:wger/models/exercises/category.dart' as _i5; +import 'package:wger/models/exercises/equipment.dart' as _i6; +import 'package:wger/models/exercises/exercise.dart' as _i4; +import 'package:wger/models/exercises/language.dart' as _i8; +import 'package:wger/models/exercises/muscle.dart' as _i7; +import 'package:wger/models/workouts/base_config.dart' as _i15; +import 'package:wger/models/workouts/day.dart' as _i12; +import 'package:wger/models/workouts/day_data.dart' as _i22; +import 'package:wger/models/workouts/log.dart' as _i17; +import 'package:wger/models/workouts/repetition_unit.dart' as _i10; +import 'package:wger/models/workouts/routine.dart' as _i11; +import 'package:wger/models/workouts/session.dart' as _i16; +import 'package:wger/models/workouts/slot.dart' as _i13; +import 'package:wger/models/workouts/slot_entry.dart' as _i14; +import 'package:wger/models/workouts/weight_unit.dart' as _i9; +import 'package:wger/providers/base_provider.dart' as _i2; +import 'package:wger/providers/exercises.dart' as _i18; +import 'package:wger/providers/routines.dart' as _i21; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class +// ignore_for_file: invalid_use_of_internal_member + +class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider { + _FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeExerciseDatabase_1 extends _i1.SmartFake implements _i3.ExerciseDatabase { + _FakeExerciseDatabase_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeExercise_2 extends _i1.SmartFake implements _i4.Exercise { + _FakeExercise_2(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeExerciseCategory_3 extends _i1.SmartFake implements _i5.ExerciseCategory { + _FakeExerciseCategory_3(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeEquipment_4 extends _i1.SmartFake implements _i6.Equipment { + _FakeEquipment_4(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeMuscle_5 extends _i1.SmartFake implements _i7.Muscle { + _FakeMuscle_5(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeLanguage_6 extends _i1.SmartFake implements _i8.Language { + _FakeLanguage_6(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeWeightUnit_7 extends _i1.SmartFake implements _i9.WeightUnit { + _FakeWeightUnit_7(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeRepetitionUnit_8 extends _i1.SmartFake implements _i10.RepetitionUnit { + _FakeRepetitionUnit_8(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeRoutine_9 extends _i1.SmartFake implements _i11.Routine { + _FakeRoutine_9(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeDay_10 extends _i1.SmartFake implements _i12.Day { + _FakeDay_10(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeSlot_11 extends _i1.SmartFake implements _i13.Slot { + _FakeSlot_11(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeSlotEntry_12 extends _i1.SmartFake implements _i14.SlotEntry { + _FakeSlotEntry_12(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeBaseConfig_13 extends _i1.SmartFake implements _i15.BaseConfig { + _FakeBaseConfig_13(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +class _FakeWorkoutSession_14 extends _i1.SmartFake implements _i16.WorkoutSession { + _FakeWorkoutSession_14(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); +} + +class _FakeLog_15 extends _i1.SmartFake implements _i17.Log { + _FakeLog_15(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); +} + +/// A class which mocks [ExercisesProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockExercisesProvider extends _i1.Mock implements _i18.ExercisesProvider { + MockExercisesProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_0( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i2.WgerBaseProvider); + + @override + _i3.ExerciseDatabase get database => + (super.noSuchMethod( + Invocation.getter(#database), + returnValue: _FakeExerciseDatabase_1( + this, + Invocation.getter(#database), + ), + ) + as _i3.ExerciseDatabase); + + @override + List<_i4.Exercise> get exercises => + (super.noSuchMethod( + Invocation.getter(#exercises), + returnValue: <_i4.Exercise>[], + ) + as List<_i4.Exercise>); + + @override + List<_i4.Exercise> get filteredExercises => + (super.noSuchMethod( + Invocation.getter(#filteredExercises), + returnValue: <_i4.Exercise>[], + ) + as List<_i4.Exercise>); + + @override + Map> get exerciseByVariation => + (super.noSuchMethod( + Invocation.getter(#exerciseByVariation), + returnValue: >{}, + ) + as Map>); + + @override + List<_i5.ExerciseCategory> get categories => + (super.noSuchMethod( + Invocation.getter(#categories), + returnValue: <_i5.ExerciseCategory>[], + ) + as List<_i5.ExerciseCategory>); + + @override + List<_i7.Muscle> get muscles => + (super.noSuchMethod( + Invocation.getter(#muscles), + returnValue: <_i7.Muscle>[], + ) + as List<_i7.Muscle>); + + @override + List<_i6.Equipment> get equipment => + (super.noSuchMethod( + Invocation.getter(#equipment), + returnValue: <_i6.Equipment>[], + ) + as List<_i6.Equipment>); + + @override + List<_i8.Language> get languages => + (super.noSuchMethod( + Invocation.getter(#languages), + returnValue: <_i8.Language>[], + ) + as List<_i8.Language>); + + @override + set database(_i3.ExerciseDatabase? value) => super.noSuchMethod( + Invocation.setter(#database, value), + returnValueForMissingStub: null, + ); + + @override + set exercises(List<_i4.Exercise>? value) => super.noSuchMethod( + Invocation.setter(#exercises, value), + returnValueForMissingStub: null, + ); + + @override + set filteredExercises(List<_i4.Exercise>? newFilteredExercises) => super.noSuchMethod( + Invocation.setter(#filteredExercises, newFilteredExercises), + returnValueForMissingStub: null, + ); + + @override + set languages(List<_i8.Language>? languages) => super.noSuchMethod( + Invocation.setter(#languages, languages), + returnValueForMissingStub: null, + ); + + @override + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool); + + @override + _i19.Future setFilters(_i18.Filters? newFilters) => + (super.noSuchMethod( + Invocation.method(#setFilters, [newFilters]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + void initFilters() => super.noSuchMethod( + Invocation.method(#initFilters, []), + returnValueForMissingStub: null, + ); + + @override + _i19.Future findByFilters() => + (super.noSuchMethod( + Invocation.method(#findByFilters, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + void clear() => super.noSuchMethod( + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); + + @override + _i4.Exercise findExerciseById(int? id) => + (super.noSuchMethod( + Invocation.method(#findExerciseById, [id]), + returnValue: _FakeExercise_2( + this, + Invocation.method(#findExerciseById, [id]), + ), + ) + as _i4.Exercise); + + @override + List<_i4.Exercise> findExercisesByVariationId( + int? variationId, { + int? exerciseIdToExclude, + }) => + (super.noSuchMethod( + Invocation.method( + #findExercisesByVariationId, + [variationId], + {#exerciseIdToExclude: exerciseIdToExclude}, + ), + returnValue: <_i4.Exercise>[], + ) + as List<_i4.Exercise>); + + @override + _i5.ExerciseCategory findCategoryById(int? id) => + (super.noSuchMethod( + Invocation.method(#findCategoryById, [id]), + returnValue: _FakeExerciseCategory_3( + this, + Invocation.method(#findCategoryById, [id]), + ), + ) + as _i5.ExerciseCategory); + + @override + _i6.Equipment findEquipmentById(int? id) => + (super.noSuchMethod( + Invocation.method(#findEquipmentById, [id]), + returnValue: _FakeEquipment_4( + this, + Invocation.method(#findEquipmentById, [id]), + ), + ) + as _i6.Equipment); + + @override + _i7.Muscle findMuscleById(int? id) => + (super.noSuchMethod( + Invocation.method(#findMuscleById, [id]), + returnValue: _FakeMuscle_5( + this, + Invocation.method(#findMuscleById, [id]), + ), + ) + as _i7.Muscle); + + @override + _i8.Language findLanguageById(int? id) => + (super.noSuchMethod( + Invocation.method(#findLanguageById, [id]), + returnValue: _FakeLanguage_6( + this, + Invocation.method(#findLanguageById, [id]), + ), + ) + as _i8.Language); + + @override + _i19.Future fetchAndSetCategoriesFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetCategoriesFromApi, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetMusclesFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetMusclesFromApi, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetEquipmentsFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetEquipmentsFromApi, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetLanguagesFromApi() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetLanguagesFromApi, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetAllExercises() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetAllExercises, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future<_i4.Exercise?> fetchAndSetExercise(int? exerciseId) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetExercise, [exerciseId]), + returnValue: _i19.Future<_i4.Exercise?>.value(), + ) + as _i19.Future<_i4.Exercise?>); + + @override + _i19.Future<_i4.Exercise> handleUpdateExerciseFromApi( + _i3.ExerciseDatabase? database, + int? exerciseId, + ) => + (super.noSuchMethod( + Invocation.method(#handleUpdateExerciseFromApi, [ + database, + exerciseId, + ]), + returnValue: _i19.Future<_i4.Exercise>.value( + _FakeExercise_2( + this, + Invocation.method(#handleUpdateExerciseFromApi, [ + database, + exerciseId, + ]), + ), + ), + ) + as _i19.Future<_i4.Exercise>); + + @override + _i19.Future initCacheTimesLocalPrefs({bool? forceInit = false}) => + (super.noSuchMethod( + Invocation.method(#initCacheTimesLocalPrefs, [], { + #forceInit: forceInit, + }), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future clearAllCachesAndPrefs() => + (super.noSuchMethod( + Invocation.method(#clearAllCachesAndPrefs, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetInitialData() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetInitialData, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future setExercisesFromDatabase( + _i3.ExerciseDatabase? database, { + bool? forceDeleteCache = false, + }) => + (super.noSuchMethod( + Invocation.method( + #setExercisesFromDatabase, + [database], + {#forceDeleteCache: forceDeleteCache}, + ), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future updateExerciseCache(_i3.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#updateExerciseCache, [database]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetMuscles(_i3.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetMuscles, [database]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetCategories(_i3.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetCategories, [database]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetLanguages(_i3.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetLanguages, [database]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetEquipments(_i3.ExerciseDatabase? database) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetEquipments, [database]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future> searchExercise( + String? name, { + String? languageCode = 'en', + bool? searchEnglish = false, + }) => + (super.noSuchMethod( + Invocation.method( + #searchExercise, + [name], + {#languageCode: languageCode, #searchEnglish: searchEnglish}, + ), + returnValue: _i19.Future>.value( + <_i4.Exercise>[], + ), + ) + as _i19.Future>); + + @override + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void dispose() => super.noSuchMethod( + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); + + @override + void notifyListeners() => super.noSuchMethod( + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); +} + +/// A class which mocks [RoutinesProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockRoutinesProvider extends _i1.Mock implements _i21.RoutinesProvider { + MockRoutinesProvider() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.WgerBaseProvider get baseProvider => + (super.noSuchMethod( + Invocation.getter(#baseProvider), + returnValue: _FakeWgerBaseProvider_0( + this, + Invocation.getter(#baseProvider), + ), + ) + as _i2.WgerBaseProvider); + + @override + List<_i11.Routine> get items => + (super.noSuchMethod( + Invocation.getter(#items), + returnValue: <_i11.Routine>[], + ) + as List<_i11.Routine>); + + @override + List<_i9.WeightUnit> get weightUnits => + (super.noSuchMethod( + Invocation.getter(#weightUnits), + returnValue: <_i9.WeightUnit>[], + ) + as List<_i9.WeightUnit>); + + @override + _i9.WeightUnit get defaultWeightUnit => + (super.noSuchMethod( + Invocation.getter(#defaultWeightUnit), + returnValue: _FakeWeightUnit_7( + this, + Invocation.getter(#defaultWeightUnit), + ), + ) + as _i9.WeightUnit); + + @override + List<_i10.RepetitionUnit> get repetitionUnits => + (super.noSuchMethod( + Invocation.getter(#repetitionUnits), + returnValue: <_i10.RepetitionUnit>[], + ) + as List<_i10.RepetitionUnit>); + + @override + _i10.RepetitionUnit get defaultRepetitionUnit => + (super.noSuchMethod( + Invocation.getter(#defaultRepetitionUnit), + returnValue: _FakeRepetitionUnit_8( + this, + Invocation.getter(#defaultRepetitionUnit), + ), + ) + as _i10.RepetitionUnit); + + @override + set activeRoutine(_i11.Routine? value) => super.noSuchMethod( + Invocation.setter(#activeRoutine, value), + returnValueForMissingStub: null, + ); + + @override + set weightUnits(List<_i9.WeightUnit>? weightUnits) => super.noSuchMethod( + Invocation.setter(#weightUnits, weightUnits), + returnValueForMissingStub: null, + ); + + @override + set repetitionUnits(List<_i10.RepetitionUnit>? repetitionUnits) => super.noSuchMethod( + Invocation.setter(#repetitionUnits, repetitionUnits), + returnValueForMissingStub: null, + ); + + @override + bool get hasListeners => + (super.noSuchMethod(Invocation.getter(#hasListeners), returnValue: false) as bool); + + @override + void clear() => super.noSuchMethod( + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); + + @override + _i9.WeightUnit findWeightUnitById(int? id) => + (super.noSuchMethod( + Invocation.method(#findWeightUnitById, [id]), + returnValue: _FakeWeightUnit_7( + this, + Invocation.method(#findWeightUnitById, [id]), + ), + ) + as _i9.WeightUnit); + + @override + _i10.RepetitionUnit findRepetitionUnitById(int? id) => + (super.noSuchMethod( + Invocation.method(#findRepetitionUnitById, [id]), + returnValue: _FakeRepetitionUnit_8( + this, + Invocation.method(#findRepetitionUnitById, [id]), + ), + ) + as _i10.RepetitionUnit); + + @override + List<_i11.Routine> getPlans() => + (super.noSuchMethod( + Invocation.method(#getPlans, []), + returnValue: <_i11.Routine>[], + ) + as List<_i11.Routine>); + + @override + _i11.Routine findById(int? id) => + (super.noSuchMethod( + Invocation.method(#findById, [id]), + returnValue: _FakeRoutine_9( + this, + Invocation.method(#findById, [id]), + ), + ) + as _i11.Routine); + + @override + int findIndexById(int? id) => + (super.noSuchMethod( + Invocation.method(#findIndexById, [id]), + returnValue: 0, + ) + as int); + + @override + _i19.Future fetchAndSetAllRoutinesFull() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetAllRoutinesFull, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetAllRoutinesSparse() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetAllRoutinesSparse, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future setExercisesAndUnits( + List<_i22.DayData>? entries, { + Map? exercises, + }) => + (super.noSuchMethod( + Invocation.method( + #setExercisesAndUnits, + [entries], + {#exercises: exercises}, + ), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future<_i11.Routine> fetchAndSetRoutineSparse(int? planId) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetRoutineSparse, [planId]), + returnValue: _i19.Future<_i11.Routine>.value( + _FakeRoutine_9( + this, + Invocation.method(#fetchAndSetRoutineSparse, [planId]), + ), + ), + ) + as _i19.Future<_i11.Routine>); + + @override + _i19.Future<_i11.Routine> fetchAndSetRoutineFull(int? routineId) => + (super.noSuchMethod( + Invocation.method(#fetchAndSetRoutineFull, [routineId]), + returnValue: _i19.Future<_i11.Routine>.value( + _FakeRoutine_9( + this, + Invocation.method(#fetchAndSetRoutineFull, [routineId]), + ), + ), + ) + as _i19.Future<_i11.Routine>); + + @override + _i19.Future<_i11.Routine> addRoutine(_i11.Routine? routine) => + (super.noSuchMethod( + Invocation.method(#addRoutine, [routine]), + returnValue: _i19.Future<_i11.Routine>.value( + _FakeRoutine_9(this, Invocation.method(#addRoutine, [routine])), + ), + ) + as _i19.Future<_i11.Routine>); + + @override + _i19.Future editRoutine(_i11.Routine? routine) => + (super.noSuchMethod( + Invocation.method(#editRoutine, [routine]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future deleteRoutine(int? id) => + (super.noSuchMethod( + Invocation.method(#deleteRoutine, [id]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetRepetitionUnits() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetRepetitionUnits, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetWeightUnits() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetWeightUnits, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future fetchAndSetUnits() => + (super.noSuchMethod( + Invocation.method(#fetchAndSetUnits, []), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future<_i12.Day> addDay(_i12.Day? day) => + (super.noSuchMethod( + Invocation.method(#addDay, [day]), + returnValue: _i19.Future<_i12.Day>.value( + _FakeDay_10(this, Invocation.method(#addDay, [day])), + ), + ) + as _i19.Future<_i12.Day>); + + @override + _i19.Future editDay(_i12.Day? day) => + (super.noSuchMethod( + Invocation.method(#editDay, [day]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future editDays(List<_i12.Day>? days) => + (super.noSuchMethod( + Invocation.method(#editDays, [days]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future deleteDay(int? dayId) => + (super.noSuchMethod( + Invocation.method(#deleteDay, [dayId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future<_i13.Slot> addSlot(_i13.Slot? slot, int? routineId) => + (super.noSuchMethod( + Invocation.method(#addSlot, [slot, routineId]), + returnValue: _i19.Future<_i13.Slot>.value( + _FakeSlot_11( + this, + Invocation.method(#addSlot, [slot, routineId]), + ), + ), + ) + as _i19.Future<_i13.Slot>); + + @override + _i19.Future deleteSlot(int? slotId, int? routineId) => + (super.noSuchMethod( + Invocation.method(#deleteSlot, [slotId, routineId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future editSlot(_i13.Slot? slot, int? routineId) => + (super.noSuchMethod( + Invocation.method(#editSlot, [slot, routineId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future editSlots(List<_i13.Slot>? slots, int? routineId) => + (super.noSuchMethod( + Invocation.method(#editSlots, [slots, routineId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future<_i14.SlotEntry> addSlotEntry( + _i14.SlotEntry? entry, + int? routineId, + ) => + (super.noSuchMethod( + Invocation.method(#addSlotEntry, [entry, routineId]), + returnValue: _i19.Future<_i14.SlotEntry>.value( + _FakeSlotEntry_12( + this, + Invocation.method(#addSlotEntry, [entry, routineId]), + ), + ), + ) + as _i19.Future<_i14.SlotEntry>); + + @override + _i19.Future deleteSlotEntry(int? id, int? routineId) => + (super.noSuchMethod( + Invocation.method(#deleteSlotEntry, [id, routineId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future editSlotEntry(_i14.SlotEntry? entry, int? routineId) => + (super.noSuchMethod( + Invocation.method(#editSlotEntry, [entry, routineId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + String getConfigUrl(_i14.ConfigType? type) => + (super.noSuchMethod( + Invocation.method(#getConfigUrl, [type]), + returnValue: _i23.dummyValue( + this, + Invocation.method(#getConfigUrl, [type]), + ), + ) + as String); + + @override + _i19.Future<_i15.BaseConfig> editConfig( + _i15.BaseConfig? config, + _i14.ConfigType? type, + ) => + (super.noSuchMethod( + Invocation.method(#editConfig, [config, type]), + returnValue: _i19.Future<_i15.BaseConfig>.value( + _FakeBaseConfig_13( + this, + Invocation.method(#editConfig, [config, type]), + ), + ), + ) + as _i19.Future<_i15.BaseConfig>); + + @override + _i19.Future<_i15.BaseConfig> addConfig( + _i15.BaseConfig? config, + _i14.ConfigType? type, + ) => + (super.noSuchMethod( + Invocation.method(#addConfig, [config, type]), + returnValue: _i19.Future<_i15.BaseConfig>.value( + _FakeBaseConfig_13( + this, + Invocation.method(#addConfig, [config, type]), + ), + ), + ) + as _i19.Future<_i15.BaseConfig>); + + @override + _i19.Future deleteConfig(int? id, _i14.ConfigType? type) => + (super.noSuchMethod( + Invocation.method(#deleteConfig, [id, type]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future handleConfig( + _i14.SlotEntry? entry, + num? value, + _i14.ConfigType? type, + ) => + (super.noSuchMethod( + Invocation.method(#handleConfig, [entry, value, type]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + _i19.Future> fetchSessionData() => + (super.noSuchMethod( + Invocation.method(#fetchSessionData, []), + returnValue: _i19.Future>.value( + <_i16.WorkoutSession>[], + ), + ) + as _i19.Future>); + + @override + _i19.Future<_i16.WorkoutSession> addSession( + _i16.WorkoutSession? session, + int? routineId, + ) => + (super.noSuchMethod( + Invocation.method(#addSession, [session, routineId]), + returnValue: _i19.Future<_i16.WorkoutSession>.value( + _FakeWorkoutSession_14( + this, + Invocation.method(#addSession, [session, routineId]), + ), + ), + ) + as _i19.Future<_i16.WorkoutSession>); + + @override + _i19.Future<_i16.WorkoutSession> editSession(_i16.WorkoutSession? session) => + (super.noSuchMethod( + Invocation.method(#editSession, [session]), + returnValue: _i19.Future<_i16.WorkoutSession>.value( + _FakeWorkoutSession_14( + this, + Invocation.method(#editSession, [session]), + ), + ), + ) + as _i19.Future<_i16.WorkoutSession>); + + @override + _i19.Future<_i17.Log> addLog(_i17.Log? log) => + (super.noSuchMethod( + Invocation.method(#addLog, [log]), + returnValue: _i19.Future<_i17.Log>.value( + _FakeLog_15(this, Invocation.method(#addLog, [log])), + ), + ) + as _i19.Future<_i17.Log>); + + @override + _i19.Future deleteLog(int? logId, int? routineId) => + (super.noSuchMethod( + Invocation.method(#deleteLog, [logId, routineId]), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) + as _i19.Future); + + @override + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#addListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + Invocation.method(#removeListener, [listener]), + returnValueForMissingStub: null, + ); + + @override + void dispose() => super.noSuchMethod( + Invocation.method(#dispose, []), + returnValueForMissingStub: null, + ); + + @override + void notifyListeners() => super.noSuchMethod( + Invocation.method(#notifyListeners, []), + returnValueForMissingStub: null, + ); +} diff --git a/test/widgets/routines/plate_calculator_test.dart b/test/widgets/routines/plate_calculator_test.dart index 9c1b7ad00..718337495 100644 --- a/test/widgets/routines/plate_calculator_test.dart +++ b/test/widgets/routines/plate_calculator_test.dart @@ -9,13 +9,11 @@ import 'package:wger/widgets/routines/plate_calculator.dart'; Future pumpWidget( WidgetTester tester, { - PlateCalculatorNotifier? notifier, + required ProviderContainer container, }) async { await tester.pumpWidget( - ProviderScope( - overrides: [ - if (notifier != null) plateCalculatorProvider.overrideWith((ref) => notifier), - ], + UncontrolledProviderScope( + container: container, child: const MaterialApp( locale: Locale('en'), localizationsDelegates: AppLocalizations.localizationsDelegates, @@ -27,12 +25,19 @@ Future pumpWidget( } void main() { + late ProviderContainer container; + setUp(() { SharedPreferencesAsyncPlatform.instance = InMemorySharedPreferencesAsync.empty(); + container = ProviderContainer( + overrides: [ + plateCalculatorProvider.overrideWith(() => PlateCalculatorNotifier()), + ], + ); }); testWidgets('Smoke test for ConfigureAvailablePlates', (WidgetTester tester) async { - await pumpWidget(tester); + await pumpWidget(tester, container: container); expect(find.text('Unit'), findsWidgets); expect(find.text('Bar weight'), findsWidgets); @@ -45,7 +50,8 @@ void main() { 'ConfigureAvailablePlates correctly updates state', (WidgetTester tester) async { // Arrange - final notifier = PlateCalculatorNotifier(); + await pumpWidget(tester, container: container); + final notifier = container.read(plateCalculatorProvider.notifier); notifier.state = PlateCalculatorState( isMetric: true, barWeight: 20, @@ -53,8 +59,6 @@ void main() { selectedPlates: [1.25, 2.5], ); - await pumpWidget(tester, notifier: notifier); - // Correctly changes the unit expect(notifier.state.isMetric, isTrue); await tester.tap(find.byKey(const ValueKey('weightUnitDropdown'))); diff --git a/test_data/body_weight.dart b/test_data/body_weight.dart index ac806a69b..6b87bd42d 100644 --- a/test_data/body_weight.dart +++ b/test_data/body_weight.dart @@ -18,8 +18,8 @@ import 'package:wger/models/body_weight/weight_entry.dart'; -final testWeightEntry1 = WeightEntry(id: 1, weight: 80, date: DateTime(2021, 01, 01, 15, 30)); -final testWeightEntry2 = WeightEntry(id: 2, weight: 81, date: DateTime(2021, 01, 10, 10, 0)); +final testWeightEntry1 = WeightEntry(id: 1, weight: 80, date: DateTime.utc(2021, 01, 01, 15, 30)); +final testWeightEntry2 = WeightEntry(id: 2, weight: 81, date: DateTime.utc(2021, 01, 10, 10, 0)); List getWeightEntries() { return [testWeightEntry1, testWeightEntry2]; @@ -27,20 +27,20 @@ List getWeightEntries() { List getScreenshotWeightEntries() { return [ - WeightEntry(id: 1, weight: 86, date: DateTime(2021, 01, 01)), - WeightEntry(id: 2, weight: 81, date: DateTime(2021, 01, 10)), - WeightEntry(id: 3, weight: 82, date: DateTime(2021, 01, 20)), - WeightEntry(id: 4, weight: 83, date: DateTime(2021, 01, 30)), - WeightEntry(id: 5, weight: 86, date: DateTime(2021, 02, 20)), - WeightEntry(id: 6, weight: 90, date: DateTime(2021, 02, 28)), - WeightEntry(id: 7, weight: 91, date: DateTime(2021, 03, 20)), - WeightEntry(id: 8, weight: 91.1, date: DateTime(2021, 03, 30)), - WeightEntry(id: 9, weight: 90, date: DateTime(2021, 05, 1)), - WeightEntry(id: 10, weight: 91, date: DateTime(2021, 6, 5)), - WeightEntry(id: 11, weight: 89, date: DateTime(2021, 6, 20)), - WeightEntry(id: 12, weight: 88, date: DateTime(2021, 7, 15)), - WeightEntry(id: 13, weight: 86, date: DateTime(2021, 7, 20)), - WeightEntry(id: 14, weight: 83, date: DateTime(2021, 7, 30)), - WeightEntry(id: 15, weight: 80, date: DateTime(2021, 8, 10)), + WeightEntry(id: 1, weight: 86, date: DateTime.utc(2021, 01, 01)), + WeightEntry(id: 2, weight: 81, date: DateTime.utc(2021, 01, 10)), + WeightEntry(id: 3, weight: 82, date: DateTime.utc(2021, 01, 20)), + WeightEntry(id: 4, weight: 83, date: DateTime.utc(2021, 01, 30)), + WeightEntry(id: 5, weight: 86, date: DateTime.utc(2021, 02, 20)), + WeightEntry(id: 6, weight: 90, date: DateTime.utc(2021, 02, 28)), + WeightEntry(id: 7, weight: 91, date: DateTime.utc(2021, 03, 20)), + WeightEntry(id: 8, weight: 91.1, date: DateTime.utc(2021, 03, 30)), + WeightEntry(id: 9, weight: 90, date: DateTime.utc(2021, 05, 1)), + WeightEntry(id: 10, weight: 91, date: DateTime.utc(2021, 6, 5)), + WeightEntry(id: 11, weight: 89, date: DateTime.utc(2021, 6, 20)), + WeightEntry(id: 12, weight: 88, date: DateTime.utc(2021, 7, 15)), + WeightEntry(id: 13, weight: 86, date: DateTime.utc(2021, 7, 20)), + WeightEntry(id: 14, weight: 83, date: DateTime.utc(2021, 7, 30)), + WeightEntry(id: 15, weight: 80, date: DateTime.utc(2021, 8, 10)), ]; } diff --git a/test_data/routines.dart b/test_data/routines.dart index 73e330a4d..464086319 100644 --- a/test_data/routines.dart +++ b/test_data/routines.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2021 wger Team + * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -45,41 +45,47 @@ const testRepetitionUnits = [testRepetitionUnit1, testRepetitionUnit2]; Routine getTestRoutine({List? exercises}) { final testExercises = exercises ?? getTestExercises(); - final log1 = Log.empty() - ..id = 1 - ..iteration = 2 - ..slotEntryId = 3 - ..weight = 10 - ..rir = 1.5 - ..date = DateTime(2021, 5, 1) - ..repetitions = 10 - ..routineId = 1; + final log1 = Log( + id: 1, + iteration: 2, + slotEntryId: 3, + weight: 10, + rir: 1.5, + date: DateTime(2021, 5, 1), + repetitions: 10, + routineId: 1, + exerciseId: testExercises[0].id!, + ); log1.exerciseBase = testExercises[0]; log1.weightUnit = testWeightUnit1; log1.repetitionUnit = testRepetitionUnit1; - final log2 = Log.empty() - ..id = 2 - ..iteration = 4 - ..slotEntryId = 1 - ..weight = 10 - ..rir = 2 - ..date = DateTime(2021, 5, 1) - ..repetitions = 12 - ..routineId = 1; + final log2 = Log( + id: 2, + iteration: 4, + slotEntryId: 1, + weight: 10, + rir: 2, + date: DateTime(2021, 5, 1), + repetitions: 12, + routineId: 1, + exerciseId: testExercises[0].id!, + ); log2.exerciseBase = testExercises[0]; log2.weightUnit = testWeightUnit1; log2.repetitionUnit = testRepetitionUnit1; - final log3 = Log.empty() - ..id = 3 - ..iteration = 5 - ..slotEntryId = 1 - ..weight = 50 - ..rir = null - ..date = DateTime(2021, 5, 2) - ..repetitions = 8 - ..routineId = 1; + final log3 = Log( + id: 3, + iteration: 5, + slotEntryId: 1, + weight: 50, + rir: null, + date: DateTime(2021, 5, 2), + repetitions: 8, + routineId: 1, + exerciseId: testExercises[1].id!, + ); log3.exerciseBase = testExercises[1]; log3.weightUnit = testWeightUnit1; log3.repetitionUnit = testRepetitionUnit1;