All three useEffect calls were placed after an early return when childId was
null, causing React error #310 on the home page. Moved them above the
conditional returns and guarded each body with if (!childId) return.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Show vaccine reminder banner on home page
- Link to medical page for details
- Show due/overdue status
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 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>
- 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>
- 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>