# bhargav-naidu-29/cli-it-helpdesk architecture

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

- Interactive diagram: https://gitdiagram.com/bhargav-naidu-29/cli-it-helpdesk
- Repository: https://github.com/bhargav-naidu-29/cli-it-helpdesk

## Overview

This command-line helpdesk takes an employee ID, derives stable employee-specific categories, SLA hours, and ticket prefix, then loads that employee’s saved tickets. From the menu, an agent can raise tickets or advance them through the required status flow; changes are saved, while summary options display tickets, filters, counts, and SLA breaches. Ticket records provide the shared domain model and SLA calculations, with JSON persistence in the same module. The source excerpts show the main dispatch and module calls; the ticket data file in the tree is not shown as runtime configuration.

Main entry points: [`main.py`](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/main.py) (Menu and orchestration), [`summary.py`](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/summary.py) (Filters and counts), [`model.py`](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/model.py) (Employee ticket files), [`ticket.py`](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/ticket.py) (Raise and update tickets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["CLI workflow"]
  node_cli["Menu and orchestration<br/>[main.py]"]
  node_personalization["Employee settings<br/>[personalization.py]"]
end

subgraph group_domain["Ticket domain"]
  node_ticket_ops["Raise and update tickets<br/>[ticket.py]"]
  node_ticket_model["Ticket and SLA rules<br/>[model.py]"]
end

subgraph group_reporting["Ticket summaries"]
  node_summary_menu["Summary menu<br/>[summary.py]"]
  node_summary_views["Filters and counts<br/>[summary.py]"]
end

subgraph group_persistence["JSON persistence"]
  node_json_storage[("Employee ticket files<br/>[model.py]")]
end

node_agent(("Service desk agent"))

node_agent -->|"enters requests"| node_cli
node_cli -->|"gets settings"| node_personalization
node_cli -->|"loads tickets"| node_json_storage
node_json_storage -->|"returns tickets"| node_cli
node_cli -->|"dispatches ticket actions"| node_ticket_ops
node_ticket_ops -->|"creates tickets"| node_ticket_model
node_cli -->|"saves after changes"| node_json_storage
node_cli -->|"opens summary"| node_summary_menu
node_summary_menu -->|"dispatches views"| node_summary_views
node_summary_views -->|"checks SLA and status"| node_ticket_model
node_summary_views -.->|"displays results"| node_cli

click node_cli "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/main.py"
click node_personalization "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/personalization.py"
click node_ticket_ops "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/ticket.py"
click node_ticket_model "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/model.py"
click node_summary_menu "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/summary.py"
click node_summary_views "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/summary.py"
click node_json_storage "https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/model.py"

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_cli,node_personalization toneBlue
class node_ticket_ops,node_ticket_model toneAmber
class node_summary_menu,node_summary_views toneMint
class node_json_storage toneRose
class node_agent toneIndigo
```

## Components

### CLI workflow

- [Menu and orchestration](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/main.py): `main.py`
- [Employee settings](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/personalization.py): `personalization.py`

### Ticket domain

- [Raise and update tickets](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/ticket.py): `ticket.py`
- [Ticket and SLA rules](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/model.py): `model.py`

### Ticket summaries

- [Summary menu](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/summary.py): `summary.py`
- [Filters and counts](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/summary.py): `summary.py`

### JSON persistence

- [Employee ticket files](https://github.com/bhargav-naidu-29/cli-it-helpdesk/blob/main/model.py): `model.py`

### Other components

- **Service desk agent**

## Connections

- Service desk agent → Menu and orchestration: enters requests (evidence: `main.py`)
- Menu and orchestration → Employee settings: gets settings (evidence: `main.py`)
- Menu and orchestration → Employee ticket files: loads tickets (evidence: `main.py`)
- Employee ticket files → Menu and orchestration: returns tickets (evidence: `main.py`)
- Menu and orchestration → Raise and update tickets: dispatches ticket actions (evidence: `main.py`)
- Raise and update tickets → Ticket and SLA rules: creates tickets (evidence: `ticket.py`)
- Menu and orchestration → Employee ticket files: saves after changes (evidence: `main.py`)
- Menu and orchestration → Summary menu: opens summary (evidence: `main.py`)
- Summary menu → Filters and counts: dispatches views (evidence: `summary.py`)
- Filters and counts → Ticket and SLA rules: checks SLA and status (evidence: `summary.py`)
- Filters and counts → Menu and orchestration: displays results (evidence: `main.py`)
