Commit graph

312 commits

Author SHA1 Message Date
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
c3255e82da Migrate Chat Sessions to database
- Add chat_sessions and chat_messages tables
- Create /api/chat endpoint for CRUD operations
- Update home page and /ai page to use database
- All chat history now persists across sessions and devices

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 21:13:21 +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
967e00c4fa Add smart onboarding to Activity page
- Pediatric guidelines data with age-based schedules
- Show child's age and benchmarks on Activity page
- AI history generation via /api/history
- Generate button to auto-populate past logs from birth

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 16:12:23 +05:30
6ffa2dd875 Add Activity page with timeline view
- Timeline view showing logs grouped by day
- Filter by log type (feed/sleep/diaper)
- Toggle between timeline and calendar views
- Calendar view placeholder for future implementation

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 16:10:54 +05:30
38a773f882 Remove duplicate dark mode toggle from menu 2026-05-10 15:55:34 +05:30
83314e91a8 Update Family, Profile with working APIs - fetch & save baby details 2026-05-10 15:52:59 +05:30
29bf635926 Reorder settings: Notifications, Profile, Family + collapsible theme 2026-05-10 15:49:42 +05:30
03a5e3f3e9 Add Profile, Family, Notifications pages 2026-05-10 15:34:58 +05:30
6a6a0e91da Fix: check R2 config at runtime not build time 2026-05-10 15:30:15 +05:30
c58f64552d Use env vars for R2 (remove hardcoded creds) 2026-05-10 15:18:49 +05:30
070293498b Update CLAUDE.md with R2 storage learnings 2026-05-10 15:16:45 +05:30
1495b9f88e Fix: use items instead of memories 2026-05-10 15:13:45 +05:30
cc239ec574 Fix public URL format 2026-05-10 15:10:09 +05:30
e5b57ee7bc Fix endpoint: remove /tia path 2026-05-10 15:08:40 +05:30
cf5ea7b820 Working upload, list has issues 2026-05-10 15:02:47 +05:30
1dd8563450 Debug: list buckets first 2026-05-10 15:01:53 +05:30
d2c7cee1e8 Final fix for upload API 2026-05-10 14:48:22 +05:30
1fc52a0609 Clean upload API with proper types 2026-05-10 14:46:49 +05:30
4bac63e065 Fix endpoint: add /tia suffix 2026-05-10 14:45:29 +05:30
59ae046726 Simplify: just list bucket contents for debug 2026-05-10 14:44:30 +05:30
d4f617e159 Use account-level endpoint 2026-05-10 14:43:35 +05:30
7b4f47667b Use hardcoded R2 credentials (for testing only) 2026-05-10 14:42:50 +05:30
73c3ddb53e Debug: list all bucket objects 2026-05-10 14:42:03 +05:30
bdd2d3967b Clean up upload API 2026-05-10 14:41:18 +05:30
3e63930e21 Fix list: search all memories with prefix 2026-05-10 14:40:33 +05:30
1c352dade1 Fix endpoint format 2026-05-10 14:38:20 +05:30
c8950589b3 More debug logging 2026-05-10 14:37:34 +05:30
c13b77e5e8 Debug: add logging to list 2026-05-10 14:36:42 +05:30
9f77e6cfaf Use correct R2 public URL 2026-05-10 14:35:32 +05:30
4acd016b70 Use R2 public development URL 2026-05-10 14:35:11 +05:30
864ecc2587 Fix R2 endpoint with bucket path 2026-05-10 14:30:29 +05:30
5de4294919 Use bucket path format 2026-05-10 14:26:08 +05:30
2bf37de50b Fix R2 subdomain URL for tia bucket 2026-05-10 14:25:34 +05:30
cbc058acbe Fix R2 bucket path URL 2026-05-10 14:24:31 +05:30
07381bdf90 Simplify R2 client 2026-05-10 14:24:17 +05:30
7d98c2c46c Fix R2 URL format 2026-05-10 14:24:07 +05:30
e37b9528f9 Fix R2 URL path with bucket name 2026-05-10 14:22:32 +05:30
b39f344426 Fix upload: route through server to avoid CORS 2026-05-10 14:13:17 +05:30
e3c33bb0dc Debug upload: add error handling 2026-05-10 14:07:14 +05:30
d5168316a7 Update CLAUDE.md with R2 env vars 2026-05-10 14:03:43 +05:30
191f176a26 Fix R2 URL path 2026-05-10 14:00:23 +05:30
3334277ec9 Sprint 4: Media Pipeline with Cloudflare R2
- Add R2 credentials (.env.local)
- Create /api/upload with presigned URLs
- Memories gallery UI with grid view and upload
- Images stored in tia bucket
2026-05-10 13:59:22 +05:30
5943ab19eb Update CLAUDE.md with project architecture and patterns 2026-05-10 13:22:40 +05:30