Roland Geider
c8b1aa3b24
Online-gate the exercise submission page/links
2026-05-25 19:40:19 +02:00
Roland Geider
a485fd21df
Split gym state and notifier into their own files
2026-05-25 17:58:23 +02:00
Roland Geider
92d731fa10
Don't rebuild the whole widget on every keystroke
2026-05-25 17:35:36 +02:00
Roland Geider
6849685ae7
Watch the passed ingredient
2026-05-25 17:13:12 +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
4132779291
Split ingredient providers
2026-05-25 15:50:32 +02:00
Roland Geider
1f55069b97
Don't rebuild on every keystroke
2026-05-25 15:15:58 +02:00
Roland Geider
bcfe836ce7
Fix some i18n issues
2026-05-25 13:52:55 +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
806fc93116
Cleanup
2026-05-25 13:41:22 +02:00
Roland Geider
78580084a2
Better validators for nutritional plan values
2026-05-25 13:39:44 +02:00
Roland Geider
0f4a12251d
Better validators for workout session notes
2026-05-25 13:31:20 +02:00
Roland Geider
e7d0028251
Fix bug in the measurements overview
2026-05-25 13:28:44 +02:00
Roland Geider
45e693dae6
Better validators for min/max constrained values
2026-05-25 12:56:03 +02:00
Roland Geider
987d82b4a5
Better validators for min/max constrained values
2026-05-25 12:47:31 +02:00
Roland Geider
b3b138765a
Better validators for workout sessions
2026-05-25 12:41:05 +02:00
Roland Geider
dff9ed559c
Better validators for logs
2026-05-25 12:33:39 +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
Roland Geider
d77fc070d2
More cleanup on the auth screen
2026-05-22 23:32:09 +02:00
Roland Geider
aaa788570d
Cleanup auth screen
2026-05-22 22:50:50 +02:00
Roland Geider
ea3087792c
Merge branch 'feature/allauth' into feature/offline-mode
2026-05-22 22:30:45 +02:00
Roland Geider
1b72fb71ad
Fix circular provider dependency
2026-05-22 22:14:45 +02:00
Roland Geider
cc7ae51906
Mark trophy box in the dashboard when no internet is available
2026-05-22 21:56:14 +02:00
Roland Geider
37729347a4
Fix trophy provider online gate
2026-05-22 20:38:28 +02:00
Roland Geider
b9dd03ce3e
Re-apply login-process improvements on headless auth
2026-05-22 20:25:59 +02:00
Roland Geider
fe5c7bb0ef
Regenerate build files
2026-05-22 20:18:49 +02:00
Roland Geider
99f54a830d
Regenerate build files
2026-05-22 20:11:23 +02:00
Roland Geider
8213c44342
Add "login via web"
...
This allows the user to login via all supported methods, such as social auth,
passkeys, etc. without needing to implement them individually here.
2026-05-22 20:11:14 +02:00
Roland Geider
291d3f0f76
Extract token from correct key
2026-05-22 20:11:06 +02:00
Roland Geider
32677fb63b
Edit the user's email via allauth's endpoints
2026-05-22 20:10:58 +02:00
Roland Geider
8fc149741f
Edit the user's email via allauth's endpoints
2026-05-22 20:10:47 +02:00
Roland Geider
6188175c1a
Add 2fa login screen
2026-05-22 20:08:44 +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
42752de182
Move Authorization header to a dedicated HTTP client
2026-05-22 20:08:07 +02:00
Roland Geider
225a689e7e
Implement refresh token logic
2026-05-22 20:08:06 +02:00
Roland Geider
3f89b5a9b5
Add secure storage integration and headless (allauth) JWT support
2026-05-22 20:08:06 +02:00
Roland Geider
26722a49be
Start implementing JWT support
2026-05-22 20:04:42 +02:00
Roland Geider
164d583ee9
Gate the trophies provider when the server is not available
2026-05-22 19:22:13 +02:00
Roland Geider
736cb41cb2
Improve the login process
...
The previous process was depending too much on the backend being available, we
can now bypass many of these checks if the user had already logged in before
2026-05-22 19:19:00 +02:00
pankaj-basnet
a08defb3b6
feature(nutrition): refactor IngredientsScreen and create IngredientDetailScreen using existing components
2026-05-22 21:48:13 +05:45
Roland Geider
af8ed102eb
Also write to the user profile via powersync
2026-05-22 17:59:16 +02:00
Roland Geider
1075a2807f
Remove the AuthStatus.serverUnreachable case
...
If the user is logged in, they can access the app
2026-05-22 17:10:28 +02:00
Roland Geider
51730e956e
Make more widgets online-aware
2026-05-22 16:49:59 +02:00
Roland Geider
4edf49b438
Reduce the pollution of logs from powersync
2026-05-22 15:54:17 +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
e99a0363b9
Replace the allowed connectivity list
...
We now just test if there is obviously no connection, keeping an explicit list
is brittle and would break if the plugin reported something non-obvious like "vpn"
2026-05-21 21:47:08 +02:00
Roland Geider
cfa40da3b8
Remove obsolete FormProgressIndicator
...
Logs are now saved directly to the local sqlite db, which is basically instantaneous
2026-05-21 15:19:05 +02:00