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
af8ed102eb
Also write to the user profile via powersync
2026-05-22 17:59:16 +02:00
Roland Geider
51730e956e
Make more widgets online-aware
2026-05-22 16:49:59 +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
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
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
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
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
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
Roland Geider
dcebb3a2e7
Add script to check language lists stay in sync
...
This is also run on commits, so we get alerted when we forget to add new locales
2026-05-18 10:27:25 +02:00
Roland Geider
475442e779
Consolidate locale handling logic
2026-05-18 09:40:12 +02:00
Pawel Haracz
822cedf9a4
feat(settings): add in-app language switcher
...
Adds a per-user language override in Settings that takes precedence over
the system locale, fixing #439 . Selecting "System default" clears the
override and falls back to the existing localeListResolutionCallback.
Also declares CFBundleLocalizations in the iOS Info.plist so iOS 16+ users
get the native per-app language picker (Settings → wger → Language) as an
alternative entry point.
Implementation mirrors the existing themeMode flow on UserProvider, with
the selected locale persisted in SharedPreferences under PREFS_USER_LOCALE
and matched against AppLocalizations.supportedLocales on load to preserve
script-bearing locales (zh_Hant, pt_BR, ...).
2026-05-16 15:31:34 +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
98737fde74
Extract helper functions as own widgets
2026-05-08 12:51:07 +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
83569fc41e
Merge remote-tracking branch 'origin/master' into feature/offline-mode
2026-05-07 22:05:41 +02:00
Roland Geider
39eaf9abe0
Make the linter happy
2026-05-07 21:42:23 +02:00
Roland Geider
bfc1ee92a2
Put control body in new line
2026-05-07 21:30:36 +02:00
Roland Geider
ca18f34d4c
Update calls from deprecated APIs
2026-05-07 17:47:40 +02:00
Roland Geider
8e05d3ab10
Fix linting problems
2026-05-07 17:38:23 +02:00
Roland Geider
c39c418d37
Merge master
2026-05-03 19:15:21 +02:00
Roland Geider
390dadcdf0
Cleanup
2026-05-03 18:21:54 +02:00
AlexisBirling3
7fb64b2925
shortens the displayed error message and adds link to doc
2026-05-03 18:12:33 +02:00
AlexisBirling3
67f1569148
adds i18n for the new widget
2026-05-03 18:12:33 +02:00
AlexisBirling3
7d2b842f1a
adds a helper class to check sanity and implements widget to display sanity after auth
2026-05-03 18:12:33 +02:00
Roland Geider
164d553fde
Improve the exercise search autocompleter
...
Closes #1182
Co-authored-by: Pankaj Basnet <165250380+pankaj-basnet@users.noreply.github.com >
2026-05-03 17:54:07 +02:00
Roland Geider
0fb660dcd2
Move access to nutritional plans to the nutrition state
2026-05-03 12:37:06 +02:00
Roland Geider
1ec921faf3
Consistent usage of uuid IDs
...
Now these fields are always nullable on the model and get a value once they
are persisted to the (local) database.
2026-05-03 12:17:23 +02:00
Roland Geider
c1dccbd822
Make the "impression" in workout session an enum
...
This is cleaner and simplifies a handful of places
2026-05-03 12:17:23 +02:00
pankaj-basnet
1a9ab581a5
refactor: improve image error handling with pattern matching and URI parsing
2026-05-03 02:26:58 +05:45
Roland Geider
d6affe4036
Sync the rest of the nutrition tables with powersync
2026-05-02 12:36:08 +02:00
Roland Geider
cf13af1740
Sync the rest of the nutrition tables to powersync
2026-05-01 20:24:26 +02:00
Roland Geider
2cb40612b1
Cleanup providers and use consistent naming
2026-05-01 16:58:08 +02:00
Roland Geider
5d30a1ca79
Cleanup providers and use consistent naming
2026-05-01 16:50:15 +02:00
Roland Geider
209ab7cbbe
Add gallery sync tables
2026-05-01 15:25:31 +02:00
Roland Geider
35404372f9
Refactor exercise repository online/offline search
...
This behaves now similarly to what the ingredients do as well
2026-05-01 13:22:47 +02:00
Roland Geider
9226b06454
Rename for more consistency
2026-05-01 13:10:39 +02:00
Roland Geider
9f365f8069
Consolidate ingredient search methods into the ingredient repo
2026-05-01 12:27:49 +02:00