Using the nutrients from $utils/nutrients.js, all counters should be dynamically generated. Users should be able to disable/enable certain counters in their settings. Charts and various other features are also affected by this.
Goals & limits (Goals are currently only set for protein and water while limits are only set for calories and sodium).
db.js inserts default goals, counts, and limits for each nutrient. May have to add more defaults or even better, allow the components/charts to have a default value which is saved when the user takes an action.
This is also a good time to abstract water away as a nutrient though it doesn't come as a value from the OpenFoodFacts AP (at least, I don't think it does).
Using the nutrients from $utils/nutrients.js, all counters should be dynamically generated. Users should be able to disable/enable certain counters in their settings. Charts and various other features are also affected by this.
This is also a good time to abstract water away as a nutrient though it doesn't come as a value from the OpenFoodFacts AP (at least, I don't think it does).
Related issues:
185
147
93