Files
Grow/FEATURES.md
T
arnaudne 81d7e5ad73 feat: sleep chart, bottle-from-stock, growth alert cron
- SleepTimeline component in stats: 7-night bar chart, 19h–11h window,
  NIGHT_SLEEP (indigo) and NAP (violet) blocks, pure CSS positioning
- Bottle modal: fetch available maternal milk lots, chip picker,
  auto-selects oldest, marks selected lot as used after save
- /api/cron/growth-alert: Bearer-auth POST, configurable threshold via
  growth_alert_days SystemConfig key (default 30 days), Pushover alert
  to all family users per baby with no recent weight log
- Admin config ALLOWED_KEYS: add cron_secret + growth_alert_days

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 15:58:13 +02:00

4.0 KiB
Raw Blame History

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, 19h11h 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)