# hari-mandy/construction-erp-react architecture

> Architecture diagram of the GitHub repository hari-mandy/construction-erp-react, 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/hari-mandy/construction-erp-react
- Repository: https://github.com/hari-mandy/construction-erp-react

## Overview

This React ERP dashboard provides routed dashboard, matters and profile views alongside login and registration screens. The main user workflow is entering through the app routes, viewing matters in a searchable/filterable paginated listing, and using authentication forms for account access. The interface also includes sidebar navigation, notifications, profile editing, responsive search and theme controls. The graph preserves documented password-reset capability, though its page files are absent from the supplied tree. Edges are limited to relationships explicit in excerpts, the source index or README.

Main entry points: [`src/App.js`](https://github.com/hari-mandy/construction-erp-react/blob/main/src/App.js) (Route application), [`src/containers/Layout.js`](https://github.com/hari-mandy/construction-erp-react/blob/main/src/containers/Layout.js) (Workspace layout), [`src/components/Listing/MattersContainer.jsx`](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/MattersContainer.jsx) (Matters listing), [`src/pages/Matters.jsx`](https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Matters.jsx) (Matters page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App routing"]
  node_app["Route application<br/>[App.js]"]
  node_dashboard["Dashboard page<br/>[Dashboard.jsx]"]
  node_matters["Matters page<br/>[Matters.jsx]"]
  node_profile["Party profile page<br/>[Partymaster.jsx]"]
end

subgraph group_accounts["Account access"]
  node_login["Login page<br/>[Login.jsx]"]
  node_register["Registration page<br/>[Register.jsx]"]
  node_reset["Password reset"]
  node_loginform["Login form<br/>[LoginForm.jsx]"]
  node_registerform["Registration form<br/>[RegisterForm.jsx]"]
  node_profileform["Profile form<br/>[ProfileForm.jsx]"]
  node_swiper["Login swiper<br/>[LoginSwiper.jsx]"]
  node_resetemail["Email verification"]
end

subgraph group_workspace["ERP workspace"]
  node_listing["Matters listing"]
  node_searchfilter["Search filter<br/>[SearchFilter.jsx]"]
  node_table["Users table<br/>[UsersTable.jsx]"]
  node_pagination["Pagination<br/>[PageNav.jsx]"]
end

subgraph group_shared["Shared interface"]
  node_layout["Workspace layout<br/>[Layout.js]"]
  node_header["Header controls<br/>[Header.jsx]"]
  node_sidebar["Sidebar navigation<br/>[SideBar.jsx]"]
  node_notifications["Notification panel"]
end

subgraph group_state["State and services"]
  node_auth["Authentication services<br/>[login-services.js]"]
  node_post["POST request helper<br/>[fetchPostData.jsx]"]
  node_menucontext["Menu state"]
  node_themecontext["Theme state"]
  node_filtercontext["Filter state"]
  node_filterusers["User filter state"]
end

node_user(("User"))
node_backend[("ERP backend")]

node_user -->|"opens routes"| node_app
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_matters
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_reset
node_login -->|"renders"| node_loginform
node_login -->|"renders"| node_swiper
node_register -->|"renders"| node_registerform
node_register -->|"renders"| node_swiper
node_loginform -->|"validates with"| node_auth
node_registerform -->|"submits through"| node_post
node_profile -->|"renders within"| node_layout
node_profile -.->|"uses"| node_profileform
node_profileform -->|"submits through"| node_post
node_auth -->|"fetches user data"| node_backend
node_post -->|"posts data"| node_backend
node_matters -->|"renders within"| node_layout
node_matters -->|"renders"| node_listing
node_listing -.->|"includes"| node_searchfilter
node_listing -.->|"includes"| node_table
node_listing -.->|"paginates with"| node_pagination
node_searchfilter -->|"updates"| node_filtercontext
node_app -->|"provides"| node_filtercontext
node_app -->|"provides"| node_filterusers
node_app -->|"provides"| node_menucontext
node_app -->|"provides"| node_themecontext
node_dashboard -->|"renders within"| node_layout
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_sidebar
node_layout -->|"renders"| node_notifications
node_header -->|"updates"| node_menucontext
node_header -->|"updates"| node_themecontext
node_sidebar -->|"reads"| node_menucontext
node_reset -.->|"verifies by"| node_resetemail

click node_app "https://github.com/hari-mandy/construction-erp-react/blob/main/src/App.js"
click node_dashboard "https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Dashboard.jsx"
click node_matters "https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Matters.jsx"
click node_profile "https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Partymaster.jsx"
click node_login "https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Login.jsx"
click node_register "https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Register.jsx"
click node_loginform "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/forms/LoginForm.jsx"
click node_registerform "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/forms/RegisterForm.jsx"
click node_profileform "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/forms/ProfileForm.jsx"
click node_auth "https://github.com/hari-mandy/construction-erp-react/blob/main/src/services/login-services.js"
click node_post "https://github.com/hari-mandy/construction-erp-react/blob/main/src/hooks/fetchPostData.jsx"
click node_layout "https://github.com/hari-mandy/construction-erp-react/blob/main/src/containers/Layout.js"
click node_header "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Header.jsx"
click node_sidebar "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/sideNavBar/SideBar.jsx"
click node_notifications "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/header/NotificationBar.jsx"
click node_menucontext "https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/menuToggleContext.js"
click node_themecontext "https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/themeToggleContext.js"
click node_filtercontext "https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/filterUrlContext.js"
click node_listing "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/MattersContainer.jsx"
click node_searchfilter "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/SearchFilter.jsx"
click node_table "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/UsersTable.jsx"
click node_pagination "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/pagination/PageNav.jsx"
click node_filterusers "https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/filterUsersContext.js"
click node_swiper "https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/LoginSwiper.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_app,node_dashboard,node_matters,node_profile,node_user toneBlue
class node_login,node_register,node_reset,node_loginform,node_registerform,node_profileform,node_swiper,node_resetemail,node_backend toneAmber
class node_listing,node_searchfilter,node_table,node_pagination toneMint
class node_layout,node_header,node_sidebar,node_notifications toneRose
class node_auth,node_post,node_menucontext,node_themecontext,node_filtercontext,node_filterusers toneIndigo
```

## Components

### App routing

- [Route application](https://github.com/hari-mandy/construction-erp-react/blob/main/src/App.js): `src/App.js`
- [Dashboard page](https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Matters page](https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Matters.jsx): `src/pages/Matters.jsx`
- [Party profile page](https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Partymaster.jsx): `src/pages/Partymaster.jsx`

### Account access

- [Login page](https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Registration page](https://github.com/hari-mandy/construction-erp-react/blob/main/src/pages/Register.jsx): `src/pages/Register.jsx`
- **Password reset**
- [Login form](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/forms/LoginForm.jsx): `src/components/forms/LoginForm.jsx`
- [Registration form](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/forms/RegisterForm.jsx): `src/components/forms/RegisterForm.jsx`
- [Profile form](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/forms/ProfileForm.jsx): `src/components/forms/ProfileForm.jsx`
- [Login swiper](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/LoginSwiper.jsx): `src/components/LoginSwiper.jsx`
- **Email verification**

### ERP workspace

- [Matters listing](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/MattersContainer.jsx): `src/components/Listing/MattersContainer.jsx`
- [Search filter](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/SearchFilter.jsx): `src/components/Listing/SearchFilter.jsx`
- [Users table](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Listing/UsersTable.jsx): `src/components/Listing/UsersTable.jsx`
- [Pagination](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/pagination/PageNav.jsx): `src/components/pagination/PageNav.jsx`

### Shared interface

- [Workspace layout](https://github.com/hari-mandy/construction-erp-react/blob/main/src/containers/Layout.js): `src/containers/Layout.js`
- [Header controls](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Sidebar navigation](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/sideNavBar/SideBar.jsx): `src/components/sideNavBar/SideBar.jsx`
- [Notification panel](https://github.com/hari-mandy/construction-erp-react/blob/main/src/components/header/NotificationBar.jsx): `src/components/header/NotificationBar.jsx`

### State and services

- [Authentication services](https://github.com/hari-mandy/construction-erp-react/blob/main/src/services/login-services.js): `src/services/login-services.js`
- [POST request helper](https://github.com/hari-mandy/construction-erp-react/blob/main/src/hooks/fetchPostData.jsx): `src/hooks/fetchPostData.jsx`
- [Menu state](https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/menuToggleContext.js): `src/context/menuToggleContext.js`
- [Theme state](https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/themeToggleContext.js): `src/context/themeToggleContext.js`
- [Filter state](https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/filterUrlContext.js): `src/context/filterUrlContext.js`
- [User filter state](https://github.com/hari-mandy/construction-erp-react/blob/main/src/context/filterUsersContext.js): `src/context/filterUsersContext.js`

### Other components

- **User**
- **ERP backend**

## Connections

- User → Route application: opens routes (evidence: `src/App.js`)
- Route application → Dashboard page: routes to (evidence: `src/App.js`)
- Route application → Matters page: routes to (evidence: `src/App.js`)
- Route application → Party profile page: routes to (evidence: `src/App.js`)
- Route application → Login page: routes to (evidence: `src/App.js`)
- Route application → Registration page: routes to (evidence: `src/App.js`)
- Route application → Password reset: routes to (evidence: `src/App.js`)
- Login page → Login form: renders (evidence: `src/pages/Login.jsx`)
- Login page → Login swiper: renders (evidence: `src/pages/Login.jsx`)
- Registration page → Registration form: renders (evidence: `src/pages/Register.jsx`)
- Registration page → Login swiper: renders (evidence: `src/pages/Register.jsx`)
- Login form → Authentication services: validates with (evidence: `src/components/forms/LoginForm.jsx`)
- Registration form → POST request helper: submits through (evidence: `src/components/forms/RegisterForm.jsx`)
- Party profile page → Workspace layout: renders within (evidence: `src/pages/Partymaster.jsx`)
- Party profile page → Profile form: uses
- Profile form → POST request helper: submits through (evidence: `src/components/forms/ProfileForm.jsx`)
- Authentication services → ERP backend: fetches user data (evidence: `src/services/login-services.js`)
- POST request helper → ERP backend: posts data (evidence: `src/hooks/fetchPostData.jsx`)
- Matters page → Workspace layout: renders within (evidence: `src/pages/Matters.jsx`)
- Matters page → Matters listing: renders (evidence: `src/pages/Matters.jsx`)
- Matters listing → Search filter: includes
- Matters listing → Users table: includes
- Matters listing → Pagination: paginates with
- Search filter → Filter state: updates (evidence: `src/components/Listing/SearchFilter.jsx`)
- Route application → Filter state: provides (evidence: `src/App.js`)
- Route application → User filter state: provides (evidence: `src/App.js`)
- Route application → Menu state: provides (evidence: `src/App.js`)
- Route application → Theme state: provides (evidence: `src/App.js`)
- Dashboard page → Workspace layout: renders within (evidence: `src/pages/Dashboard.jsx`)
- Workspace layout → Header controls: renders (evidence: `src/containers/Layout.js`)
- Workspace layout → Sidebar navigation: renders (evidence: `src/containers/Layout.js`)
- Workspace layout → Notification panel: renders (evidence: `src/containers/Layout.js`)
- Header controls → Menu state: updates (evidence: `src/components/Header.jsx`)
- Header controls → Theme state: updates (evidence: `src/components/Header.jsx`)
- Sidebar navigation → Menu state: reads (evidence: `src/components/sideNavBar/SideBar.jsx`)
- Password reset → Email verification: verifies by (evidence: `README.md`)
