Commit Graph

992 Commits

Author SHA1 Message Date
Roland Geider
2a596349df Report reachability from the bottom of the client stack 2026-08-21 16:04:52 +02:00
Roland Geider
a9f2c07914 Surface a missing sync endpoint as its own error category 2026-08-21 16:04:21 +02:00
Roland Geider
a0fd3ad0e2 Make one provider the single Connectivity consumer 2026-08-21 15:29:52 +02:00
Roland Geider
9cb25ad538 Guard the probe pass against a mid-flight invalidation 2026-08-21 15:10:01 +02:00
Roland Geider
a63844aba4 Keep the watchdog armed across an offline window 2026-08-21 15:06:33 +02:00
Roland Geider
42f2e9643d Treat every network error as a quiet upload retry 2026-08-21 15:03:17 +02:00
Roland Geider
7f7384ea35 Catch Errors at the upload isolate boundary too 2026-08-21 14:55:20 +02:00
Roland Geider
74fbb9db95 Coalesce overlapping reachability probes 2026-08-21 14:51:09 +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
d3749ac37c Report the local sync counters in bug reports 2026-08-15 20:22:19 +02:00
Roland Geider
fb88facda9 Report the local sync counters in bug reports 2026-08-15 20:20:19 +02:00
Roland Geider
5e866de396 Let a probe misfire not restart the stall detection 2026-08-15 20:16:06 +02:00
Roland Geider
9a97202dd4 Cleanup 2026-08-14 17:37:47 +02:00
Roland Geider
6e5555fe2f Mark the probe as in flight before the connectivity lookup 2026-08-14 16:09:32 +02:00
Roland Geider
fdee8e6935 Tell "connecting" apart from "offline" in the sync icon 2026-08-14 15:47:56 +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
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
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
15fd579d15 Repair tests that could not fail 2026-08-10 11:04:23 +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
3a05492528 Pin the watchdog replay case and the 403 auth semantics 2026-08-10 09:58:53 +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
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
9f8e27b2f2 Updated goldens 2026-08-04 13:01:36 +02:00
Roland Geider
5c77a99bfc Apply dynamic color to the high contrast themes too 2026-08-04 12:19:52 +02:00
Roland Geider
762b679eac Only offer dynamic color where the platform supports it 2026-08-04 12:10:34 +02:00
Roland Geider
07aa325ec5 Generate chart colors from the scheme instead of a fixed palette 2026-08-04 11:24:10 +02:00
Roland Geider
f3b5ccc481 Re-seed the dynamic palette instead of using it verbatim 2026-08-03 23:49:34 +02:00
Praharsha2007
d2dacb116d feat : implemented dynamic colour support 2026-08-03 21:15:00 +05:30
Roland Geider
c334ce6695 Wait for the user profile before hydrating a routine 2026-07-30 22:15:44 +02:00
Roland Geider
88f72a64bd Fix the unit dropdowns in the slot entry form discarding the selection 2026-07-30 21:50:41 +02:00
Roland Geider
fe6d0a59df Default the weight unit from the profile for app-created entries and ad-hoc exercises 2026-07-30 21:47:01 +02:00
Roland Geider
ee0313b458 Merge remote-tracking branch 'origin/master' into default-weight-profile
# Conflicts:
#	lib/features/routines/providers/routines_notifier.dart
#	lib/features/routines/providers/routines_notifier.g.dart
#	test/features/exercises/providers/exercise_filters_notifier_test.mocks.dart
#	test/features/routines/helpers/routine_form_test_overrides.dart
#	test/features/routines/models/log_test.dart
#	test/features/routines/providers/routines_notifier_test.dart
#	test/features/routines/providers/routines_notifier_test.mocks.dart
#	test/features/routines/widgets/forms/routine_form_test.dart
2026-07-30 21:14:16 +02:00