# selasithegoat/magichands-project-system-master architecture

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

- Interactive diagram: https://gitdiagram.com/selasithegoat/magichands-project-system-master
- Repository: https://github.com/selasithegoat/magichands-project-system-master

## Overview

MagicHands is a multi-portal project and production management system backed by an Express/MongoDB API. A central workflow runs from client order and quote intake through project execution and updates to billing and delivery; administrators oversee projects and teams, inventory staff manage purchasing and stock, and operations staff monitor live production. The README documents these product capabilities and the portals’ API backing. Source excerpts are limited, so detailed internal API call paths are not inferred.

Main entry points: [`client/src/App.jsx`](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/App.jsx) (Client workflows), [`server/src/server.js`](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/server.js) (Express API), [`admin/src/App.jsx`](https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/App.jsx) (Admin workflows), [`inventoryportal/src/app/App.jsx`](https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/app/App.jsx) (Inventory management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client portal"]
  node_client_portal["Client workflows<br/>[App.jsx]"]
  node_order_intake["Order and quote intake"]
  node_project_actions["Project actions"]
  node_project_detail["Project details<br/>[ProjectDetail.jsx]"]
  node_client_billing["Billing documents"]
  node_client_chat["Chat and notifications<br/>[ChatDock.jsx]"]
end

subgraph group_admin["Admin portal"]
  node_admin_portal["Admin workflows<br/>[App.jsx]"]
  node_admin_projects["Project oversight<br/>[ProjectDetails.jsx]"]
  node_admin_analytics["Analytics and teams"]
end

subgraph group_inventory["Inventory portal"]
  node_inventory_portal["Inventory management<br/>[App.jsx]"]
  node_inventory_records["Stock and purchasing"]
  node_inventory_reports["Inventory reports<br/>[Reports.jsx]"]
end

subgraph group_ops["Operations wallboard"]
  node_ops_wallboard["Operations wallboard<br/>[CommandCenter.jsx]"]
  node_ops_panels["Production monitoring<br/>[PipelinePanel.jsx]"]
end

subgraph group_backend["API and data"]
  node_api["Express API<br/>[server.js]"]
  node_project_api["Project API<br/>[projectRoutes.js]"]
  node_inventory_api["Inventory API"]
  node_chat_api["Chat API<br/>[chatController.js]"]
  node_project_store[("Project records<br/>[Project.js]")]
  node_user_store[("User accounts<br/>[User.js]")]
  node_notification_service["Notifications"]
  node_realtime_hub["Realtime events<br/>[realtimeHub.js]"]
end

node_client_user(("Client or staff"))
node_mongo[("MongoDB")]

node_client_user -->|"uses"| node_client_portal
node_client_portal -->|"offers"| node_order_intake
node_client_portal -->|"offers"| node_project_actions
node_client_portal -->|"offers"| node_project_detail
node_client_portal -->|"offers"| node_client_billing
node_client_portal -->|"offers"| node_client_chat
node_client_portal -->|"uses API"| node_api
node_admin_portal -->|"offers"| node_admin_projects
node_admin_portal -->|"offers"| node_admin_analytics
node_admin_portal -->|"uses API"| node_api
node_inventory_portal -->|"offers"| node_inventory_records
node_inventory_portal -->|"offers"| node_inventory_reports
node_inventory_portal -->|"uses API"| node_inventory_api
node_ops_wallboard -->|"shows"| node_ops_panels
node_ops_wallboard -->|"uses API"| node_api
node_api -->|"routes project requests"| node_project_api
node_project_api -->|"manages projects"| node_project_store
node_inventory_api -->|"persists inventory data"| node_mongo
node_api -->|"uses MongoDB"| node_mongo
node_chat_api -->|"creates notifications"| node_notification_service
node_notification_service -->|"uses accounts"| node_user_store
node_notification_service -->|"broadcasts events"| node_realtime_hub

click node_client_portal "https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/App.jsx"
click node_order_intake "https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/CreateProject/QuoteWizard/MinimalQuoteForm.jsx"
click node_project_actions "https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/EngagedProjects/EngagedProjectActions.jsx"
click node_project_detail "https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/ProjectDetail/ProjectDetail.jsx"
click node_client_billing "https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/BillingDocuments/BillingDocuments.jsx"
click node_client_chat "https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/components/chat/ChatDock.jsx"
click node_admin_portal "https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/App.jsx"
click node_admin_projects "https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/pages/ProjectDetails/ProjectDetails.jsx"
click node_admin_analytics "https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/pages/Analytics/ProjectAnalytics.jsx"
click node_inventory_portal "https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/app/App.jsx"
click node_inventory_records "https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/pages/InventoryRecords/InventoryRecords.jsx"
click node_inventory_reports "https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/pages/Reports/Reports.jsx"
click node_ops_wallboard "https://github.com/selasithegoat/magichands-project-system-master/blob/main/opsportal/src/app/CommandCenter.jsx"
click node_ops_panels "https://github.com/selasithegoat/magichands-project-system-master/blob/main/opsportal/src/features/wallboard/components/PipelinePanel.jsx"
click node_api "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/server.js"
click node_project_api "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/routes/projectRoutes.js"
click node_inventory_api "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/controllers/inventoryController.js"
click node_chat_api "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/controllers/chatController.js"
click node_project_store "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/models/Project.js"
click node_user_store "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/models/User.js"
click node_notification_service "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/utils/notificationService.js"
click node_realtime_hub "https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/utils/realtimeHub.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_client_portal,node_order_intake,node_project_actions,node_project_detail,node_client_billing,node_client_chat,node_client_user toneBlue
class node_admin_portal,node_admin_projects,node_admin_analytics,node_mongo toneAmber
class node_inventory_portal,node_inventory_records,node_inventory_reports toneMint
class node_ops_wallboard,node_ops_panels toneRose
class node_api,node_project_api,node_inventory_api,node_chat_api,node_project_store,node_user_store,node_notification_service,node_realtime_hub toneIndigo
```

## Components

### Client portal

- [Client workflows](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Order and quote intake](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/CreateProject/QuoteWizard/MinimalQuoteForm.jsx): `client/src/pages/CreateProject/QuoteWizard/MinimalQuoteForm.jsx`
- [Project actions](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/EngagedProjects/EngagedProjectActions.jsx): `client/src/pages/EngagedProjects/EngagedProjectActions.jsx`
- [Project details](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/ProjectDetail/ProjectDetail.jsx): `client/src/pages/ProjectDetail/ProjectDetail.jsx`
- [Billing documents](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/pages/BillingDocuments/BillingDocuments.jsx): `client/src/pages/BillingDocuments/BillingDocuments.jsx`
- [Chat and notifications](https://github.com/selasithegoat/magichands-project-system-master/blob/main/client/src/components/chat/ChatDock.jsx): `client/src/components/chat/ChatDock.jsx`

### Admin portal

- [Admin workflows](https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/App.jsx): `admin/src/App.jsx`
- [Project oversight](https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/pages/ProjectDetails/ProjectDetails.jsx): `admin/src/pages/ProjectDetails/ProjectDetails.jsx`
- [Analytics and teams](https://github.com/selasithegoat/magichands-project-system-master/blob/main/admin/src/pages/Analytics/ProjectAnalytics.jsx): `admin/src/pages/Analytics/ProjectAnalytics.jsx`

### Inventory portal

- [Inventory management](https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/app/App.jsx): `inventoryportal/src/app/App.jsx`
- [Stock and purchasing](https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/pages/InventoryRecords/InventoryRecords.jsx): `inventoryportal/src/pages/InventoryRecords/InventoryRecords.jsx`
- [Inventory reports](https://github.com/selasithegoat/magichands-project-system-master/blob/main/inventoryportal/src/pages/Reports/Reports.jsx): `inventoryportal/src/pages/Reports/Reports.jsx`

### Operations wallboard

- [Operations wallboard](https://github.com/selasithegoat/magichands-project-system-master/blob/main/opsportal/src/app/CommandCenter.jsx): `opsportal/src/app/CommandCenter.jsx`
- [Production monitoring](https://github.com/selasithegoat/magichands-project-system-master/blob/main/opsportal/src/features/wallboard/components/PipelinePanel.jsx): `opsportal/src/features/wallboard/components/PipelinePanel.jsx`

### API and data

- [Express API](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/server.js): `server/src/server.js`
- [Project API](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/routes/projectRoutes.js): `server/src/routes/projectRoutes.js`
- [Inventory API](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/controllers/inventoryController.js): `server/src/controllers/inventoryController.js`
- [Chat API](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/controllers/chatController.js): `server/src/controllers/chatController.js`
- [Project records](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/models/Project.js): `server/src/models/Project.js`
- [User accounts](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/models/User.js): `server/src/models/User.js`
- [Notifications](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/utils/notificationService.js): `server/src/utils/notificationService.js`
- [Realtime events](https://github.com/selasithegoat/magichands-project-system-master/blob/main/server/src/utils/realtimeHub.js): `server/src/utils/realtimeHub.js`

### Other components

- **Client or staff**
- **MongoDB**

## Connections

- Client or staff → Client workflows: uses (evidence: `README.md`)
- Client workflows → Order and quote intake: offers (evidence: `README.md`)
- Client workflows → Project actions: offers (evidence: `README.md`)
- Client workflows → Project details: offers (evidence: `README.md`)
- Client workflows → Billing documents: offers (evidence: `README.md`)
- Client workflows → Chat and notifications: offers (evidence: `README.md`)
- Client workflows → Express API: uses API (evidence: `README.md`)
- Admin workflows → Project oversight: offers (evidence: `README.md`)
- Admin workflows → Analytics and teams: offers (evidence: `README.md`)
- Admin workflows → Express API: uses API (evidence: `README.md`)
- Inventory management → Stock and purchasing: offers (evidence: `README.md`)
- Inventory management → Inventory reports: offers (evidence: `README.md`)
- Inventory management → Inventory API: uses API (evidence: `README.md`)
- Operations wallboard → Production monitoring: shows (evidence: `README.md`)
- Operations wallboard → Express API: uses API (evidence: `README.md`)
- Express API → Project API: routes project requests (evidence: `server/src/server.js`)
- Project API → Project records: manages projects (evidence: `server/src/routes/projectRoutes.js`)
- Inventory API → MongoDB: persists inventory data (evidence: `README.md`)
- Express API → MongoDB: uses MongoDB (evidence: `README.md`)
- Chat API → Notifications: creates notifications (evidence: `server/src/controllers/chatController.js`)
- Notifications → User accounts: uses accounts (evidence: `server/src/utils/notificationService.js`)
- Notifications → Realtime events: broadcasts events (evidence: `server/src/utils/notificationService.js`)
