Commit Graph

1377 Commits

Author SHA1 Message Date
Roland Geider
148fe8c8a4 Fix null-check-operator error in the log page in the gym mode 2026-06-19 12:29:40 +02:00
Roland Geider
87a433bc97 Fix set-state-error on TimeInputWidget
The widget is read-only, so we don't need to use a controller, it is simply rebuilt when the
user selects a new time
2026-06-19 12:10:07 +02:00
Roland Geider
5da7da9067 Use proper references in comments, where possible 2026-06-19 10:57:27 +02:00
Roland Geider
9bc0b15c6f Merge pull request #1224 from pankaj-basnet/refactor/nutrition-meals-components
Refactor/nutrition meals components
2026-06-18 10:28:25 +02:00
pankaj-basnet
601be2cfe6 fix(nutrition): decouple MealEditingToolbar visibility from ViewMode
- revert translation changes in charts and cleanup meal logs
- fix for the Meal test
2026-06-18 10:17:21 +05:45
pankaj-basnet
0ca3de30c5 refactor(nutrition): improve localization and date formatting
- Extract date display logic in nutritional plan details
- Migrate hardcoded strings to localization files
2026-06-17 23:38:15 +05:45
Roland Geider
cadb63734f Properly mark the correct official/custom server as the one being used 2026-06-17 17:59:04 +02:00
pankaj-basnet
315b1aaba6 refactor: extract MealIngredientsSection and MealEditingToolbar 2026-06-17 15:07:09 +05:45
pankaj-basnet
d187723388 refactor(nutrition): remove redundant recentMealItems prop from MealWidget 2026-06-17 15:06:49 +05:45
Roland Geider
177a48d6c7 Fix use_build_context_synchronously and unused_local_variable lint warnings 2026-06-15 22:45:11 +02:00
Roland Geider
a8f46ce302 Fix always_put_control_body_on_new_line lint warning 2026-06-15 22:38:17 +02:00
Roland Geider
fbc8ad7b07 Replace the deprecated onReorder with onReorderItem 2026-06-15 21:34:00 +02:00
Roland Geider
138177ef9c Run "dart fix --apply" 2026-06-15 21:25:05 +02:00
Roland Geider
499d15636a Merge remote-tracking branch 'origin/master' into feature/offline-mode
# Conflicts:
#	lib/l10n/app_de.arb
#	lib/widgets/routines/forms/repetitions.dart
#	lib/widgets/routines/forms/weight.dart
2026-06-15 12:36:37 +02:00
Roland Geider
63e9d812db Consolidate usage of DateInputWidget 2026-06-14 22:11:31 +02:00
Roland Geider
0651cbb611 Consolidate usage of showConfirmDeleteDialog 2026-06-14 22:11:11 +02:00
Roland Geider
54e97299f9 Consolidate usage of FormSubmitButton 2026-06-14 21:48:41 +02:00
Roland Geider
5f9abdb15f Slight refactor of the error handling
This moves some of the pieces to the correct places
2026-06-14 21:25:59 +02:00
Roland Geider
3ec7e23f56 Pass the slotUUID to some gym pages
This makes the logic a bit more robust on null pages
2026-06-14 21:25:10 +02:00
Roland Geider
01b746fc65 Fix image picker validation and error handling logic 2026-06-14 20:59:10 +02:00
Eltahir Mahmoud
27a66b5b57 Improve accessibility labels for workout controls 2026-06-06 00:24:21 +03:00
Roland Geider
dbce51f86c The ingredient energy is stored in kcal, not kJ 2026-06-05 15:17:57 +02:00
Roland Geider
16a6cd085d Harden detail screen pages
While not very probable, it can happen that a routine etc was deleted on the server
at the same time that a user had opened its detail page. We also changed the argument
for the nutrition screen to ID, for more consistency with the other ones.
2026-06-05 14:39:49 +02:00
Roland Geider
a4425354fc Add bug preventing the web-handoff workflow from working with self-hosted instances 2026-06-05 13:36:54 +02:00
Roland Geider
14c7e8d0a8 More i18n cleanup 2026-06-04 22:59:26 +02:00
Roland Geider
0e7a7dbcaa Properly save the correct unit type 2026-06-04 21:55:56 +02:00
Roland Geider
c795bb4420 Fix empty selection bug 2026-06-04 21:55:38 +02:00
Roland Geider
e29c120d7f Add more validators
Otherwise the server might reject the values (this was already the case)
2026-06-04 21:42:02 +02:00
Roland Geider
5b9be7440c Add more validators to the slot configs
Otherwise the server might reject the values (this was already the case)
2026-06-04 21:26:56 +02:00
Roland Geider
a923574638 Show a bit more info for RetryableUploadException 2026-06-04 21:10:03 +02:00
Roland Geider
68428a053e Wipe the local DB only on a real user switch 2026-06-04 16:53:01 +02:00
Roland Geider
1a13785929 Add a new hydration provider family for routines
This makes the code much cleaner, and uses riverpod's own logic to de-dup
2026-06-04 12:39:34 +02:00
Roland Geider
67bf65882f Fix bug causing the routine provider to enter a refresh loop
Note that this is a stop-gag measure for now
2026-06-03 16:30:29 +02:00
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