Commit Graph

4795 Commits

Author SHA1 Message Date
Roland Geider
27cdd322d0 Set the exercises for log objects 2026-04-24 10:58:06 +02:00
Roland Geider
30072fb2cc Properly handle timezones for datetime values 2026-04-24 10:35:13 +02:00
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
c1d2fbe67b Show loading spinner for the routine widget in the dashboard 2026-04-23 15:38:21 +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
9cccca2b77 Consolidate app server checks in one helper 2026-04-23 12:59:53 +02:00
Roland Geider
f7458f86f5 Add unreachable server screen and related error handling 2026-04-23 12:41:37 +02:00
Roland Geider
eaa45791f7 Use correct controller 2026-04-22 15:46:00 +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
Roland Geider
c59fd68fe7 Pass the userID and the expiration to the PowerSync credentials 2026-04-20 17:06:35 +02:00
Roland Geider
e8e0cc53bb Remove the uuid column in the weight table, this doesn't exist anymore 2026-04-20 17:05:14 +02:00
Roland Geider
e0892c42d4 Refactor calendar widget
This is less brittle (the dreaded context async gap) and should be easier to
understand in the future
2026-04-20 17:04:50 +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
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
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
fdce3bf9a9 Rename file with the wger base provider 2026-04-18 19:05:42 +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
7a15ea081c Remove rive as a dependency, not needed anymore
The widgets take care of loading the data they need
2026-04-18 16:45:14 +02:00
Roland Geider
8252dcdd74 Properly check if the userprofile was correctly loaded 2026-04-18 16:21:41 +02:00
Roland Geider
c1a733b423 Clear the powersync database when a user logs out 2026-04-17 22:48:14 +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
4cbbdbf42a Don't make the repositories final 2026-04-17 15:05:15 +02:00
Roland Geider
efce4a959e Bump some dependencies 2026-04-17 14:42:42 +02:00
Roland Geider
0b9d3d59b9 Move exercise model to new variation structure 2026-04-17 12:34:51 +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
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