Commit Graph

392 Commits

Author SHA1 Message Date
Roland Geider
3c2e8faacd Merge remote-tracking branch 'origin/feature/flexible-routines' into feature/flexible-routines 2025-01-25 21:51:54 +01:00
Roland Geider
c0935506ed Load the session data from the new API as well
Also, edit or add a session in the gym mode
2025-01-25 21:50:30 +01:00
Roland Geider
13998ec3c0 Don't load the routine every time the log page are accessed 2025-01-25 20:07:19 +01:00
Roland Geider
4b1dec2735 Add some more tests 2025-01-25 16:10:21 +01:00
Roland Geider
60c06b9508 Update goldens 2025-01-25 15:51:33 +01:00
Roland Geider
202349c5bc Make workout log charts work again 2025-01-25 15:39:51 +01:00
Roland Geider
9ea580a380 Skip golden comparison when running on a non-linux platform 2025-01-25 15:22:22 +01:00
Roland Geider
41961572b1 Update goldens 2025-01-24 20:28:37 +01:00
Roland Geider
4d55f8c901 Add some more tests 2025-01-24 20:22:22 +01:00
Roland Geider
b4ff0b74aa Some cleanup, renaming, reformating 2025-01-24 17:01:27 +01:00
Roland Geider
ffe5867727 Add simple tests for SlotEntryForm 2025-01-24 17:00:55 +01:00
Roland Geider
079db5d5e0 Recreate generated files 2025-01-24 15:07:51 +01:00
Roland Geider
eff176f035 Merge branch 'master' into feature/flexible-routines
# Conflicts:
#	lib/main.dart
#	lib/models/exercises/exercise.dart
#	lib/models/exercises/exercise_api.freezed.dart
#	lib/models/workouts/day.g.dart
#	lib/models/workouts/session.g.dart
#	lib/models/workouts/workout_plan.g.dart
#	lib/providers/exercises.dart
#	lib/widgets/core/settings.dart
#	pubspec.lock
#	test/auth/auth_screen_test.mocks.dart
#	test/core/settings_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/gallery/gallery_form_test.mocks.dart
#	test/gallery/gallery_screen_test.mocks.dart
#	test/measurements/measurement_categories_screen_test.mocks.dart
#	test/measurements/measurement_provider_test.mocks.dart
#	test/nutrition/nutritional_meal_form_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/nutrition/nutritional_plan_screen_test.mocks.dart
#	test/nutrition/nutritional_plans_screen_test.mocks.dart
#	test/other/base_provider_test.mocks.dart
#	test/user/provider_test.mocks.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
#	test/workout/gym_mode_screen_test.mocks.dart
#	test/workout/repetition_unit_form_widget_test.mocks.dart
#	test/workout/routine_screen_test.mocks.dart
#	test/workout/routines_provider_test.mocks.dart
#	test/workout/routines_screen_test.mocks.dart
#	test/workout/weight_unit_form_widget_test.mocks.dart
#	test/workout/workout_day_form_test.mocks.dart
#	test/workout/workout_form_test.mocks.dart
#	test/workout/workout_set_form_test.mocks.dart
2025-01-24 15:05:28 +01:00
Roland Geider
dad109d5bd Inject the shared preferences class for easier testing 2025-01-24 13:59:08 +01:00
Roland Geider
86f8b7ae35 Add a third option to the theme mode
This allows the user to use the system settings as well, and not always force
light or dark mode in the app. Also move the logic to the UserProvider and
do some light refactoring.
2025-01-23 23:22:50 +01:00
Roland Geider
a770c97573 Add smoke test for the routine edit form 2025-01-21 20:58:57 +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
654fe613c6 Rename some more files 2025-01-18 19:01:17 +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
Roland Geider
5a39c6c229 Rename some functions, a bit of cleanup 2025-01-10 15:52:26 +01:00
Roland Geider
deaee53319 Fix test
The localization of dates was removed since that is not used anymore
2025-01-07 22:37:58 +01:00
Roland Geider
b0e1da49b9 Some renaming for consistency 2025-01-06 22:34:30 +01:00
Roland Geider
462cc95979 Fix test 2025-01-06 22:01:33 +01:00
Roland Geider
ede90b75a9 Remove unused code 2025-01-06 21:38:17 +01:00
Roland Geider
4a60018d9a Fix tests 2025-01-06 21:36:37 +01:00
Roland Geider
5f89ab4b6f Add missing max fields to the slot entry form 2025-01-06 20:28:14 +01:00
Roland Geider
fde14c369f Merge branch 'master' into feature/flexible-routines 2025-01-05 22:54:47 +01:00
Roland Geider
50f3c34a06 Update goldens 2025-01-05 21:13:15 +01:00
Roland Geider
ca6c682483 Remove more unused code 2025-01-05 20:17:26 +01:00
Roland Geider
b66aa7444d Some polishing, adding missing fields and other QoL 2025-01-05 19:45:02 +01:00
Roland Geider
ad5d1be306 Pass the necessary IDs to the gym mode and load the rest of the data 2025-01-05 16:35:16 +01:00
Roland Geider
04e112d810 Fix some widgets, polishing, renaming 2024-11-20 14:39:17 +01:00
Roland Geider
f7461ab0e9 Polish the crud workflow 2024-11-16 19:50:28 +01:00
Roland Geider
e6e0ed3f08 Properly set or remove newly created objects 2024-11-16 18:10:29 +01:00
Roland Geider
c5f4eec12f Extract exercise autocompleter to its own widget 2024-11-16 15:16:32 +01:00
Roland Geider
ffa87f6db7 Refactor update logic
There are a lot of common steps that are always the same. This will specially
important once we edit all the other configs and their max siblings
2024-11-16 12:55:14 +01:00
Roland Geider
23119e68d5 Allow users to reorder the days and the slots within the days 2024-11-15 16:44:41 +01:00
Roland Geider
277628f329 Merge branch 'master' into feature/flexible-routines
# Conflicts:
#	test/weight/weight_screen_test.mocks.dart
2024-11-14 20:30:19 +01:00
Roland Geider
aa8c3444b8 Allow reordering of slots 2024-11-12 22:57:24 +01:00
Roland Geider
bf73afd9fe Allow deleting days from a routine 2024-11-12 20:55:37 +01:00
Roland Geider
9e9fa6be93 Allow setting the day order per drag and drop 2024-11-12 16:27:53 +01:00
Roland Geider
1d93b2f8c0 Refactor forms into individual files 2024-11-12 14:15:49 +01:00
Roland Geider
a35336f57c Allow editing the fit in week toggle as well as start and end dates 2024-11-12 13:31:56 +01:00
Roland Geider
47e36eff48 More refactoring of routine screens and widgets 2024-11-10 15:13:30 +01:00
Roland Geider
12f22d214a Rename widget folder 2024-11-10 14:51:11 +01:00
Roland Geider
5c947375ee Rename provider 2024-11-10 14:48:03 +01:00
Roland Geider
4673bb5a64 Update screenshots 2024-11-09 13:08:29 +01:00
Roland Geider
abf9413f4b Start rendering the new routines 2024-11-02 17:28:24 +01:00