Commit Graph

27 Commits

Author SHA1 Message Date
Roland Geider
87a40fd4e6 Switch the pasted-token field from DRF tokens to refresh tokens 2026-05-22 20:08:43 +02:00
Roland Geider
395eb58cbd Merge remote-tracking branch 'origin/master' into feature/offline-mode 2026-05-07 14:16:58 +02:00
Roland Geider
c93f03fa0b Replace pumpAndSettle with pump where possible 2026-05-07 12:27:33 +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
a9644ab383 Refactor ingredient handling to use direct object references 2026-04-30 12:58:35 +02:00
Roland Geider
4b581173d8 Show more sync information to the user 2026-04-24 14:44:04 +02:00
Roland Geider
f5ab4ca390 Handle HTTP errors
If the indetify the error as having HTML (e.g. during development, a wrongly configured
reverse proxy, etc.) render the HTML instead
2026-04-23 13:33:10 +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
44af2ecaf2 Merge branch 'feature/exercise-variations' into feature/version-2.5
# Conflicts:
#	lib/models/exercises/exercise_submission.dart
#	lib/providers/add_exercise.dart
2026-04-13 16:37:07 +02:00
Roland Geider
40dbe842cd Move the variation to a field in the exercise 2026-04-13 12:58:17 +02:00
Roland Geider
bdc5e541e2 Merge branch 'feature/markdown-exercises' into feature/version-2.5 2026-04-10 10:35:34 +02: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
AlexisBirling3
bcbcd1a2dc apply dart format 2026-02-17 15:27:18 -05:00
AlexisBirling3
65a7e5dd43 adds the tests for the modified widget in this issue 2026-02-17 15:12:02 -05:00
Roland Geider
88168dc352 Some polishing, add simple test 2026-02-08 14:54:26 +01:00
Roland Geider
c2f138cf9f Increase timeout durations for API requests 2026-01-30 13:50:35 +01:00
Roland Geider
f06a15ebac Convert the reps and weight log widgets back to stateful.
This solves some problems with the keyboard focus changing or the quick-add
buttons for reps and weight. Also, add some tests for these.
2026-01-29 17:43:31 +01:00
Roland Geider
f32dec2b08 Merge branch 'master' into feature/offline-mode
# Conflicts:
#	lib/main.dart
#	lib/models/workouts/log.dart
#	lib/models/workouts/session.g.dart
#	lib/providers/exercises.dart
#	lib/providers/gym_state.g.dart
#	lib/providers/wger_base_riverpod.dart
#	lib/screens/dashboard.dart
#	lib/screens/home_tabs_screen.dart
#	lib/widgets/core/app_bar.dart
#	lib/widgets/core/settings.dart
#	lib/widgets/dashboard/calendar.dart
#	lib/widgets/dashboard/widgets/weight.dart
#	lib/widgets/routines/gym_mode/log_page.dart
#	lib/widgets/routines/gym_mode/summary.dart
#	lib/widgets/routines/logs/day_logs_container.dart
#	lib/widgets/routines/logs/exercises_expansion_card.dart
#	pubspec.lock
#	pubspec.yaml
#	test/core/settings_test.dart
#	test/core/settings_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/exercises/exercise_provider_db_test.dart
#	test/exercises/exercise_provider_test.dart
#	test/routine/gym_mode/gym_mode_test.mocks.dart
#	test/routine/routine_logs_screen_test.dart
#	test/routine/routine_logs_screen_test.mocks.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
2026-01-19 13:16:55 +01:00
Roland Geider
fb6a673503 Simplify code by adding new log provider
This makes the logic for copying or modifying the logs much easier. Also,
there were some user reports that the old logic sometimes behaved erratically
and old values were sometimes reverted.
2026-01-12 21:40:11 +01:00
Roland Geider
40837ad1b3 Add tests 2025-12-18 11:31:58 +01:00
Roland Geider
d187324a25 Properly handle null values
Basically all the fields can be nullable, so we need to set them if
we want to avoid LateInitialisation errors.
2025-12-18 10:58:40 +01:00
Roland Geider
06b32a2bd9 Better volume calculations, other cleanup 2025-12-04 12:14:57 +01:00
Roland Geider
d45fb604a2 Add test for the gym mode options 2025-12-02 23:00:43 +01:00
Roland Geider
ae6db6ee07 Move to riverpod three
Needed to downgrade build_runner and mockito for now
2025-11-11 13:22:18 +01:00
Roland Geider
d90fe670f1 Remove debug output 2025-09-24 13:45:54 +02:00
Roland Geider
072dfc183b Bump flutter to 3.32 2025-05-28 12:18:36 +02:00
Roland Geider
5cac67d595 Add simple test for the ConfigureAvailablePlates widget 2025-05-27 18:56:42 +02:00