# themanwhocodesmad/romanesco architecture

> Architecture diagram of the GitHub repository themanwhocodesmad/romanesco, 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/themanwhocodesmad/romanesco
- Repository: https://github.com/themanwhocodesmad/romanesco

## Overview

This is a Django service-management application for tracking customers, repair job cards, technicians, products, and returned goods (RMA). Users submit and manage jobs and RMAs through web views or REST endpoints; RMAs can be converted into job cards, while technicians’ work, reporting, and customer survey feedback are handled across the job lifecycle. Authentication and product catalogs support those workflows. The excerpts show model and view behavior, but not URL wiring; several webapp and notification details are therefore represented only where the source index or excerpts support them.

Main entry points: [`system/models.py`](https://github.com/themanwhocodesmad/romanesco/blob/master/system/models.py) (Customers and jobs), [`system/views.py`](https://github.com/themanwhocodesmad/romanesco/blob/master/system/views.py) (Job API and reports), [`authentication/models.py`](https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/models.py) (User accounts), [`resources/views.py`](https://github.com/themanwhocodesmad/romanesco/blob/master/resources/views.py) (Catalog API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and identity"]
  node_auth_views["Authentication API<br/>[views.py]"]
  node_auth_serializers["User serialization<br/>[serializers.py]"]
  node_users[("User accounts<br/>[models.py]")]
  node_telegram["Telegram linking<br/>[main.py]"]
end

subgraph group_jobs["Job management"]
  node_job_api["Job API and reports<br/>[views.py]"]
  node_job_serializers["Job serialization<br/>[serializers.py]"]
  node_job_records[("Customers and jobs<br/>[models.py]")]
  node_web_views["Job web views"]
  node_web_forms["Job web forms"]
  node_web_entry["Web view module<br/>[views.py]"]
  node_web_form_entry["Form module<br/>[forms.py]"]
end

subgraph group_returns["Returns and feedback"]
  node_rma_views["RMA workflow<br/>[RMAViews.py]"]
  node_rma_forms["RMA forms<br/>[RMAForms.py]"]
  node_rma_records[("RMA records<br/>[models.py]")]
  node_rma_serializers["RMA serialization<br/>[serializers.py]"]
  node_survey["Customer surveys<br/>[survey.py]"]
  node_survey_forms["Survey forms<br/>[forms.py]"]
end

subgraph group_catalog["Catalog and messaging"]
  node_resources_api["Catalog API<br/>[views.py]"]
  node_resource_serializers["Catalog serialization<br/>[serializers.py]"]
  node_catalog_records[("Products and regions<br/>[models.py]")]
  node_whatsapp["WhatsApp notices"]
end

node_user(("User"))

node_user -.->|"authenticates"| node_auth_views
node_auth_views -->|"uses"| node_auth_serializers
node_auth_views -->|"reads"| node_users
node_telegram -->|"links chat"| node_users
node_job_api -->|"reads and updates"| node_job_records
node_job_api -->|"serializes"| node_job_serializers
node_job_api -->|"looks up technician"| node_users
node_web_views -->|"uses"| node_web_forms
node_web_views -->|"reads"| node_job_records
node_rma_views -->|"uses"| node_rma_forms
node_rma_views -->|"reads and updates"| node_rma_records
node_rma_forms -->|"selects technicians"| node_users
node_rma_forms -->|"selects products"| node_catalog_records
node_rma_records -->|"creates job card"| node_job_records
node_rma_serializers -->|"serializes"| node_rma_records
node_rma_serializers -->|"references"| node_job_records
node_survey -->|"uses"| node_survey_forms
node_survey -->|"records feedback"| node_job_records
node_resources_api -->|"serializes"| node_resource_serializers
node_resources_api -->|"reads and updates"| node_catalog_records
node_resources_api -->|"serializes technicians"| node_auth_serializers
node_job_api -.->|"may notify"| node_whatsapp

click node_auth_views "https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/views.py"
click node_auth_serializers "https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/serializers.py"
click node_users "https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/models.py"
click node_telegram "https://github.com/themanwhocodesmad/romanesco/blob/master/main.py"
click node_job_api "https://github.com/themanwhocodesmad/romanesco/blob/master/system/views.py"
click node_job_serializers "https://github.com/themanwhocodesmad/romanesco/blob/master/system/serializers.py"
click node_job_records "https://github.com/themanwhocodesmad/romanesco/blob/master/system/models.py"
click node_web_views "https://github.com/themanwhocodesmad/romanesco/tree/master/webapp/views"
click node_web_forms "https://github.com/themanwhocodesmad/romanesco/tree/master/webapp/forms"
click node_web_entry "https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/views.py"
click node_web_form_entry "https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/forms.py"
click node_rma_views "https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/views/RMAViews.py"
click node_rma_forms "https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/forms/RMAForms.py"
click node_rma_records "https://github.com/themanwhocodesmad/romanesco/blob/master/rma/models.py"
click node_rma_serializers "https://github.com/themanwhocodesmad/romanesco/blob/master/rma/serializers.py"
click node_survey "https://github.com/themanwhocodesmad/romanesco/blob/master/system/customer_responses/survey.py"
click node_survey_forms "https://github.com/themanwhocodesmad/romanesco/blob/master/system/customer_responses/forms.py"
click node_resources_api "https://github.com/themanwhocodesmad/romanesco/blob/master/resources/views.py"
click node_resource_serializers "https://github.com/themanwhocodesmad/romanesco/blob/master/resources/serializers.py"
click node_catalog_records "https://github.com/themanwhocodesmad/romanesco/blob/master/resources/models.py"
click node_whatsapp "https://github.com/themanwhocodesmad/romanesco/blob/master/system/twilio_whatsapp/technician_notifications.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_auth_views,node_auth_serializers,node_users,node_telegram,node_user toneBlue
class node_job_api,node_job_serializers,node_job_records,node_web_views,node_web_forms,node_web_entry,node_web_form_entry toneAmber
class node_rma_views,node_rma_forms,node_rma_records,node_rma_serializers,node_survey,node_survey_forms toneMint
class node_resources_api,node_resource_serializers,node_catalog_records,node_whatsapp toneRose
```

## Components

### Access and identity

- [Authentication API](https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/views.py): `authentication/views.py`
- [User serialization](https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/serializers.py): `authentication/serializers.py`
- [User accounts](https://github.com/themanwhocodesmad/romanesco/blob/master/authentication/models.py): `authentication/models.py`
- [Telegram linking](https://github.com/themanwhocodesmad/romanesco/blob/master/main.py): `main.py`

### Job management

- [Job API and reports](https://github.com/themanwhocodesmad/romanesco/blob/master/system/views.py): `system/views.py`
- [Job serialization](https://github.com/themanwhocodesmad/romanesco/blob/master/system/serializers.py): `system/serializers.py`
- [Customers and jobs](https://github.com/themanwhocodesmad/romanesco/blob/master/system/models.py): `system/models.py`
- [Job web views](https://github.com/themanwhocodesmad/romanesco/tree/master/webapp/views): `webapp/views`
- [Job web forms](https://github.com/themanwhocodesmad/romanesco/tree/master/webapp/forms): `webapp/forms`
- [Web view module](https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/views.py): `webapp/views.py`
- [Form module](https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/forms.py): `webapp/forms.py`

### Returns and feedback

- [RMA workflow](https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/views/RMAViews.py): `webapp/views/RMAViews.py`
- [RMA forms](https://github.com/themanwhocodesmad/romanesco/blob/master/webapp/forms/RMAForms.py): `webapp/forms/RMAForms.py`
- [RMA records](https://github.com/themanwhocodesmad/romanesco/blob/master/rma/models.py): `rma/models.py`
- [RMA serialization](https://github.com/themanwhocodesmad/romanesco/blob/master/rma/serializers.py): `rma/serializers.py`
- [Customer surveys](https://github.com/themanwhocodesmad/romanesco/blob/master/system/customer_responses/survey.py): `system/customer_responses/survey.py`
- [Survey forms](https://github.com/themanwhocodesmad/romanesco/blob/master/system/customer_responses/forms.py): `system/customer_responses/forms.py`

### Catalog and messaging

- [Catalog API](https://github.com/themanwhocodesmad/romanesco/blob/master/resources/views.py): `resources/views.py`
- [Catalog serialization](https://github.com/themanwhocodesmad/romanesco/blob/master/resources/serializers.py): `resources/serializers.py`
- [Products and regions](https://github.com/themanwhocodesmad/romanesco/blob/master/resources/models.py): `resources/models.py`
- [WhatsApp notices](https://github.com/themanwhocodesmad/romanesco/blob/master/system/twilio_whatsapp/technician_notifications.py): `system/twilio_whatsapp/technician_notifications.py`

### Other components

- **User**

## Connections

- User → Authentication API: authenticates
- Authentication API → User serialization: uses (evidence: `authentication/views.py`)
- Authentication API → User accounts: reads (evidence: `authentication/views.py`)
- Telegram linking → User accounts: links chat (evidence: `main.py`)
- Job API and reports → Customers and jobs: reads and updates (evidence: `system/views.py`)
- Job API and reports → Job serialization: serializes (evidence: `system/views.py`)
- Job API and reports → User accounts: looks up technician (evidence: `system/views.py`)
- Job web views → Job web forms: uses (evidence: `webapp/views/OpenJobCards.py`)
- Job web views → Customers and jobs: reads (evidence: `webapp/views/OpenJobCards.py`)
- RMA workflow → RMA forms: uses (evidence: `webapp/views/RMAViews.py`)
- RMA workflow → RMA records: reads and updates (evidence: `webapp/views/RMAViews.py`)
- RMA forms → User accounts: selects technicians (evidence: `webapp/forms/RMAForms.py`)
- RMA forms → Products and regions: selects products (evidence: `webapp/forms/RMAForms.py`)
- RMA records → Customers and jobs: creates job card (evidence: `rma/models.py`)
- RMA serialization → RMA records: serializes (evidence: `rma/serializers.py`)
- RMA serialization → Customers and jobs: references (evidence: `rma/serializers.py`)
- Customer surveys → Survey forms: uses (evidence: `system/customer_responses/survey.py`)
- Customer surveys → Customers and jobs: records feedback (evidence: `system/customer_responses/survey.py`)
- Catalog API → Catalog serialization: serializes (evidence: `resources/views.py`)
- Catalog API → Products and regions: reads and updates (evidence: `resources/views.py`)
- Catalog API → User serialization: serializes technicians (evidence: `resources/views.py`)
- Job API and reports → WhatsApp notices: may notify (evidence: `system/views.py`)
