# sazweena/teduh-demo architecture

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

- Interactive diagram: https://gitdiagram.com/sazweena/teduh-demo
- Repository: https://github.com/sazweena/teduh-demo

## Overview

Teduh is a concept web demo for identifying streets needing shade or safer crossings, prioritizing fixes within a budget, and collecting resident reports. The documented workflow runs through a planner view and resident-phone view connected in the demo; planners review reports, change their status, and reply, with updates reflected on the resident side. The README describes synthetic demo data and future public-data sources, so those sources are not modeled as runtime integrations. No source excerpts were available; relationships below rely on README documentation.

Main entry points: [`index.html`](https://github.com/sazweena/teduh-demo/blob/main/index.html) (Resident phone), [`sdp-app.html`](https://github.com/sazweena/teduh-demo/blob/main/sdp-app.html) (App concept)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planner["Planner experience"]
  node_overview["Overview<br/>[index.html]"]
  node_street_map["Street map<br/>[index.html]"]
  node_fix_planner["Fix planner<br/>[index.html]"]
  node_report_inbox["Report inbox<br/>[index.html]"]
  node_report_review["Report review<br/>[index.html]"]
end

subgraph group_resident["Resident experience"]
  node_resident_phone["Resident phone<br/>[index.html]"]
  node_report_form["Report form<br/>[index.html]"]
  node_report_status["Report status<br/>[index.html]"]
  node_app_concept["App concept<br/>[sdp-app.html]"]
end

subgraph group_shared["Shared demo"]
  node_demo_state["Demo state<br/>[index.html]"]
end

node_planner_actor(("Sime Darby planner"))
node_resident_actor(("Resident"))

node_planner_actor -->|"views"| node_overview
node_overview -->|"opens"| node_street_map
node_planner_actor -->|"inspects streets"| node_street_map
node_planner_actor -->|"sets budget"| node_fix_planner
node_fix_planner -->|"prioritizes fixes"| node_street_map
node_resident_actor -->|"uses"| node_resident_phone
node_resident_phone -->|"opens"| node_report_form
node_resident_actor -->|"submits report"| node_report_form
node_report_form -->|"delivers report"| node_report_inbox
node_planner_actor -->|"opens report"| node_report_inbox
node_report_inbox -->|"opens"| node_report_review
node_planner_actor -->|"sets status and replies"| node_report_review
node_report_review -->|"updates resident"| node_report_status
node_resident_actor -->|"views update"| node_report_status
node_resident_phone -.->|"has concept"| node_app_concept
node_planner_actor -->|"resets demo"| node_demo_state
node_resident_actor -->|"uses shared demo"| node_demo_state

click node_overview "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_street_map "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_fix_planner "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_report_inbox "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_report_review "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_resident_phone "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_report_form "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_report_status "https://github.com/sazweena/teduh-demo/blob/main/index.html"
click node_app_concept "https://github.com/sazweena/teduh-demo/blob/main/sdp-app.html"
click node_demo_state "https://github.com/sazweena/teduh-demo/blob/main/index.html"

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_overview,node_street_map,node_fix_planner,node_report_inbox,node_report_review toneBlue
class node_resident_phone,node_report_form,node_report_status,node_app_concept toneAmber
class node_demo_state toneMint
class node_planner_actor,node_resident_actor toneIndigo
```

## Components

### Planner experience

- [Overview](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [Street map](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [Fix planner](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [Report inbox](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [Report review](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`

### Resident experience

- [Resident phone](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [Report form](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [Report status](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`
- [App concept](https://github.com/sazweena/teduh-demo/blob/main/sdp-app.html): `sdp-app.html`

### Shared demo

- [Demo state](https://github.com/sazweena/teduh-demo/blob/main/index.html): `index.html`

### Other components

- **Sime Darby planner**
- **Resident**

## Connections

- Sime Darby planner → Overview: views (evidence: `README.md`)
- Overview → Street map: opens (evidence: `README.md`)
- Sime Darby planner → Street map: inspects streets (evidence: `README.md`)
- Sime Darby planner → Fix planner: sets budget (evidence: `README.md`)
- Fix planner → Street map: prioritizes fixes (evidence: `README.md`)
- Resident → Resident phone: uses (evidence: `README.md`)
- Resident phone → Report form: opens (evidence: `README.md`)
- Resident → Report form: submits report (evidence: `README.md`)
- Report form → Report inbox: delivers report (evidence: `README.md`)
- Sime Darby planner → Report inbox: opens report (evidence: `README.md`)
- Report inbox → Report review: opens (evidence: `README.md`)
- Sime Darby planner → Report review: sets status and replies (evidence: `README.md`)
- Report review → Report status: updates resident (evidence: `README.md`)
- Resident → Report status: views update (evidence: `README.md`)
- Resident phone → App concept: has concept (evidence: `README.md`)
- Sime Darby planner → Demo state: resets demo (evidence: `README.md`)
- Resident → Demo state: uses shared demo (evidence: `README.md`)
