# encoding-muzzu/loan-lounge-hub architecture

> Architecture diagram of the GitHub repository encoding-muzzu/loan-lounge-hub, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/encoding-muzzu/loan-lounge-hub
- Repository: https://github.com/encoding-muzzu/loan-lounge-hub

## Overview

This is a React loan-application frontend. Applicants begin at the welcome and account-type screens, complete a business- or individual-specific information flow, and encounter offer selection, identity/document verification, application status, signing, and disbursement screens. The sampled source shows route registration and several form behaviors, but not the full navigation logic or any backend integration; accordingly, the graph focuses on the application router’s evidenced dispatches and treats page directories as domain-stage components. Shared form and mobile-layout components are included as an internal UI layer.

Main entry points: [`src/App.tsx`](https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/App.tsx) (Application router), [`src/components/ui`](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/components/ui) (Form controls), [`src/pages/individual`](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/individual) (Individual details), [`src/pages/company`](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/company) (Company details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["Application router<br/>[App.tsx]"]
  node_start["Welcome and account"]
end

subgraph group_profiles["Applicant profiles"]
  node_individual["Individual details"]
  node_proprietor["Proprietor details"]
  node_company["Company details"]
end

subgraph group_decision["Offers and verification"]
  node_offers["Loan offers"]
  node_identity["Identity verification"]
  node_documents["Document verification"]
  node_status["Application status"]
end

subgraph group_completion["Loan completion"]
  node_agreements["Loan agreements"]
  node_nach["NACH setup<br/>[NACHSetup.tsx]"]
  node_disbursement["Disbursement"]
end

subgraph group_ui["Shared interface"]
  node_layout["Mobile layout"]
  node_fields["Form fields<br/>[FormField.tsx]"]
  node_controls["Form controls"]
end

node_app -->|"routes to"| node_start
node_app -->|"routes to"| node_individual
node_app -->|"routes to"| node_company
node_app -->|"routes to"| node_offers
node_app -->|"routes to"| node_documents
node_app -->|"routes to"| node_status
node_app -->|"routes to"| node_agreements
node_app -->|"routes to"| node_nach
node_app -->|"routes to"| node_disbursement
node_app -.->|"routes to"| node_identity
node_app -.->|"routes to"| node_proprietor
node_individual -->|"renders"| node_layout
node_individual -->|"uses"| node_fields
node_company -->|"uses"| node_layout
node_company -->|"uses"| node_controls
node_proprietor -->|"uses"| node_controls
node_nach -->|"uses"| node_controls
node_disbursement -->|"uses"| node_controls

click node_app "https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/App.tsx"
click node_start "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages"
click node_individual "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/individual"
click node_proprietor "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/proprietor"
click node_company "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/company"
click node_offers "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages"
click node_identity "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages"
click node_documents "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages"
click node_status "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages"
click node_agreements "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages"
click node_nach "https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/pages/NACHSetup.tsx"
click node_disbursement "https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/pages/DisbursementDetailsConfirmation.tsx"
click node_layout "https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/components/MobileContainer.tsx"
click node_fields "https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/components/FormField.tsx"
click node_controls "https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/components/ui"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_start toneBlue
class node_individual,node_proprietor,node_company toneAmber
class node_offers,node_identity,node_documents,node_status toneMint
class node_agreements,node_nach,node_disbursement toneRose
class node_layout,node_fields,node_controls toneIndigo
```

## Components

### Application entry

- [Application router](https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/App.tsx): `src/App.tsx`
- [Welcome and account](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages): `src/pages`

### Applicant profiles

- [Individual details](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/individual): `src/pages/individual`
- [Proprietor details](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/proprietor): `src/pages/proprietor`
- [Company details](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages/company): `src/pages/company`

### Offers and verification

- [Loan offers](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages): `src/pages`
- [Identity verification](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages): `src/pages`
- [Document verification](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages): `src/pages`
- [Application status](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages): `src/pages`

### Loan completion

- [Loan agreements](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/pages): `src/pages`
- [NACH setup](https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/pages/NACHSetup.tsx): `src/pages/NACHSetup.tsx`
- [Disbursement](https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/pages/DisbursementDetailsConfirmation.tsx): `src/pages/DisbursementDetailsConfirmation.tsx`

### Shared interface

- [Mobile layout](https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/components/MobileContainer.tsx): `src/components/MobileContainer.tsx`
- [Form fields](https://github.com/encoding-muzzu/loan-lounge-hub/blob/main/src/components/FormField.tsx): `src/components/FormField.tsx`
- [Form controls](https://github.com/encoding-muzzu/loan-lounge-hub/tree/main/src/components/ui): `src/components/ui`

## Connections

- Application router → Welcome and account: routes to (evidence: `src/App.tsx`)
- Application router → Individual details: routes to (evidence: `src/App.tsx`)
- Application router → Company details: routes to (evidence: `src/App.tsx`)
- Application router → Loan offers: routes to (evidence: `src/App.tsx`)
- Application router → Document verification: routes to (evidence: `src/App.tsx`)
- Application router → Application status: routes to (evidence: `src/App.tsx`)
- Application router → Loan agreements: routes to (evidence: `src/App.tsx`)
- Application router → NACH setup: routes to (evidence: `src/App.tsx`)
- Application router → Disbursement: routes to (evidence: `src/App.tsx`)
- Application router → Identity verification: routes to (evidence: `src/App.tsx`)
- Application router → Proprietor details: routes to (evidence: `src/App.tsx`)
- Individual details → Mobile layout: renders (evidence: `src/pages/individual/IndividualEmployeeDetails.tsx`)
- Individual details → Form fields: uses (evidence: `src/pages/individual/IndividualEmployeeDetails.tsx`)
- Company details → Mobile layout: uses (evidence: `src/pages/company/CompanyDocuments.tsx`)
- Company details → Form controls: uses (evidence: `src/pages/company/CompanyDocuments.tsx`)
- Proprietor details → Form controls: uses (evidence: `src/pages/proprietor/ProprietorDetails.tsx`)
- NACH setup → Form controls: uses (evidence: `src/pages/NACHSetup.tsx`)
- Disbursement → Form controls: uses (evidence: `src/pages/DisbursementDetailsConfirmation.tsx`)
