smooth-app icon indicating copy to clipboard operation
smooth-app copied to clipboard

Nutrition facts: check values before sending them

Open g123k opened this issue 1 year ago • 2 comments

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

g123k avatar Aug 04 '23 15:08 g123k