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
Roland Geider
6ffb1b6c75
Add some more tests for the auth screen
2026-05-22 23:52:11 +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
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
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
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
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
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
848ba17d54
Format number inputs according to locale
...
Due to some idiosyncrasies of the on-screen keyboards where we can neither control nor
know what separator it shows, and the way intl parses work (in the "de" locale 80.5 is
parsed to 805.0), we need to roll our own
2026-05-21 14:51:05 +02:00
Roland Geider
4ebc98e18b
Regenerate mock files and fix test
2026-05-21 13:37:56 +02:00
Roland Geider
52364ebafc
Merge branch 'master' into feature/offline-mode
...
# Conflicts:
# lib/helpers/errors.dart
# lib/main.dart
# lib/widgets/nutrition/forms.dart
# lib/widgets/routines/forms/slot_entry.dart
2026-05-21 12:26:53 +02:00
Roland Geider
0741fd4bb8
Better error handling
...
We can now distinguish between errors that should block the application, (hopefully)
transient ones that only warrant a snackbar and others that are only logged.
2026-05-21 12:09:51 +02:00
Roland Geider
ff9b7572d0
Handle github's max URL limit
...
If the application had too many logs, we could reach this limit and the issue
would be blank
2026-05-21 11:25:01 +02:00
Roland Geider
834d7e4744
Consolidate form error handling
...
This makes the widgets themselves leaner
2026-05-21 09:33:57 +02:00
Roland Geider
97e0e631ab
Consolidate submission logic into its own widget
...
While this is not needed as much now that we save everything to the local
sqlite, it's still good practice to encapsulate the logic for a submit button
with a spinner.
2026-05-21 00:26:15 +02:00
Roland Geider
dc5bd1e975
Consolidate localized number edit logic into its own widgets
2026-05-21 00:11:40 +02:00
Roland Geider
c411e8949a
Consolidate time and date picking logic into their own widgets
...
This makes it easier to fix things like localization, etc. in one place
2026-05-20 23:59:14 +02:00
Roland Geider
7e7b441faa
Properly handle localized inputs in further forms
2026-05-20 21:36:49 +02:00
Roland Geider
814c1cb915
Properly handle localized inputs in the goal macros widget
...
Closes #1197
2026-05-20 21:23:23 +02:00
Roland Geider
bf9916adf9
Merge remote-tracking branch 'origin/master' into feature/offline-mode
...
# Conflicts:
# ios/Podfile.lock
# lib/l10n/app_en.arb
# lib/main.dart
# lib/providers/user.dart
# lib/widgets/core/settings.dart
# pubspec.yaml
# test/core/settings_test.dart
# test/core/settings_test.mocks.dart
# test/user/provider_test.dart
2026-05-20 16:55:17 +02:00
Roland Geider
25b444103f
Correctly load the notes and aliases for exercises
2026-05-20 16:34:21 +02:00
Roland Geider
f8187b293f
Cleanup exercise models
...
Save the dependant object (such as language), and not the ID as well as the object.
2026-05-20 16:10:27 +02:00
Roland Geider
99d8d2cd22
Remove unused test fixtures
...
All these objects are now synced via powersync
2026-05-20 14:24:52 +02:00
Roland Geider
0674066f12
Remove unused code and mocks
2026-05-20 14:19:45 +02:00
Roland Geider
cbf6884a30
Update the online connectivity gates
...
Some of these models can now be edited completely locally, others only partly
(e.g. the gallery entries can only be created online)
2026-05-20 14:14:00 +02:00
Pawel Haracz
af2d4b4191
feat(language): implement language switcher functionality and tests
2026-05-16 23:52:46 +02:00
Roland Geider
944b27e38e
Also sync all the license information, even if we don't expose all of that right now
2026-05-15 13:03:16 +02:00
Roland Geider
f4c8db73ee
Properly use mutable objects
2026-05-08 12:34:19 +02:00
Roland Geider
130232ead8
Remove null assertions where not needed
2026-05-08 10:58:40 +02:00
Roland Geider
39eaf9abe0
Make the linter happy
2026-05-07 21:42:23 +02:00