How sithilsemitha/deathbed-frontend works
This is a React decision-reflection app, not the generic Vite template its README describes. Users authenticate, provide consent and profile details, then enter decisions and can explore bias checks, regret ratings, matched profiles, and reflection journals. The dashboard presents saved activity; similar stories and follow-up preferences are additional features. Some API and storage behavior is visible, but many route implementations are unsampled, so their internal calls and transitions are not inferred.
Main entry points: App.tsx Application router · OnboardingWizard.tsx Consent and profile · DashboardRoute.tsx Dashboard · MatchedProfilesRoute.tsx Profile matching
Components 25
App and access
- Application router
src/App.tsx
Identity and onboarding
- Login
src/routes/LoginRoute.tsx - Sign up
src/routes/SignUpRoute.tsx - Auth callback
src/routes/AuthCallbackRoute.tsx - Session storage
src/lib/auth.ts - Consent and profile
src/components/auth/OnboardingWizard.tsx - Profile form
src/components/auth/ProfileSetupForm.tsx - Data usage
src/routes/DataUsageRoute.tsx
Decision tools
- Decision input
src/routes/DecisionInputRoute.tsx - Dashboard
src/routes/DashboardRoute.tsx - Bias check
src/routes/BiasCheckRoute.tsx - Regret rating
src/routes/RegretRatingRoute.tsx - Profile matching
src/routes/MatchedProfilesRoute.tsx - Outcome comparison
src/components/matching/FinancialComparisonSection.tsx
Reflection and history
- Follow-up preferences
src/routes/FollowUpPreferenceRoute.tsx - Journal history
src/routes/JournalHistoryRoute.tsx - Journal detail
src/routes/JournalDetailRoute.tsx - Similar stories
src/routes/SimilarStoriesRoute.tsx - Rate limit notice
src/components/shared/RateLimitNotice.tsx
API and data
- Match data and filters
src/lib/matches.ts - Journal data
src/lib/journals.ts - Dashboard data
src/lib/accountData.ts - API client
src/lib/api.ts
Other components
- User
- Application API
Connections 28
- User → Application router: uses
- Application router → Session storage: checks session
src/App.tsx - Application router → Login: routes
src/App.tsx - Application router → Sign up: routes
src/App.tsx - Application router → Auth callback: routes
src/App.tsx - Application router → Consent and profile: routes
src/App.tsx - Application router → Decision input: routes
src/App.tsx - Application router → Dashboard: routes
src/App.tsx - Application router → Bias check: routes
src/App.tsx - Application router → Regret rating: routes
src/App.tsx - Application router → Profile matching: routes
src/App.tsx - Application router → Data usage: routes
src/App.tsx - Application router → Follow-up preferences: routes
src/App.tsx - Application router → Journal history: routes
src/App.tsx - Application router → Journal detail: routes
src/App.tsx - Application router → Similar stories: routes
src/App.tsx - Consent and profile → Profile form: renders
src/components/auth/OnboardingWizard.tsx - Consent and profile → API client: loads and saves profile
src/components/auth/OnboardingWizard.tsx - Auth callback → Session storage: clears session
src/routes/AuthCallbackRoute.tsx - Dashboard → Dashboard data: loads and saves
src/routes/DashboardRoute.tsx - Dashboard → Session storage: clears session
src/routes/DashboardRoute.tsx - Profile matching → Outcome comparison: renders
src/routes/MatchedProfilesRoute.tsx - Profile matching → Match data and filters: uses match data
src/routes/MatchedProfilesRoute.tsx - Journal history → Journal data: reads journal data
src/routes/JournalHistoryRoute.tsx - Journal detail → Journal data: reads journal data
src/routes/JournalDetailRoute.tsx - Bias check → Rate limit notice: renders
src/routes/BiasCheckRoute.tsx - Similar stories → Rate limit notice: renders
src/routes/SimilarStoriesRoute.tsx - API client → Application API: sends HTTP requests
src/lib/api.ts