Roland Geider
30072fb2cc
Properly handle timezones for datetime values
2026-04-24 10:35:13 +02:00
Roland Geider
9a4fec8bf3
Refactor the workout session provider
...
The logs are read in the session repository, the logs one is only used
for CRUD operations
2026-04-18 18:19:31 +02:00
Roland Geider
95fb6c6615
Migrate the nutrition provider to riverpod
2026-04-17 18:19:00 +02:00
Roland Geider
70dff579d4
Fix tests
2026-04-17 15:46: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
f9f106f5ed
Directly return the exercises found by the search
...
While these do not land in the local cache, this is still faster and
better, and works like the ingredientSearch method.
2026-04-14 13:53:30 +02:00
Roland Geider
2dbdf996e5
Replace the deprecated /api/v2/exercise/search endpoint
...
We can simply use the regular "exerciseinfo" endpoint, like we do for
ingredients. We still call fetchAndSetExercise for them, which is not
efficient, but
2026-04-14 13:40:26 +02:00
Roland Geider
bceae559f7
Merge branch 'master' into feature/version-2.5
2026-04-14 12:10:20 +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
86b2a93e87
The description_source field is now non-nullable
...
This makes working with it a bit easier
# Conflicts:
# lib/models/exercises/exercise_submission.dart
# lib/models/exercises/exercise_submission.freezed.dart
# lib/models/exercises/exercise_submission.g.dart
2026-04-13 23:32:36 +02:00
Nsimba Tamaku
fd8545f997
fix: use unit IDs directly in Log.fromSetConfigData to prevent null on save
...
When adding an extra exercise during a workout, addExerciseAfterPage()
creates a SetConfigData with no unit objects loaded. Log.fromSetConfigData
was using the weightUnit/repetitionUnit setters which overwrite the default
IDs with null when the objects are null, causing the server to reject the
request with a ValidationError ("Repetitions unit must be present").
Fixes #1149
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-13 17:10:59 +01:00
Roland Geider
435a7c6f85
Cleanup
2026-04-13 18:02:30 +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
9f41695e65
Merge branch 'feature/nutrition-units' into feature/version-2.5
...
# Conflicts:
# test/nutrition/goldens/nutritional_plan_2_one_meal_with_ingredients.png
# test/nutrition/goldens/nutritional_plan_3_both_meals_with_ingredients.png
2026-04-10 10:38:31 +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
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
ed8203de09
Expose units in the nutritional plan
2026-03-31 11:46:38 +02:00
Roland Geider
3ea4713a74
Use UUIDv7, as in the backend
2026-03-21 13:41:50 +01: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
6750859bfe
Move powersync table definitions
...
These are now together with the "regular" drift definitions, making it
easier to spot any differences that may creep in
2026-03-14 22:32:29 +01:00
Roland Geider
997e4afa99
Add ingredient and license tables
2026-03-14 17:38:38 +01:00
Roland Geider
b106090004
Move language models to "core"
2026-03-14 17:38:02 +01:00
Roland Geider
d38a7609d8
Start removing the old MeasurementProvider, refactor measurement form
2026-03-14 12:17:28 +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
61e1c241f2
Update measurement tables to use powersync
2026-03-13 16:16:23 +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
Saraswathi
efeeea85ab
enhancement:persist-ingredient-filters in nutrition
2026-03-05 16:48:52 +05:30
Roland Geider
07604ab57d
Add "warmup" to list of slot entry types
...
https://github.com/wger-project/wger/issues/2157
2026-03-02 20:18:32 +01:00
Roland Geider
92a43c6ca7
Add vegan and vegetarian fields and filters to the ingredient
2026-02-26 23:07:13 +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
a367678b91
Properly filter dayData entries
...
This is needed when the "needs logs to advance" toggle is active
See https://github.com/wger-project/wger/issues/2164
2026-02-09 22:49:30 +01:00
Roland Geider
88168dc352
Some polishing, add simple test
2026-02-08 14:54:26 +01:00
cryptbrn
b8c6a73b98
add sort datetime desc when showing ingredient suggestion
2026-02-03 22:30:38 +07: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
ec153c51df
i18n and other cleanup
2026-01-16 17:33:28 +01:00
Roland Geider
dce1b79683
Merge branch 'master' into feature/trophies
...
# Conflicts:
# lib/providers/base_provider.dart
# lib/providers/gym_state.dart
# lib/providers/gym_state.g.dart
# lib/widgets/routines/gym_mode/log_page.dart
# test/core/settings_test.mocks.dart
# test/exercises/contribute_exercise_image_test.mocks.dart
# test/gallery/gallery_form_test.mocks.dart
# test/gallery/gallery_screen_test.mocks.dart
# test/measurements/measurement_provider_test.mocks.dart
# test/nutrition/nutritional_plan_screen_test.mocks.dart
# test/nutrition/nutritional_plans_screen_test.mocks.dart
# test/routine/gym_mode/gym_mode_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/user/provider_test.mocks.dart
# test/weight/weight_provider_test.mocks.dart
# test/widgets/routines/gym_mode/log_page_test.dart
2026-01-16 16:54:08 +01:00
Roland Geider
53dcbd8c6c
Don't mark nullable fields as "late"
...
These will be null and we avoid LateInitializationError errors
See #1079
2026-01-16 15:26:38 +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
536f18805b
Load context data for PR trophies
...
This allows us to show for which sets the user achieved new PRs
2025-12-21 20:40:20 +01:00
Roland Geider
36a3e7ef4a
Add overview page for the trophies
2025-12-20 21:25:18 +01:00
Roland Geider
b9fd061d33
Add dashboard widget and rework the provider
2025-12-20 02:06:08 +01:00
Roland Geider
5d39ae5088
Start adding support for trophies
2025-12-20 00:55:33 +01:00
Roland Geider
455c9a07b1
Merge branch 'master' into feature/powersync-test
...
# Conflicts:
# lib/helpers/errors.dart
# lib/models/workouts/log.dart
# lib/models/workouts/session.dart
# lib/providers/body_weight.dart
# lib/providers/exercises.dart
# lib/providers/gym_state.g.dart
# lib/providers/routines.dart
# lib/widgets/routines/forms/day.dart
# lib/widgets/routines/forms/reps_unit.dart
# lib/widgets/routines/forms/routine.dart
# lib/widgets/routines/forms/session.dart
# lib/widgets/routines/forms/slot.dart
# lib/widgets/routines/forms/slot_entry.dart
# lib/widgets/routines/gym_mode/log_page.dart
# lib/widgets/routines/gym_mode/session_page.dart
# pubspec.lock
# test/exercises/exercise_provider_test.dart
# test/routine/forms/session_form_test.dart
# test/routine/gym_mode/session_page_test.dart
# test/routine/routine_form_test.dart
2025-12-18 12:17:56 +01:00
Roland Geider
6a2158a397
Reload the session page in the gym mode
...
This makes sure that we have the current state and don't try to create a new session
which already exists
2025-12-18 11:59:26 +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
077dcaf742
Handle HTML errors in WgerHttpException
...
These need to be handled separately when the server encounters an error and
returns HTML instead of JSON.
2025-12-17 18:59:45 +01:00
Roland Geider
b75ee0dece
Merge conflicts
2025-12-04 13:07:39 +01:00