# auditstaff1jbyl-tech/staff-monitoring-eod architecture

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

- Interactive diagram: https://gitdiagram.com/auditstaff1jbyl-tech/staff-monitoring-eod
- Repository: https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod

## Overview

EOD Monitoring Matrix is a shared-passcode operational dashboard for audit, variance monitoring, branch risk, and action tracking. Users pass a server-verified access gate; the client then hydrates and syncs data before loading the dashboard bundle. The backend proxies structured data operations to Supabase and provides a separate private evidence-photo upload endpoint. The README documents the role-based tab restrictions and display-settings widget. The compiled dashboard bundle and client wiring were not sampled, so detailed internal flows are not inferred.

Main entry points: [`assets/js/app-bootstrap.js`](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/app-bootstrap.js) (Passcode and sync), [`index.html`](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/index.html) (HTML shell), [`assets/js/app.bundle.js`](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/app.bundle.js) (Dashboard features), [`api/data.js`](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/api/data.js) (Data proxy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser application"]
  node_shell["HTML shell<br/>[index.html]"]
  node_bootstrap["Passcode and sync<br/>[app-bootstrap.js]"]
  node_roles["Role configuration<br/>[config.js]"]
  node_display["Display settings"]
  node_dashboard["Dashboard features<br/>[app.bundle.js]"]
end

subgraph group_server["Serverless API"]
  node_dataapi["Data proxy<br/>[data.js]"]
  node_uploadapi["Evidence upload<br/>[upload.js]"]
end

subgraph group_services["Supabase services"]
  node_kv[("KV store")]
  node_storage[("Evidence storage")]
end

node_user(("Dashboard user"))

node_user -->|"uses"| node_shell
node_shell -->|"loads"| node_bootstrap
node_shell -->|"loads"| node_display
node_bootstrap -->|"loads after gate"| node_dashboard
node_bootstrap -->|"looks up role"| node_roles
node_bootstrap -->|"verifies and syncs"| node_dataapi
node_dataapi -->|"reads and writes"| node_kv
node_uploadapi -->|"uploads and signs"| node_storage
node_dashboard -.->|"requests photo upload"| node_uploadapi

click node_shell "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/index.html"
click node_bootstrap "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/app-bootstrap.js"
click node_roles "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/config.js"
click node_display "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/display-settings.js"
click node_dashboard "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/app.bundle.js"
click node_dataapi "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/api/data.js"
click node_uploadapi "https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/api/upload.js"

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_shell,node_bootstrap,node_roles,node_display,node_dashboard,node_user toneBlue
class node_dataapi,node_uploadapi toneAmber
class node_kv,node_storage toneMint
```

## Components

### Browser application

- [HTML shell](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/index.html): `index.html`
- [Passcode and sync](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/app-bootstrap.js): `assets/js/app-bootstrap.js`
- [Role configuration](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/config.js): `assets/js/config.js`
- [Display settings](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/display-settings.js): `assets/js/display-settings.js`
- [Dashboard features](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/assets/js/app.bundle.js): `assets/js/app.bundle.js`

### Serverless API

- [Data proxy](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/api/data.js): `api/data.js`
- [Evidence upload](https://github.com/auditstaff1jbyl-tech/staff-monitoring-eod/blob/main/api/upload.js): `api/upload.js`

### Supabase services

- **KV store**
- **Evidence storage**

### Other components

- **Dashboard user**

## Connections

- Dashboard user → HTML shell: uses (evidence: `README.md`)
- HTML shell → Passcode and sync: loads (evidence: `README.md`)
- HTML shell → Display settings: loads (evidence: `README.md`)
- Passcode and sync → Dashboard features: loads after gate (evidence: `README.md`)
- Passcode and sync → Role configuration: looks up role (evidence: `README.md`)
- Passcode and sync → Data proxy: verifies and syncs (evidence: `README.md`)
- Data proxy → KV store: reads and writes (evidence: `api/data.js`)
- Evidence upload → Evidence storage: uploads and signs (evidence: `api/upload.js`)
- Dashboard features → Evidence upload: requests photo upload
