# jakhon0402/bim-project architecture

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

- Interactive diagram: https://gitdiagram.com/jakhon0402/bim-project
- Repository: https://github.com/jakhon0402/bim-project

## Overview

This is a React administration dashboard for tracking income, outgoing transactions, inventory, categories, and employees, with login and statistics. Users enter through the routed application, work in domain pages backed by Redux slices, and those slices call an HTTP API; shared tables and modals support record management. The source index and excerpts establish the main routes and several state/API connections, but many page and slice implementations were not sampled, so their internal relationships are shown only where imports or excerpts support them.

Main entry points: [`src/App.jsx`](https://github.com/jakhon0402/bim-project/blob/main/src/App.jsx) (Routed dashboard), [`src/components/ProTable.jsx`](https://github.com/jakhon0402/bim-project/blob/main/src/components/ProTable.jsx) (Data table), [`src/config/Api.js`](https://github.com/jakhon0402/bim-project/blob/main/src/config/Api.js) (API client), [`src/store/store.js`](https://github.com/jakhon0402/bim-project/blob/main/src/store/store.js) (Redux store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_application["Routed dashboard<br/>[App.jsx]"]
end

subgraph group_records["Business records"]
  node_statistics["Statistics<br/>[StatisticsPage.jsx]"]
  node_income["Income records<br/>[IncomesPage.jsx]"]
  node_outgoing["Outgoing records<br/>[OutgoingsPage.jsx]"]
  node_inventory["Inventory<br/>[InventoryPage.jsx]"]
  node_categories["Categories<br/>[CategoriesPage.jsx]"]
end

subgraph group_people["People and access"]
  node_employees["Employee directory<br/>[EmployeesPage.jsx]"]
  node_employeedetail["Employee detail<br/>[EmployeePage.jsx]"]
  node_login["Login<br/>[LoginPage.jsx]"]
end

subgraph group_state["State and services"]
  node_statcalc["Period aggregation<br/>[statistics.js]"]
  node_incomestate["Income state<br/>[incomesSlice.js]"]
  node_outgoingstate["Outgoing state<br/>[outcomesSlice.js]"]
  node_inventorystate["Inventory state<br/>[inventorySlice.js]"]
  node_categorystate["Category state<br/>[categoriesSlice.js]"]
  node_employeestate["Employee state<br/>[employeesSlice.js]"]
  node_authstate["Authentication state<br/>[authSlice.js]"]
  node_redux["Redux store<br/>[store.js]"]
  node_api["API client<br/>[Api.js]"]
end

subgraph group_shared["Shared interface"]
  node_table["Data table<br/>[ProTable.jsx]"]
  node_create["Create form<br/>[CreateModal.jsx]"]
  node_edit["Edit form<br/>[EditModal.jsx]"]
  node_delete["Delete confirmation<br/>[DeleteModal.jsx]"]
end

node_operator(("Dashboard user"))
node_backend{{"Application API"}}

node_operator -->|"uses"| node_application
node_application -->|"routes to"| node_income
node_application -->|"routes to"| node_outgoing
node_application -->|"routes to"| node_statistics
node_application -->|"routes to"| node_categories
node_application -->|"routes to"| node_employees
node_application -->|"routes to"| node_employeedetail
node_application -->|"routes to"| node_inventory
node_application -->|"dispatches"| node_authstate
node_income -->|"uses"| node_incomestate
node_outgoing -->|"uses"| node_outgoingstate
node_inventory -->|"uses"| node_inventorystate
node_categories -->|"uses"| node_categorystate
node_employees -->|"uses"| node_employeestate
node_employeedetail -->|"uses"| node_employeestate
node_login -->|"uses"| node_authstate
node_incomestate -->|"calls"| node_api
node_outgoingstate -->|"calls"| node_api
node_inventorystate -->|"calls"| node_api
node_categorystate -->|"calls"| node_api
node_employeestate -->|"calls"| node_api
node_authstate -->|"calls"| node_api
node_api -.->|"sends requests"| node_backend
node_redux -->|"registers reducer"| node_authstate
node_redux -->|"registers reducer"| node_categorystate
node_redux -->|"registers reducer"| node_incomestate
node_redux -->|"registers reducer"| node_outgoingstate
node_redux -->|"registers reducer"| node_employeestate
node_redux -->|"registers reducer"| node_inventorystate
node_statistics -->|"reads"| node_incomestate
node_statistics -->|"reads"| node_outgoingstate
node_statistics -->|"calculates with"| node_statcalc
node_income -->|"renders"| node_table
node_outgoing -->|"renders"| node_table
node_inventory -->|"renders"| node_table
node_categories -->|"renders"| node_table
node_employees -->|"renders"| node_table
node_table -->|"opens"| node_create
node_table -->|"renders"| node_edit
node_table -->|"uses"| node_delete
node_create -->|"uploads file"| node_api

click node_application "https://github.com/jakhon0402/bim-project/blob/main/src/App.jsx"
click node_statistics "https://github.com/jakhon0402/bim-project/blob/main/src/pages/StatisticsPage.jsx"
click node_statcalc "https://github.com/jakhon0402/bim-project/blob/main/src/utils/statistics.js"
click node_income "https://github.com/jakhon0402/bim-project/blob/main/src/pages/IncomesPage/IncomesPage.jsx"
click node_incomestate "https://github.com/jakhon0402/bim-project/blob/main/src/pages/IncomesPage/incomesSlice.js"
click node_outgoing "https://github.com/jakhon0402/bim-project/blob/main/src/pages/OutcomesPage/OutgoingsPage.jsx"
click node_outgoingstate "https://github.com/jakhon0402/bim-project/blob/main/src/pages/OutcomesPage/outcomesSlice.js"
click node_inventory "https://github.com/jakhon0402/bim-project/blob/main/src/pages/InventoryPage/InventoryPage.jsx"
click node_inventorystate "https://github.com/jakhon0402/bim-project/blob/main/src/pages/InventoryPage/inventorySlice.js"
click node_categories "https://github.com/jakhon0402/bim-project/blob/main/src/pages/Categories/CategoriesPage.jsx"
click node_categorystate "https://github.com/jakhon0402/bim-project/blob/main/src/pages/Categories/categoriesSlice.js"
click node_employees "https://github.com/jakhon0402/bim-project/blob/main/src/pages/EmployeesPage/EmployeesPage.jsx"
click node_employeedetail "https://github.com/jakhon0402/bim-project/blob/main/src/pages/EmployeesPage/EmployeePage.jsx"
click node_employeestate "https://github.com/jakhon0402/bim-project/blob/main/src/pages/EmployeesPage/employeesSlice.js"
click node_login "https://github.com/jakhon0402/bim-project/blob/main/src/pages/Login/LoginPage.jsx"
click node_authstate "https://github.com/jakhon0402/bim-project/blob/main/src/pages/Login/authSlice.js"
click node_redux "https://github.com/jakhon0402/bim-project/blob/main/src/store/store.js"
click node_api "https://github.com/jakhon0402/bim-project/blob/main/src/config/Api.js"
click node_table "https://github.com/jakhon0402/bim-project/blob/main/src/components/ProTable.jsx"
click node_create "https://github.com/jakhon0402/bim-project/blob/main/src/components/Modals/CreateModal.jsx"
click node_edit "https://github.com/jakhon0402/bim-project/blob/main/src/components/Modals/EditModal.jsx"
click node_delete "https://github.com/jakhon0402/bim-project/blob/main/src/components/Modals/DeleteModal.jsx"

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_application,node_operator toneBlue
class node_statistics,node_income,node_outgoing,node_inventory,node_categories toneAmber
class node_employees,node_employeedetail,node_login,node_backend toneMint
class node_statcalc,node_incomestate,node_outgoingstate,node_inventorystate,node_categorystate,node_employeestate,node_authstate,node_redux,node_api toneRose
class node_table,node_create,node_edit,node_delete toneIndigo
```

## Components

### Application shell

- [Routed dashboard](https://github.com/jakhon0402/bim-project/blob/main/src/App.jsx): `src/App.jsx`

### Business records

- [Statistics](https://github.com/jakhon0402/bim-project/blob/main/src/pages/StatisticsPage.jsx): `src/pages/StatisticsPage.jsx`
- [Income records](https://github.com/jakhon0402/bim-project/blob/main/src/pages/IncomesPage/IncomesPage.jsx): `src/pages/IncomesPage/IncomesPage.jsx`
- [Outgoing records](https://github.com/jakhon0402/bim-project/blob/main/src/pages/OutcomesPage/OutgoingsPage.jsx): `src/pages/OutcomesPage/OutgoingsPage.jsx`
- [Inventory](https://github.com/jakhon0402/bim-project/blob/main/src/pages/InventoryPage/InventoryPage.jsx): `src/pages/InventoryPage/InventoryPage.jsx`
- [Categories](https://github.com/jakhon0402/bim-project/blob/main/src/pages/Categories/CategoriesPage.jsx): `src/pages/Categories/CategoriesPage.jsx`

### People and access

- [Employee directory](https://github.com/jakhon0402/bim-project/blob/main/src/pages/EmployeesPage/EmployeesPage.jsx): `src/pages/EmployeesPage/EmployeesPage.jsx`
- [Employee detail](https://github.com/jakhon0402/bim-project/blob/main/src/pages/EmployeesPage/EmployeePage.jsx): `src/pages/EmployeesPage/EmployeePage.jsx`
- [Login](https://github.com/jakhon0402/bim-project/blob/main/src/pages/Login/LoginPage.jsx): `src/pages/Login/LoginPage.jsx`

### State and services

- [Period aggregation](https://github.com/jakhon0402/bim-project/blob/main/src/utils/statistics.js): `src/utils/statistics.js`
- [Income state](https://github.com/jakhon0402/bim-project/blob/main/src/pages/IncomesPage/incomesSlice.js): `src/pages/IncomesPage/incomesSlice.js`
- [Outgoing state](https://github.com/jakhon0402/bim-project/blob/main/src/pages/OutcomesPage/outcomesSlice.js): `src/pages/OutcomesPage/outcomesSlice.js`
- [Inventory state](https://github.com/jakhon0402/bim-project/blob/main/src/pages/InventoryPage/inventorySlice.js): `src/pages/InventoryPage/inventorySlice.js`
- [Category state](https://github.com/jakhon0402/bim-project/blob/main/src/pages/Categories/categoriesSlice.js): `src/pages/Categories/categoriesSlice.js`
- [Employee state](https://github.com/jakhon0402/bim-project/blob/main/src/pages/EmployeesPage/employeesSlice.js): `src/pages/EmployeesPage/employeesSlice.js`
- [Authentication state](https://github.com/jakhon0402/bim-project/blob/main/src/pages/Login/authSlice.js): `src/pages/Login/authSlice.js`
- [Redux store](https://github.com/jakhon0402/bim-project/blob/main/src/store/store.js): `src/store/store.js`
- [API client](https://github.com/jakhon0402/bim-project/blob/main/src/config/Api.js): `src/config/Api.js`

### Shared interface

- [Data table](https://github.com/jakhon0402/bim-project/blob/main/src/components/ProTable.jsx): `src/components/ProTable.jsx`
- [Create form](https://github.com/jakhon0402/bim-project/blob/main/src/components/Modals/CreateModal.jsx): `src/components/Modals/CreateModal.jsx`
- [Edit form](https://github.com/jakhon0402/bim-project/blob/main/src/components/Modals/EditModal.jsx): `src/components/Modals/EditModal.jsx`
- [Delete confirmation](https://github.com/jakhon0402/bim-project/blob/main/src/components/Modals/DeleteModal.jsx): `src/components/Modals/DeleteModal.jsx`

### Other components

- **Dashboard user**
- **Application API**

## Connections

- Dashboard user → Routed dashboard: uses
- Routed dashboard → Income records: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Outgoing records: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Statistics: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Categories: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Employee directory: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Employee detail: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Inventory: routes to (evidence: `src/App.jsx`)
- Routed dashboard → Authentication state: dispatches (evidence: `src/App.jsx`)
- Income records → Income state: uses (evidence: `src/pages/IncomesPage/IncomesPage.jsx`)
- Outgoing records → Outgoing state: uses (evidence: `src/pages/OutcomesPage/OutgoingsPage.jsx`)
- Inventory → Inventory state: uses (evidence: `src/pages/InventoryPage/InventoryPage.jsx`)
- Categories → Category state: uses (evidence: `src/pages/Categories/CategoriesPage.jsx`)
- Employee directory → Employee state: uses (evidence: `src/pages/EmployeesPage/EmployeesPage.jsx`)
- Employee detail → Employee state: uses (evidence: `src/pages/EmployeesPage/EmployeePage.jsx`)
- Login → Authentication state: uses (evidence: `src/pages/Login/LoginPage.jsx`)
- Income state → API client: calls (evidence: `src/pages/IncomesPage/incomesSlice.js`)
- Outgoing state → API client: calls (evidence: `src/pages/OutcomesPage/outcomesSlice.js`)
- Inventory state → API client: calls (evidence: `src/pages/InventoryPage/inventorySlice.js`)
- Category state → API client: calls (evidence: `src/pages/Categories/categoriesSlice.js`)
- Employee state → API client: calls (evidence: `src/pages/EmployeesPage/employeesSlice.js`)
- Authentication state → API client: calls (evidence: `src/pages/Login/authSlice.js`)
- API client → Application API: sends requests
- Redux store → Authentication state: registers reducer (evidence: `src/store/store.js`)
- Redux store → Category state: registers reducer (evidence: `src/store/store.js`)
- Redux store → Income state: registers reducer (evidence: `src/store/store.js`)
- Redux store → Outgoing state: registers reducer (evidence: `src/store/store.js`)
- Redux store → Employee state: registers reducer (evidence: `src/store/store.js`)
- Redux store → Inventory state: registers reducer (evidence: `src/store/store.js`)
- Statistics → Income state: reads (evidence: `src/pages/StatisticsPage.jsx`)
- Statistics → Outgoing state: reads (evidence: `src/pages/StatisticsPage.jsx`)
- Statistics → Period aggregation: calculates with (evidence: `src/pages/StatisticsPage.jsx`)
- Income records → Data table: renders (evidence: `src/pages/IncomesPage/IncomesPage.jsx`)
- Outgoing records → Data table: renders (evidence: `src/pages/OutcomesPage/OutgoingsPage.jsx`)
- Inventory → Data table: renders (evidence: `src/pages/InventoryPage/InventoryPage.jsx`)
- Categories → Data table: renders (evidence: `src/pages/Categories/CategoriesPage.jsx`)
- Employee directory → Data table: renders (evidence: `src/pages/EmployeesPage/EmployeesPage.jsx`)
- Data table → Create form: opens (evidence: `src/components/ProTable.jsx`)
- Data table → Edit form: renders (evidence: `src/components/ProTable.jsx`)
- Data table → Delete confirmation: uses (evidence: `src/components/ProTable.jsx`)
- Create form → API client: uploads file (evidence: `src/components/Modals/CreateModal.jsx`)
