Commit Graph

2947 Commits

Author SHA1 Message Date
Roland Geider
17bb00a78c Read the full history only for newly readable health types 2026-08-13 18:58:46 +02:00
Roland Geider
964a4df7a6 Clean up leftovers around the session and measurement forms 2026-08-13 18:43:17 +02:00
Roland Geider
284447b32a Reorder setting tiles 2026-08-13 18:39:12 +02:00
Roland Geider
2babef22b1 Format the health aggregate day without DateFormat 2026-08-13 18:38:13 +02:00
Roland Geider
d29e25de9b Throttle the health sync on app start 2026-08-13 18:34:01 +02:00
Roland Geider
47b91b0ad7 Show chart errors on the dashboard weight card 2026-08-13 18:27:54 +02:00
Roland Geider
495ae9f1dd Reject a session end before its start again 2026-08-13 18:06:51 +02:00
Roland Geider
fdbbdfc1d3 Merge PR #1260 (health sync) for 2.7 integration testing
# Conflicts:
#	lib/core/consts.dart
#	lib/core/network/auth_notifier.g.dart
#	lib/l10n/app_en.arb
#	pubspec.yaml
#	test/core/validators_test.mocks.dart
#	test/features/routines/providers/routines_repository_test.mocks.dart
#	test/screenshots/screenshots_03_gym_mode.dart
2026-08-13 14:22:32 +02:00
Roland Geider
dd2e37828d Merge PR #1248 (cross-midnight session split fix) for 2.7 integration testing
# Conflicts:
#	lib/core/network/auth_notifier.g.dart
#	lib/features/routines/providers/workout_logs_repository.dart
#	test/features/routines/providers/workout_logs_repository_test.dart
2026-08-13 14:13:53 +02:00
Roland Geider
4fd83ce202 Merge PR #1309 (remove old API token exchange) for 2.7 integration testing
# Conflicts:
#	lib/core/network/network_provider.g.dart
#	lib/database/powersync/powersync.g.dart
2026-08-13 14:10:24 +02:00
Roland Geider
6eb6197923 Set the day on sessions created automatically for logs
See https://github.com/wger-project/wger/issues/2460
2026-08-13 14:05:30 +02:00
Ben Tucker
57fe12677c fix(auth): do not await PowerSync disconnect during session clear
A rejected refresh token runs clearSessionOnly inside the single-flight
refresh future. PowerSync's disconnect can block on an in-flight sync
fetch that is itself awaiting that same refresh future through
AuthHttpClient's pre-emptive refresh, closing a three-party cycle
(refresh -> disconnect -> sync fetch -> refresh) that permanently wedges
every authenticated request behind the never-completing refresh. The
session-expired message never appears because it is sequenced after the
hanging call, and an app restart re-triggers the same rejected refresh
during startup revalidation, so the deadlock re-forms immediately.

