mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
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.