Commit Graph

38 Commits

Author SHA1 Message Date
Roland Geider
48dc290224 Renew an expired token instead of dropping the upload 2026-09-06 15:48:13 +02:00
Roland Geider
ad8d8b0a8f Report a rejected upload once per refusal, not once per row 2026-08-29 14:45:28 +02:00
Roland Geider
9e9f2b1fbf Time out hanging token fetches instead of freezing the sync 2026-08-28 10:48:22 +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
a9f2c07914 Surface a missing sync endpoint as its own error category 2026-08-21 16:04:21 +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
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
afaa58c34e Report the local sync counters in bug reports 2026-08-15 19:21:05 +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
8fb4b12652 Rename the session times to datetimeStart and datetimeEnd 2026-08-10 17:53:03 +02:00
Roland Geider
45aeda7ac0 Merge branch 'master' into feature/health-sync
# Conflicts:
#	lib/l10n/app_de.arb
#	lib/l10n/app_es.arb
#	lib/l10n/app_fr.arb
2026-07-28 22:39:59 +02:00
Roland Geider
3ee512fd6c More intelligent powersync service URL handling
When the server-provided powersync URL is not reachable, try using $server-url/ps/.
This should help with self-hosted instances where SITE_URL points to localhost
or other similar misconfigurations

See https://github.com/wger-project/wger/issues/2432
2026-07-28 15:06:34 +02:00
Roland Geider
ed623f9108 Improve PowerSync sync diagnostics and token expiry handling 2026-07-23 13:58:06 +02:00
Roland Geider
18b745f365 Start reworking the sync logic
We don't just want to sync the weight entries
2026-07-02 21:45:53 +02:00
Roland Geider
60c9f67282 Move shared infra to lib/core/ 2026-07-01 20:28:06 +02:00
Roland Geider
5da7da9067 Use proper references in comments, where possible 2026-06-19 10:57:27 +02:00
Roland Geider
ca2530ecab Better error handling for powersync errors
This new logic properly handles retriable and transient errors
2026-06-04 20:41:06 +02:00
Roland Geider
f86ee0838e Add tests for the powersync transaction process logic 2026-06-03 15:03:46 +02:00
Roland Geider
fe5c7bb0ef Regenerate build files 2026-05-22 20:18:49 +02:00
Roland Geider
8fc149741f Edit the user's email via allauth's endpoints 2026-05-22 20:10:47 +02:00
Roland Geider
87a40fd4e6 Switch the pasted-token field from DRF tokens to refresh tokens 2026-05-22 20:08:43 +02:00
Roland Geider
26722a49be Start implementing JWT support 2026-05-22 20:04:42 +02:00
Roland Geider
d0c56c42eb Re-probe the connection to the wger server itself
This is actually the "real" connectivity test, since we need a backend to talk to
2026-05-22 15:52:23 +02:00
Roland Geider
d97de48fee Refactor the error logic
UI related functions have been moved to error_dialogs.dart, while everything else
is kept in errors.dart
2026-05-22 15:50:33 +02:00
Roland Geider
508b552fc7 Remove unused fatalResponseCodes
This was originally copied from the powersync demo app, and is not used here
2026-05-20 21:02:15 +02:00
Roland Geider
a63cce2478 Test the powersync communications with the outer world 2026-05-01 19:22:44 +02:00
Roland Geider
209ab7cbbe Add gallery sync tables 2026-05-01 15:25:31 +02:00
Roland Geider
cbc4fa1f53 Properly handle DateFields
These only accept the "YYYY-MM-DD" format on django's side, so we need
to massage them into the correct shape
2026-04-29 10:35:14 +02:00
Roland Geider
4353f00913 Start handling validation errors from the backend for powersync operations 2026-04-28 21:22:39 +02:00
Roland Geider
30072fb2cc Properly handle timezones for datetime values 2026-04-24 10:35:13 +02:00
Roland Geider
c59fd68fe7 Pass the userID and the expiration to the PowerSync credentials 2026-04-20 17:06:35 +02:00
Roland Geider
e975eee9f2 Refactor the django powersync connector 2025-11-05 16:51:43 +01:00
Roland Geider
c60cfbe347 Add tables for workout sessions 2025-10-26 18:18:22 +01:00
Roland Geider
14ff95a4ff Read the powersync URL from the server's response 2025-10-26 12:40:56 +01:00
Roland Geider
8b8c4626eb Powersync seems to be working now 2025-10-23 15:32:21 +02:00
Roland Geider
017cccab18 Start adding drift and using riverpod 2025-10-22 20:49:38 +02:00