# openmf/mifos-x-web-app-react architecture

> Architecture diagram of the GitHub repository openmf/mifos-x-web-app-react, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openmf/mifos-x-web-app-react
- Repository: https://github.com/openmf/mifos-x-web-app-react

## Overview

This is the React/TypeScript Mifos-X web application: staff use it to manage financial operations and organization data through a browser UI backed by Apache Fineract. The main runtime path mounts the app, configures state and optional OIDC authentication, then routes users through protected pages. The tree shows broad domains including clients, loans, savings, products, accounting, reporting, and administration. Source excerpts establish only selected routing, client-view, and document-preview links; other domain connections are left unasserted rather than inferred.

Main entry points: [`src/router/AppRoutes.tsx`](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/router/AppRoutes.tsx) (Route registry), [`src/App.tsx`](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/App.tsx) (React app), [`src/pages/clients/clients-view/ClientsView.tsx`](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/clients/clients-view/ClientsView.tsx) (Client account view), [`src/lib/http-client.ts`](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/http-client.ts) (Fineract HTTP client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application runtime"]
  node_app["React app<br/>[App.tsx]"]
  node_router["Route registry<br/>[AppRoutes.tsx]"]
  node_layout["Application shell<br/>[Layout.tsx]"]
  node_auth["OIDC configuration<br/>[oidc-config.ts]"]
  node_http["Fineract HTTP client<br/>[http-client.ts]"]
  node_login["Login<br/>[Login.tsx]"]
  node_openapi["Fineract API setup"]
end

subgraph group_experience["Shared experience"]
  node_breadcrumbs["Breadcrumbs<br/>[AppBreadCrumbs.tsx]"]
  node_success["Action confirmation"]
  node_documents["Document preview"]
  node_preview_rules["Preview classification"]
end

subgraph group_finance["Financial operations"]
  node_clients["Client management<br/>[Clients.tsx]"]
  node_clientview["Client account view<br/>[ClientsView.tsx]"]
  node_loans["Loan accounts<br/>[Loans.tsx]"]
  node_savings["Savings accounts"]
  node_collections["Collections"]
  node_accounting["Accounting"]
  node_products["Financial products<br/>[Products.tsx]"]
end

subgraph group_admin["Administration and insight"]
  node_organization["Organization setup<br/>[Organization.tsx]"]
  node_reports["Reports<br/>[Reports.tsx]"]
  node_adhoc["Ad hoc queries<br/>[AdhocQuery.tsx]"]
  node_manage_reports["Report management<br/>[ManageReports.tsx]"]
end

node_user(("Staff user"))
node_fineract{{"Apache Fineract"}}

node_user -->|"uses"| node_app
node_app -->|"mounts"| node_router
node_app -->|"configures"| node_auth
node_router -->|"wraps routes"| node_layout
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_clientview
node_router -->|"routes to"| node_accounting
node_clientview -->|"configures API"| node_openapi
node_documents -->|"classifies blob"| node_preview_rules
node_http -.->|"sends requests"| node_fineract

click node_app "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/App.tsx"
click node_router "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/router/AppRoutes.tsx"
click node_layout "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/layout/Layout.tsx"
click node_auth "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/oidc-config.ts"
click node_http "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/http-client.ts"
click node_clients "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/clients/Clients.tsx"
click node_clientview "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/clients/clients-view/ClientsView.tsx"
click node_loans "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/loans/Loans.tsx"
click node_savings "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/savings/CreateSavingsAccount.tsx"
click node_collections "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/collections/IndividualCollectionSheet.tsx"
click node_accounting "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/accounting/create-journal-entry/CreateJournalEntry.tsx"
click node_products "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/products/Products.tsx"
click node_organization "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/organization/Organization.tsx"
click node_reports "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/reports/Reports.tsx"
click node_adhoc "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/organization/adhoc-query/AdhocQuery.tsx"
click node_manage_reports "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/system/manage-reports/ManageReports.tsx"
click node_login "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/login/Login.tsx"
click node_breadcrumbs "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/components/custom/breadcrumbs/AppBreadCrumbs.tsx"
click node_success "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/components/custom/route-success-message/RouteSuccessMessage.tsx"
click node_documents "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/components/documents/useDocumentPreview.ts"
click node_preview_rules "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/document-preview.ts"
click node_openapi "https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/fineract-openapi.ts"

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_router,node_layout,node_auth,node_http,node_login,node_openapi,node_user toneBlue
class node_breadcrumbs,node_success,node_documents,node_preview_rules toneAmber
class node_clients,node_clientview,node_loans,node_savings,node_collections,node_accounting,node_products toneMint
class node_organization,node_reports,node_adhoc,node_manage_reports toneRose
class node_fineract toneIndigo
```

## Components

### Application runtime

- [React app](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/App.tsx): `src/App.tsx`
- [Route registry](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/router/AppRoutes.tsx): `src/router/AppRoutes.tsx`
- [Application shell](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/layout/Layout.tsx): `src/layout/Layout.tsx`
- [OIDC configuration](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/oidc-config.ts): `src/lib/oidc-config.ts`
- [Fineract HTTP client](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/http-client.ts): `src/lib/http-client.ts`
- [Login](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/login/Login.tsx): `src/pages/login/Login.tsx`
- [Fineract API setup](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/fineract-openapi.ts): `src/lib/fineract-openapi.ts`

### Shared experience

- [Breadcrumbs](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/components/custom/breadcrumbs/AppBreadCrumbs.tsx): `src/components/custom/breadcrumbs/AppBreadCrumbs.tsx`
- [Action confirmation](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/components/custom/route-success-message/RouteSuccessMessage.tsx): `src/components/custom/route-success-message/RouteSuccessMessage.tsx`
- [Document preview](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/components/documents/useDocumentPreview.ts): `src/components/documents/useDocumentPreview.ts`
- [Preview classification](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/lib/document-preview.ts): `src/lib/document-preview.ts`

### Financial operations

- [Client management](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/clients/Clients.tsx): `src/pages/clients/Clients.tsx`
- [Client account view](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/clients/clients-view/ClientsView.tsx): `src/pages/clients/clients-view/ClientsView.tsx`
- [Loan accounts](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/loans/Loans.tsx): `src/pages/loans/Loans.tsx`
- [Savings accounts](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/savings/CreateSavingsAccount.tsx): `src/pages/savings/CreateSavingsAccount.tsx`
- [Collections](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/collections/IndividualCollectionSheet.tsx): `src/pages/collections/IndividualCollectionSheet.tsx`
- [Accounting](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/accounting/create-journal-entry/CreateJournalEntry.tsx): `src/pages/accounting/create-journal-entry/CreateJournalEntry.tsx`
- [Financial products](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/products/Products.tsx): `src/pages/products/Products.tsx`

### Administration and insight

- [Organization setup](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/organization/Organization.tsx): `src/pages/organization/Organization.tsx`
- [Reports](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/reports/Reports.tsx): `src/pages/reports/Reports.tsx`
- [Ad hoc queries](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/organization/adhoc-query/AdhocQuery.tsx): `src/pages/organization/adhoc-query/AdhocQuery.tsx`
- [Report management](https://github.com/openmf/mifos-x-web-app-react/blob/dev/src/pages/system/manage-reports/ManageReports.tsx): `src/pages/system/manage-reports/ManageReports.tsx`

### Other components

- **Staff user**
- **Apache Fineract**

## Connections

- Staff user → React app: uses (evidence: `README.md`)
- React app → Route registry: mounts (evidence: `src/App.tsx`)
- React app → OIDC configuration: configures (evidence: `src/App.tsx`)
- Route registry → Application shell: wraps routes (evidence: `src/router/AppRoutes.tsx`)
- Route registry → Login: routes to (evidence: `src/router/AppRoutes.tsx`)
- Route registry → Client account view: routes to (evidence: `src/router/AppRoutes.tsx`)
- Route registry → Accounting: routes to (evidence: `src/router/AppRoutes.tsx`)
- Client account view → Fineract API setup: configures API (evidence: `src/pages/clients/clients-view/ClientsView.tsx`)
- Document preview → Preview classification: classifies blob (evidence: `src/components/documents/useDocumentPreview.ts`)
- Fineract HTTP client → Apache Fineract: sends requests
