# majd-th/it-helpdesk-system architecture

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

- Interactive diagram: https://gitdiagram.com/majd-th/it-helpdesk-system
- Repository: https://github.com/majd-th/it-helpdesk-system

## Overview

This is a full-stack, role-based IT helpdesk for managing support tickets from creation through closure. Employees submit and follow tickets; managers review AI priority, assign or publish work, and agents resolve it; users can then close resolved tickets. The product also includes comments, attachments, activity and assignment history, notifications, a knowledge base, administration, analytics, and PDF reports. The README establishes these capabilities; sampled code confirms ticket-controller delegation, authentication behavior, and report queries. Several subsystem links remain unverified because their source was not sampled.

Main entry points: [`IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs`](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs) (Ticket lifecycle), [`IT-HelpDesk-Ticketing-System/frontend/src/App.jsx`](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/frontend/src/App.jsx) (Web application), [`IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AuthService.cs`](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AuthService.cs) (Authentication), [`IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AIPriorityService.cs`](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AIPriorityService.cs) (AI priority)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_users["People and interface"]
  node_webapp["Web application<br/>[App.jsx]"]
  node_ticketui["Ticket workflows"]
  node_authui["Sign-in and profile<br/>[Login.jsx]"]
end

subgraph group_workflow["Ticket operations"]
  node_ticketapi["Ticket endpoints"]
  node_ticketservice["Ticket lifecycle<br/>[TicketService.cs]"]
  node_priority["AI priority"]
  node_assignment["Assignment workflow"]
  node_ticketdata["Ticket records<br/>[Ticket.cs]"]
end

subgraph group_support["Communication and knowledge"]
  node_discussion["Comments and files"]
  node_history["Activity and work logs<br/>[ActivityLog.cs]"]
  node_notifications["Notifications"]
  node_realtime["Realtime delivery<br/>[NotificationHub.cs]"]
  node_knowledge["Knowledge base"]
end

subgraph group_insights["Administration and insights"]
  node_admin["User administration"]
  node_analytics["Dashboards and reports"]
end

subgraph group_platform["Identity and persistence"]
  node_authapi["Authentication<br/>[AuthService.cs]"]
  node_database[("Application database")]
end

node_employee(("Employee"))
node_agent(("Support agent"))
node_manager(("Manager or admin"))
node_groq{{"Groq API"}}
node_email{{"Email service"}}

node_employee -->|"uses"| node_webapp
node_agent -->|"uses"| node_webapp
node_manager -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_ticketui
node_webapp -->|"routes to"| node_authui
node_ticketui -.->|"submits requests"| node_ticketapi
node_ticketapi -->|"delegates"| node_ticketservice
node_ticketservice -.->|"requests recommendation"| node_priority
node_priority -->|"classifies tickets"| node_groq
node_manager -->|"reviews recommendation"| node_priority
node_ticketservice -.->|"supports assignment"| node_assignment
node_manager -->|"assigns or publishes"| node_assignment
node_agent -->|"requests ticket"| node_assignment
node_ticketservice -.->|"updates lifecycle"| node_ticketdata
node_ticketservice -.->|"supports conversation"| node_discussion
node_ticketservice -.->|"records activity"| node_history
node_ticketservice -.->|"triggers updates"| node_notifications
node_notifications -.->|"delivers realtime"| node_realtime
node_employee -->|"searches articles"| node_knowledge
node_manager -->|"publishes articles"| node_knowledge
node_manager -->|"views reports"| node_analytics
node_admin -->|"provides reporting"| node_analytics
node_authui -.->|"authenticates"| node_authapi
node_authapi -.->|"sends account email"| node_email
node_analytics -->|"queries metrics"| node_database
node_ticketdata -.->|"persists records"| node_database
node_authapi -.->|"reads and writes users"| node_database

