Commit Graph

123 Commits

Author SHA1 Message Date
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
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
130232ead8 Remove null assertions where not needed 2026-05-08 10:58:40 +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
Roland Geider
d6affe4036 Sync the rest of the nutrition tables with powersync 2026-05-02 12:36:08 +02:00
Roland Geider
e56d5a8861 Add missing tests for the new repositories and states 2026-05-01 19:03:28 +02:00
Roland Geider
209ab7cbbe Add gallery sync tables 2026-05-01 15:25:31 +02:00
Roland Geider
d1f6fc2dfe Sync nutritional logs 2026-04-30 18:10:02 +02:00
Roland Geider
40c3bbc95c Use the workout session and logs from the current routine in summary.dart
This data is now always current from powersync
2026-04-29 12:59:34 +02:00
Roland Geider
9c531a7799 Merge branch 'master' into feature/offline-mode
# Conflicts:
#	integration_test/1_dashboard.dart
#	integration_test/3_gym_mode.dart
#	ios/Podfile.lock
#	lib/database/exercises/exercise_database.dart
#	lib/database/exercises/type_converters.dart
#	lib/models/exercises/exercise.dart
#	lib/models/exercises/exercise.g.dart
#	lib/models/exercises/exercise_api.dart
#	lib/models/exercises/exercise_api.freezed.dart
#	lib/models/exercises/exercise_api.g.dart
#	lib/models/exercises/translation.dart
#	lib/models/exercises/translation.g.dart
#	lib/models/exercises/variation.dart
#	lib/providers/exercises.dart
#	lib/widgets/add_exercise/steps/step_1_basics.dart
#	lib/widgets/add_exercise/steps/step_2_variations.dart
#	lib/widgets/exercises/exercises.dart
#	lib/widgets/measurements/forms.dart
#	lib/widgets/routines/forms/slot.dart
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.mocks.dart
#	test/exercises/contribute_exercise_image_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercise_provider_load_test.dart
#	test/exercises/exercise_provider_test.dart
#	test/exercises/exercises_detail_widget_test.dart
#	test/exercises/exercises_detail_widget_test.mocks.dart
#	test/exercises/model_exercise_test.dart
#	test/measurements/measurement_entries_screen_test.dart
#	test/routine/gym_mode/gym_mode_test.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
#	test/widgets/routines/gym_mode/log_page_test.mocks.dart
#	test_data/measurements.dart
2026-04-17 12:23:56 +02:00
Roland Geider
d343e5cdf9 Add missing nutriscore info to the ingredient model
Also, make the vegan and vegetarian flags nullable, since not all products
have this information at all
2026-04-14 00:10:27 +02:00
Roland Geider
07500bd9d0 Update exercise test data 2026-04-13 23:27:17 +02:00
Roland Geider
301c2e42ce Merge branch 'feature/add-warmup-type' into feature/version-2.5
# Conflicts:
#	test/core/validators_test.mocks.dart
2026-04-10 10:35:10 +02:00
Roland Geider
6e76cf6d66 Merge branch 'master' into fork/sg172003/feature/measurement-datetime-field 2026-04-09 23:49:13 +02:00
Roland Geider
8a19e398b0 Add time information to test measurement entries, update tests 2026-04-09 23:45:57 +02:00
Roland Geider
fee01c6163 Fix screenshot tests 2026-03-30 00:04:32 +02:00
Roland Geider
c916136a8f Update measurement models
The backend now saves uses a UUID for the IDs as well, which we can now use directly
2026-03-15 15:43:29 +01:00
Roland Geider
b106090004 Move language models to "core" 2026-03-14 17:38:02 +01:00
Roland Geider
e20de66cf0 Fix and cleanup some tests 2026-03-14 13:40:21 +01:00
Roland Geider
7221109a64 Revert to using ID and UUID as names for the fields
This is more explicit and seems like a better way to do it.
2026-03-13 22:58:11 +01:00
Roland Geider
7926a7da7e Start working on new drift based provider for measurements 2026-03-13 17:23:25 +01:00
Roland Geider
c87d3825b4 Merge branch 'master' into feature/offline-mode
# Conflicts:
#	lib/l10n/app_en.arb
#	lib/models/workouts/log.dart
#	lib/models/workouts/weight_unit.dart
#	lib/providers/exercises.dart
#	lib/providers/gym_log_state.g.dart
#	lib/providers/routines.dart
#	lib/widgets/routines/forms/reps_unit.dart
#	lib/widgets/routines/forms/weight_unit.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	macos/Flutter/GeneratedPluginRegistrant.swift
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.mocks.dart
#	test/core/validators_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercise_provider_db_test.dart
#	test/exercises/exercises_detail_widget_test.mocks.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/repetition_unit_form_widget_test.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/routine/weight_unit_form_widget_test.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
#	test/widgets/routines/gym_mode/log_page_test.mocks.dart
#	test_data/routines.dart
2026-03-12 14:23:11 +01:00
Roland Geider
54c6ce0175 Refactor the log entry form in the gym mode.
Previously due to rebuilds the form would e.g. not stay open after
selecting a new unit (which would also not change)
2026-02-11 13:37:33 +01:00
Roland Geider
eedc249cea Merge branch 'master' into feature/powersync-test
# Conflicts:
#	lib/models/body_weight/weight_entry.dart
#	lib/models/body_weight/weight_entry.g.dart
#	lib/models/workouts/log.dart
#	lib/models/workouts/log.g.dart
#	lib/models/workouts/session.g.dart
#	pubspec.lock
#	pubspec.yaml
#	test/exercises/contribute_exercise_image_test.mocks.dart
#	test/exercises/contribute_exercise_test.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/nutrition/nutritional_meal_form_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/weight/weight_model_test.dart
#	test/weight/weight_provider_test.dart
#	test_data/body_weight.dart
2025-11-25 21:23:22 +01:00
Roland Geider
fc881c4929 Properly handle timezones
This should (hopefully 🤞) take care of problems saving entries with timezone
information.
2025-11-18 16:30:52 +01:00
Roland Geider
49873d20bd Cleanup some of the models 2025-11-08 23:07:40 +01:00
Roland Geider
2132249682 Wrap the routines provider
This makes it easier to load the data from the powersync database
2025-11-07 15:10:04 +01:00
Roland Geider
1fcd01e14c Fix some tests 2025-11-03 17:25:48 +01:00
Roland Geider
c60cfbe347 Add tables for workout sessions 2025-10-26 18:18:22 +01:00
Roland Geider
2aa120602b Remove the json serializable decorators, not needed anymore 2025-10-26 00:23:38 +02:00
Roland Geider
76f894ab33 Start actually interacting with powersync 2025-10-21 15:04:53 +02:00
Roland Geider
6146201531 Allow setting the slot entry type as well 2025-10-09 17:28:23 +02:00
Roland Geider
ccbaf0b42a Allow multiple weight entries per day 2025-09-26 12:21:50 +02:00
Dieter Plaetinck
20713ee6fc fix tests 2025-06-28 17:02:22 +02:00
Dieter Plaetinck
a0e2659e60 dart format --line-length=100 . 2025-06-27 23:37:56 +02:00
Dieter Plaetinck
1e5b44c0f5 fix tests part 1 2025-06-27 23:36:52 +02:00
Roland Geider
bc45e46b11 Use clock package in workout_logs.dart
This is needed in order to be able to mock the current time in the tests
2025-03-30 12:44:32 +02:00
Roland Geider
74752505eb Change rir and rirTarget types from String to num
This is more consistent with the other fields and is now the same as the backend
2025-03-26 15:03:15 +01:00
Roland Geider
6039f51b2a If there is a rest time, show a countdown timer in the gym mode 2025-03-11 21:42:41 +01:00
Roland Geider
14a5d7285b Extract the day data for the current routine
instead of loading the same data from the server
2025-02-16 21:19:17 +01:00
Roland Geider
460b6e7125 Add smoke test for fetchAndSetRoutineFull 2025-02-02 22:38:05 +01:00
Roland Geider
2498183094 Rename further instances of "reps" to "repetitions" 2025-02-01 19:24:15 +01:00
Roland Geider
323b18320f Rename key to be more consistent 2025-02-01 15:34:00 +01:00
Roland Geider
5058498c4f Allow passing all parameters to the WorkoutSession constructor 2025-01-31 16:24:56 +01:00
Roland Geider
4bd16f5c0d Remove logs from the routine
The logs are now in the session list and can be easily extracted if needed
2025-01-30 18:21:09 +01:00
Roland Geider
3a398d0f36 Simplify arguments for routine objects and add a smoke test 2025-01-18 19:37:33 +01:00
Roland Geider
9ab55a6c83 Save iteration and slot entry id to the logs 2025-01-18 16:46:08 +01:00
Roland Geider
c397e10e3f Fix tests 2025-01-18 14:40:13 +01:00
Roland Geider
5d542c51d9 Use updated name of repetition in API response
Also use the same name locally for more consistency
2025-01-14 20:41:40 +01:00