Maintenance mode banner: - App layout reads SystemConfig maintenance_mode at server render time - Amber sticky banner for regular users, dimmed indicator for superadmin Baby activities (3 new event types): - BATH (Bath icon, sky, timer+duration) - WALK / Balade (Footprints icon, lime) - TUMMY_TIME (Baby icon, amber) - Added to EventType enum, EVENT_CONFIG, event-icon.tsx, dashboard quick-log Pinned family note: - Shared across all family members, shown at top of dashboard - Inline edit with author + timestamp; /api/family/pinned-note GET/PATCH - pinnedNote + pinnedNoteUpdatedAt + pinnedNoteAuthor fields on Family model Event templates: - Named quick-log presets per family (type + label + metadata) - Dashboard row: tap to open pre-filled EventModal; hover ✕ to delete - Dropdown to create new template; /api/event-templates GET/POST + /[id] PATCH/DELETE - EventTemplate model in schema Weekly summary cron: - POST /api/cron/weekly-summary — auth via Bearer cron_secret (SystemConfig or env) - Per family, per baby: feeds count, sleep total+avg, diaper count, latest weight - Sends Pushover to all family members with pushoverUserKey - Optional body.familyId to target one family Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4.1 KiB
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
🔲 Offline support / PWA install prompt — service worker for offline event logging 🔲 Multi-language UI (FR/EN toggle) — see also pending Bilingual UI ✅ 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 🔲 Feeding pattern AI insight (detect sleep regression, feeding cluster, etc.) 🔲 Contacts / care team directory (pediatrician, midwife, family contact numbers) 🔲 Sleep log chart — visual night timeline (bar per night, wake markers) 🔲 Bottle feed from milk stock — direct link: log BOTTLE → decrement milk stock 🔲 Data retention policy — auto-archive events older than N months 🔲 Offline support / PWA install prompt 🔲 Multi-language UI (FR/EN toggle)