Commit Graph

1159 Commits

Author SHA1 Message Date
Madhav
3fd0de3257 Apply dart format 2026-03-12 22:48:21 +05:30
Roland Geider
885d88180b Refactor ingredient filter provider
No need to hard code the preferences in main
2026-03-11 15:39:38 +01:00
Saraswathi
efeeea85ab enhancement:persist-ingredient-filters in nutrition 2026-03-05 16:48:52 +05:30
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
81430ff7bc Cleanup 2026-02-27 11:37:00 +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
ef649ad439 Merge pull request #1122 from alexisbirling-boop/improve-product-not-found-dialog
Improve product not found dialog
2026-02-24 21:14:08 +01:00
Roland Geider
dee6c12cea Fixed i18n
and added a max allowed weight as well (but this should probably be done everywhere)
2026-02-24 21:08:37 +01:00
Roland Geider
34403b462a Merge branch 'master' into fork/dhituval/issue721/fix-ingredient-weight 2026-02-24 20:53:11 +01:00
alexisbirling-boop
1ba38b7cf4 Merge branch 'wger-project:master' into improve-product-not-found-dialog 2026-02-24 14:50:41 -05:00
AlexisBirling3
da4c0e7af3 Puts the dialog in a new column and changes style to default 2026-02-24 14:40:55 -05:00
Roland Geider
86ce2fc9d6 Split up the widgets in log_page.dart file 2026-02-20 11:58:47 +01:00
AlexisBirling3
bcbcd1a2dc apply dart format 2026-02-17 15:27:18 -05:00
AlexisBirling3
f40d572fae improves the pop up after a scan gives no result 2026-02-12 10:48:12 -05:00
Roland Geider
9815e51e59 value can't be null here 2026-02-11 13:37:33 +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
cryptbrn
6317cc7fe9 fix add time when log meal and nutrition 2026-01-31 12:28:11 +07:00
Roland Geider
332cc3ddf8 Extract language code as variable 2026-01-29 18:08:44 +01:00
Roland Geider
ff973dacc2 Merge pull request #1087 from cryptbrn/bugfix/fix-time-nutrition-log
add time when log meal and nutrition
2026-01-29 18:00:37 +01:00
Roland Geider
c47118186b Merge branch 'fork/yontank/master' 2026-01-29 17:44:06 +01:00
Roland Geider
f06a15ebac Convert the reps and weight log widgets back to stateful.
This solves some problems with the keyboard focus changing or the quick-add
buttons for reps and weight. Also, add some tests for these.
2026-01-29 17:43:31 +01:00
Roland Geider
891dd6be27 Hide donation section when running under iOS 2026-01-29 14:37:14 +01:00
Yehonatan Avrahimi
330ad382a4 BUGFIX: unfocus while typing in gym_mode form 2026-01-28 23:40:17 +02:00
Roland Geider
92aee1228e Properly filter hidden widgets 🙄 2026-01-19 16:39:06 +01:00
Roland Geider
f5a591a3b7 Add trophies to configurable dashboard lists 2026-01-17 14:01:17 +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
cryptbrn
339e00abd6 add time when log meal and nutrition 2026-01-17 15:32:24 +07:00
Roland Geider
3664da4f78 Merge branch 'master' into fork/dhituval/issue852/hide-diet-plan 2026-01-16 23:06:11 +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
381d28d044 Slightly refactor the fetch session data part in the calendar.
In general, it doesn't make much sense that the sessions are the only data points
that are loaded live every time, all the others are simply read from the respective
providers. Hopefully all this can be removed when (if) we move to using a local sqlite
db with powersync.
2026-01-16 15:40:27 +01:00
Roland Geider
a249292afc Don't show the session time if it's not set 2026-01-16 15:27:04 +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
352a4b1c49 Also show the PR trophies in the regular log page 2026-01-10 16:40:58 +01:00
Roland Geider
696b3333fb Only show the progression bar for uncompleted trophies 2026-01-10 12:57:52 +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
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
9e4897f516 Add smoke test for DashboardTrophiesWidget 2025-12-20 19:40:49 +01:00
Roland Geider
b9fd061d33 Add dashboard widget and rework the provider 2025-12-20 02:06:08 +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
40837ad1b3 Add tests 2025-12-18 11:31:58 +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
33111b79e9 Fix bug causing the "copy to log" to not work anymore 2025-12-16 13:24:10 +01:00
Roland Geider
4b04b2b89a Correctly handle state change in LogFormWidget
This was causing the logs from a previous exercise being displayed and saved
2025-12-14 22:08:22 +01:00
dhituval
60f902fe14 Merge branch 'master' into issue852/hide-diet-plan 2025-12-08 14:00:39 -05:00
Diya Hituvalli
c0d04cbb11 allow the users to hide / show all widgets in the home screen 2025-12-08 13:57:42 -05:00