Commit graph

18 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
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
e7411ee31f Unify homepage AI card with session system
- Uses tia_chat_sessions localStorage (shared with /ai page)
- First question becomes session title
- All chats now saved for future reference in /ai

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 13:13:17 +05:30
c1057830b1 Improve AI card - chat popup, saved chats, quick questions below 2026-05-10 12:34:41 +05:30
415e92ada7 Add Medical button back to Quick Log 2026-05-10 12:22:36 +05:30
8bac2a3a7d Add AI chat card with quick questions 2026-05-10 12:21:25 +05:30
a599116118 Add AI quick chat to home page 2026-05-10 12:17:46 +05:30
d9b9afbf5c Add menu navigation, sun/moon toggle, baby favicon 2026-05-10 11:34:00 +05:30
dea394f566 Fix menu/settings navigation using Link 2026-05-10 11:02:50 +05:30
f24c5e7680 Add better home UI with greeting, age card, quick log, recent activity 2026-05-10 10:45:29 +05:30
0adc609e4b Add medical page with IAP vaccination schedule 2026-05-10 05:46:02 +05:30
fa14a22554 Add PWA manifest and service worker 2026-05-10 05:45:11 +05:30
34e8ffe5f2 Add offline queue with localStorage 2026-05-10 05:44:39 +05:30
297479fc1d Add fast-log UI with modal for feed/diaper/sleep 2026-05-10 05:42:12 +05:30
152bf2079c demo: simple UI without DB 2026-05-10 04:45:30 +05:30
0da7fd15b2 fix: root redirects to login 2026-05-10 04:45:08 +05:30
70e289e13b chore: initial setup 2026-05-10 03:33:32 +05:30