Commit Graph

1344 Commits

Author SHA1 Message Date
Roland Geider
a411461638 Cleanup 2026-06-03 16:08:16 +02:00
Roland Geider
137ad197e4 Properly handle "." and "," for numerical inputs 2026-06-03 12:51:00 +02:00
Roland Geider
8f562e5d83 Properly handle exercise videos
These need to be loaded with mediaUrlBuilderProvider, like the exercise images
2026-05-27 17:22:35 +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
Anja Klipic
70a5ae3ddf fix: use theme color for brightness mode compatibility 2026-05-27 10:39:22 +02:00
Roland Geider
d3da6dc8fa Online-gate the ingredient scan button 2026-05-26 20:04:54 +02:00
Roland Geider
6f0a322b4a Add outgoing icons to external links 2026-05-26 20:02:58 +02:00
Roland Geider
00db3d96e6 Properly online-gate access to the user profile 2026-05-26 19:57:11 +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
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
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
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
Anja Klipic
8b5a381694 feat: displays brand name underneath title in ingredient details 2026-05-23 08:14:36 +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
cc7ae51906 Mark trophy box in the dashboard when no internet is available 2026-05-22 21:56:14 +02:00
Anja Klipic
14577602ac feat: displays brand name next to ingredient name in search list 2026-05-22 21:47:00 +02:00
Roland Geider
fe5c7bb0ef Regenerate build files 2026-05-22 20:18:49 +02:00
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
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
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
pankaj-basnet
90949c63fb fix(nutrition): resolve fl_chart crash on division by zero when logged/planned macros are empty in MealDiaryBarChart
Bug: Unsupported operation: Infinity or NaN toInt (package:fl_chart)
2026-05-22 01:23:57 +05:45
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
cd2f3dbe45 Merge branch 'feature/offline-mode' into feat/nutrition-ingredients-implementation 2026-05-21 13:01:26 +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