2742 Commits

Author SHA1 Message Date
Roland Geider
ffc21b00fe Merge branch 'feature/1130-workout-timer' 2026-07-24 13:59:40 +02:00
Roland Geider
44c111376d Allow to configure showing and hiding the workout duration 2026-07-24 13:55:03 +02:00
Roland Geider
ac3b463304 Some cleanup 2026-07-24 13:40:41 +02:00
Roland Geider
b277e81088 Detect a sync stream that is blocked on the network path
This might help debugging when an ad-blocker, vpn or similar interferes with
the connections to the sync service

See #1271
2026-07-23 14:56:29 +02:00
Roland Geider
ed623f9108 Improve PowerSync sync diagnostics and token expiry handling 2026-07-23 13:58:06 +02:00
Arya
2f60553a99 Add elapsed workout timer and update workout start time handling 2026-07-23 17:13:02 +05:30
tomorigabor
f5af6511c9 Translated using Weblate (Hungarian)
Currently translated at 100.0% (454 of 454 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hu/
2026-07-21 20:01:29 +00:00
tomorigabor
d9e92a619e Translated using Weblate (Hungarian)
Currently translated at 9.4% (43 of 454 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hu/
2026-07-20 20:55:57 +02:00
tomorigabor
968dbc1027 Translated using Weblate (Hungarian)
Currently translated at 8.5% (38 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hu/
2026-07-20 20:55:57 +02:00
Roland Geider
938001b152 Optimistically set the online status
This avoids having the app register as "offline" after bringing it back from
the background
2026-07-17 21:31:29 +02:00
Roland Geider
6e0592d82b Merge pull request #1257 from mmustafasenoglu/fix/null-routine-id-crash
fix: make routineId nullable to prevent crash on free workout logs
2026-07-17 18:35:10 +02:00
Roland Geider
db98af0ac7 Make sure the code can work with nullable routines in workout logs 2026-07-17 18:25:22 +02:00
Mustafa Senoglu
0a42125285 chore: regenerate database.g.dart for nullable routineId 2026-07-10 12:43:45 +03:00
Mustafa Senoglu
cc483f3dae fix: make routineId nullable in WorkoutLogTable to prevent crash
Server allows workout logs without a routine (free/ad-hoc logging),
but the app's Drift table declared routineId as non-nullable.
This caused a null check operator crash when PowerSync delivered
a row with routine_id = NULL.

Changes:
- WorkoutLogTable.routineId: integer() → integer().nullable()
- Log.routineId: late int → int?
- Log constructor: required this.routineId → this.routineId
- Log.toCompanion: handle null routineId with Value.absent()

Fixes #1250
2026-07-09 14:15:04 +03:00
Roland Geider
f4eef63a59 Merge remote-tracking branch 'origin/master' into feature/weblate 2026-07-09 13:12:52 +02:00
Roland Geider
388b403b5d Cleanup some of the new translation keys 2026-07-09 12:45:06 +02:00
Roland Geider
79d663f17f Move gym-mode settings directly into GymModeOptions
I'd say the widget is not big enough to be split up (yet)
2026-07-09 12:01:34 +02:00
Roland Geider
275523f75b Take the repetition unit ID into account while deduping 2026-07-08 17:49:38 +02:00
Roland Geider
569c51c98a Fix setLogScopeWeeks
We now pass clearLogScopeWeeks so that selecting "current routine" actually
resets the scope instead of keeping the previous week count
2026-07-08 17:00:41 +02:00
pankaj-basnet
583982ba1d feat(gym-mode): add logScopeWeeks and showDistinctLogs to GymModeState
- implement persistence for log scope and distinct settings
- refactor(logs): update pastExerciseLogsProvider to support custom scope and deduplication
- feat(ui): add log scope controls to StartPage and LogPage
2026-07-07 22:40:25 +05:45
Roland Geider
290b991311 Consolidate snackbar calls code into a helper 2026-07-01 22:46:26 +02:00
Roland Geider
0d198745ec Consolidate formatting code into a helper 2026-07-01 22:37:37 +02:00
Roland Geider
434ec11fed Localize the date-range form validators
The translations were taken from the react repo
2026-07-01 22:30:30 +02:00
Roland Geider
60c9f67282 Move shared infra to lib/core/ 2026-07-01 20:28:06 +02:00
Roland Geider
c4f5c78459 Move auth UI to lib/features/auth/ 2026-07-01 18:34:24 +02:00
Roland Geider
a46bd22025 Move account feature to lib/features/account/ 2026-07-01 18:28:10 +02:00
Roland Geider
8b929b23c1 Move routines feature to lib/features/routines/ 2026-07-01 18:22:50 +02:00
Roland Geider
33fbe279ca Move nutrition feature to lib/features/nutrition/ 2026-07-01 17:57:49 +02:00
Roland Geider
08fe476e5b Move exercises feature to lib/features/exercises/ 2026-07-01 17:45:43 +02:00
Roland Geider
21ea4dbc54 Move gallery feature to lib/features/gallery/ 2026-07-01 17:30:11 +02:00
Roland Geider
ae513e3566 Move trophies feature to lib/features/trophies/ 2026-07-01 17:21:18 +02:00
Roland Geider
9a393465f3 Move trophies feature to lib/features/trophies/ 2026-07-01 17:09:45 +02:00
Roland Geider
ae81c32a23 Move weight feature to lib/features/weight 2026-07-01 16:55:09 +02:00
Roland Geider
09da3a5672 Refactor measurement category form to use common behaviour 2026-07-01 11:00:28 +02:00
Roland Geider
e8951ca8cb Refactor session models and their use in forms
We now either pass the existing workout session to edit, or null if we want
to add a new entry
2026-07-01 10:59:52 +02:00
Roland Geider
b9d326045b Prefill start and end times for lazily created sessions 2026-07-01 10:59:52 +02:00
Milo Ivir
6721006bf0 Translated using Weblate (Croatian)
Currently translated at 100.0% (446 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-06-28 14:01:20 +00:00
Hanaa
f600a33c56 Translated using Weblate (Arabic)
Currently translated at 88.1% (393 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-06-26 23:05:24 +02:00
Edson Wolf
7b47647109 Translated using Weblate (Portuguese (Brazil))
Currently translated at 93.4% (417 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-06-25 18:20:50 +00:00
Milo Ivir
b4748c5527 Translated using Weblate (Croatian)
Currently translated at 99.5% (444 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-06-25 18:20:49 +00:00
E Ta
699f9ddd08 Translated using Weblate (Arabic)
Currently translated at 87.8% (392 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-06-25 18:20:49 +00:00
Milo Ivir
7d8928ae6b Translated using Weblate (Croatian)
Currently translated at 88.3% (394 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-06-25 18:20:48 +00:00
Edson Wolf
d350bae4a4 Translated using Weblate (Portuguese (Brazil))
Currently translated at 86.9% (388 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-06-25 18:20:47 +00:00
E Sa
ec2c8fe9d1 Translated using Weblate (Arabic)
Currently translated at 82.7% (369 of 446 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-06-25 18:20:46 +00:00
Roland Geider
bb82e4b75b Add a small lookup table for exercises
This also consolidates some search functions to use getByIdOrNull
2026-06-25 20:20:31 +02:00
Roland Geider
9122cc1a1e Debounce drift table updates
This can be a problem during the very first sync, where all exercises, units,
ingredients are loaded and rebuild on every new data point.
2026-06-25 20:20:31 +02:00
Roland Geider
564e25b04c Load the logs from the DB directly
This makes sure the past logs list is updated immediately
2026-06-24 21:10:50 +02:00
Roland Geider
54e0634581 Don't try to load user trophies in the gym mode when offline 2026-06-24 20:25:01 +02:00
Roland Geider
65dbf426cf Use ValueKey instead of accessing uuid directly
This would crash on objects that don't have any uuid attribute, such as the Language.
ValueKey works on all of them, as long as they are equatable.

Closes #1236
2026-06-23 15:32:42 +02:00
Roland Geider
3eb7974390 Remove hard coded color for icons
This makes them easier to see in dark mode
2026-06-22 11:08:45 +02:00