Commit Graph

1356 Commits

Author SHA1 Message Date
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
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