Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nutrition goals #436

Closed
rolandgeider opened this issue Oct 16, 2023 · 0 comments · Fixed by #555
Closed

Add support for nutrition goals #436

rolandgeider opened this issue Oct 16, 2023 · 0 comments · Fixed by #555
Assignees

Comments

@rolandgeider
Copy link
Member

rolandgeider commented Oct 16, 2023

Add support for nutrition goals as implemented in wger-project/react#799 and wger-project/wger#1437

The nutrition page should behave and look as similar as possible to the web variant. Since we will need some new charts, we need to wait till #433 is done, there is some basic work done in feature/nutrition-goals

Basically we have some new fields,

  • onlyLogging
  • goalEnergy, goalProtein, goalCarbohydrates and goalFat

If only logging is active, buttons allowing the user to add a meal are hidden. The planned nutritional values for a plan are either the values from the goal* fields or the calculated values from regular meals.

There is also a new "pseudo meal" box that shows all logs for today that don't belong to any meal

Here are some screenshots from the web:

Dashboard

Goal calories, protein (not fulfilled) and carbohydrates (over the limit, perhaps make this red?). Fat has no goals and just counts up
image

No goals (just count up)
image

Detail page

Only-logging flag activated (there is no button to add meals).
image
image

Form

image
image

@rolandgeider rolandgeider self-assigned this Nov 19, 2023
@Dieterbe Dieterbe mentioned this issue Apr 15, 2024
8 tasks
@Dieterbe Dieterbe linked a pull request Apr 15, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant