Commit Graph

2826 Commits

Author SHA1 Message Date
Roland Geider
a6534dbbd0 Reuse the dialog's local-counter snapshot for the report button 2026-08-21 16:05:02 +02:00
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
94d8352c3d Arm the sync watchdog inside connectPowerSync 2026-08-21 15:00:13 +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
23291513dc Fix logger name 2026-08-14 16:10:20 +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
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
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
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
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
a1f4844f6c Replace more hard coded colors with theme generated ones 2026-08-04 11:52:29 +02:00
Roland Geider
1af9471ef4 Replace more hard coded colors with theme generated ones 2026-08-04 11:41:17 +02:00
Roland Geider
2c63aa0e21 Replace more hard coded colors with theme generated ones 2026-08-04 11:35:32 +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
33750a19b1 Paint the macro gauges in the theme's primary color 2026-08-04 00:20:21 +02:00
Roland Geider
ec20dd45de Use theme colors instead of fixed ones 2026-08-04 00:01:39 +02:00
Roland Geider
f3b5ccc481 Re-seed the dynamic palette instead of using it verbatim 2026-08-03 23:49:34 +02:00