222 Commits

Author SHA1 Message Date
Roland Geider
46fb9461b0 Show the default dashboard while the settings load 2026-08-27 23:48:11 +02:00
Roland Geider
ead0c90c80 Let the measurement charts fill the card they sit in 2026-08-27 19:18:21 +02:00
Roland Geider
ceaacb5478 Reduce the measurements FAB to starting a new metric 2026-08-27 19:08:32 +02:00
Roland Geider
1d9a7d8819 Stop the routines repository from watching the auth chain 2026-08-27 19:01:58 +02:00
Roland Geider
37371dbfbc Allow logging a reading straight from the overview 2026-08-27 18:51:48 +02:00
Roland Geider
d2b28edf28 Persist the health sync watermarks per finished metric 2026-08-27 15:52:17 +02:00
Roland Geider
c1241c17c7 Show how far a running health sync has come 2026-08-27 15:52:17 +02:00
Roland Geider
db054ca4c1 Trim and consolidate more translation strings 2026-08-26 13:41:16 +02:00
Roland Geider
8b6b16e0a3 Trim and consolidate the new measurement strings 2026-08-26 13:00:35 +02:00
Roland Geider
14b80c2907 Add notes to the weight form 2026-08-25 22:44:54 +02:00
Roland Geider
58a58ccfc2 Cleanup 2026-08-25 21:55:37 +02:00
Roland Geider
2d441898d0 Give the category form's build() its sections 2026-08-25 15:12:26 +02:00
Roland Geider
4adef2336b Split the health importer 2026-08-25 15:07:50 +02:00
Roland Geider
77155d64dd Remove unused symbols 2026-08-25 14:34:04 +02:00
Roland Geider
62cf7392d0 Keep the min/max band when single points carry no spread 2026-08-25 14:23:16 +02:00
Roland Geider
b76f6a1c8a Split up the measurement chart layer 2026-08-25 14:18:25 +02:00
Roland Geider
455e5fd85c Create measurement groups through the transactional repository helper 2026-08-25 13:58:16 +02:00
Roland Geider
a2a601951c Save the weight form through a draft and share the group component rows 2026-08-25 13:50:11 +02:00
Roland Geider
a8c54a8944 Render the dashboard weight card through CategoriesCard 2026-08-25 13:42:44 +02:00
Roland Geider
d3b71d6d89 Stream the health import one read window at a time 2026-08-25 13:04:49 +02:00
Roland Geider
3a931f5b86 Keep the oldest calendar day of a chart range 2026-08-24 22:56:05 +02:00
Roland Geider
93f30d7874 Stop echoing the metric type on category updates 2026-08-24 16:47:39 +02:00
Roland Geider
a374ad3e70 Cut the session calendar days in the owner's timezone 2026-08-24 16:38:42 +02:00
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
095323f29b Merge pull request #1327 from wger-project/feature/better-online-gating
Better online gating
2026-08-21 17:48:01 +02:00
Roland Geider
2073d462e6 Show a plain outage as disconnected, not as a sync error 2026-08-21 14:46:27 +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
2374e1b0ba Replace flutter_svg_icons with a local SvgIcon widget 2026-08-15 21:52:07 +02:00
Roland Geider
67ed4d8ca1 Report the local sync counters in bug reports 2026-08-15 18:39:27 +02:00
Roland Geider
534d349d19 Read the calculated categories 2026-08-15 15:38:27 +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
3b54903fea Keep global symbols when stripping the Apple release builds
Closes #1315 (more like a workaround)
2026-08-13 19:32:15 +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
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