feat: feeding heatmap, diaper streak, quick note, handoff summary, weight percentile alert, growth curve labels

- stats: 7×24 feed density heatmap (Mon–Sun × 24h, indigo intensity, dark mode)
- stats: diaper streak card — current consecutive days ≥4 couches + best streak for period
- dashboard: QuickNoteWidget — inline journal note (sky card) without leaving dashboard
- dashboard: HandoffWidget — localStorage "since last visit" digest (feeds/diapers/sleep) shown after 2h gap
- growth: replace S0/S1/S2 x-axis with human labels (Naiss., 1sem, 2sem, 1m, 2m … 1 an)
- growth: tooltip shows age in full words (e.g. "3 mois 1 sem.")
- cron: POST /api/cron/weight-percentile-alert — alerts when baby weight exits configurable WHO band (weight_percentile_min / weight_percentile_max SystemConfig keys, deduped per measurement)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 17:05:04 +02:00
parent b417eb648c
commit e27f42942c
5 changed files with 419 additions and 15 deletions
+6 -6
View File
@@ -65,15 +65,15 @@
🔲 Feeding pattern AI insight (detect sleep regression, feeding cluster, etc.)
🔲 Contacts / care team directory (pediatrician, midwife, family contact numbers)
🔲 Data retention policy — auto-archive events older than N months
🔲 Offline support / PWA install prompt
Offline support / PWA install prompt — service worker via next-pwa, PNG icons, apple-touch-icon, offline fallback page
🔲 Multi-language UI (FR/EN toggle)
✅ Daily digest push notification — /api/cron/daily-digest: last feed, last diaper, sleep total, next medication due
✅ Baby photo timeline — /photos, grid by day, full-screen lightbox with prev/next nav
✅ Milk stock expiry alert push — /api/cron/milk-expiry: lots expiring within 24h, grouped by family
✅ Batch delete events — "Sélectionner" mode in timeline, checkboxes per row, confirm + bulk delete
✅ Event duration history chart — avg NAP/NIGHT_SLEEP duration per day, dual-line chart in stats
🔲 Feeding session heatmap — 7×24 grid showing feed density by hour/day of week
🔲 Diaper tracker streak — consecutive days with at least N diapers (regression alert)
🔲 Quick note from dashboard — one-tap free text note without navigating to /notes
🔲 Caregiver handoff summary — auto-generated "since last login" digest shown on dashboard login
🔲 Weight percentile push alert — notify when weight drops below/above a configurable WHO percentile band
Feeding session heatmap — 7×24 grid showing feed density by hour/day of week, in stats page
Diaper tracker streak — consecutive days with ≥4 couches; current + best streak in stats
Quick note from dashboard — inline journal note widget (sky card) without leaving dashboard
Caregiver handoff summary — localStorage-based "since last visit" digest on dashboard (feeds/diapers/sleep, shown after 2h gap)
Weight percentile push alert — /api/cron/weight-percentile-alert: alerts when weight outside configurable WHO band (weight_percentile_min / weight_percentile_max SystemConfig keys)