smooth-app
smooth-app copied to clipboard
Nutrition facts: check values before sending them
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