click node_webapp "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/frontend/src/App.jsx"
click node_ticketui "https://github.com/majd-th/it-helpdesk-system/tree/main/IT-HelpDesk-Ticketing-System/frontend/src/pages"
click node_authui "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/frontend/src/pages/Login.jsx"
click node_ticketapi "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketController.cs"
click node_ticketservice "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs"
click node_priority "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AIPriorityService.cs"
click node_assignment "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketAssignmentService.cs"
click node_ticketdata "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Models/Ticket.cs"
click node_discussion "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketCommentController.cs"
click node_history "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Models/ActivityLog.cs"
click node_notifications "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/NotificationService.cs"
click node_realtime "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Hubs/NotificationHub.cs"
click node_knowledge "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/KnowledgeBaseArticleController.cs"
click node_admin "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/AdminUserController.cs"
click node_analytics "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Repositories/ReportRepository.cs"
click node_authapi "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AuthService.cs"
click node_database "https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Data/ApplicationDbContext.cs"

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_webapp,node_ticketui,node_authui toneBlue
class node_ticketapi,node_ticketservice,node_priority,node_assignment,node_ticketdata toneAmber
class node_discussion,node_history,node_notifications,node_realtime,node_knowledge,node_groq toneMint
class node_admin,node_analytics toneRose
class node_authapi,node_database,node_employee,node_agent,node_manager,node_email toneIndigo
```

## Components

### People and interface

- [Web application](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/frontend/src/App.jsx): `IT-HelpDesk-Ticketing-System/frontend/src/App.jsx`
- [Ticket workflows](https://github.com/majd-th/it-helpdesk-system/tree/main/IT-HelpDesk-Ticketing-System/frontend/src/pages): `IT-HelpDesk-Ticketing-System/frontend/src/pages`
- [Sign-in and profile](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/frontend/src/pages/Login.jsx): `IT-HelpDesk-Ticketing-System/frontend/src/pages/Login.jsx`

### Ticket operations

- [Ticket endpoints](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketController.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketController.cs`
- [Ticket lifecycle](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs`
- [AI priority](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AIPriorityService.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AIPriorityService.cs`
- [Assignment workflow](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketAssignmentService.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketAssignmentService.cs`
- [Ticket records](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Models/Ticket.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Models/Ticket.cs`

### Communication and knowledge

- [Comments and files](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketCommentController.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketCommentController.cs`
- [Activity and work logs](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Models/ActivityLog.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Models/ActivityLog.cs`
- [Notifications](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/NotificationService.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/NotificationService.cs`
- [Realtime delivery](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Hubs/NotificationHub.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Hubs/NotificationHub.cs`
- [Knowledge base](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/KnowledgeBaseArticleController.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/KnowledgeBaseArticleController.cs`

### Administration and insights

- [User administration](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/AdminUserController.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/AdminUserController.cs`
- [Dashboards and reports](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Repositories/ReportRepository.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Repositories/ReportRepository.cs`

### Identity and persistence

- [Authentication](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AuthService.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AuthService.cs`
- [Application database](https://github.com/majd-th/it-helpdesk-system/blob/main/IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Data/ApplicationDbContext.cs): `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Data/ApplicationDbContext.cs`

### Other components

- **Employee**
- **Support agent**
- **Manager or admin**
- **Groq API**
- **Email service**

## Connections

- Employee → Web application: uses
- Support agent → Web application: uses
- Manager or admin → Web application: uses
- Web application → Ticket workflows: routes to (evidence: `IT-HelpDesk-Ticketing-System/frontend/src/App.jsx`)
- Web application → Sign-in and profile: routes to (evidence: `IT-HelpDesk-Ticketing-System/frontend/src/App.jsx`)
- Ticket workflows → Ticket endpoints: submits requests
- Ticket endpoints → Ticket lifecycle: delegates (evidence: `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Controllers/TicketController.cs`)
- Ticket lifecycle → AI priority: requests recommendation
- AI priority → Groq API: classifies tickets
- Manager or admin → AI priority: reviews recommendation
- Ticket lifecycle → Assignment workflow: supports assignment
- Manager or admin → Assignment workflow: assigns or publishes
- Support agent → Assignment workflow: requests ticket
- Ticket lifecycle → Ticket records: updates lifecycle (evidence: `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs`)
- Ticket lifecycle → Comments and files: supports conversation
- Ticket lifecycle → Activity and work logs: records activity (evidence: `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/TicketService.cs`)
- Ticket lifecycle → Notifications: triggers updates
- Notifications → Realtime delivery: delivers realtime
- Employee → Knowledge base: searches articles
- Manager or admin → Knowledge base: publishes articles
- Manager or admin → Dashboards and reports: views reports
- User administration → Dashboards and reports: provides reporting
- Sign-in and profile → Authentication: authenticates
- Authentication → Email service: sends account email
- Dashboards and reports → Application database: queries metrics (evidence: `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Repositories/ReportRepository.cs`)
- Ticket records → Application database: persists records (evidence: `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Data/ApplicationDbContext.cs`)
- Authentication → Application database: reads and writes users (evidence: `IT-HelpDesk-Ticketing-System/backend/ITHelpDesk.API/Services/AuthService.cs`)
