mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Surface plain-language takeaways above the mood charts: the weekday dip and peak, the overall trend direction, the weekend-vs-weekday effect, the strongest tag-to-mood lift and drop, the in-target share, and the current logging streak. Each takeaway is threshold-gated — every minimum sample count and minimum effect size is a named constant, and a takeaway only renders once its bar is cleared, so the feed never falls back to filler. The list is ranked by effect size and capped. The takeaways are pure helpers computed from the existing mood aggregates, so the same feed reaches both the insights endpoint and the mood snapshot the model reasons over — what the page shows matches what the model is sent. Also promote the previously snapshot-only in-target percentage to a visible headline tile.