Commit graph

12 commits

Author SHA1 Message Date
3e54efaf66 Add vaccine tabs: Completed/Upcoming/Overdue with days overdue display
- Calculate schedule from child's DOB
- Add tab navigation for vaccines
- Show days overdue for missed vaccines
- Visual indicators (opacity for completed, red border for overdue)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 16:29:33 +05:30
b8c03acd02 Fix Medical page header to match other pages, avoid Turbopack bug
- Header: align with Growth page pattern (p-4, back button left)
- Link: / → /menu
- Rename: Medical 💊 → Medical
- Fix: TT/Td → Tetanus and adult diphtheria (Td) to avoid Turbopack SWC parser error

Note: Apply fixes one change at a time between builds to avoid Turbopack caching issues.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 01:29:35 +05:30
fdd2a67f7a Fix hardcoded IDs and data fetching across all pages
- Add signout button to menu (below Settings)
- Fix profile API to fetch user from database session
- Fix profile page to save name to database
- Fix settings page to use familyId from FamilyProvider
- Fix family page to use FamilyProvider
- Fix activity, ai, medical, memories pages to use FamilyProvider
- Remove all hardcoded "default" familyId and childId values

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 00:32:31 +05:30
4f5836909c Sprint 1: Foundation Fix - Part 1
- FamilyProvider context for auth-based child fetching
- Replaced hardcoded childId with useFamily() hook
- Added tier and memberCount to context (for Pro tier)
- Updated layout to wrap with FamilyProvider
- Added null checks for child data

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 21:49:42 +05:30
3e66b259f2 Migrate medical data from localStorage to database
- Add database tables: medicines, allergies, doctor_visits, illness_logs
- Create API endpoints: /api/medicines, /api/allergies, /api/visits, /api/illnesses
- Update medical page to use database APIs instead of localStorage
- All medical data now persists across sessions and devices

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 21:07:26 +05:30
a1b436710f Add full CRUD for Medicine, Allergies, Doctor Visits, Illness
- Renamed Visits to Doctor Visit
- Medicine: add edit delete with name, dose, notes, reminder time
- Allergies: add edit delete with severity (mild/moderate/severe)
- Doctor Visit: add edit delete with doctor, reason, date, notes
- Illness: add edit delete with start/end dates
- All data persists to localStorage

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 18:07:06 +05:30
e1bd89e664 Add medication reminders to Medicine section
- Each medicine/supplement now has reminder clock button
- Click to set daily reminder time
- Visual feedback when reminder is set

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 17:56:15 +05:30
f370da692f Add Allergies, Visits, Illness sections to Medical page
- Allergies section with add button
- Doctor Visits tracking section
- Illness Log section
- More tab buttons for navigation

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 17:55:50 +05:30
0c29a8ba19 Replace Growth tab with Medicine/Supplements tracking
- Remove duplicate Growth tab from Medical page
- Add Medicine tab with common baby supplements
- Includes Vitamin D3, Iron, Calcium, Zinc, Omega-3, Probiotics

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 17:54:47 +05:30
6c94aaf5de Fix Medical page: link to Growth page
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 16:20:37 +05:30
bfc1543b1c Add administered date for vaccinations and WHO growth benchmarks
Vaccinations:
- Allow custom date input when marking vaccine as given
- Show actual administered date alongside scheduled due date

Growth:
- Add WHO child growth standards data (boys/girls)
- Show age-based benchmarks on Growth page
- Display percentile ranges for weight and height
- Show latest measurement compared to standards

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 16:17:57 +05:30
0adc609e4b Add medical page with IAP vaccination schedule 2026-05-10 05:46:02 +05:30