How jayasurya1235/wealthpath works
WealthPath is a personal-finance planning app: users enter income, expenses, savings goals, and risk preferences, then review financial-health insights, ask an AI advisor, and explore investment growth scenarios. The graph separates onboarding, dashboard, investment planning, and account access, with shared client state and calculation helpers as an internal layer. Some routes and integrations are represented only by the SOURCE INDEX; edges are limited to relationships it documents or to excerpted calls.
Main entry points: onboarding/page.tsx Onboarding flow · dashboard/page.tsx Dashboard · invest/page.tsx Investment planner · store.ts Financial profile store
Components 27
Financial onboarding
- Onboarding flow
app/onboarding/page.tsx - Personal details
components/onboarding/StepWelcome.tsx - Income entry
components/onboarding/StepIncome.tsx - Expense entry
components/onboarding/StepExpenses.tsx - Goals and risk
components/onboarding/StepGoals.tsx - Step progress
components/onboarding/StepProgress.tsx
Financial dashboard
- Dashboard
app/dashboard/page.tsx - Health score
components/dashboard/HealthScore.tsx - Expense chart
components/dashboard/ExpenseChart.tsx - Financial insights
components/dashboard/InsightsPanel.tsx - AI advisor panel
components/dashboard/AIAdvisorPanel.tsx - Advisor endpoint
app/api/advisor/route.ts - Advisor page
app/advisor/page.tsx
Investment planning
- Investment planner
app/invest/page.tsx - Investment allocation
components/invest/AllocationCard.tsx - Growth projection
components/invest/GrowthChart.tsx - Retirement planning
components/invest/RetirementCard.tsx
Shared services
- Financial profile store
lib/store.ts - Finance calculations
lib/utils.ts - Finance options
lib/constants.ts - Sign-in page
app/(auth)/sign-in/page.tsx - Sign-up page
app/(auth)/sign-up/page.tsx - Auth confirmation
app/auth/confirm/route.ts - Supabase browser client
lib/supabase/client.ts - Supabase server client
lib/supabase/server.ts - UI primitives
components/ui
Other components
- User
Connections 33
- User → Onboarding flow: enters profile
app/onboarding/page.tsx - Onboarding flow → Step progress: renders progress
app/onboarding/page.tsx - Onboarding flow → Personal details: renders step
app/onboarding/page.tsx - Onboarding flow → Income entry: renders step
app/onboarding/page.tsx - Onboarding flow → Expense entry: renders step
app/onboarding/page.tsx - Onboarding flow → Goals and risk: renders step
app/onboarding/page.tsx - Onboarding flow → Financial profile store: saves profile
app/onboarding/page.tsx - Onboarding flow → Dashboard: routes on finish
app/onboarding/page.tsx - Dashboard → Financial profile store: reads profile
app/dashboard/page.tsx - Dashboard → Finance calculations: calculates score
app/dashboard/page.tsx - Dashboard → Health score: renders score
app/dashboard/page.tsx - Dashboard → Expense chart: renders chart
app/dashboard/page.tsx - Dashboard → Financial insights: renders insights
app/dashboard/page.tsx - Dashboard → AI advisor panel: renders advisor
app/dashboard/page.tsx - AI advisor panel → Financial profile store: reads profile
components/dashboard/AIAdvisorPanel.tsx - AI advisor panel → Advisor endpoint: sends chat
components/dashboard/AIAdvisorPanel.tsx - Advisor page → Financial profile store: uses profile
app/advisor/page.tsx - User → Investment planner: opens plan
- Investment planner → Financial profile store: reads profile
app/invest/page.tsx - Investment planner → Finance options: selects investments
app/invest/page.tsx - Investment planner → Finance calculations: projects growth
app/invest/page.tsx - Investment planner → Investment allocation: renders allocation
app/invest/page.tsx - Investment planner → Growth projection: renders projection
app/invest/page.tsx - Investment planner → Retirement planning: renders retirement
app/invest/page.tsx - User → Sign-in page: signs in
app/(auth)/sign-in/page.tsx - User → Sign-up page: creates account
app/(auth)/sign-up/page.tsx - Sign-in page → Supabase browser client: authenticates
app/(auth)/sign-in/page.tsx - Sign-up page → Supabase browser client: authenticates
app/(auth)/sign-up/page.tsx - Auth confirmation → Supabase server client: confirms session
app/auth/confirm/route.ts - Sign-in page → UI primitives: uses controls
app/(auth)/sign-in/page.tsx - Sign-up page → UI primitives: uses controls
app/(auth)/sign-up/page.tsx - Dashboard → UI primitives: uses controls
app/dashboard/page.tsx - Onboarding flow → UI primitives: uses controls
app/onboarding/page.tsx