How biggieki/wadaagbank-loan-desk works
This is a browser-based loan-management application: customers sign in, submit and track loan applications, and view repayment schedules; administrators review applications and manage loan terms. The routed pages use loan and payment hooks, which access Supabase; authentication also uses Supabase. The graph preserves the calculator, landing and account flows, plus the shared dashboard shell and UI layer. The README is a placeholder, so feature coverage relies on the route map and source index; unsampled page behavior is not inferred.
Main entry points: App.tsx Routes and guards · DashboardLayout.tsx Dashboard layout · useLoans.ts Loan operations · Dashboard.tsx Customer dashboard
Components 21
Access and routing
- Routes and guards
src/App.tsx - Landing page
src/pages/Landing.tsx - Login
src/pages/Login.tsx - Signup
src/pages/Signup.tsx - Authentication
src/context/AuthContext.tsx
Loan applications
- Customer dashboard
src/pages/Dashboard.tsx - Loan application
src/pages/LoanApplication.tsx - Application tracking
src/pages/Applications.tsx - Loan calculator
src/pages/Calculator.tsx - Loan operations
src/hooks/useLoans.ts
Repayment and administration
- Admin dashboard
src/pages/AdminDashboard.tsx - Repayment schedule
src/pages/RepaymentSchedule.tsx - Payment operations
src/hooks/usePayments.ts
Shared interface
- Dashboard layout
src/components/DashboardLayout.tsx - App sidebar
src/components/AppSidebar.tsx - App header
src/components/AppHeader.tsx - Loan status badge
src/components/StatusBadge.tsx - UI components
src/components/ui
Data and services
- Supabase client
src/integrations/supabase/client.ts - Supabase service
Other components
- Customer or admin
Connections 36
- Customer or admin → Routes and guards: opens
src/App.tsx - Routes and guards → Landing page: routes to
src/App.tsx - Routes and guards → Login: routes to
src/App.tsx - Routes and guards → Signup: routes to
src/App.tsx - Routes and guards → Customer dashboard: guards route
src/App.tsx - Routes and guards → Loan application: guards route
src/App.tsx - Routes and guards → Application tracking: guards route
src/App.tsx - Routes and guards → Loan calculator: guards route
src/App.tsx - Routes and guards → Admin dashboard: guards route
src/App.tsx - Routes and guards → Repayment schedule: guards route
src/App.tsx - Routes and guards → Authentication: provides auth
src/App.tsx - Login → Authentication: uses
- Signup → Authentication: uses
src/pages/Signup.tsx - Authentication → Supabase client: auth and profile queries
src/context/AuthContext.tsx - Customer dashboard → Loan operations: loads loans
src/pages/Dashboard.tsx - Customer dashboard → Payment operations: loads payments
src/pages/Dashboard.tsx - Loan application → Loan operations: creates loan
src/pages/LoanApplication.tsx - Application tracking → Loan operations: lists and deletes
src/pages/Applications.tsx - Admin dashboard → Loan operations: manages loans
src/pages/AdminDashboard.tsx - Repayment schedule → Loan operations: loads loans
src/pages/RepaymentSchedule.tsx - Repayment schedule → Payment operations: manages payments
src/pages/RepaymentSchedule.tsx - Loan operations → Supabase client: queries loan data
src/hooks/useLoans.ts - Payment operations → Supabase client: queries payment data
src/hooks/usePayments.ts - Supabase client → Supabase service: accesses
src/integrations/supabase/client.ts - Customer dashboard → Dashboard layout: renders within
src/pages/Dashboard.tsx - Loan application → Dashboard layout: renders within
src/pages/LoanApplication.tsx - Application tracking → Dashboard layout: renders within
src/pages/Applications.tsx - Loan calculator → Dashboard layout: renders within
src/pages/Calculator.tsx - Admin dashboard → Dashboard layout: renders within
src/pages/AdminDashboard.tsx - Repayment schedule → Dashboard layout: renders within
src/pages/RepaymentSchedule.tsx - Dashboard layout → App sidebar: renders
src/components/DashboardLayout.tsx - Dashboard layout → App header: renders
src/components/DashboardLayout.tsx - Application tracking → Loan status badge: displays status
src/pages/Applications.tsx - Admin dashboard → Loan status badge: displays status
src/pages/AdminDashboard.tsx - Dashboard layout → UI components: uses sidebar primitives
src/components/DashboardLayout.tsx - App sidebar → UI components: uses UI primitives
src/components/AppSidebar.tsx