Commit Graph

1142 Commits

Author SHA1 Message Date
Roland Geider
9f66815e10 Merge branch 'master' into feature/gym-mode
# Conflicts:
#	lib/widgets/routines/gym_mode/navigation.dart
#	pubspec.lock
#	test/exercises/contribute_exercise_image_test.mocks.dart
#	test/exercises/contribute_exercise_test.mocks.dart
#	test/nutrition/nutritional_meal_form_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
2025-11-19 19:18:45 +01:00
lenka369
dcdfcba631 Merge branch 'wger-project:master' into master 2025-11-18 18:50:23 +01:00
Roland Geider
ce983c2db1 Merge pull request #991 from wger-project/fix/timezone-handling
Properly handle timezones (again)
2025-11-18 17:42:02 +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
3119429a02 Cleanup, tests, etc 2025-11-17 14:36:47 +01:00
Roland Geider
067fa7455f Revert to showDialog
The modal sheet was causing problems when using the autocompleter,
there were overflows and even if we fixed that, there wasn't enough space
to comfortably use it
2025-11-16 15:57:07 +01:00
Roland Geider
bd727c949b When adding exercises only one is added 2025-11-16 15:50:23 +01:00
Roland Geider
925175b0e5 Handle case where no page can be found
Note that this shouldn't actually happen, we should find a proper solution
2025-11-16 15:19:51 +01:00
Roland Geider
689591195f Polish workout progression dialog
Exercise names are not repeated anymore (again) and we use a bottom sheet now
instead of a modal dialog
2025-11-16 15:16:09 +01:00
Roland Geider
d094c407c9 Remove dependency of SlotData
Now, the LogPage gets all it's info from the state.
2025-11-16 00:34:46 +01:00
Roland Geider
c26e3828f8 Allow adding additional exercises to the workout
While these are not real ad-hoc workouts, at least it's a first step
2025-11-15 23:44:42 +01:00
Roland Geider
a072692ddd Add smoke and golden test for gym progression tab 2025-11-15 18:40:43 +01:00
Roland Geider
033213abbb Allow opening the workout progress dialog from the progress indicator
This is easier to open with the thumbs and also makes logical sense. When
opening the workout menu from here, the default tab is the progress one, not
the overview.
2025-11-15 18:10:14 +01:00
Roland Geider
0bfb063552 Disable exercise swap button if set is fully logged 2025-11-15 17:39:14 +01:00
Roland Geider
ec8578d43d Add some tests and fix a small bug in uuid handling 2025-11-15 15:59:24 +01:00
lenka369
cf3dc58b27 Merge branch 'wger-project:master' into master 2025-11-15 02:31:12 +01:00
Roland Geider
f1f37d3e03 Allow swapping exercises in the gym mode 2025-11-15 01:32:59 +01:00
Roland Geider
03cd945bfc Move the workout progression to the main navigation menu 2025-11-14 23:46:00 +01:00
Roland Geider
742d8dac88 Properly render the current progression of the workout 2025-11-14 21:39:53 +01:00
Roland Geider
66b18b6b3c Further refactoring the gym mode 2025-11-14 14:41:25 +01:00
Roland Geider
e62e5d630a Show current workout in gym mode 2025-11-13 17:25:04 +01:00
Roland Geider
9ea6674849 Add test for calculatePages 2025-11-11 23:56:19 +01:00
Roland Geider
5d37b55736 Localize gym mode setting options 2025-11-11 23:55:56 +01:00
Roland Geider
2e5384728d Allow clearing the times for workout sessions 2025-11-11 23:55:37 +01:00
Roland Geider
06cfa3a649 Move more logic to the gym mode provider
This makes the widgets in the gym mode smaller and we can remove
a lot of prop drilling that was necessary
2025-11-11 22:15:14 +01:00
Roland Geider
694615596f Allow the user to control the gym mode 2025-11-11 15:47:01 +01:00
Roland Geider
202d8eafb1 Recreate generate files and use correct methods 2025-11-11 14:36:11 +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
f6a073766a Improve and consolidate the image error handler 2025-11-10 20:23:52 +01:00
lenka369
a7ba623005 fix: Save ingredient to cache on selection 2025-10-31 10:36:34 +01:00
GhostInTheNN
e0228d5793 fix: Add autofillHints to password field for Android autofill support
Adds autofillHints property with AutofillHints.password to the password
TextFormField in PasswordField widget. This enables password managers 
like Bitwarden to properly detect and autofill password fields on 
Android devices.

