# zachloh/project-management-app architecture

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

- Interactive diagram: https://gitdiagram.com/zachloh/project-management-app
- Repository: https://github.com/zachloh/project-management-app

## Overview

ProjectHub is a Jira-inspired project-management web app. Users authenticate, view organization and project dashboards, manage projects, and work issues on a filterable, drag-and-drop Kanban board; issue details and edits are handled in a modal. The client is organized around feature screens and API hooks, backed by Express routes/controllers and Mongoose models. The README documents account, project, issue, and role-management capabilities. Some client-to-server and server-layer links are shown dashed because the relevant wiring was not excerpted or indexed as a reference.

Main entry points: [`client/src/features/kanban-board/components/KanbanBoard/index.tsx`](https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/KanbanBoard/index.tsx) (Kanban board), [`client/src/api/issues/updateIssueStatus.tsx`](https://github.com/zachloh/project-management-app/blob/main/client/src/api/issues/updateIssueStatus.tsx) (Client API hooks), [`client/src/App.tsx`](https://github.com/zachloh/project-management-app/blob/main/client/src/App.tsx) (App and routes), [`client/src/components/Layout/index.tsx`](https://github.com/zachloh/project-management-app/blob/main/client/src/components/Layout/index.tsx) (Navigation and search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client_shell["Client shell"]
  node_app_routes["App and routes<br/>[App.tsx]"]
  node_auth_ui["Authentication<br/>[LoginForm.tsx]"]
  node_layout["Navigation and search<br/>[index.tsx]"]
end

subgraph group_workspaces["Dashboards and projects"]
  node_overview["Organization dashboard<br/>[index.tsx]"]
  node_overview_metrics["Dashboard metrics<br/>[IssuesChart.tsx]"]
  node_project_dashboard["Project dashboard"]
  node_project_management["Project management<br/>[index.tsx]"]
  node_admin_settings["Admin settings<br/>[index.tsx]"]
  node_profile["User profile and setup<br/>[index.tsx]"]
end

subgraph group_issue_work["Issue workflow"]
  node_kanban["Kanban board<br/>[index.tsx]"]
  node_board_columns["Issue cards and creation<br/>[index.tsx]"]
  node_issue_filter["Issue filters<br/>[index.tsx]"]
  node_issue_modal["Issue details and editing<br/>[index.tsx]"]
end

subgraph group_api_server["API and services"]
  node_client_api["Client API hooks"]
  node_server_routes["Express routes<br/>[issues.ts]"]
  node_issue_controller["Issue operations<br/>[issues.ts]"]
  node_project_controller["Project operations<br/>[projects.ts]"]
  node_user_controller["User and organization operations<br/>[users.ts]"]
end

subgraph group_domain_data["Domain data"]
  node_issue_model[("Issue records<br/>[issues.ts]")]
  node_project_model[("Project records<br/>[projects.ts]")]
  node_user_model[("User records<br/>[users.ts]")]
  node_history[("Project history<br/>[projectHistory.ts]")]
end

node_user(("User"))

node_user -->|"uses"| node_app_routes
node_app_routes -.->|"offers sign-in"| node_auth_ui
node_app_routes -.->|"renders workspace"| node_layout
node_layout -.->|"hosts dashboard"| node_overview
node_layout -->|"searches issues"| node_client_api
node_overview -.->|"loads projects"| node_client_api
node_overview -->|"renders metrics"| node_overview_metrics
node_user -->|"manages issues"| node_kanban
node_kanban -->|"loads project"| node_client_api
node_kanban -->|"updates status"| node_client_api
node_kanban -->|"renders columns"| node_board_columns
node_kanban -->|"renders filters"| node_issue_filter
node_kanban -->|"renders details"| node_issue_modal
node_user -->|"manages projects"| node_project_management
node_user -->|"edits member roles"| node_admin_settings
node_user -->|"edits profile"| node_profile
node_client_api -.->|"calls API"| node_server_routes
node_server_routes -.->|"dispatches issues"| node_issue_controller
node_issue_controller -.->|"reads and writes"| node_issue_model
node_project_controller -.->|"reads and writes"| node_project_model
node_user_controller -.->|"reads and writes"| node_user_model
node_project_model -->|"references issues"| node_issue_model
node_project_model -->|"references members"| node_user_model
node_user -->|"views project details"| node_project_dashboard
node_project_dashboard -.->|"shows activity"| node_history

click node_app_routes "https://github.com/zachloh/project-management-app/blob/main/client/src/App.tsx"
click node_auth_ui "https://github.com/zachloh/project-management-app/blob/main/client/src/features/auth/components/LoginForm.tsx"
click node_layout "https://github.com/zachloh/project-management-app/blob/main/client/src/components/Layout/index.tsx"
click node_overview "https://github.com/zachloh/project-management-app/blob/main/client/src/features/overview-dashboard/components/OverviewDashboard/index.tsx"
click node_overview_metrics "https://github.com/zachloh/project-management-app/blob/main/client/src/features/overview-dashboard/components/IssuesChart.tsx"
click node_project_dashboard "https://github.com/zachloh/project-management-app/blob/main/client/src/features/project-dashboard/components/ProjectDashboard.tsx"
click node_project_management "https://github.com/zachloh/project-management-app/blob/main/client/src/features/project-management/components/ProjectManagement/index.tsx"
click node_admin_settings "https://github.com/zachloh/project-management-app/blob/main/client/src/features/admin-settings/components/AdminSettings/index.tsx"
click node_profile "https://github.com/zachloh/project-management-app/blob/main/client/src/features/user/components/UserProfile/index.tsx"
click node_kanban "https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/KanbanBoard/index.tsx"
click node_board_columns "https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/KanbanCard/index.tsx"
click node_issue_filter "https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/IssuesFilter/index.tsx"
click node_issue_modal "https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/IssueModal/index.tsx"
click node_client_api "https://github.com/zachloh/project-management-app/blob/main/client/src/api/issues/updateIssueStatus.tsx"
click node_server_routes "https://github.com/zachloh/project-management-app/blob/main/server/src/routes/issues.ts"
click node_issue_controller "https://github.com/zachloh/project-management-app/blob/main/server/src/controllers/issues.ts"
click node_project_controller "https://github.com/zachloh/project-management-app/blob/main/server/src/controllers/projects.ts"
click node_user_controller "https://github.com/zachloh/project-management-app/blob/main/server/src/controllers/users.ts"
click node_issue_model "https://github.com/zachloh/project-management-app/blob/main/server/src/models/issues.ts"
click node_project_model "https://github.com/zachloh/project-management-app/blob/main/server/src/models/projects.ts"
click node_user_model "https://github.com/zachloh/project-management-app/blob/main/server/src/models/users.ts"
click node_history "https://github.com/zachloh/project-management-app/blob/main/server/src/models/projectHistory.ts"

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_routes,node_auth_ui,node_layout,node_user toneBlue
class node_overview,node_overview_metrics,node_project_dashboard,node_project_management,node_admin_settings,node_profile toneAmber
class node_kanban,node_board_columns,node_issue_filter,node_issue_modal toneMint
class node_client_api,node_server_routes,node_issue_controller,node_project_controller,node_user_controller toneRose
class node_issue_model,node_project_model,node_user_model,node_history toneIndigo
```

## Components

### Client shell

- [App and routes](https://github.com/zachloh/project-management-app/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Authentication](https://github.com/zachloh/project-management-app/blob/main/client/src/features/auth/components/LoginForm.tsx): `client/src/features/auth/components/LoginForm.tsx`
- [Navigation and search](https://github.com/zachloh/project-management-app/blob/main/client/src/components/Layout/index.tsx): `client/src/components/Layout/index.tsx`

### Dashboards and projects

- [Organization dashboard](https://github.com/zachloh/project-management-app/blob/main/client/src/features/overview-dashboard/components/OverviewDashboard/index.tsx): `client/src/features/overview-dashboard/components/OverviewDashboard/index.tsx`
- [Dashboard metrics](https://github.com/zachloh/project-management-app/blob/main/client/src/features/overview-dashboard/components/IssuesChart.tsx): `client/src/features/overview-dashboard/components/IssuesChart.tsx`
- [Project dashboard](https://github.com/zachloh/project-management-app/blob/main/client/src/features/project-dashboard/components/ProjectDashboard.tsx): `client/src/features/project-dashboard/components/ProjectDashboard.tsx`
- [Project management](https://github.com/zachloh/project-management-app/blob/main/client/src/features/project-management/components/ProjectManagement/index.tsx): `client/src/features/project-management/components/ProjectManagement/index.tsx`
- [Admin settings](https://github.com/zachloh/project-management-app/blob/main/client/src/features/admin-settings/components/AdminSettings/index.tsx): `client/src/features/admin-settings/components/AdminSettings/index.tsx`
- [User profile and setup](https://github.com/zachloh/project-management-app/blob/main/client/src/features/user/components/UserProfile/index.tsx): `client/src/features/user/components/UserProfile/index.tsx`

### Issue workflow

- [Kanban board](https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/KanbanBoard/index.tsx): `client/src/features/kanban-board/components/KanbanBoard/index.tsx`
- [Issue cards and creation](https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/KanbanCard/index.tsx): `client/src/features/kanban-board/components/KanbanCard/index.tsx`
- [Issue filters](https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/IssuesFilter/index.tsx): `client/src/features/kanban-board/components/IssuesFilter/index.tsx`
- [Issue details and editing](https://github.com/zachloh/project-management-app/blob/main/client/src/features/kanban-board/components/IssueModal/index.tsx): `client/src/features/kanban-board/components/IssueModal/index.tsx`

### API and services

- [Client API hooks](https://github.com/zachloh/project-management-app/blob/main/client/src/api/issues/updateIssueStatus.tsx): `client/src/api/issues/updateIssueStatus.tsx`
- [Express routes](https://github.com/zachloh/project-management-app/blob/main/server/src/routes/issues.ts): `server/src/routes/issues.ts`
- [Issue operations](https://github.com/zachloh/project-management-app/blob/main/server/src/controllers/issues.ts): `server/src/controllers/issues.ts`
- [Project operations](https://github.com/zachloh/project-management-app/blob/main/server/src/controllers/projects.ts): `server/src/controllers/projects.ts`
- [User and organization operations](https://github.com/zachloh/project-management-app/blob/main/server/src/controllers/users.ts): `server/src/controllers/users.ts`

### Domain data

- [Issue records](https://github.com/zachloh/project-management-app/blob/main/server/src/models/issues.ts): `server/src/models/issues.ts`
- [Project records](https://github.com/zachloh/project-management-app/blob/main/server/src/models/projects.ts): `server/src/models/projects.ts`
- [User records](https://github.com/zachloh/project-management-app/blob/main/server/src/models/users.ts): `server/src/models/users.ts`
- [Project history](https://github.com/zachloh/project-management-app/blob/main/server/src/models/projectHistory.ts): `server/src/models/projectHistory.ts`

### Other components

- **User**

## Connections

- User → App and routes: uses
- App and routes → Authentication: offers sign-in
- App and routes → Navigation and search: renders workspace
- Navigation and search → Organization dashboard: hosts dashboard
- Navigation and search → Client API hooks: searches issues (evidence: `client/src/components/Layout/index.tsx`)
- Organization dashboard → Client API hooks: loads projects
- Organization dashboard → Dashboard metrics: renders metrics (evidence: `client/src/features/overview-dashboard/components/OverviewDashboard/index.tsx`)
- User → Kanban board: manages issues
- Kanban board → Client API hooks: loads project (evidence: `client/src/features/kanban-board/components/KanbanBoard/index.tsx`)
- Kanban board → Client API hooks: updates status (evidence: `client/src/features/kanban-board/components/KanbanBoard/index.tsx`)
- Kanban board → Issue cards and creation: renders columns (evidence: `client/src/features/kanban-board/components/KanbanBoard/index.tsx`)
- Kanban board → Issue filters: renders filters (evidence: `client/src/features/kanban-board/components/KanbanBoard/index.tsx`)
- Kanban board → Issue details and editing: renders details (evidence: `client/src/features/kanban-board/components/KanbanBoard/index.tsx`)
- User → Project management: manages projects
- User → Admin settings: edits member roles
- User → User profile and setup: edits profile
- Client API hooks → Express routes: calls API
- Express routes → Issue operations: dispatches issues
- Issue operations → Issue records: reads and writes
- Project operations → Project records: reads and writes
- User and organization operations → User records: reads and writes
- Project records → Issue records: references issues (evidence: `server/src/models/projects.ts`)
- Project records → User records: references members (evidence: `server/src/models/projects.ts`)
- User → Project dashboard: views project details
- Project dashboard → Project history: shows activity
