How finpass/frontend works
Finpass is a financial-planning frontend. Visitors encounter a public product overview, then authenticate and complete a consent-led financial profile; authenticated users can explore dashboard views, portfolio information, recommendations, news, settings, and AI advisory. The graph emphasizes these user-facing stages and the shared API runtime. Dashboard page-to-view links and sampled auth/onboarding calls are visible in the supplied evidence; several dashboard internals and integrations are not, so their connections are omitted rather than inferred.
Main entry points: auth-context.tsx Auth session · http.ts HTTP client · onboarding-flow.tsx Profile wizard · home-route.tsx Dashboard home
Components 21
Public experience
- Product overview
src/app/page.tsx - Product sections
src/components/sections
Authentication
- Auth session
src/features/auth/state/auth-context.tsx - Sign-in flows
src/features/auth/components/auth-modal.tsx - Auth API
src/features/auth/api/auth-api.ts
Financial profile
- Onboarding route
src/app/onboarding/page.tsx - Profile wizard
src/features/profile/components/onboarding-flow.tsx - Profile state
src/features/profile/state/use-profile.ts
Planning dashboard
- Dashboard home
src/features/dashboard/components/home-route.tsx - Financial overview
src/features/dashboard/components/financial-view.tsx - Portfolio
src/features/dashboard/components/portfolio-view.tsx - AI advisory
src/features/dashboard/components/advisory-view.tsx - Advisory API
src/features/dashboard/api/advisory-api.ts - Comparison
src/features/dashboard/components/compare-view.tsx - Discovery
src/features/dashboard/components/discover-view.tsx - Financial news
src/features/dashboard/components/news-view.tsx - Settings
src/features/dashboard/components/settings-view.tsx
Shared runtime
- HTTP client
src/lib/http.ts - API errors
src/lib/api-error.ts
Other components
- Visitor
- Backend API
Connections 17
- Visitor → Product overview: visits
src/app/page.tsx - Product overview → Product sections: renders
src/app/page.tsx - Product sections → Auth session: opens auth
src/components/sections/navbar.tsx - Auth session → Auth API: refreshes session
src/features/auth/state/auth-context.tsx - Auth session → Sign-in flows: renders
src/features/auth/state/auth-context.tsx - Sign-in flows → Auth session: returns session
src/features/auth/components/auth-modal.tsx - Auth API → HTTP client: calls
src/features/auth/api/auth-api.ts - Onboarding route → Profile wizard: renders
src/app/onboarding/page.tsx - Profile wizard → Profile state: uses profile
src/features/profile/components/onboarding-flow.tsx - Profile wizard → Auth session: checks session
src/features/profile/components/onboarding-flow.tsx - Dashboard home → Financial overview: renders
src/features/dashboard/components/home-route.tsx - Dashboard home → Portfolio: renders
src/features/dashboard/components/home-route.tsx - AI advisory → Advisory API: requests turns
src/features/dashboard/components/advisory-view.tsx - Visitor → Backend API
- HTTP client → Backend API: sends requests
src/lib/http.ts - HTTP client → API errors: normalizes errors
src/lib/http.ts - API errors → HTTP client: provides conversion
src/lib/api-error.ts