On the keep-data path the DB is not wiped, so there is no re-attach race
to guard against; the disconnect is only a courtesy stop of the sync
loop and is now fire-and-forget. The wipe path (explicit logout) keeps
its ordering. The disconnect hook is injectable for tests because
PowerSyncDatabase is a base class that cannot be faked.
2026-08-12 19:08:24 -05:00
Ninguém Mesmo
3866b2668a Translated using Weblate (Portuguese)
Currently translated at 83.0% (388 of 467 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-08-11 12:51:24 +00:00
Roland Geider
8fb4b12652 Rename the session times to datetimeStart and datetimeEnd 2026-08-10 17:53:03 +02:00
Roland Geider
2fbe9d59e1 Merge remote-tracking branch 'origin/master' into fix/midnight-workout-session-split--backend-2379
# Conflicts:
#	lib/features/routines/models/session.dart
#	lib/features/routines/providers/gym_state.dart
#	lib/features/routines/providers/workout_logs_repository.dart
#	lib/features/routines/widgets/forms/session.dart
#	lib/features/routines/widgets/gym_mode/session_page.dart
2026-08-10 17:16:55 +02:00
Roland Geider
520504a1b2 Merge branch 'master' into feature/health-sync 2026-08-10 15:13:43 +02:00
Roland Geider
98373438ab Cover the routine carry-forward, supersets and the resume path 2026-08-10 10:29:22 +02:00
Roland Geider
e1af4c7ae7 Count calendar days in daysInRange 2026-08-10 10:09:21 +02:00
Roland Geider
8df72293b5 Test the persistence base layer 2026-08-10 09:46:27 +02:00
Roland Geider
7ac0a1ebeb Include measurements taken on the end day of a chart window 2026-08-10 09:24:16 +02:00
Roland Geider
8178d2bcaf Persist cleared fields when editing local rows 2026-08-10 09:24:01 +02:00
Roland Geider
a582ae9a03 Remove dead RiR placeholder and log target status code 2026-08-10 00:21:10 +02:00
Roland Geider
5aad78ce25 Merge pull request #1295 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-08-09 22:57:05 +02:00
Roland Geider
aaacb6484c Keep the application logs across a restart 2026-08-09 22:49:04 +02:00
Roland Geider
a460d2ea33 Let the sync watchdog fire on a permanent error loop 2026-08-09 22:48:28 +02:00
Roland Geider
b5cf828cb0 Add a setting for detailed logging 2026-08-09 22:47:48 +02:00
Roland Geider
9fdb13428b Add a filter and copy buttons to the log overview 2026-08-09 22:46:18 +02:00
Roland Geider
fb05d1e872 Log network state changes and the sync connection 2026-08-09 22:43:40 +02:00
Roland Geider
cc79af6188 Add exception text and UTC timestamps to the application logs 2026-08-09 22:42:36 +02:00
Roland Geider
7b6306703b Remove old API token exchange 2026-08-09 21:04:49 +02:00
Roland Geider
df2791a1f7 Keep pre-2.7 measurement rows readable 2026-08-09 18:42:49 +02:00
Roland Geider
bb7ed8fa23 Say how long ago a tile's value was measured 2026-08-09 15:19:23 +02:00
Roland Geider
d30482a869 Default the measurement charts to one month 2026-08-09 13:54:46 +02:00
Roland Geider
b5d092cfcc Persist the shared chart range 2026-08-09 13:45:12 +02:00
Jure Repinc
db638ce924 Translated using Weblate (Slovenian)
Currently translated at 100.0% (465 of 465 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/sl/
2026-08-09 11:33:23 +00:00
E Ta
32e8d3c6b7 Translated using Weblate (Arabic)
Currently translated at 86.2% (400 of 464 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-08-09 11:33:22 +00:00
E Ta
1ef51437ae Translated using Weblate (Arabic)
Currently translated at 85.3% (396 of 464 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/ar/
2026-08-09 11:33:21 +00:00
Sanji78
a9011c54c7 Fix user profile is unavailable with PowerSync 2026-08-09 09:11:13 +02:00
Roland Geider
002ff5495f Share the chart range across the measurement screens 2026-08-08 17:49:48 +02:00
Roland Geider
251689cd31 Rebuild the measurements overview as a tile grid 2026-08-08 16:44:10 +02:00
Roland Geider
2ec683d18d Keep the chart tooltips inside the chart 2026-08-07 22:23:00 +02:00
Roland Geider
62e06d63a4 Share the quick steppers and the date-time pair 2026-08-07 22:05:48 +02:00
Roland Geider
d6de435c6b Make the measurements a tab of their own, led by the weight 2026-08-07 21:46:23 +02:00
Roland Geider
795437777e Drop the chart title where the screen already says it 2026-08-07 21:08:43 +02:00
Roland Geider
d517e1f9cf Drop the "count" unit from step categories 2026-08-07 17:04:11 +02:00
Roland Geider
9cd9aaac17 Import lean body mass from the health platforms 2026-08-07 16:48:42 +02:00
Roland Geider
3855dbc423 Import blood oxygen from the health platforms 2026-08-07 16:24:18 +02:00
Roland Geider
3dc9789500 Activate the rest of the metric types 2026-08-07 14:42:19 +02:00
Roland Geider
4f2265907e Give the distribution chart the height it is drawn in 2026-08-07 14:22:22 +02:00
Roland Geider
0329f3fde3 Give the measurement entry form a draft 2026-08-07 11:20:23 +02:00