Commit Graph

4082 Commits

Author SHA1 Message Date
Roland Geider
3bbd7e46b1 Upgrade dependencies 2026-04-23 17:04:59 +02:00
Roland Geider
ef70d8628d Use correct controller 2026-04-23 17:04:59 +02:00
Roland Geider
568d6f3e4f Merge pull request #1179 from kiranannadatha8/feature/2295-nutriscore-filter
feat(nutrition): filter ingredient search by Nutri-Score
2026-04-20 17:11:18 +02:00
kiranannadatha8
b7f7e43fa3 refactor(nutrition): collapse Nutri-Score toggle into single slider
Mirrors the React refactor in wger-project/react#1237 addressing
Roland's review — the SwitchListTile + conditional Slider pair
expressed one semantic decision ("what grade ceiling?") through two
controls. Folded "Off" into the slider itself:

- Slider stops are now Off | A | B | C | D | E (was A..E, gated by
  a SwitchListTile).
- Off position sends no `nutriscoreMax`; A..E map as before.
- Heading changed from "Filter by Nutri-Score" to "Nutri-Score
  filter", with a dynamic helper ("No filter" / "<grade> or better").
- Model: `IngredientFilters.nutriscoreMax` is now nullable; removed
  `filterNutriscore`. `copyWith` takes a `clearNutriscoreMax` flag
  because Dart's `??` cannot distinguish "no argument" from "null".
- Storage collapsed: `saveIngredientNutriscoreMax(null)` removes the
  key; `getIngredientNutriscoreMax()` returns `null` when absent.
- Riverpod notifier: removed `toggleNutriscore`; `chooseNutriscoreMax`
  now takes `NutriScore?`.
- l10n: removed `filterNutriscoreMax`; added `filterNutriscoreOff`,
  `filterNutriscoreNoFilter`, `filterNutriscoreOrBetter` (placeholder).

Tests updated: 61/61 pass.
2026-04-20 10:33:08 -04: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
d8398aa613 Control whether the generated screenshots are commited and pushed 2026-04-15 12:59:06 +02:00
Roland Geider
16a46c7997 Rename workflow
The "build" at the beginning was making it hard to find in the github overview
2026-04-15 12:55:11 +02:00
Roland Geider
a4c6d7aa71 Allow to select whether to build the manifest when starting the run manually 2026-04-15 12:53:07 +02:00
Roland Geider
a568cbe956 Properly check for existence of the deploy key 2026-04-15 12:36:28 +02:00
Roland Geider
83915f82d8 Remove the manual xcode setup this should not be needed anymore 2026-04-15 12:24:12 +02:00
Roland Geider
f45f6e30a3 Replace the hard coded MARKETING_VERSION with the current (real) version 2026-04-15 12:23:26 +02:00
Roland Geider
2f3674fba0 Update Windows build workflow to package release as a zip file
This should at least allow users to start the application
2026-04-15 12:03:39 +02:00
Roland Geider
4dc0e37906 Allow all build workflows to be started manually 2026-04-15 11:56:29 +02:00
Roland Geider
3e59977d86 Bump used ruby version 2026-04-14 22:49:11 +02:00
Roland Geider
3ac4fc8ed4 Branch the flathub repo from master 2026-04-14 22:49:01 +02:00
Roland Geider
0bdfeafb0d Temporarily remove the new categories
Flathub's validator seem to choke on them
2026-04-14 20:22:41 +02:00
Github-Actions
e3e33b717c Bump version to 1.11.0 1.11.0 2026-04-14 17:48:58 +00:00
Roland Geider
0e156898d9 Merge pull request #1177 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-04-14 19:43:58 +02:00
Maksymilian Burdziej
2fc43bcea7 Translated using Weblate (Polish)
Currently translated at 89.3% (344 of 385 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pl/
2026-04-14 19:37:03 +02:00
Roland Geider
bc02cd8e9b Bump minimum required server version and update test server 2026-04-14 19:36:24 +02:00
Roland Geider
af1ce8c2e4 Merge pull request #1169 from wger-project/feature/version-2.5
version 2.5
2026-04-14 19:21:53 +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
6151957b0e Update lock-files 2026-04-14 12:18:33 +02:00
Roland Geider
bceae559f7 Merge branch 'master' into feature/version-2.5 2026-04-14 12:10:20 +02:00
Roland Geider
621a5b679b Update Podfile.lock 2026-04-14 00:11:16 +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
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
Roland Geider
07500bd9d0 Update exercise test data 2026-04-13 23:27:17 +02:00
Roland Geider
b78b26ce68 Merge pull request #1159 from wger-project/feature/weblate
Translations update from Hosted Weblate
2026-04-13 21:41:07 +02:00
vonab65821
9898523c60 Added translation using Weblate (Urdu) 2026-04-13 17:58:01 +00:00
sontor1
ad020f7e91 Translated using Weblate (Norwegian Bokmål)
Currently translated at 26.4% (102 of 385 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/nb_NO/
2026-04-13 17:58:00 +00:00
Edson Wolf
c8eb63a11b Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (385 of 385 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt_BR/
2026-04-13 17:57:59 +00:00
Pawel Jelonek
59bb78580f Translated using Weblate (Polish)
Currently translated at 82.3% (317 of 385 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pl/
2026-04-13 17:57:59 +00:00
Milo Ivir
f464303785 Translated using Weblate (Croatian)
Currently translated at 100.0% (385 of 385 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/hr/
2026-04-13 17:57:58 +00:00
Ninguém Mesmo
f70e0b4d5e Translated using Weblate (Portuguese)
Currently translated at 100.0% (385 of 385 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pt/
2026-04-13 17:57:57 +00:00
Eliza
9b527415e5 Translated using Weblate (Polish)
Currently translated at 81.7% (314 of 384 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/pl/
2026-04-13 17:57:56 +00: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
1a7b6bc559 Cleanup 2026-04-13 15:31:54 +02:00
Roland Geider
40dbe842cd Move the variation to a field in the exercise 2026-04-13 12:58:17 +02:00
Roland Geider
cb17b4754d Merge pull request #1171 from wger-project/dependabot/github_actions/softprops/action-gh-release-3
Bump softprops/action-gh-release from 2 to 3
2026-04-13 12:55:50 +02:00
Roland Geider
3564ecfea4 Merge pull request #1172 from wger-project/dependabot/pub/package_info_plus-10.0.0
Bump package_info_plus from 9.0.1 to 10.0.0
2026-04-13 12:55:04 +02:00
dependabot[bot]
a761bfe730 Bump package_info_plus from 9.0.1 to 10.0.0
Bumps [package_info_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus) from 9.0.1 to 10.0.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/package_info_plus-v10.0.0/packages/package_info_plus)

---
updated-dependencies:
- dependency-name: package_info_plus
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 00:54:14 +00:00
dependabot[bot]
57dbcd7fe5 Bump softprops/action-gh-release from 2 to 3
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 00:53:30 +00:00
Roland Geider
0d825b4be5 Re-activate the automatic flathub manifest generator 2026-04-10 14:39:11 +02:00