Commit Graph

4795 Commits

Author SHA1 Message Date
Roland Geider
4c9fc6d07a Merge pull request #1164 from wger-project/dependabot/bundler/ios/addressable-2.9.0
Bump addressable from 2.8.7 to 2.9.0 in /ios
2026-04-09 12:52:26 +02:00
Roland Geider
e9661f585b Updated goldens 2026-04-09 12:51:45 +02:00
Roland Geider
cf0f3a66ee Merge pull request #1160 from wger-project/dependabot/pub/mockito-5.6.4
Bump mockito from 5.6.3 to 5.6.4
2026-04-09 11:24:22 +02:00
Roland Geider
2036824128 Merge pull request #1162 from wger-project/dependabot/pub/cupertino_icons-1.0.9
Bump cupertino_icons from 1.0.8 to 1.0.9
2026-04-09 11:24:03 +02:00
Roland Geider
b07be2703d Merge pull request #1165 from radmorecameron/flatpak-appdata
chore(flatpak): update metainfo to indicate mobile support
2026-04-09 11:23:46 +02:00
Roland Geider
79bd515a2e Merge pull request #1166 from radmorecameron/flatpak-categories
chore(Flatpak): add HealthFitness and related categories
2026-04-09 11:23:21 +02:00
Cameron Radmore
597eff1718 chore(Flatpak): add HealthFitness and related categories 2026-04-08 15:32:29 -04:00
Cameron Radmore
1d157346a3 chore(flatpak): update metainfo to indicate mobile support 2026-04-08 15:25:15 -04:00
dependabot[bot]
08b58f3d39 Bump addressable from 2.8.7 to 2.9.0 in /ios
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.8.7 to 2.9.0.
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.8.7...addressable-2.9.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-version: 2.9.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-08 07:38:11 +00:00
Roland Geider
ed8203de09 Expose units in the nutritional plan 2026-03-31 11:46:38 +02:00
dependabot[bot]
4d2c2beb1b Bump cupertino_icons from 1.0.8 to 1.0.9
Bumps [cupertino_icons](https://github.com/flutter/packages/tree/main/third_party/packages) from 1.0.8 to 1.0.9.
- [Commits](https://github.com/flutter/packages/commits/cupertino_icons-v1.0.9/third_party/packages)

---
updated-dependencies:
- dependency-name: cupertino_icons
  dependency-version: 1.0.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-30 00:54:26 +00:00
dependabot[bot]
217392702c Bump mockito from 5.6.3 to 5.6.4
Bumps [mockito](https://github.com/dart-lang/build/tree/master/builder_pkgs) from 5.6.3 to 5.6.4.
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/commits/mockito-v5.6.4/builder_pkgs)

---
updated-dependencies:
- dependency-name: mockito
  dependency-version: 5.6.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-30 00:54:11 +00:00
Roland Geider
fee01c6163 Fix screenshot tests 2026-03-30 00:04:32 +02:00
Roland Geider
c81a0c7c3d Merge pull request #1158 from wger-project/feature/group-sets
Group slots in the UI with the same exercise
2026-03-29 22:59:33 +02:00
Roland Geider
0af9e52681 Update .gitignore 2026-03-29 20:46:43 +02:00
Roland Geider
85b261fad7 Group slots in the UI with the same exercise
This allows the user to add different slots (sets) to an exercise, like
10 x 10kg, 8 x 12kg, 6 x 15kg. Also note that this is purely a UI change,
as it was already possible to simply add the same exercise again.
2026-03-29 20:46:13 +02:00
Sarthak
f7f864da8a fix(measurements): add time picker to measurement entry form 2026-03-29 21:12:40 +05:30
Roland Geider
8327ba3105 Bump used flutter version 2026-03-28 21:18:43 +01:00
Roland Geider
defe3ea5f2 Update generated files 2026-03-28 20:47:34 +01:00
Roland Geider
cb6c0f9804 Merge pull request #1139 from NiazSagor/fix-redundant-loading
Prevent Redundant Loading in `NutritionalPlanScreen`
2026-03-28 20:46:38 +01:00
Roland Geider
f33aee4ace Merge pull request #1135 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-03-28 20:40:20 +01:00
Thomas Peyrot
7880c59612 Translated using Weblate (French)
Currently translated at 99.2% (381 of 384 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2026-03-28 16:04:07 +01:00
Ninguém Mesmo
6b0d744065 Translated using Weblate (Portuguese)
Currently translated at 100.0% (384 of 384 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-03-28 16:04:06 +01:00
Hesham sraj
5644c2c6e5 Translated using Weblate (Arabic)
Currently translated at 99.2% (381 of 384 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-03-28 16:04:05 +01:00
Milo Ivir
7c54754a31 Translated using Weblate (Croatian)
Currently translated at 100.0% (382 of 382 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-03-28 16:04:04 +01:00
Nebiyou
c82d04986e Translated using Weblate (Amharic)
Currently translated at 15.7% (60 of 382 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/am/
2026-03-28 16:04:03 +01:00
Edson Wolf
6eae0978ff Translated using Weblate (Portuguese)
Currently translated at 100.0% (382 of 382 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-03-28 16:04:02 +01:00
pswsm
fcc977bb44 Translated using Weblate (Catalan)
Currently translated at 100.0% (382 of 382 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ca/
2026-03-28 16:04:01 +01:00
saraswathi
95b89e3e83 Translated using Weblate (Tamil)
Currently translated at 77.9% (293 of 376 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ta/
2026-03-28 16:04:00 +01:00
Milo Ivir
4bbb95a61e Translated using Weblate (Croatian)
Currently translated at 100.0% (376 of 376 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-03-28 16:03:59 +01:00
Teodor Olteanu
a8951bc227 Translated using Weblate (Romanian)
Currently translated at 100.0% (376 of 376 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ro/
2026-03-28 16:03:58 +01:00
Elio Zhou
078514a1fc Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 83.5% (314 of 376 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hans/
2026-03-28 16:03:57 +01:00
Edson Wolf
5904384664 Translated using Weblate (Portuguese)
Currently translated at 100.0% (376 of 376 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-03-28 16:03:56 +01:00
Roland Geider
f9b005a0fd Merge pull request #1155 from JohnWeidner/fix/replace-eol-sqlite3-flutter-libs
fix: replace EOL sqlite3_flutter_libs with drift_flutter
2026-03-28 16:03:48 +01:00
John Weidner
e1968d0b2f fix: request historical data access from Health Connect
Call requestHealthDataHistoryAuthorization() on Android after initial
permission grant. Without this runtime request, Health Connect limits
data access to the last 30 days regardless of the manifest permission.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:53:49 -05:00
John Weidner
a4d03bcc46 feat: import all health history instead of last 30 days
Remove the 30-day lookback limit on initial sync. Pull all available
weight data from Health Connect on first enable. Add
READ_HEALTH_DATA_HISTORY permission to AndroidManifest to allow
reading data older than 30 days.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:44:43 -05:00
John Weidner
86246ac947 refactor: use l10n for health sync user-facing strings
Add healthSync, healthSyncDescription, healthSyncSuccess, and health
keys to app_en.arb and use AppLocalizations instead of hardcoded
English strings in the settings tile and settings page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:42:08 -05:00
John Weidner
2f10ee9a5d refactor: simplify health sync code after review
- Use existing isSameDayAs() extension in findByDate() instead of
  manual year/month/day comparison
- Build a Set of existing timestamps for O(1) dedup lookups instead
  of O(n*m) .any() scan per data point
- Simplify nullable bool check (_isAvailable != true)
- Remove comments that restate the code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:38:48 -05:00
John Weidner
627b8b9fd8 fix: unit conversion on enable, dashboard refresh, and permission check
- Pass isMetric to enableSync() so the initial sync from the settings
  toggle converts kg to lb when the user's profile is set to lb
- Refresh BodyWeightProvider after sync from settings tile so the
  dashboard and weight screen update immediately
- Fix DashboardWeightWidget to compute sensibleRange() inside the
  Consumer builder so it rebuilds when weight data changes
- Add permission check in syncOnAppOpen() for app restart scenarios
- Add unit tests for weight conversion logic and HealthSyncState

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:32:53 -05:00
John Weidner
bed1416975 Merge branch 'master' into feat/health-platform-weight-sync 2026-03-27 15:57:15 -05:00
John Weidner
7760efc9e3 fix: replace EOL sqlite3_flutter_libs with drift_flutter
sqlite3_flutter_libs 0.6.0+eol no longer bundles the native SQLite
library correctly on newer Android toolchains, causing a
DriftRemoteException on startup (dlopen failed: libsqlite3.so not found).

Replace it with drift_flutter which is the current recommended package
for providing native SQLite to drift databases. Also suppress the
StackFrame assertion error from the stack_trace package that was masking
the real error.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 15:56:37 -05:00
John Weidner
7bab9b617e feat: add unit label to weight form and convert health sync values
- Show "Weight (kg)" or "Weight (lb)" on the weight entry form based on
  the user's profile preference
- Convert health sync values from kg to lb before POSTing when the user's
  profile is set to lb
- Check/request health permissions on sync to handle app restart
- Fix weight form tests to provide UserProvider mock

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 15:44:34 -05:00
John Weidner
a92897b2f9 feat: add automatic weight sync from Apple Health and Google Health Connect
Import body weight data from Apple Health (iOS) and Google Health Connect
(Android) into wger when the app is opened. Uses the Flutter `health` package
for cross-platform access. Feature is opt-in via a settings toggle.

Key changes:
- Add HealthSyncNotifier (Riverpod) for sync orchestration
- Add HealthSyncSettingsTile in settings page
- Add health package dependency and platform permissions
- Fix WeightEntry.copyWith parameter type (int? -> num?)
- Fix BodyWeightProvider.findByDate() to use calendar-date comparison
- Raise Android minSdkVersion to 26 (Health Connect requirement)
- Change MainActivity to extend FlutterFragmentActivity

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 14:12:49 -05:00
Sarthak
733a880280 fix(measurements): restore complete forms.dart with only selectableDayPredicate removed 2026-03-22 16:05:55 +05:30
Roland Geider
42a266e42c Merge branch 'master' into fork/darshAnup24/feature/min-server-version-check 2026-03-21 14:04:42 +01:00
Roland Geider
4dd1e5ff28 Remove actions here
There's not really anything to go back to
2026-03-21 13:51:35 +01:00
Roland Geider
3ea4713a74 Use UUIDv7, as in the backend 2026-03-21 13:41:50 +01:00
Sarthak
a4ea771985 feat(measurements): remove date restriction to allow multiple entries per day 2026-03-18 22:55:37 +05:30
Roland Geider
373b0002de Merge pull request #1148 from wger-project/dependabot/pub/fl_chart-1.2.0
Bump fl_chart from 1.1.1 to 1.2.0
2026-03-17 12:21:02 +01:00
dependabot[bot]
5a21cc9c8f Bump fl_chart from 1.1.1 to 1.2.0
Bumps [fl_chart](https://github.com/imaNNeo/fl_chart) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/imaNNeo/fl_chart/releases)
- [Changelog](https://github.com/imaNNeo/fl_chart/blob/main/CHANGELOG.md)
- [Commits](https://github.com/imaNNeo/fl_chart/compare/1.1.1...1.2.0)

---
updated-dependencies:
- dependency-name: fl_chart
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 00:54:18 +00:00