515 Commits

Author SHA1 Message Date
Roland Geider
6d9ead5c9b Mark models as immutable 2026-06-15 22:55:20 +02:00
Roland Geider
138177ef9c Run "dart fix --apply" 2026-06-15 21:25:05 +02:00
Roland Geider
675fb44c6e Also properly handle (for now) unused datetime fields 2026-06-05 15:36:19 +02:00
Roland Geider
dbce51f86c The ingredient energy is stored in kcal, not kJ 2026-06-05 15:17:57 +02:00
Roland Geider
662ad9befc Properly handle timezones 2026-06-05 15:17:32 +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
8a626ae2bf Handle (transient) case where an exercise has no translations 2026-06-03 13:06:10 +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
400b21065a Add brand to the model 2026-05-26 15:15:16 +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
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
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
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
cd2f3dbe45 Merge branch 'feature/offline-mode' into feat/nutrition-ingredients-implementation 2026-05-21 13:01:26 +02:00
pankaj-basnet
a5cb4e291b feat(nutrition): add ingredient filters model and repository, riverpod providers for ingredient state and filtering, reusable ingredient UI components and localization, integrate ingredients and nutritional plans screens
files added/modified:
      lib/models/nutrition/ingredient_filters.dart       lib/providers/ingredient_repository.dart
      lib/providers/ingredient_notifier.dart       lib/providers/ingredient_notifier.g.dart       lib/providers/ingredient_filters_notifier.dart       lib/providers/ingredient_filters_notifier.g.dart

      lib/l10n/app_en.arb       lib/widgets/nutrition/ingredient_list_tile.dart       lib/widgets/nutrition/ingredient_detail.dart       lib/widgets/nutrition/ingredient_filter_row.dart       lib/widgets/nutrition/ingredient_images.dart

      lib/main.dart       lib/screens/ingredients_screen.dart       lib/screens/ingredient_screen.dart       lib/screens/nutritional_plans_screen.dart
2026-05-20 21:51:11 +05:45
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
d71bbcfeec Update to flutter 3.44 2026-05-19 17:30:48 +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
11699f8ee0 Slightly increase the maximum workout duration 2026-05-08 11:10:29 +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
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
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
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
f578938655 refactor(models): add copyWith to Routine and make replaceExercise immutable 2026-05-03 02:29:39 +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
209ab7cbbe Add gallery sync tables 2026-05-01 15:25:31 +02:00
Roland Geider
9f365f8069 Consolidate ingredient search methods into the ingredient repo 2026-05-01 12:27:49 +02:00
Roland Geider
5fea670ba3 Merge master 2026-04-30 19:41:17 +02:00
Roland Geider
d1f6fc2dfe Sync nutritional logs 2026-04-30 18:10:02 +02:00
Roland Geider
a1722f18f8 Open ingredient info dialog from the nutritional plan list 2026-04-30 15:54:38 +02:00
Roland Geider
d152031633 Refactor ingredient weight unit handling and remove unused methods 2026-04-30 14:11:56 +02:00
Roland Geider
d6e652f2c9 Sync the ingredient weight units to the local sqlite db 2026-04-30 13:41:58 +02:00
Roland Geider
a9644ab383 Refactor ingredient handling to use direct object references 2026-04-30 12:58:35 +02:00
Roland Geider
c5ac06309b Properly mark columns as nullable 2026-04-30 12:00:05 +02:00
Roland Geider
d135e81d4f Cache ingredient and exercise images on device 2026-04-30 10:48:20 +02:00
Roland Geider
e0068e96ce Hydrate exercise and unit objects in routine entries 2026-04-29 19:32:48 +02:00
Roland Geider
271d9f9835 Refactor unit selection for repetitions and weight
This is now done inline with a suffix icon, instead of having an extra
toggle that showed an explicit dropdown. Existing logs can now be edited
in the routine log overview page.
2026-04-29 16:56:06 +02:00
Roland Geider
680127e139 Sync the base Routine and Nutritional plan entries via powersync
This makes sure the lists is always kept current and allows the user to edit
them offline as well. Note that we still kepp the backend's ID here, so no
creation is possible.
2026-04-29 10:03:59 +02:00
Roland Geider
30072fb2cc Properly handle timezones for datetime values 2026-04-24 10:35:13 +02:00