Commit graph

10 commits

Author SHA1 Message Date
70376d2e96 Fix FamilyProvider redirect for admin pages
Skip family check when pathname starts with /admin
to prevent redirect to onboarding

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 11:01:37 +05:30
953adbd3b3 Fix memberCount to fetch from database
FamilyProvider now fetches actual member count from family_members API

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 00:53:36 +05:30
31ac12b418 Consolidate settings and add familyName to FamilyProvider
- Settings: Merge Family Settings + Family + Family Members into one Family section
- Add familyName to FamilyProvider from session API
- Show family name, plan, members count, children count in one place
- Show members list with roles
- Remove redundant sections

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 00:48:00 +05:30
cb5f9ac0eb Fix FamilyProvider error handling
- Add API error handling when fetching children
- Set loading to false on API errors to prevent infinite loading state
- Fix pnpm-workspace.yaml for build approval

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 00:12:00 +05:30
c97add7376 Fix login flow: login stays on login, onboarding checks auth, homepage checks family 2026-05-11 00:06:23 +05:30
a95f55967d Audit: Fix FamilyProvider, add signout, remove hardcoded defaults 2026-05-10 23:54:56 +05:30
57e852bfbc Use database sessions with cookie instead of localStorage 2026-05-10 23:40:10 +05:30
1932d2ae6b Fix login flow to store and use real family_id 2026-05-10 23:37:54 +05:30
4a8833b4c7 Sprint 1: Foundation Fix - Complete
- Add tier system migration (free/pro)
- FamilyProvider with tier and memberCount
- Ready for freemium model with limits

Run migration:
psql -f drizzle/0005_tier_system.sql

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 21:50:21 +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