Pawel Haracz
af2d4b4191
feat(language): implement language switcher functionality and tests
2026-05-16 23:52:46 +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
kiranannadatha8
a5114851fe
feat(nutrition): filter ingredient search by Nutri-Score
...
Adds a "Filter by Nutri-Score" switch and an A–E discrete slider to
the ingredient search filter popover. The worst acceptable grade is
sent to the backend as `nutriscore__lte=<a|b|c|d|e>`, matching the
new filter exposed by wger-project/wger#2295 .
- Extend `IngredientFilters` with `filterNutriscore` + `nutriscoreMax`
- Persist both settings through `PreferenceHelper`
- Expose `toggleNutriscore` and `chooseNutriscoreMax` on the riverpod
notifier
- Propagate `nutriscoreMax` through `NutritionPlansProvider.searchIngredient`
- Add English strings `filterNutriscore` / `filterNutriscoreMax`
- Widget tests cover: slider hidden until switch flipped, query emitted
with/without the filter
- Update stale generated Mockito overrides across the four test files
that mock `NutritionPlansProvider` so the new named arg lines up
Refs wger-project/wger#2295
2026-04-19 01:44:59 -04: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
ed8203de09
Expose units in the nutritional plan
2026-03-31 11:46:38 +02:00
Roland Geider
51b65664cb
Refactor language handling when searching ingredients
...
While this has technically nothing to do with the vegan flags, we can refactor the
language handling while we're at it. This should make the behaviour more transparent
to the user and could be expanded in the future if needed (manually selecting other
languages, etc.).
2026-02-27 12:31:52 +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
c2f138cf9f
Increase timeout durations for API requests
2026-01-30 13:50:35 +01:00
Roland Geider
92aee1228e
Properly filter hidden widgets 🙄
2026-01-19 16:39:06 +01:00
Roland Geider
36bf6aa8fc
Merge branch 'master' into feature/trophies
...
# Conflicts:
# lib/main.dart
# lib/screens/dashboard.dart
2026-01-17 13:50:18 +01:00
Roland Geider
b81331609a
Also allow changing the order of the dashboard widgets
...
This makes the behaviour more consistent and allows users to remove widgets
they won't be using, like the trophies
2026-01-17 13:43:28 +01:00
Roland Geider
5574f74a2f
Move dashboard visibility settings to own screen
...
This seems cleaner and can be opened from other places
2026-01-17 12:50:07 +01:00
Roland Geider
ec153c51df
i18n and other cleanup
2026-01-16 17:33:28 +01:00
Roland Geider
46fdf1efc7
Recreate generated files
2026-01-16 15:28:09 +01:00
Roland Geider
574ef3d0b5
Add simple retry logic to the base provider's fetch method
...
This should take care of simple transient errors, or other network hiccups
that might happen on the user's device.
2026-01-14 13:59:41 +01:00
Roland Geider
52892db9b1
Allow passing the language to the fetch request
...
This allows us to use the trophy translations from the server.
2025-12-23 15:41:47 +01:00
Roland Geider
ecd0b6c6b4
Add overview page when a workout has been completed
2025-11-26 20:17:02 +01:00
Roland Geider
5f61af3b66
Update generated files
2025-11-20 23:01:20 +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
39be6a3edf
Allow setting the day type in the edit form
2025-10-06 11:36:27 +02:00
Roland Geider
ccbaf0b42a
Allow multiple weight entries per day
2025-09-26 12:21:50 +02:00
Roland Geider
530efd366e
Some renaming
2025-09-24 12:31:28 +02:00
Roland Geider
84c29eb209
Use the regular ingredient endpoint, instead of the special search one
2025-09-24 01:35:03 +02:00
Roland Geider
798406eaa9
Make routineId nullable in session and related files
...
Sessions can be added ad-hoc, without needing to be part of any specific
routine.
2025-09-16 14:47:47 +02:00
Roland Geider
d85ee13ed9
Give users more control over the exercise cache
...
This allows users to manually refresh the cache and load all exercises
from the server.
2025-09-06 15:05:52 +02:00
Shininess8816
97e63e3fc5
flutter pub run build_runner build && dart format --line-length=100 .
2025-05-08 22:36:14 +01:00
Roland Geider
9ebaf58fea
Refactor routine handling for the dashboard widgets
...
This makes sure that edits to the routine (such as changing the order
of the days, etc.) are properly reflected in the dashboard.
2025-05-03 15:39:46 +02:00
Roland Geider
df06cef398
await for all setExercisesAndUnits calls
...
Not setting the "await" was causing the method to be run asynchronously which means
that sometimes these would get called several times for the same exercise, which in
turn would cause exercises to be written several times to the local db, polluting the
exercise list, etc. etc.
We increase the schemaVersion of the database because this causes all the cache tables
to be dropped and re-created
2025-03-29 16:37:11 +01:00
Roland Geider
301f48a966
More renaming of exercise base to just exercise
2025-03-29 15:50:13 +01:00
Roland Geider
f987de1b4d
Handle case where an exercise has no variations
2025-03-18 14:59:33 +01:00
Roland Geider
202349c5bc
Make workout log charts work again
2025-01-25 15:39:51 +01:00
Roland Geider
079db5d5e0
Recreate generated files
2025-01-24 15:07:51 +01:00
Roland Geider
23119e68d5
Allow users to reorder the days and the slots within the days
2024-11-15 16:44:41 +01:00
Roland Geider
abf9413f4b
Start rendering the new routines
2024-11-02 17:28:24 +01:00
Roland Geider
7db93f0b6e
Start implementing new flexible routines
2024-10-30 12:14:26 +01:00
Roland Geider
906fa7257a
Rename function
2024-09-29 11:45:31 +02:00
Roland Geider
72a68b4f59
Allow resetting the ingredient cache from the settings page
2024-09-29 11:25:14 +02:00
Roland Geider
dbdec5c9dd
Add tests for db cache
2024-09-27 11:11:35 +02:00
Roland Geider
5d237e1ddf
Consistently use "fiber"
2024-05-23 17:54:50 +02:00
Roland Geider
fbc4f163c9
Commit missing mocks file
2024-01-11 22:16:21 +01:00