mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Reuses the TrendCard strip-tile pattern (icon, neutral direction sentiment, stale-days caption) for a new waterIntake widget, but sources it from NutrientIntakeDay instead of introducing a parallel MeasurementType. The dashboard snapshot builder reads the last 30 day-keys for nutrient="water" (summed across sources), folds them into a synthetic NUTRIENT_WATER summary key alongside the real MeasurementType summaries, and the existing module-gating machinery (SUMMARY_TYPE_MODULE, WIDGET_MODULE_BY_ID) strips it when the opt-in nutrients module is off — no new gating code path, just two new map entries. The tile links out to /insights/nutrients instead of a measurement detail page. Widget catalogue grows 37 -> 38 ids.