e9c8d7e97e
- /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>
80 lines
4.9 KiB
Markdown
80 lines
4.9 KiB
Markdown
# Grow — Feature Tracker
|
||
|
||
## Completed
|
||
|
||
✅ Edit/delete events from timeline
|
||
✅ Journal/notes page (free-form daily notes) — /notes
|
||
✅ Doctor notes view — /doctor-notes (DOCTOR adds, all read)
|
||
✅ Baby profile edit (in settings)
|
||
✅ Multiple babies — adding from settings + switcher in sidebar
|
||
✅ Sleep summary in stats (total, avg/day, longest stretch)
|
||
✅ Feeding tracker summary in stats (breastfeed duration, bottle count, avg interval)
|
||
✅ WHO growth percentile curves on growth chart
|
||
✅ Vaccination tracker — /vaccinations
|
||
✅ Milestones — /milestones
|
||
✅ CSV export per event type with date filter (in settings)
|
||
✅ Dark mode filter pills
|
||
✅ Dark mode graph hover/tooltip
|
||
✅ Growth graph time range selector
|
||
✅ Growth graph hover order + dark mode
|
||
✅ Signout button in sidebar
|
||
✅ Journal full page width
|
||
✅ All pages full width (no max-w constraint)
|
||
✅ Baby switcher in sidebar (not homepage)
|
||
✅ New pages in mobile nav (via More menu)
|
||
✅ Disable signups (admin toggle)
|
||
✅ User list in admin (with role editing and delete)
|
||
✅ Force logout user (admin)
|
||
✅ Family list in admin (with reset invite code)
|
||
✅ Storage stats in admin
|
||
✅ Pushover test button in admin
|
||
✅ Email test button in admin
|
||
✅ Backup/export all (admin)
|
||
✅ Maintenance mode toggle (admin config — banner not yet wired)
|
||
|
||
## Pending
|
||
|
||
🔲 Maintenance mode banner (config key exists, layout doesn't check it yet)
|
||
🔲 Data retention (auto-delete events older than N months)
|
||
🔲 Bilingual UI (FR/EN toggle)
|
||
🔲 Weight trend alert (no growth log in 30 days)
|
||
✅ Breast pump / milk expression tracker (suivi tirage de lait) — volume, duration, side, time
|
||
✅ Email invitation from UI (invite family members by email, not just invite code)
|
||
✅ Settings page broken on mobile — FAB hidden on /settings, bottom padding increased
|
||
✅ Photo log (attach photo to event) — upload API, picker in event modal, thumbnail in timeline
|
||
✅ Audit log — AuditLog model, logs event CRUD, admin table (/api/admin/audit)
|
||
✅ Recurring medication reminders — /reminders page, CRUD API, Pushover via /api/reminders/check (call from cron)
|
||
✅ Calendar view — /calendar monthly grid with event dots, day detail on tap
|
||
✅ Milk stock management — /milk page, lots with location (room/fridge/freezer), configurable expiry, alerts, notes, mark-as-used; PUMP now in dashboard quick-log
|
||
✅ Medication profiles — /medications page, preset + custom profiles, dose/unit/interval/crisis-interval, auto-seeded on first use
|
||
✅ Medication next-dose enforcement — visual warning in event modal + dashboard status card, crisis mode toggle
|
||
✅ Datetime selectors fixed — split date + time inputs (iOS Safari datetime-local compatibility)
|
||
✅ Live timer h:m:s — timers ≥ 1h now show h:mm:ss format
|
||
✅ Edit events from timeline — Modifier button opens pre-filled event modal, saves via PATCH
|
||
|
||
## Feature ideas / backlog
|
||
|
||
✅ Weekly summary cron — POST /api/cron/weekly-summary, 7-day digest per baby (feedings, sleep, diapers, weight), Pushover to family; auth via Bearer cron_secret
|
||
✅ Baby activities log — BATH, WALK, TUMMY_TIME event types (timer + duration)
|
||
✅ Pinned family note — shared editable note on dashboard; /api/family/pinned-note
|
||
✅ Event templates — named quick-log presets; create/delete from dashboard; /api/event-templates
|
||
✅ Maintenance mode banner — layout reads SystemConfig; amber banner for users, indicator for superadmin
|
||
✅ Growth alert: no weight log in 30 days → push notification (configurable via growth_alert_days config key)
|
||
✅ Sleep log chart — visual night timeline (bar per night, 7 days, 19h–11h window)
|
||
✅ Bottle feed from milk stock — log BOTTLE → select maternal lot → auto-mark as used
|
||
🔲 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
|
||
🔲 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
|