104 Commits

Author SHA1 Message Date
Roland Geider
9540a1b958 Move screenshot tests to "/test" folder
This allows us to properly generate the needed mocks, and not import them
from random files
2026-06-16 10:29:31 +02:00
Roland Geider
cc69b37786 Pass the plan ID to the widget, not the whole object 2026-06-16 09:55:18 +02:00
Roland Geider
492c58f5d9 Use the locale consistently 2026-06-15 23:53:22 +02:00
Roland Geider
138177ef9c Run "dart fix --apply" 2026-06-15 21:25:05 +02:00
Roland Geider
9003b46002 Add migration path from old permanent token to JWT
This is needed to allow users coming from an old version of the app to remain
logged-in.
2026-05-25 23:13:40 +02:00
Roland Geider
a485fd21df Split gym state and notifier into their own files 2026-05-25 17:58:23 +02:00
Roland Geider
af8ed102eb Also write to the user profile via powersync 2026-05-22 17:59:16 +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
3771740099 Rename files 2026-05-07 21:23:39 +02:00
Roland Geider
0e7b7cb5a0 Suppress print warnings 2026-05-07 19:57:35 +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
2cb40612b1 Cleanup providers and use consistent naming 2026-05-01 16:58:08 +02:00
Roland Geider
209ab7cbbe Add gallery sync tables 2026-05-01 15:25:31 +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
b6923d1a6c Refactor exercise providers
The exercise provider now returns an ExerciseState, which exposes some filter
methods on the exercises
2026-04-24 12:26:43 +02:00
Roland Geider
af378dfdb3 Make the routines provider async
This makes the behaviour consistent with the others
2026-04-18 17:40:45 +02:00
Roland Geider
97dee19368 Migrate the gallery provider to riverpod 2026-04-17 21:12:34 +02:00
Roland Geider
95fb6c6615 Migrate the nutrition provider to riverpod 2026-04-17 18:19:00 +02:00
Roland Geider
f4a0a9bff6 Migrate the user provider to riverpode 2026-04-17 17:11:59 +02:00
Roland Geider
8ad3585ce6 Refactor the auth provider, and move it to riverpod 2026-04-17 16:25:04 +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
fee01c6163 Fix screenshot tests 2026-03-30 00:04:32 +02:00
Roland Geider
e20de66cf0 Fix and cleanup some tests 2026-03-14 13:40:21 +01:00
Madhav
3fd0de3257 Apply dart format 2026-03-12 22:48:21 +05:30
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
3713399dc1 More merge fixes 2025-12-04 15:12:33 +01:00
Roland Geider
b75ee0dece Merge conflicts 2025-12-04 13:07:39 +01:00
Roland Geider
d8a5369519 Merge branch 'master' into feature/powersync-test
# Conflicts:
#	integration_test/3_gym_mode.dart
#	lib/database/exercises/exercise_database.g.dart
#	lib/models/exercises/category.g.dart
#	lib/models/exercises/exercise.g.dart
#	lib/models/exercises/exercise_api.freezed.dart
#	lib/models/exercises/exercise_api.g.dart
#	lib/models/exercises/translation.g.dart
#	lib/models/workouts/log.dart
#	lib/models/workouts/log.g.dart
#	lib/models/workouts/session.dart
#	lib/models/workouts/session_api.dart
#	lib/models/workouts/weight_unit.g.dart
#	lib/providers/gym_state.dart
#	lib/screens/gym_mode.dart
#	lib/widgets/dashboard/calendar.dart
#	lib/widgets/routines/gym_mode/gym_mode.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	lib/widgets/routines/gym_mode/session_page.dart
#	lib/widgets/routines/log.dart
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.mocks.dart
#	test/core/validators_test.mocks.dart
#	test/exercises/contribute_exercise_test.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercises_detail_widget_test.mocks.dart
#	test/nutrition/nutritional_plan_screen_test.mocks.dart
#	test/nutrition/nutritional_plans_screen_test.mocks.dart
#	test/providers/plate_calculator_test.dart
#	test/routine/forms/session_form_test.mocks.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/gym_mode/session_page_test.dart
#	test/routine/gym_mode_screen_test.dart
#	test/user/provider_test.mocks.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
2025-12-04 12:48:40 +01:00
Roland Geider
556713319c Correctly calculate the total number of pages 2025-12-02 16:55:25 +01:00
Roland Geider
909b85c850 Merge conflicts 2025-12-02 13:12:38 +01:00
Roland Geider
56cdffb010 Merge branch 'master' into feature/gym-mode
# Conflicts:
#	integration_test/3_gym_mode.dart
#	ios/Podfile.lock
#	lib/screens/gym_mode.dart
#	pubspec.yaml
2025-12-02 12:35:32 +01:00
Roland Geider
60cb00945c Small cleanups and optimizations 2025-12-01 23:00:23 +01:00
Roland Geider
7f9d09492b Add workflows to automatically update screenshots
These are also now tracked with git-lfs
2025-11-29 17:14:37 +01:00
Roland Geider
4a36b1de96 Expand logic to support screenshot generation for iOS 2025-11-27 18:16:29 +01:00
Roland Geider
b291329350 Add workout stats screen to the screenshot / integration tests
Still need to decide if we want to keep the start page one, since it's
a bit... bare
2025-11-27 16:29:51 +01:00
Roland Geider
3119429a02 Cleanup, tests, etc 2025-11-17 14:36:47 +01:00
Roland Geider
a4909bd99c Rename some tests 2025-11-15 18:20:22 +01:00
Roland Geider
e1359d0c51 Add a new riverpod provider for the routines
This is not a wrapper around the old one, which was making problems.
Delete unneeded generated files as well.
2025-11-10 15:37:59 +01:00
Roland Geider
49873d20bd Cleanup some of the models 2025-11-08 23:07:40 +01:00
Roland Geider
4a2047ec8b Edit sessions with the new sessions provider 2025-11-08 17:15:17 +01:00
Roland Geider
dd3f993d11 Remove old exercises provider 🥲 2025-11-04 22:26:30 +01:00
Roland Geider
1e9e5ab24c Fix some more tests 2025-11-04 16:15:06 +01:00
Roland Geider
d255cdb573 Consolidate body weight repositories and other providers, cleanup 2025-10-23 22:19:31 +02:00
Roland Geider
8b8c4626eb Powersync seems to be working now 2025-10-23 15:32:21 +02:00
Roland Geider
4d2083f05a Update body weight provider to use riverpod 2025-10-21 12:04:59 +02:00
Roland Geider
93a11a16e4 Recreate generated files and reformat the repo
Seems the default dart formatting rules changed recently, and this was causing
huge diffs in branches
2025-10-09 17:39:02 +02:00
Roland Geider
d987b6c652 Update screenshots 2025-09-23 12:01:38 +02:00
Roland Geider
4330e51f86 Retrieve the current routine dynamically
This behaviour is now the same as the nutritional plans.
2025-09-05 22:47:27 +02:00
Roland Geider
65e5ad3cbd Add missing languages 2025-06-17 20:29:16 +02:00