# iortatexhnxt-dev/bdoi-ootb architecture

> Architecture diagram of the GitHub repository iortatexhnxt-dev/bdoi-ootb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iortatexhnxt-dev/bdoi-ootb
- Repository: https://github.com/iortatexhnxt-dev/bdoi-ootb

## Overview

This is a React-based insurance broker and finance operations application. The visible entry workflow checks authentication, presents login when needed, and otherwise enters the main routed application; within employee quote entry, coverage submission dispatches a middleware action, while endorsement coverage changes calculate premiums. The tree also shows substantial claims, policy, renewal, commission, and accounting capabilities. Their detailed routing and service relationships are not established by the sampled excerpts, so those branches are represented without asserted call paths.

Main entry points: [`src/routes/MainRoute.js`](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/routes/MainRoute.js) (Main routes), [`src/App.js`](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/App.js) (React application), [`src/agentModule/EmployeeFlow`](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/EmployeeFlow) (Employee benefits), [`src/agentModule/authModule/Login/index.js`](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/authModule/Login/index.js) (Agent login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["React application<br/>[App.js]"]
  node_routes["Main routes<br/>[MainRoute.js]"]
  node_login["Agent login<br/>[index.js]"]
  node_auth["Authentication service<br/>[authService.js]"]
  node_session[("Token storage<br/>[tokenManager.js]")]
end

subgraph group_sales["Broker sales"]
  node_leads["Lead management"]
  node_quotes["Quote workflow"]
  node_premium["Premium calculations"]
  node_employee["Employee benefits"]
  node_coverage["Coverage submission"]
end

subgraph group_servicing["Policy servicing"]
  node_policies["Policy management"]
  node_endorsements["Endorsements"]
  node_claims["Claims processing"]
  node_renewals["Renewal management"]
end

subgraph group_finance["Finance operations"]
  node_commissions["Commission accounts"]
  node_accounting["Accounting"]
  node_receipts["Policy receipts"]
  node_vouchers["Payment vouchers<br/>[index.js]"]
end

node_user(("Broker user"))

node_user -.->|"opens"| node_app
node_app -->|"renders"| node_routes
node_app -->|"renders"| node_login
node_login -->|"authenticates"| node_auth
node_auth -.->|"stores tokens"| node_session
node_routes -.->|"routes to"| node_leads
node_routes -.->|"routes to"| node_quotes
node_routes -.->|"routes to"| node_policies
node_routes -.->|"routes to"| node_claims
node_routes -.->|"routes to"| node_renewals
node_routes -.->|"routes to"| node_commissions
node_routes -.->|"routes to"| node_accounting
node_routes -.->|"routes to"| node_receipts
node_routes -.->|"routes to"| node_vouchers
node_employee -->|"dispatches"| node_coverage
node_endorsements -->|"calculates with"| node_premium
node_employee -.->|"supports quote entry"| node_quotes

click node_app "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/App.js"
click node_routes "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/routes/MainRoute.js"
click node_login "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/authModule/Login/index.js"
click node_auth "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/services/authService.js"
click node_session "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/utility/tokenManager.js"
click node_leads "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/leadModule"
click node_quotes "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/quoteModule"
click node_premium "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/quoteModule/utils/premiumCalculations.js"
click node_employee "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/EmployeeFlow"
click node_coverage "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/quoteModule/coverageDetails/store/coverageDetailsMiddleware.js"
click node_policies "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/policyModule"
click node_endorsements "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/endorsementModule"
click node_claims "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/claimsModule"
click node_renewals "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/module/Renewal"
click node_commissions "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/module/Commission"
click node_accounting "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/accountingModule"
click node_receipts "https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/module/Receipts"
click node_vouchers "https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/module/PaymentVoucher/index.js"

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_routes,node_login,node_auth,node_session,node_user toneBlue
class node_leads,node_quotes,node_premium,node_employee,node_coverage toneAmber
class node_policies,node_endorsements,node_claims,node_renewals toneMint
class node_commissions,node_accounting,node_receipts,node_vouchers toneRose
```

## Components

### Application shell

- [React application](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/App.js): `src/App.js`
- [Main routes](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/routes/MainRoute.js): `src/routes/MainRoute.js`
- [Agent login](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/authModule/Login/index.js): `src/agentModule/authModule/Login/index.js`
- [Authentication service](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/services/authService.js): `src/services/authService.js`
- [Token storage](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/utility/tokenManager.js): `src/utility/tokenManager.js`

### Broker sales

- [Lead management](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/leadModule): `src/agentModule/leadModule`
- [Quote workflow](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/quoteModule): `src/agentModule/quoteModule`
- [Premium calculations](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/quoteModule/utils/premiumCalculations.js): `src/agentModule/quoteModule/utils/premiumCalculations.js`
- [Employee benefits](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/EmployeeFlow): `src/agentModule/EmployeeFlow`
- [Coverage submission](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/agentModule/quoteModule/coverageDetails/store/coverageDetailsMiddleware.js): `src/agentModule/quoteModule/coverageDetails/store/coverageDetailsMiddleware.js`

### Policy servicing

- [Policy management](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/policyModule): `src/agentModule/policyModule`
- [Endorsements](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/endorsementModule): `src/agentModule/endorsementModule`
- [Claims processing](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/claimsModule): `src/agentModule/claimsModule`
- [Renewal management](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/module/Renewal): `src/module/Renewal`

### Finance operations

- [Commission accounts](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/module/Commission): `src/module/Commission`
- [Accounting](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/agentModule/accountingModule): `src/agentModule/accountingModule`
- [Policy receipts](https://github.com/iortatexhnxt-dev/bdoi-ootb/tree/main/src/module/Receipts): `src/module/Receipts`
- [Payment vouchers](https://github.com/iortatexhnxt-dev/bdoi-ootb/blob/main/src/module/PaymentVoucher/index.js): `src/module/PaymentVoucher/index.js`

### Other components

- **Broker user**

## Connections

- Broker user → React application: opens
- React application → Main routes: renders (evidence: `src/App.js`)
- React application → Agent login: renders (evidence: `src/App.js`)
- Agent login → Authentication service: authenticates (evidence: `src/agentModule/authModule/Login/index.js`)
- Authentication service → Token storage: stores tokens
- Main routes → Lead management: routes to
- Main routes → Quote workflow: routes to
- Main routes → Policy management: routes to
- Main routes → Claims processing: routes to
- Main routes → Renewal management: routes to
- Main routes → Commission accounts: routes to
- Main routes → Accounting: routes to
- Main routes → Policy receipts: routes to
- Main routes → Payment vouchers: routes to
- Employee benefits → Coverage submission: dispatches (evidence: `src/agentModule/EmployeeFlow/CQcoverageDetails.js`)
- Endorsements → Premium calculations: calculates with (evidence: `src/agentModule/endorsementModule/personalDetails/SplitScreens/CoverageChange.jsx`)
- Employee benefits → Quote workflow: supports quote entry (evidence: `src/agentModule/EmployeeFlow/CQcoverageDetails.js`)
