mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
7.37k stars 738 forks source link

[BUG] - Missing serving size on the nutrition label #2804

Open monksy opened 11 months ago

monksy commented 11 months ago

First Check

What is the issue you are experiencing?

The nutritional card on the recipe page does not state the recipe serving size that the nutrition reflects.

Steps to Reproduce

View a recipe, and the card does nto reflect the serving size.

Please provide relevant logs

https://www.fatkitchen.com/low-carb-challah-bread/

Contains a recipe json value in nutrition.servingSize

Mealie Version

Nightly

Deployment

Docker (Linux)

Additional Deployment Details

The template could be formated like this:

nutrition.servingSize out of recipeYield[0]

https://github.com/mealie-recipes/mealie/blob/f8ad72ec3147320c191b1bb1284f06e345a708b0/frontend/components/Domain/Recipe/RecipeNutrition.vue#L4

michael-genson commented 11 months ago

Can you provide a screenshot of what you're seeing? I'm not sure what you're referring to with the nutrition label

monksy commented 11 months ago

image

Recipe brings in serving size in the json data.

The nutrition label needs to explain what that is based on (the serving size)

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

monksy commented 9 months ago

It's still an issue

hay-kot commented 8 months ago

I don't understand why this is a bug. We display the servings that are scraped from the recipe on the recipe.

CleanShot 2024-03-11 at 08 26 19@2x

monksy commented 8 months ago

@hay-kot the nutrition facts that are showned below are those per the entire recipe or per serving?

Screenshot_20240311_103210

hay-kot commented 8 months ago

If the information is scraped, we can't know AFAIK because each provider can choose how they provide that information.

You'd have to do some kind of verification.

If you want to specify a different measurement/size specifically for the nutrition, that would be a feature request and not a bug.

monksy commented 8 months ago

Some of the recipe JSON outs include a portion size field. I included an example of that in the first comment.