Without this hint, the Android autofill framework cannot identify the
field as a password input, preventing password managers from offering
autofill suggestions.

Changes:
- Added autofillHints: const [AutofillHints.password] to TextFormField
  in lib/widgets/auth/password_field.dart

Tested on Android with Bitwarden password manager.
2025-10-19 13:04:24 -04:00
Roland Geider
08a22e5ab0 Allow selecting start dates for routines in the future 2025-10-17 18:53:31 +02:00
Roland Geider
547a259df8 Rename parameter 2025-10-17 18:28:46 +02:00
Roland Geider
119bd4c115 Merge pull request #955 from GaecKo/feature/end_workout_button
Feature/end_workout_button in "jump to" section
2025-10-17 18:28:26 +02:00
Roland Geider
3a37c3fb1c Move form to its own widget
This is cleaner and will allow us to get better errors in case they happen,
see e.g. #936
2025-10-17 17:28:59 +02:00
Arthur De Neyer
0533e8e927 NavigationHeader: made totalPages parameter facultative 2025-10-17 17:09:29 +02:00
Arthur De Neyer
2822ba755e NavigationHeader constructor: optimized and reduced attributes 2025-10-17 16:51:09 +02:00
Roland Geider
c551b176fb Merge pull request #950 from wger-project/feature/day-type
Set day and set types
2025-10-17 00:13:50 +02:00
Roland Geider
b0d1bce9aa Consistently show the day and type name 2025-10-16 23:48:15 +02:00
Roland Geider
bc6a5ebdbf Make common widget for when an image format is not supported 2025-10-16 22:03:40 +02:00
Roland Geider
0a427e50ff Make sure the plate weights don't wrap in the calculator 2025-10-16 21:59:56 +02:00
Roland Geider
b4c77bf238 Move plate calculator visibility logic to the exercise itself 2025-10-16 21:59:56 +02:00
Arthur De Neyer
a0c13b60c9 fixed attribute name in session page 2025-10-15 23:50:19 +02:00
Arthur De Neyer
914d810d72 Merge branch 'master' of github.com:GaecKo/flutter into feature/end_workout_button 2025-10-15 23:43:06 +02:00
Arthur De Neyer
bc8b8fea31 dart formating 2025-10-13 23:41:40 +02:00
Arthur De Neyer
354a8c381c feat: add end workout button to 'jump to' section 2025-10-13 23:36:10 +02:00
Max Pylypenko
1da04e29d2 avif: updated images to display generic error for non supported image types + translations 2025-10-13 00:14:49 +07:00
Max Pylypenko
51c41c800e avif: updated gallery widget to display message for non supported avif image type 2025-10-12 00:46:37 +07:00
Roland Geider
1f6d22d85a Tweak a bit how and when the types are shown 2025-10-09 23:11:10 +02:00
Roland Geider
85ba00b654 Merge branch 'master' into feature/day-type
# Conflicts:
#	lib/models/workouts/day.g.dart
#	lib/models/workouts/day_data.g.dart
#	lib/models/workouts/set_config_data.g.dart
#	lib/models/workouts/slot_data.g.dart
#	lib/models/workouts/slot_entry.g.dart
#	lib/models/workouts/weight_unit.g.dart
#	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/routine/day_form_test.mocks.dart
#	test/routine/gym_mode_screen_test.mocks.dart
#	test/routine/gym_mode_session_screen_test.mocks.dart
#	test/routine/repetition_unit_form_widget_test.mocks.dart
#	test/routine/routine_edit_screen_test.mocks.dart
#	test/routine/routine_edit_test.mocks.dart
#	test/routine/routine_form_test.mocks.dart
#	test/routine/routine_logs_screen_test.mocks.dart
#	test/routine/routine_screen_test.mocks.dart
#	test/routine/routines_provider_test.mocks.dart
#	test/routine/routines_screen_test.mocks.dart
#	test/routine/slot_entry_form_test.mocks.dart
#	test/routine/weight_unit_form_widget_test.mocks.dart
#	test/user/provider_test.mocks.dart
#	test/weight/weight_provider_test.mocks.dart
#	test/weight/weight_screen_test.mocks.dart
2025-10-09 17:39:39 +02:00