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
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
f7458f86f5
Add unreachable server screen and related error handling
2026-04-23 12:41:37 +02:00
Roland Geider
7f6803646b
Invalidate data providers after successful login/logout
...
This is specially necessary for the powersync ones, since they can hold data
from other users
2026-04-20 17:04:09 +02:00
Roland Geider
dc67d29e88
Don't do real DNS checks during tests
2026-04-19 00:02:06 +02:00
Roland Geider
1258382957
Use common widget to render AsyncValues (errors, loading, etc.)
2026-04-18 23:02:17 +02:00
Roland Geider
d70c43e893
Properly gate the parts of the application that need network connectivity
2026-04-18 21:43:16 +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
af378dfdb3
Make the routines provider async
...
This makes the behaviour consistent with the others
2026-04-18 17:40:45 +02:00
Roland Geider
0afb1026a9
Further refactor how the new providers fetch data
2026-04-18 17:06:44 +02:00
Roland Geider
d7088606f3
Migrate the contribute provider to riverpod and remove the old provider package
2026-04-17 21:38:36 +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
70dff579d4
Fix tests
2026-04-17 15:46:34 +02:00
Roland Geider
6dea8d5e8f
Merge branch 'master' into feature/offline-mode
2026-04-17 12:32:11 +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
22af0ef9ff
Show vegetarian and nutriscore badge in the ingredient autocompleter
2026-04-14 00:11:03 +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
10a28ac479
Merge pull request #1175 from efrahim20319/fix/1149-log-missing-unit-defaults
...
fix: use unit IDs directly in Log.fromSetConfigData to prevent null on save
2026-04-13 19:57:49 +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
0c5d9b83b6
Commit missing mock file
2026-04-13 16:32:08 +02:00
Roland Geider
40dbe842cd
Move the variation to a field in the exercise
2026-04-13 12:58:17 +02:00
Roland Geider
4b02ee54cd
Make min server version tests more robust
2026-04-10 11:06:28 +02:00
Roland Geider
659b3da422
Updated goldens
2026-04-10 10:40:40 +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
fc214e31b9
Updated goldens
2026-04-10 10:29:45 +02:00
Roland Geider
094259ff0c
Fix test
2026-04-10 10:26:13 +02:00
Roland Geider
9971acbe5f
Use correct mock file
2026-04-10 10:12:28 +02:00
Roland Geider
6e76cf6d66
Merge branch 'master' into fork/sg172003/feature/measurement-datetime-field
2026-04-09 23:49:13 +02:00
Roland Geider
8a19e398b0
Add time information to test measurement entries, update tests
2026-04-09 23:45:57 +02:00
Roland Geider
e9661f585b
Updated goldens
2026-04-09 12:51:45 +02:00
Roland Geider
ed8203de09
Expose units in the nutritional plan
2026-03-31 11:46:38 +02:00
Roland Geider
fee01c6163
Fix screenshot tests
2026-03-30 00:04:32 +02:00
Roland Geider
85b261fad7
Group slots in the UI with the same exercise
...
This allows the user to add different slots (sets) to an exercise, like
10 x 10kg, 8 x 12kg, 6 x 15kg. Also note that this is purely a UI change,
as it was already possible to simply add the same exercise again.
2026-03-29 20:46:13 +02:00
Roland Geider
cb6c0f9804
Merge pull request #1139 from NiazSagor/fix-redundant-loading
...
Prevent Redundant Loading in `NutritionalPlanScreen`
2026-03-28 20:46:38 +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
b106090004
Move language models to "core"
2026-03-14 17:38:02 +01:00
Roland Geider
e20de66cf0
Fix and cleanup some tests
2026-03-14 13:40:21 +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