openfoodfacts/smooth-app
View on GitHubNutrition facts: check values before sending them
Open
#4,446 opened on Aug 4, 2023
data qualitygood first issuenutrition facts✏️ Editing - Nutrition input🎯 P1
Repository metrics
- Stars
- (1,372 stars)
- PR merge metrics
- (PR metrics pending)
Description
Hi everyone,
Currently, we don't check what is in the nutrition screen, whereas on the website we have multiple checks.
Tasks
- Ensure the relation between kJ / kCal is correct
- Energy should not exceed 3800 kJ
- Fat should not exceed 100g (if it's per 100g)
- Saturated fat should not exceed fat
- Carbohydrates should not exceed 100g (if it's per 100g)
- Sugars fat should not exceed carbohydrates
- Fibers should not exceed 100g (if it's per 100g)
- Proteins should not exceed 100g (if it's per 100g)
- Compute sodium / salt
- Generally speaking, all items shouldn't exceed 100g, it's per 100g