# dchaganti997/campus-it-support-master architecture

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

- Interactive diagram: https://gitdiagram.com/dchaganti997/campus-it-support-master
- Repository: https://github.com/dchaganti997/campus-it-support-master

## Overview

This is a campus IT issue-reporting web app. A user selects a location (including one preselected from a QR URL), describes an issue, optionally attaches a photo or video, and submits a ticket. The browser loads and caches locations, then sends location and ticket requests to a small Python HTTP server, which forwards them to separate Power Automate flows. The excerpts show these main request paths; the page and styling files are present in the tree but their contents were not sampled.

Main entry points: [`app.js`](https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js) (Ticket form logic), [`server.py`](https://github.com/dchaganti997/campus-it-support-master/blob/main/server.py) (API request handler), [`index.html`](https://github.com/dchaganti997/campus-it-support-master/blob/main/index.html) (Form page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser experience"]
  node_page["Form page<br/>[index.html]"]
  node_form["Ticket form logic<br/>[app.js]"]
  node_location["Location loading<br/>[app.js]"]
  node_attachment["Attachment handling<br/>[app.js]"]
  node_cache["Location cache<br/>[app.js]"]
end

subgraph group_server["HTTP server"]
  node_http["API request handler<br/>[server.py]"]
  node_locations_api["Locations endpoint<br/>[server.py]"]
  node_tickets_api["Tickets endpoint<br/>[server.py]"]
end

subgraph group_integrations["Automation flows"]
  node_location_flow{{"Locations flow"}}
  node_ticket_flow{{"Ticket flow"}}
end

node_user(("Reporter"))
node_localstorage[("Browser storage")]

node_user -->|"submits issue"| node_form
node_form -->|"updates controls"| node_page
node_form -->|"loads locations"| node_location
node_form -->|"reads attachment"| node_attachment
node_location -->|"reads and writes"| node_cache
node_cache -->|"stores locations"| node_localstorage
node_location -->|"GET locations"| node_locations_api
node_form -->|"POST ticket"| node_tickets_api
node_locations_api -->|"handled by"| node_http
node_tickets_api -->|"handled by"| node_http
node_http -->|"forwards lookup"| node_location_flow
node_http -->|"forwards ticket"| node_ticket_flow

click node_page "https://github.com/dchaganti997/campus-it-support-master/blob/main/index.html"
click node_form "https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js"
click node_location "https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js"
click node_attachment "https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js"
click node_cache "https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js"
click node_http "https://github.com/dchaganti997/campus-it-support-master/blob/main/server.py"
click node_locations_api "https://github.com/dchaganti997/campus-it-support-master/blob/main/server.py"
click node_tickets_api "https://github.com/dchaganti997/campus-it-support-master/blob/main/server.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_page,node_form,node_location,node_attachment,node_cache toneBlue
class node_http,node_locations_api,node_tickets_api,node_localstorage toneAmber
class node_location_flow,node_ticket_flow toneMint
class node_user toneIndigo
```

## Components

### Browser experience

- [Form page](https://github.com/dchaganti997/campus-it-support-master/blob/main/index.html): `index.html`
- [Ticket form logic](https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js): `app.js`
- [Location loading](https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js): `app.js`
- [Attachment handling](https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js): `app.js`
- [Location cache](https://github.com/dchaganti997/campus-it-support-master/blob/main/app.js): `app.js`

### HTTP server

- [API request handler](https://github.com/dchaganti997/campus-it-support-master/blob/main/server.py): `server.py`
- [Locations endpoint](https://github.com/dchaganti997/campus-it-support-master/blob/main/server.py): `server.py`
- [Tickets endpoint](https://github.com/dchaganti997/campus-it-support-master/blob/main/server.py): `server.py`

### Automation flows

- **Locations flow**
- **Ticket flow**

### Other components

- **Reporter**
- **Browser storage**

## Connections

- Reporter → Ticket form logic: submits issue (evidence: `app.js`)
- Ticket form logic → Form page: updates controls (evidence: `app.js`)
- Ticket form logic → Location loading: loads locations (evidence: `app.js`)
- Ticket form logic → Attachment handling: reads attachment (evidence: `app.js`)
- Location loading → Location cache: reads and writes (evidence: `app.js`)
- Location cache → Browser storage: stores locations (evidence: `app.js`)
- Location loading → Locations endpoint: GET locations (evidence: `app.js`)
- Ticket form logic → Tickets endpoint: POST ticket (evidence: `app.js`)
- Locations endpoint → API request handler: handled by (evidence: `server.py`)
- Tickets endpoint → API request handler: handled by (evidence: `server.py`)
- API request handler → Locations flow: forwards lookup (evidence: `server.py`)
- API request handler → Ticket flow: forwards ticket (evidence: `server.py`)
