feat: daily digest, photo timeline, milk expiry cron, batch delete, duration chart

- /api/cron/daily-digest: last feed/diaper, 24h sleep total, next med due
- /photos: photo grid grouped by day, full-screen lightbox with prev/next
- /api/cron/milk-expiry: push alert for lots expiring within 24h
- Timeline: select mode with checkboxes, confirm + bulk DELETE
- Stats: avg NAP/NIGHT_SLEEP duration trend dual-line chart (30d)
- Nav: Photos link added under "Vie du bébé" drawer group

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-13 16:31:47 +02:00
parent c34796452c
commit e9c8d7e97e
8 changed files with 539 additions and 12 deletions
+5 -5
View File
@@ -67,13 +67,13 @@
🔲 Data retention policy — auto-archive events older than N months
🔲 Offline support / PWA install prompt
🔲 Multi-language UI (FR/EN toggle)
🔲 Daily digest push notification — morning summary: last feed, last diaper, sleep total, next medication due
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)
🔲 Baby photo timeline — dedicated photo journal page, one photo per day, full-screen gallery
🔲 Quick note from dashboard — one-tap free text note without navigating to /notes
🔲 Event duration history chart — average NAP/NIGHT_SLEEP duration over last 30 days (trend line)
🔲 Batch delete events — multi-select in timeline + delete all selected
🔲 Caregiver handoff summary — auto-generated "since last login" digest shown on dashboard login
🔲 Milk stock expiry alert push — notify when a lot expires within 24h (daily cron check)
🔲 Weight percentile push alert — notify when weight drops below/above a configurable WHO percentile band