# raja8807/nirvag_pro_app architecture

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

- Interactive diagram: https://gitdiagram.com/raja8807/nirvag_pro_app
- Repository: https://github.com/raja8807/nirvag_pro_app

## Overview

Nirvag Pro appears to be a Next.js construction-management and business-operations dashboard, with CRM, project/site management, HRIS, and workforce areas. The visible workflows are primarily screen-driven: users browse directories and open records, while record screens expose domain tabs; workforce forms and project lists use generated in-memory mock data. The excerpts show no backend or persistence layer, and the README provides no capability detail. Edges are limited to relationships shown in excerpts or the source index; unsampled domain screens are represented without guessed connections.

Main entry points: [`src/components/screens/crm/Clients/Clients.js`](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/Clients/Clients.js) (Client directory), [`src/app/projects/projects/page.jsx`](https://github.com/raja8807/nirvag_pro_app/blob/main/src/app/projects/projects/page.jsx) (Project directory), [`src/components/screens/workforce/WorkersList/WorkersList.jsx`](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/WorkersList/WorkersList.jsx) (Worker directory), [`src/constants/mockDataGenerator.js`](https://github.com/raja8807/nirvag_pro_app/blob/main/src/constants/mockDataGenerator.js) (Generated mock data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app_shell["App layout<br/>[layout.js]"]
  node_admin_layout["Admin navigation<br/>[SideBar.jsx]"]
  node_login["Login screen<br/>[Login.js]"]
end

subgraph group_crm["Customer management"]
  node_crm_clients["Client directory<br/>[Clients.js]"]
  node_crm_create_client["Client intake<br/>[CreateClient.jsx]"]
  node_crm_client_record["Client record<br/>[ClientDetails.js]"]
  node_crm_tasks["Client task tools<br/>[TasksTab.jsx]"]
  node_crm_communication["Client communication"]
  node_leads["Lead management"]
end

subgraph group_projects["Project delivery"]
  node_project_directory["Project directory<br/>[page.jsx]"]
  node_project_records["Project records<br/>[ProjectDetails.jsx]"]
  node_site_records["Site operations<br/>[SiteDetails.jsx]"]
end

subgraph group_people["People operations"]
  node_hris["HRIS operations"]
  node_workforce_dashboard["Workforce dashboard"]
  node_worker_directory["Worker directory<br/>[WorkersList.jsx]"]
  node_worker_intake["Worker registration<br/>[CreateWorker.jsx]"]
end

subgraph group_shared["Shared UI and data"]
  node_mock_data[("Generated mock data")]
  node_table["Data table<br/>[DataTable.jsx]"]
  node_page_layout["Page layout<br/>[PageLayout.jsx]"]
  node_page_head["Page heading<br/>[PageHead.jsx]"]
  node_custom_button["Action button<br/>[CustomButton.js]"]
  node_custom_modal["Dialog<br/>[CustomModal.jsx]"]
  node_fonts["Font configuration<br/>[fonts.js]"]
end

node_user(("Dashboard user"))

node_user -->|"opens app"| node_app_shell
node_app_shell -->|"renders shell"| node_admin_layout
node_app_shell -->|"loads fonts"| node_fonts
node_user -->|"opens login"| node_login
node_crm_clients -->|"reads clients"| node_mock_data
node_crm_clients -->|"renders rows"| node_table
node_crm_clients -->|"renders heading"| node_page_head
node_crm_clients -->|"renders layout"| node_page_layout
node_crm_clients -->|"offers create"| node_custom_button
node_crm_create_client -->|"renders heading"| node_page_head
node_crm_create_client -->|"renders layout"| node_page_layout
node_crm_create_client -->|"offers save"| node_custom_button
node_crm_create_client -->|"reuses intake sections"| node_leads
node_crm_client_record -->|"reads clients"| node_mock_data
node_crm_client_record -->|"renders tab"| node_crm_tasks
node_crm_client_record -->|"renders tab"| node_crm_communication
node_crm_tasks -->|"opens dialog"| node_custom_modal
node_project_directory -->|"reads projects"| node_mock_data
node_project_directory -->|"renders rows"| node_table
node_project_directory -->|"renders heading"| node_page_head
node_project_directory -->|"renders layout"| node_page_layout
node_project_directory -->|"offers create"| node_custom_button
node_worker_directory -->|"reads workers"| node_mock_data
node_worker_directory -->|"renders rows"| node_table
node_worker_directory -->|"renders heading"| node_page_head
node_worker_directory -->|"renders layout"| node_page_layout
node_worker_directory -->|"offers add"| node_custom_button
node_worker_intake -->|"reads assignments"| node_mock_data
node_worker_intake -->|"renders heading"| node_page_head
node_worker_intake -->|"renders layout"| node_page_layout
node_worker_intake -->|"offers save"| node_custom_button
node_workforce_dashboard -.->|"serves overview"| node_user

click node_app_shell "https://github.com/raja8807/nirvag_pro_app/blob/main/src/app/layout.js"
click node_admin_layout "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/layout/AdminLayout/SideBar/SideBar.jsx"
click node_login "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/Login/Login.js"
click node_crm_clients "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/Clients/Clients.js"
click node_crm_create_client "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/CreateClient/CreateClient.jsx"
click node_crm_client_record "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/ClientDetails/ClientDetails.js"
click node_crm_tasks "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/ClientDetails/tabs/TasksTab/TasksTab.jsx"
click node_crm_communication "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/ClientDetails/tabs/CommunicationTab/CommunicationTab.jsx"
click node_leads "https://github.com/raja8807/nirvag_pro_app/tree/main/src/components/screens/crm/Leads"
click node_project_directory "https://github.com/raja8807/nirvag_pro_app/blob/main/src/app/projects/projects/page.jsx"
click node_project_records "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/projects/ProjectDetails/ProjectDetails.jsx"
click node_site_records "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/site/SiteDetails/SiteDetails.jsx"
click node_hris "https://github.com/raja8807/nirvag_pro_app/tree/main/src/components/screens/hris"
click node_workforce_dashboard "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/WorkforceDashboard/WorkforceDashboard.jsx"
click node_worker_directory "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/WorkersList/WorkersList.jsx"
click node_worker_intake "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/CreateWorker/CreateWorker.jsx"
click node_mock_data "https://github.com/raja8807/nirvag_pro_app/blob/main/src/constants/mockDataGenerator.js"
click node_table "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/DataTable/DataTable.jsx"
click node_page_layout "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/PageLayout/PageLayout.jsx"
click node_page_head "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/PageHead/PageHead.jsx"
click node_custom_button "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/CustomButton/CustomButton.js"
click node_custom_modal "https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/CustomModal/CustomModal.jsx"
click node_fonts "https://github.com/raja8807/nirvag_pro_app/blob/main/src/styles/fonts.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_shell,node_admin_layout,node_login,node_user toneBlue
class node_crm_clients,node_crm_create_client,node_crm_client_record,node_crm_tasks,node_crm_communication,node_leads toneAmber
class node_project_directory,node_project_records,node_site_records toneMint
class node_hris,node_workforce_dashboard,node_worker_directory,node_worker_intake toneRose
class node_mock_data,node_table,node_page_layout,node_page_head,node_custom_button,node_custom_modal,node_fonts toneIndigo
```

## Components

### Application shell

- [App layout](https://github.com/raja8807/nirvag_pro_app/blob/main/src/app/layout.js): `src/app/layout.js`
- [Admin navigation](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/layout/AdminLayout/SideBar/SideBar.jsx): `src/components/layout/AdminLayout/SideBar/SideBar.jsx`
- [Login screen](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/Login/Login.js): `src/components/screens/Login/Login.js`

### Customer management

- [Client directory](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/Clients/Clients.js): `src/components/screens/crm/Clients/Clients.js`
- [Client intake](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/CreateClient/CreateClient.jsx): `src/components/screens/crm/CreateClient/CreateClient.jsx`
- [Client record](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/ClientDetails/ClientDetails.js): `src/components/screens/crm/ClientDetails/ClientDetails.js`
- [Client task tools](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/ClientDetails/tabs/TasksTab/TasksTab.jsx): `src/components/screens/crm/ClientDetails/tabs/TasksTab/TasksTab.jsx`
- [Client communication](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/crm/ClientDetails/tabs/CommunicationTab/CommunicationTab.jsx): `src/components/screens/crm/ClientDetails/tabs/CommunicationTab/CommunicationTab.jsx`
- [Lead management](https://github.com/raja8807/nirvag_pro_app/tree/main/src/components/screens/crm/Leads): `src/components/screens/crm/Leads`

### Project delivery

- [Project directory](https://github.com/raja8807/nirvag_pro_app/blob/main/src/app/projects/projects/page.jsx): `src/app/projects/projects/page.jsx`
- [Project records](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/projects/ProjectDetails/ProjectDetails.jsx): `src/components/screens/projects/ProjectDetails/ProjectDetails.jsx`
- [Site operations](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/site/SiteDetails/SiteDetails.jsx): `src/components/screens/site/SiteDetails/SiteDetails.jsx`

### People operations

- [HRIS operations](https://github.com/raja8807/nirvag_pro_app/tree/main/src/components/screens/hris): `src/components/screens/hris`
- [Workforce dashboard](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/WorkforceDashboard/WorkforceDashboard.jsx): `src/components/screens/workforce/WorkforceDashboard/WorkforceDashboard.jsx`
- [Worker directory](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/WorkersList/WorkersList.jsx): `src/components/screens/workforce/WorkersList/WorkersList.jsx`
- [Worker registration](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/screens/workforce/CreateWorker/CreateWorker.jsx): `src/components/screens/workforce/CreateWorker/CreateWorker.jsx`

### Shared UI and data

- [Generated mock data](https://github.com/raja8807/nirvag_pro_app/blob/main/src/constants/mockDataGenerator.js): `src/constants/mockDataGenerator.js`
- [Data table](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/DataTable/DataTable.jsx): `src/components/ui/DataTable/DataTable.jsx`
- [Page layout](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/PageLayout/PageLayout.jsx): `src/components/ui/PageLayout/PageLayout.jsx`
- [Page heading](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/PageHead/PageHead.jsx): `src/components/ui/PageHead/PageHead.jsx`
- [Action button](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/CustomButton/CustomButton.js): `src/components/ui/CustomButton/CustomButton.js`
- [Dialog](https://github.com/raja8807/nirvag_pro_app/blob/main/src/components/ui/CustomModal/CustomModal.jsx): `src/components/ui/CustomModal/CustomModal.jsx`
- [Font configuration](https://github.com/raja8807/nirvag_pro_app/blob/main/src/styles/fonts.js): `src/styles/fonts.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → App layout: opens app
- App layout → Admin navigation: renders shell (evidence: `src/app/layout.js`)
- App layout → Font configuration: loads fonts (evidence: `src/app/layout.js`)
- Dashboard user → Login screen: opens login
- Client directory → Generated mock data: reads clients (evidence: `src/components/screens/crm/Clients/Clients.js`)
- Client directory → Data table: renders rows (evidence: `src/components/screens/crm/Clients/Clients.js`)
- Client directory → Page heading: renders heading (evidence: `src/components/screens/crm/Clients/Clients.js`)
- Client directory → Page layout: renders layout (evidence: `src/components/screens/crm/Clients/Clients.js`)
- Client directory → Action button: offers create (evidence: `src/components/screens/crm/Clients/Clients.js`)
- Client intake → Page heading: renders heading (evidence: `src/components/screens/crm/CreateClient/CreateClient.jsx`)
- Client intake → Page layout: renders layout (evidence: `src/components/screens/crm/CreateClient/CreateClient.jsx`)
- Client intake → Action button: offers save (evidence: `src/components/screens/crm/CreateClient/CreateClient.jsx`)
- Client intake → Lead management: reuses intake sections (evidence: `src/components/screens/crm/CreateClient/CreateClient.jsx`)
- Client record → Generated mock data: reads clients (evidence: `src/components/screens/crm/ClientDetails/ClientDetails.js`)
- Client record → Client task tools: renders tab (evidence: `src/components/screens/crm/ClientDetails/ClientDetails.js`)
- Client record → Client communication: renders tab (evidence: `src/components/screens/crm/ClientDetails/ClientDetails.js`)
- Client task tools → Dialog: opens dialog (evidence: `src/components/screens/crm/ClientDetails/tabs/TasksTab/TasksTab.jsx`)
- Project directory → Generated mock data: reads projects (evidence: `src/app/projects/projects/page.jsx`)
- Project directory → Data table: renders rows (evidence: `src/app/projects/projects/page.jsx`)
- Project directory → Page heading: renders heading (evidence: `src/app/projects/projects/page.jsx`)
- Project directory → Page layout: renders layout (evidence: `src/app/projects/projects/page.jsx`)
- Project directory → Action button: offers create (evidence: `src/app/projects/projects/page.jsx`)
- Worker directory → Generated mock data: reads workers (evidence: `src/components/screens/workforce/WorkersList/WorkersList.jsx`)
- Worker directory → Data table: renders rows (evidence: `src/components/screens/workforce/WorkersList/WorkersList.jsx`)
- Worker directory → Page heading: renders heading (evidence: `src/components/screens/workforce/WorkersList/WorkersList.jsx`)
- Worker directory → Page layout: renders layout (evidence: `src/components/screens/workforce/WorkersList/WorkersList.jsx`)
- Worker directory → Action button: offers add (evidence: `src/components/screens/workforce/WorkersList/WorkersList.jsx`)
- Worker registration → Generated mock data: reads assignments (evidence: `src/components/screens/workforce/CreateWorker/CreateWorker.jsx`)
- Worker registration → Page heading: renders heading (evidence: `src/components/screens/workforce/CreateWorker/CreateWorker.jsx`)
- Worker registration → Page layout: renders layout (evidence: `src/components/screens/workforce/CreateWorker/CreateWorker.jsx`)
- Worker registration → Action button: offers save (evidence: `src/components/screens/workforce/CreateWorker/CreateWorker.jsx`)
- Workforce dashboard → Dashboard user: serves overview
