Roland Geider
cb7faba67b
Keep a profile save away from the timezone column
2026-08-24 15:56:23 +02:00
Roland Geider
1b80ad5ee1
Write only the timezone column when reporting the zone
2026-08-23 23:54:09 +02:00
Roland Geider
0602244172
Report the device timezone to the profile
2026-08-23 23:19:38 +02:00
Roland Geider
185e5341ba
Merge remote-tracking branch 'origin/master' into feature/release-2.7
2026-08-21 22:37:02 +02:00
Roland Geider
d62d0e8f8c
Merge pull request #1326 from charugupta-dev/fix/145-muscle-widget-duplicates
...
Handle duplicate muscles on muscle overview
2026-08-21 21:36:31 +02:00
Roland Geider
c69a34c2f1
Simplify duplicate muscle handling in MuscleWidget
...
A muscle id uniquely identifies a muscle, so matching by id and matching by
value are equivalent here.
2026-08-21 20:58:06 +02:00
Roland Geider
2c26c93d68
Merge remote-tracking branch 'origin/master' into fix/build-phase-ui-side-effects
2026-08-21 18:01:56 +02:00
Roland Geider
a0fd3ad0e2
Make one provider the single Connectivity consumer
2026-08-21 15:29:52 +02:00
Roland Geider
5be9ebf975
Let the measurement card footer shrink
2026-08-20 23:46:53 +02:00
Roland Geider
34b9b97081
Allow disabling the average and the trend lines
2026-08-20 18:56:51 +02:00
Roland Geider
16bc83c306
Allow users setting up calculated categories
2026-08-20 16:53:10 +02:00
Charu7596
067ce06a80
Handle duplicate muscles in MuscleWidget
...
Ensure muscles appearing in both primary and secondary lists only render the primary background, and deduplicate muscles by ID within each list. Fixes #145
2026-08-20 12:48:15 +05:30
Roland Geider
501478fdc1
Improve handling of days with more than one session
2026-08-19 21:33:52 +02:00
Ben Tucker
fe33f693a8
fix(core): make UI side effects and provider reads safe during build
...
Errors handled while the widget tree is building crashed or wedged the
app in three related ways:
- FlutterError.onError showed dialogs and snackbars synchronously.
Pushing a route mid-build trips the navigator's !_debugLocked
assertion, and because the one-dialog guard was set before showDialog
threw, its release never attached: every later error dialog was then
silently suppressed while nothing was on screen, leaving a blank,
unresponsive app until restart. Snackbars crashed outright via the
messenger's setState.
- The sync status and barcode dialogs did ref.read inside their route
builders, which run during build. With the provider chain dirty (any
token refresh dirties wgerBase -> auth), the read flushed it there and
Riverpod scheduled a scope refresh mid-build. The barcode builder also
created its search future inline, re-firing the search on every dialog
rebuild.
- Provider create bodies that widgets watch during build read providers
synchronously: the dashboard's routine hydration chain crashed on cold
start right after a token refresh, and TrophyStateNotifier.build()
has the same shape in the post-login window, where invalidation order
left networkStatusProvider dirty while its dependents rebuilt.
lib/core/build_safety.dart adds the two idioms as helpers: runAfterFrame
defers UI side effects past the build phase, yieldPastBuild yields
provider create bodies past their synchronous phase (a microtask, not a
timer, since widget tests assert !timersPending at teardown). The error
dialog guard is released when the context is gone or the push fails, the
snackbar helpers re-resolve the messenger inside the callback, the
dialog builders snapshot their providers in the tap handler, and
post-login invalidation runs leaf-first. Regression tests cover each
shape.
2026-08-16 17:29:43 -05:00
Roland Geider
534d349d19
Read the calculated categories
2026-08-15 15:38:27 +02:00
Roland Geider
abd8355e40
Updated goldens
2026-08-14 18:52:55 +02:00
Roland Geider
9a97202dd4
Cleanup
2026-08-14 17:37:47 +02:00
Roland Geider
e794ee6bba
Let user actions try the server instead of trusting a cached status
2026-08-14 15:42:14 +02:00
Roland Geider
a986091ab8
Make the network status follow real traffic instead of a 1s probe
2026-08-14 15:20:45 +02:00
Roland Geider
5e332e18aa
Connect PowerSync on the adapter state, not on the reachability probe
2026-08-14 14:52:49 +02:00
Roland Geider
dc9b8367a6
Compare the chart bounds against the format the sync writes
2026-08-13 19:09:27 +02:00
Roland Geider
06d11b58c2
Catch a refused permission request on the health retry tile
2026-08-13 19:04:21 +02:00
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
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
14c6fedefd
Cover the session lookup for logs inside a closed session
2026-08-13 18:10:25 +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
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
a428aa1447
Updated goldens
2026-08-10 15:25:17 +02:00
Roland Geider
520504a1b2
Merge branch 'master' into feature/health-sync
2026-08-10 15:13:43 +02:00
Roland Geider
aaf9abf40e
Make the offline create guard in the routine form falsifiable
2026-08-10 13:08:02 +02:00
Roland Geider
d2556d38fa
Cover the offline gates on the routine list and slot form
2026-08-10 12:57:14 +02:00
Roland Geider
024d6f246c
Consolidate the test helpers in test/helpers/
2026-08-10 12:40:16 +02:00
Roland Geider
6536f2ce26
Consolidate the test fixtures and stop leaking the test surface size
2026-08-10 12:29:14 +02:00
Roland Geider
019622d182
Cover the 2FA screen's edges
2026-08-10 12:14:04 +02:00
Roland Geider
bb5eb344b0
Repair tests that could not fail
2026-08-10 11:43:23 +02:00
Roland Geider
2ca6644994
Cover the extended exercise search and the submit error paths
2026-08-10 11:42:02 +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
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
fb05d1e872
Log network state changes and the sync connection
2026-08-09 22:43:40 +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