# gabrielcoolguy/respite-queue-management architecture

> Architecture diagram of the GitHub repository gabrielcoolguy/respite-queue-management, 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/gabrielcoolguy/respite-queue-management
- Repository: https://github.com/gabrielcoolguy/respite-queue-management

## Overview

This is a small terminal-based respite queue manager. Staff enter regular or priority customers, call the next person, or remove a ticket; the system tracks waiting and service times and retains completed customers for average-time summaries. Staff and customer-facing terminal views expose the live queue and current service state. The single-file implementation keeps queue logic, customer state, and presentation together; there is no documented persistence or external integration.

Main entry points: [`Respite_Queue_Management.py`](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py) (Queue system)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_queue["Queue management"]
  node_queue_cli["Queue controls"]
  node_queue_system["Queue system"]
  node_customer["Customer record"]
  node_history[("Completed history")]
end

subgraph group_views["Terminal views"]
  node_control_view["Control view"]
  node_customer_view["Customer view"]
end

node_staff(("Staff"))

node_staff -->|"selects action"| node_queue_cli
node_queue_cli -->|"adds, calls, removes"| node_queue_system
node_queue_system -->|"creates"| node_customer
node_queue_system -->|"archives served"| node_history
node_queue_cli -->|"renders"| node_control_view
node_queue_cli -->|"renders"| node_customer_view
node_control_view -->|"reads live state"| node_queue_system
node_customer_view -->|"reads queue and averages"| node_queue_system

click node_queue_cli "https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py"
click node_queue_system "https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py"
click node_customer "https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py"
click node_history "https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py"
click node_control_view "https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py"
click node_customer_view "https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.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_queue_cli,node_queue_system,node_customer,node_history toneBlue
class node_control_view,node_customer_view toneAmber
class node_staff toneIndigo
```

## Components

### Queue management

- [Queue controls](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py): `Respite_Queue_Management.py`
- [Queue system](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py): `Respite_Queue_Management.py`
- [Customer record](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py): `Respite_Queue_Management.py`
- [Completed history](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py): `Respite_Queue_Management.py`

### Terminal views

- [Control view](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py): `Respite_Queue_Management.py`
- [Customer view](https://github.com/gabrielcoolguy/respite-queue-management/blob/main/Respite_Queue_Management.py): `Respite_Queue_Management.py`

### Other components

- **Staff**

## Connections

- Staff → Queue controls: selects action (evidence: `Respite_Queue_Management.py`)
- Queue controls → Queue system: adds, calls, removes (evidence: `Respite_Queue_Management.py`)
- Queue system → Customer record: creates (evidence: `Respite_Queue_Management.py`)
- Queue system → Completed history: archives served (evidence: `Respite_Queue_Management.py`)
- Queue controls → Control view: renders (evidence: `Respite_Queue_Management.py`)
- Queue controls → Customer view: renders (evidence: `Respite_Queue_Management.py`)
- Control view → Queue system: reads live state (evidence: `Respite_Queue_Management.py`)
- Customer view → Queue system: reads queue and averages (evidence: `Respite_Queue_Management.py`)
