- GoalCard renders nested goal hierarchy with indentation
- Progress bars with emerald accent for active goals
- Milestone checklist with done/pending states
- Stats: active count, completion rate, average progress
- Empty state with guidance to ask Ivy
- All 7 Cockpit views now active
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SSOT:
- Centralize DEFAULT_USER_ID and DEFAULT_USER_NAME in lib/constants
- Extract CHANNEL_CONFIG to config/channels.ts (was duplicated in PersonCard + PersonDetail)
- Use DEFAULT_USER_NAME in greeting instead of hardcoded "George"
DRY:
- Extract shared Card, CardHeader, CardSkeleton, StatCard to components/ui/card
- Extract PageLayout to components/ui/page-layout
- Extract useFetch hook to hooks/use-fetch
- Refactor all 6 pages + 5 components to use shared primitives
Security:
- Escape LIKE wildcards in people search (prevent pattern injection)
- Validate UUID format on /api/people/[id] (prevent Postgres errors)
- Add input length + range validation on /api/people search params
- Fail fast with clear error if DATABASE_URL is unset
Error handling:
- Add global error.tsx boundary with retry button
- Add loading.tsx skeleton for route transitions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>