Commit Graph

870 Commits

Author SHA1 Message Date
Roland Geider
62042bd832 Rename allauth's URLs 2026-06-15 14:11:33 +02:00
Roland Geider
54e97299f9 Consolidate usage of FormSubmitButton 2026-06-14 21:48:41 +02:00
Roland Geider
3ec7e23f56 Pass the slotUUID to some gym pages
This makes the logic a bit more robust on null pages
2026-06-14 21:25:10 +02:00
Roland Geider
eae855bef4 Properly handle the case where the token could not be decrypted 2026-06-14 20:51:52 +02:00
Roland Geider
51508d5027 Handle case where after submitting an exercise it is not synced back yet 2026-06-14 20:21:35 +02:00
Roland Geider
30df030e1e Add converter for date-only fields, otherwise comparisons break 2026-06-14 16:19:02 +02:00
Roland Geider
662ad9befc Properly handle timezones 2026-06-05 15:17:32 +02:00
Roland Geider
57947eabe6 Don't default to black text
Otherwise this might be unreadable on dark mode
2026-06-05 14:47:36 +02:00
Roland Geider
16a6cd085d Harden detail screen pages
While not very probable, it can happen that a routine etc was deleted on the server
at the same time that a user had opened its detail page. We also changed the argument
for the nutrition screen to ID, for more consistency with the other ones.
2026-06-05 14:39:49 +02:00
Roland Geider
a4425354fc Add bug preventing the web-handoff workflow from working with self-hosted instances 2026-06-05 13:36:54 +02:00
Roland Geider
3cbe7c99dc Correctly reset the session ID so a new one is generated 2026-06-05 13:26:50 +02:00
Roland Geider
0c10e32157 Make sure the search filters are not rebuilt every time 2026-06-05 13:19:04 +02:00
Roland Geider
63cc163a47 Be more lenient on transient server errors 2026-06-05 13:12:25 +02:00
Roland Geider
41bb7d39d7 Throw exception if the db could not be wiped on logout 2026-06-05 13:11:48 +02:00
Roland Geider
b7674aaf41 Reset the accountProvider on logout 2026-06-05 12:43:34 +02:00
Roland Geider
40e3b560d1 Fix tests 2026-06-04 22:56:35 +02:00
Roland Geider
c795bb4420 Fix empty selection bug 2026-06-04 21:55:38 +02:00
Roland Geider
e29c120d7f Add more validators
Otherwise the server might reject the values (this was already the case)
2026-06-04 21:42:02 +02:00
Roland Geider
5b9be7440c Add more validators to the slot configs
Otherwise the server might reject the values (this was already the case)
2026-06-04 21:26:56 +02:00
Roland Geider
a923574638 Show a bit more info for RetryableUploadException 2026-06-04 21:10:03 +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
0d3d7d7cba Remove unused translation keys 2026-06-04 17:25:34 +02:00
Roland Geider
68428a053e Wipe the local DB only on a real user switch 2026-06-04 16:53:01 +02:00
Roland Geider
1a13785929 Add a new hydration provider family for routines
This makes the code much cleaner, and uses riverpod's own logic to de-dup
2026-06-04 12:39:34 +02:00
Roland Geider
ac2eaff807 Revive log_page_test.dart
This tests log-page-specific logic
2026-06-03 16:14:33 +02:00
Roland Geider
152e5ca7c1 Fold the tests from the log_page_test into gym_mode_test.dart 2026-06-03 16:00:14 +02:00
Roland Geider
ae2c6939fb Use leftOuterJoin in the nutrition sql 2026-06-03 15:26:14 +02:00
Roland Geider
f86ee0838e Add tests for the powersync transaction process logic 2026-06-03 15:03:46 +02:00
Roland Geider
8a626ae2bf Handle (transient) case where an exercise has no translations 2026-06-03 13:06:10 +02:00
Roland Geider
137ad197e4 Properly handle "." and "," for numerical inputs 2026-06-03 12:51:00 +02:00
Roland Geider
fb74e255d4 Remove dependency on wgerBaseProvider
This was causing some circular dependency problems
2026-06-02 19:46:33 +02:00
Roland Geider
14abce70d5 Suppress drift's multiple databases warning
This is only relevant for tests (and only in linux?) and wasn't surfacing any real problems
anyway, so we can safely ignore it.
2026-05-27 12:50:46 +02:00
Roland Geider
759b39379f Updated goldens 2026-05-27 12:15:12 +02:00
Roland Geider
ed757d2171 Slight refactor of appVersion handling 2026-05-27 12:11:37 +02:00
Roland Geider
4deab80e87 Configure shared preferences for the test 2026-05-27 11:39:44 +02:00
Roland Geider
b2250fa8c5 Merge remote-tracking branch 'origin/master' into feature/offline-mode
# Conflicts:
#	lib/widgets/nutrition/ingredient_dialogs.dart
#	lib/widgets/nutrition/widgets.dart
2026-05-27 11:08:31 +02:00
Roland Geider
f4df847511 Extract some logic into their own files
This makes the (still) quite large auth_notifier.dart, a bit more clear and easy
to understand
2026-05-25 23:32:38 +02:00
Roland Geider
9003b46002 Add migration path from old permanent token to JWT
This is needed to allow users coming from an old version of the app to remain
logged-in.
2026-05-25 23:13:40 +02:00
Roland Geider
1009477553 Fix behaviour on logout
We were previously dropping the local db on logout, which could also happen when
the user was too long offline to fetch a new token. Now this only happens when the
user manually logs out, or during login and there's the db from a previous, different,
user.
2026-05-25 20:52:23 +02:00
Roland Geider
98e9ea9417 Smarter handling of token lifetimes
We don't want to logout the user if we can't refresh the token because the
device is offline.
2026-05-25 20:33:50 +02:00
Roland Geider
6436226a9e Remove network info dashboard widget
This is not really needed anymore since most parts of the application can be used
offline, and the ones that don't are marked.
2026-05-25 19:48:12 +02:00
Roland Geider
a485fd21df Split gym state and notifier into their own files 2026-05-25 17:58:23 +02:00
Roland Geider
3204df14ef Properly filter the ingredient list 2026-05-25 17:01:26 +02:00
Roland Geider
5194a6c869 Refactor the ingredient detail screen
We now use the exact same widget as in the regular info dialog
2026-05-25 16:45:51 +02:00
Roland Geider
5c916241b6 Make the ingredient object nullable for logs and meal items
This is needed due to the way powersync works. In practice, this will only be null during
a very small time window between editing the model and the sync back from the backend.
2026-05-25 15:51:34 +02:00
Roland Geider
1f55069b97 Don't rebuild on every keystroke 2026-05-25 15:15:58 +02:00
Roland Geider
34b1fa6a86 Merge branch 'feature/offline-mode' into feat/nutrition-ingredients-implementation
# Conflicts:
#	lib/providers/ingredient_notifier.dart
2026-05-25 13:44:48 +02:00
Roland Geider
a7e30fcf8c Refactor auth screen
This has been split up into several individual widgets and (hopefully) made
more user friendly
2026-05-24 20:14:25 +02:00
Anja Klipic
10cb77cffd chore: add tests for changes related to brand field 2026-05-23 13:10:16 +02:00
Roland Geider
6ffb1b6c75 Add some more tests for the auth screen 2026-05-22 23:52:11 +02:00