feat: pump tracker, photo log, milk stock, medication profiles, calendar, reminders, audit log, edit events
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>
This commit is contained in:
+29
-3
@@ -35,9 +35,35 @@
|
||||
## Pending
|
||||
|
||||
🔲 Maintenance mode banner (config key exists, layout doesn't check it yet)
|
||||
🔲 Audit log (last 50 actions across all users)
|
||||
🔲 Data retention (auto-delete events older than N months)
|
||||
🔲 Recurring medication reminders
|
||||
🔲 Bilingual UI (FR/EN toggle)
|
||||
🔲 Weight trend alert (no growth log in 30 days)
|
||||
🔲 Photo log (attach photo to event)
|
||||
✅ 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)
|
||||
|
||||
Reference in New Issue
Block a user