020539e2e2
New pages: - /calendar — monthly grid with event dots, day detail on tap - /medications — CRUD for medication profiles (presets + custom, dose/unit/intervals/crisis mode) - /milk — milk stock management with location-based expiry, alerts, mark-as-used - /reminders — recurring medication reminder CRUD with Pushover notifications New APIs: - /api/medication-profiles — profiles CRUD + last-intakes endpoint (auto-seeds 10 presets per family) - /api/milk — milk stock CRUD with auto-calculated expiry - /api/reminders + /api/reminders/check — reminder CRUD + cron-callable check endpoint - /api/upload — multipart photo upload to public/uploads/ - /api/invite/send-email — email invitation with family invite link - /api/admin/audit — last 100 audit log entries (superadmin only) Event modal improvements: - PUMP event type (side selector + volume + timer) - MEDICATION: profile chip picker, next-dose timing status, crisis mode toggle - Photo attachment (upload + thumbnail preview) - Datetime inputs split into date + time (iOS Safari datetime-local fix) - Edit mode via initialEvent prop (pre-fills all fields, saves via PATCH) - Timer now shows h:mm:ss when >= 1 hour Timeline: - Modify button opens pre-filled edit modal per event - Photo thumbnail in expanded view Dashboard: - PUMP in quick-log - Medication status card (too-soon / available with next-dose time) Schema additions: MedicationProfile, MedcationReminder, MilkStock, AuditLog models Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
70 lines
3.9 KiB
Markdown
70 lines
3.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
|
||
|
||
🔲 Offline support / PWA install prompt — service worker for offline event logging
|
||
🔲 Multi-language UI (FR/EN toggle) — see also pending Bilingual UI
|
||
🔲 Weekly summary push notification (Sunday digest: feedings, sleep, weight change)
|
||
🔲 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)
|
||
🔲 Baby activities log (bath, walk, tummy time) — lightweight custom event types
|
||
🔲 Sleep log chart — visual night timeline (bar per night, wake markers)
|
||
🔲 Bottle feed from milk stock — direct link: log BOTTLE → decrement milk stock
|
||
🔲 Shared family notes / pinned message (daily handoff summary visible to all members)
|
||
🔲 Event templates / quick presets (e.g. "usual nap 13:00–14:30")
|
||
🔲 Data retention policy — auto-archive events older than N months
|
||
🔲 Maintenance mode banner in layout (config key exists, layout not wired yet)
|