# sunny-subhakar/utility-asset-maintanance-tracker architecture

> Architecture diagram of the GitHub repository sunny-subhakar/utility-asset-maintanance-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sunny-subhakar/utility-asset-maintanance-tracker
- Repository: https://github.com/sunny-subhakar/utility-asset-maintanance-tracker

## Overview

Utility Asset Maintenance Tracker is a role-based frontend for asset requests, maintenance work, and team oversight. Visitors can explore the landing page and register or log in; authenticated users work through user, technician, or supervisor dashboards. The README describes analytics, reporting, assignment tracking, maintenance schedules, and admin capabilities, though admin source files are absent from the tree. The sampled sources show dashboard composition and a request submission path; backend behavior and several role-specific interactions are not verified here.

Main entry points: [`src/components/supervisor/SupervisorDashboard.jsx`](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/SupervisorDashboard.jsx) (Supervisor dashboard), [`src/pages/LoginPage.jsx`](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/LoginPage.jsx) (Login), [`src/components/technician/TechnicianDashboard.jsx`](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/TechnicianDashboard.jsx) (Technician dashboard), [`src/components/user/UserDashboard.jsx`](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/UserDashboard.jsx) (User dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and navigation"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
  node_register["Registration<br/>[RegisterPage.jsx]"]
  node_login["Login<br/>[LoginPage.jsx]"]
  node_app["App and auth<br/>[App.jsx]"]
end

subgraph group_user["User asset workflow"]
  node_userdash["User dashboard<br/>[UserDashboard.jsx]"]
  node_assetrequest["Asset request"]
  node_assetinfo["Assigned assets<br/>[AssetInfo.jsx]"]
  node_assethistory["Asset history<br/>[AssetHistory.jsx]"]
end

subgraph group_operations["Maintenance operations"]
  node_superdash["Supervisor dashboard"]
  node_assetmgmt["Asset management"]
  node_assignwork["Work assignment<br/>[AssignWork.jsx]"]
  node_techmgmt["Technician management"]
  node_maintenance["Maintenance plans"]
  node_superreports["Supervisor reports<br/>[Reports.jsx]"]
  node_techdash["Technician dashboard"]
  node_workorder["Work orders<br/>[WorkOrder.jsx]"]
  node_workhistory["Work history<br/>[WorkHistory.jsx]"]
  node_techreports["Technician reports<br/>[Reports.jsx]"]
  node_profile["Technician profile<br/>[Profile.jsx]"]
  node_admin["Admin tools"]
end

subgraph group_shared["Shared services"]
  node_apihelper["API hook<br/>[useApi.js]"]
  node_apiconfig["API endpoints<br/>[api.js]"]
  node_modal["Modal<br/>[Modal.jsx]"]
  node_terms["Terms content<br/>[TermsContent.jsx]"]
  node_privacy["Privacy content<br/>[PrivacyContent.jsx]"]
end

node_visitor(("Visitor"))
node_backend{{"Application API"}}

node_visitor -->|"visits"| node_landing
node_visitor -->|"registers"| node_register
node_visitor -->|"signs in"| node_login
node_landing -->|"uses auth"| node_app
node_login -->|"calls login"| node_app
node_login -->|"opens"| node_modal
node_login -->|"renders"| node_terms
node_login -->|"renders"| node_privacy
node_userdash -.->|"offers requests"| node_assetrequest
node_userdash -.->|"shows assets"| node_assetinfo
node_userdash -.->|"shows history"| node_assethistory
node_assetrequest -->|"submits via"| node_apihelper
node_apihelper -->|"sends HTTP"| node_backend
node_assetrequest -->|"uses endpoint"| node_apiconfig
node_superdash -->|"renders"| node_assetmgmt
node_superdash -->|"renders"| node_assignwork
node_superdash -->|"renders"| node_techmgmt
node_superdash -->|"renders"| node_maintenance
node_superdash -.->|"renders"| node_superreports
node_techdash -.->|"offers tasks"| node_workorder
node_techdash -.->|"offers history"| node_workhistory
node_techdash -.->|"offers reports"| node_techreports
node_techdash -.->|"offers profile"| node_profile
node_admin -.->|"administers"| node_backend

click node_landing "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/LandingPage.jsx"
click node_register "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/RegisterPage.jsx"
click node_login "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/LoginPage.jsx"
click node_app "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/App.jsx"
click node_userdash "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/UserDashboard.jsx"
click node_assetrequest "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/AssetRequestForm.jsx"
click node_assetinfo "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/AssetInfo.jsx"
click node_assethistory "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/AssetHistory.jsx"
click node_superdash "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/SupervisorDashboard.jsx"
click node_assetmgmt "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/AssetManagement.jsx"
click node_assignwork "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/AssignWork.jsx"
click node_techmgmt "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/TechnicianManagement.jsx"
click node_maintenance "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/MaintenancePlan.jsx"
click node_superreports "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/Reports.jsx"
click node_techdash "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/TechnicianDashboard.jsx"
click node_workorder "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/WorkOrder.jsx"
click node_workhistory "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/WorkHistory.jsx"
click node_techreports "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/Reports.jsx"
click node_profile "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/Profile.jsx"
click node_apihelper "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/hooks/useApi.js"
click node_apiconfig "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/config/api.js"
click node_modal "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/Modal.jsx"
click node_terms "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/TermsContent.jsx"
click node_privacy "https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/PrivacyContent.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_landing,node_register,node_login,node_app toneBlue
class node_userdash,node_assetrequest,node_assetinfo,node_assethistory toneAmber
class node_superdash,node_assetmgmt,node_assignwork,node_techmgmt,node_maintenance,node_superreports,node_techdash,node_workorder,node_workhistory,node_techreports,node_profile,node_admin,node_backend toneMint
class node_apihelper,node_apiconfig,node_modal,node_terms,node_privacy toneRose
class node_visitor toneIndigo
```

## Components

### Entry and navigation

- [Landing page](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/LandingPage.jsx): `src/pages/LandingPage.jsx`
- [Registration](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/RegisterPage.jsx): `src/pages/RegisterPage.jsx`
- [Login](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/pages/LoginPage.jsx): `src/pages/LoginPage.jsx`
- [App and auth](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/App.jsx): `src/App.jsx`

### User asset workflow

- [User dashboard](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/UserDashboard.jsx): `src/components/user/UserDashboard.jsx`
- [Asset request](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/AssetRequestForm.jsx): `src/components/user/AssetRequestForm.jsx`
- [Assigned assets](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/AssetInfo.jsx): `src/components/user/AssetInfo.jsx`
- [Asset history](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/user/AssetHistory.jsx): `src/components/user/AssetHistory.jsx`

### Maintenance operations

- [Supervisor dashboard](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/SupervisorDashboard.jsx): `src/components/supervisor/SupervisorDashboard.jsx`
- [Asset management](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/AssetManagement.jsx): `src/components/supervisor/AssetManagement.jsx`
- [Work assignment](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/AssignWork.jsx): `src/components/supervisor/AssignWork.jsx`
- [Technician management](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/TechnicianManagement.jsx): `src/components/supervisor/TechnicianManagement.jsx`
- [Maintenance plans](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/MaintenancePlan.jsx): `src/components/supervisor/MaintenancePlan.jsx`
- [Supervisor reports](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/supervisor/Reports.jsx): `src/components/supervisor/Reports.jsx`
- [Technician dashboard](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/TechnicianDashboard.jsx): `src/components/technician/TechnicianDashboard.jsx`
- [Work orders](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/WorkOrder.jsx): `src/components/technician/WorkOrder.jsx`
- [Work history](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/WorkHistory.jsx): `src/components/technician/WorkHistory.jsx`
- [Technician reports](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/Reports.jsx): `src/components/technician/Reports.jsx`
- [Technician profile](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/technician/Profile.jsx): `src/components/technician/Profile.jsx`
- **Admin tools**

### Shared services

- [API hook](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/hooks/useApi.js): `src/components/hooks/useApi.js`
- [API endpoints](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/config/api.js): `src/config/api.js`
- [Modal](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/Modal.jsx): `src/components/Modal.jsx`
- [Terms content](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/TermsContent.jsx): `src/components/TermsContent.jsx`
- [Privacy content](https://github.com/sunny-subhakar/utility-asset-maintanance-tracker/blob/main/src/components/PrivacyContent.jsx): `src/components/PrivacyContent.jsx`

### Other components

- **Visitor**
- **Application API**

## Connections

- Visitor → Landing page: visits
- Visitor → Registration: registers
- Visitor → Login: signs in
- Landing page → App and auth: uses auth (evidence: `src/pages/LandingPage.jsx`)
- Login → App and auth: calls login (evidence: `src/pages/LoginPage.jsx`)
- Login → Modal: opens (evidence: `src/pages/LoginPage.jsx`)
- Login → Terms content: renders (evidence: `src/pages/LoginPage.jsx`)
- Login → Privacy content: renders (evidence: `src/pages/LoginPage.jsx`)
- User dashboard → Asset request: offers requests
- User dashboard → Assigned assets: shows assets
- User dashboard → Asset history: shows history
- Asset request → API hook: submits via (evidence: `src/components/user/AssetRequestForm.jsx`)
- API hook → Application API: sends HTTP (evidence: `src/components/hooks/useApi.js`)
- Asset request → API endpoints: uses endpoint (evidence: `src/components/user/AssetRequestForm.jsx`)
- Supervisor dashboard → Asset management: renders (evidence: `src/components/supervisor/SupervisorDashboard.jsx`)
- Supervisor dashboard → Work assignment: renders (evidence: `src/components/supervisor/SupervisorDashboard.jsx`)
- Supervisor dashboard → Technician management: renders (evidence: `src/components/supervisor/SupervisorDashboard.jsx`)
- Supervisor dashboard → Maintenance plans: renders (evidence: `src/components/supervisor/SupervisorDashboard.jsx`)
- Supervisor dashboard → Supervisor reports: renders (evidence: `src/components/supervisor/SupervisorDashboard.jsx`)
- Technician dashboard → Work orders: offers tasks
- Technician dashboard → Work history: offers history
- Technician dashboard → Technician reports: offers reports
- Technician dashboard → Technician profile: offers profile
- Admin tools → Application API: administers
