Commit Graph
2 Commits
Author SHA1 Message Date
Marc-André Bombeck 8f96c2f0a2 feat(nutrients): track energy, macronutrients, sodium, potassium and alcohol
The catalog gains energy (kcal), protein, carbohydrates, fat, sugar and
fiber (g), sodium and potassium (mg) and alcohol (g of ethanol, no
HealthKit type). Each code now names its group and whether a
supplement's composition may list it; references name their authority
(EFSA, or IOM for protein and carbohydrates, NIH ODS for chromium).

Day totals fold through one rule everywhere: the largest of the
day-total sources (Apple Health, Health Connect, an external bridge)
counts, manual water and supplement doses add on top. This also stops
Apple Health and Health Connect totals for the same day from adding up.

The nutrients page gets an energy and macronutrient card with an inline
daily target, and an alcohol card next to caffeine. The correlation scan
gives the macros their own budget of two channels and leaves logged
alcohol out. Daily series and the MCP tool return the target the person
set. Refs #1402.
2026-11-17 18:47:02 +01:00
Marc-André Bombeck 01fef691fa feat(web): edit a supplement's composition, read it from a label photo, and show nutrient sources with the upper limit 2026-10-15 23:48:43 +02:00