Commit Graph

4769 Commits

Author SHA1 Message Date
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
Roland Geider
e6c703cee9 Merge pull request #1313 from bentucker/fix/session-clear-deadlock
fix(auth): do not await PowerSync disconnect during session clear
2026-08-13 13:27:46 +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
Github-Actions
9799448ede Bump version to 2.0.4 2.0.4 2026-08-11 19:20:57 +00:00
Roland Geider
5ebda174cd Add missing title 2026-08-11 21:03:10 +02:00
Roland Geider
5903dc205a Update Gemfile.lock 2026-08-11 20:55:51 +02:00
Roland Geider
19e4c2ef90 Merge pull request #1311 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-08-11 20:55:41 +02: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
7e3a84b82e Bump flutter version 2026-08-10 13:50:26 +02:00
Roland Geider
33e8cb1f0a Bump dependencies 2026-08-10 13:43:22 +02:00
Roland Geider
39b3d8822d Merge pull request #1308 from wger-project/dependabot/pub/flutter_secure_storage-11.0.0
Bump flutter_secure_storage from 10.3.1 to 11.0.0
2026-08-10 13:42:45 +02:00
Roland Geider
3aa8a6c628 Compile against SDK 37 for flutter_secure_storage 11 2026-08-10 13:36:21 +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
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
dependabot[bot]
fc9d1f1324 Bump flutter_secure_storage from 10.3.1 to 11.0.0
Bumps [flutter_secure_storage](https://github.com/mogol/flutter_secure_storage) from 10.3.1 to 11.0.0.
- [Release notes](https://github.com/mogol/flutter_secure_storage/releases)
- [Commits](https://github.com/mogol/flutter_secure_storage/compare/v10.3.1...flutter_secure_storage-v11.0.0)

---
updated-dependencies:
- dependency-name: flutter_secure_storage
  dependency-version: 11.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 00:54:54 +00: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
e5bfe3bce4 Merge pull request #1305 from wger-project/dependabot/bundler/ios/json-2.21.2
Bump json from 2.21.1 to 2.21.2 in /ios
2026-08-09 22:56:45 +02:00
Roland Geider
903f3bad9f Merge pull request #1307 from wger-project/better-powersync-logging
Better (powersync) logging
2026-08-09 22:56:18 +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
Jure Repinc
66e28243f9 Translated using Weblate (Slovenian)
Currently translated at 100.0% (3 of 3 strings)

Translation: wger Workout Manager/Play Store
Translate-URL: https://hosted.weblate.org/projects/wger/play-store/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
Roland Geider
d3316e954a Merge pull request #1306 from Sanji78/master
Fix user profile is unavailable with PowerSync
2026-08-09 13:33:10 +02:00