Commit Graph

2555 Commits

Author SHA1 Message Date
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
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
Roland Geider
370a7d863a Remove obsolete _isSaving guard
Logs are now saved directly to the local sqlite db, which is basically instantaneous
2026-05-21 15:06:29 +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
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
695727b691 Dedup error dialogs
When the error dialog is already present, and another error occurs. Only log the
second one, don't stack another dialog
2026-05-21 11:34:48 +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
e79f46e2fc Add missing languages 2026-05-21 09:39:00 +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
9913ee4699 Use WgerImage to render the trophies
This also handles any possible errors that might occur loading the image
2026-05-20 23:12:36 +02:00
HackingAll
4bcb47f44b Added translation using Weblate (Galician) 2026-05-20 21:37:44 +02:00
Edson Wolf
8ab9c461a5 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (404 of 404 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-05-20 21:37:43 +02:00
Edson Wolf
8b22399056 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (402 of 402 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-05-20 21:37:43 +02:00
Tiago Natale
f52e0e2924 Translated using Weblate (Spanish)
Currently translated at 93.7% (377 of 402 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/es/
2026-05-20 21:37:42 +02:00
Edson Wolf
63281338b1 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (402 of 402 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-05-20 21:37:41 +02:00
Emil
b473c9090b Translated using Weblate (German)
Currently translated at 94.2% (379 of 402 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2026-05-20 21:37:40 +02:00
Milo Ivir
48f88db033 Translated using Weblate (Croatian)
Currently translated at 100.0% (402 of 402 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-05-20 21:37:39 +02:00
Ninguém Mesmo
54b9f2d94d Translated using Weblate (Portuguese)
Currently translated at 100.0% (402 of 402 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-05-20 21:37:39 +02:00
Dora Chiu
253e0a45a3 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (333 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:38 +02:00
Dora Chiu
a1ff4decce Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (333 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:37 +02:00
ial nosna
62cf596efb Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (333 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:36 +02:00
BlaireWang
170507c59b Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (333 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:35 +02:00
Afra
73c03e8dd6 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (333 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:35 +02:00
BlaireWang
8d85840143 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 72.4% (286 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:34 +02:00
greeenos
7651c04d38 Translated using Weblate (Czech)
Currently translated at 77.7% (307 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/cs/
2026-05-20 21:37:33 +02:00
Edson Wolf
c0e3011796 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (395 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-05-20 21:37:32 +02:00
BlaireWang
2e4117b8bb Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 67.5% (267 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/zh_Hant/
2026-05-20 21:37:32 +02:00
Ninguém Mesmo
ff08659777 Translated using Weblate (Portuguese)
Currently translated at 100.0% (395 of 395 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-05-20 21:37:31 +02:00