# rodrigoaiosa/dashboard_skydatasoluction architecture

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

- Interactive diagram: https://gitdiagram.com/rodrigoaiosa/dashboard_skydatasoluction
- Repository: https://github.com/rodrigoaiosa/dashboard_skydatasoluction

## Overview

This is a password-protected website telemetry dashboard. The main workflow is: a browser reaches the Python Vercel handler, logs in, then loads the dashboard and requests telemetry for a selected period; the handler fetches the summary from Supabase and returns it to the dashboard. The dashboard presents cards, charts, tables, and geographic views. The README documents those capabilities, but the HTML was not sampled, so its internal rendering and client-side interactions are represented together rather than inferred in detail.

Main entry points: [`api/index.py`](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/api/index.py) (HTTP handler), [`painel/painel.html`](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/painel.html) (Telemetry dashboard), [`painel/login.html`](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/login.html) (Login page), [`painel/brasil-uf.json`](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/brasil-uf.json) (State boundaries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and routing"]
  node_handler["HTTP handler<br/>[index.py]"]
  node_login["Login page<br/>[login.html]"]
end

subgraph group_dashboard["Dashboard experience"]
  node_dashboard["Telemetry dashboard<br/>[painel.html]"]
  node_geo["State boundaries<br/>[brasil-uf.json]"]
end

subgraph group_telemetry["Telemetry data"]
  node_example["Example data<br/>[exemplo.json]"]
  node_supabase[("Supabase RPC and telemetry")]
end

node_browser(("Browser"))

node_browser -->|"requests routes"| node_handler
node_handler -->|"serves login"| node_login
node_browser -->|"submits login"| node_handler
node_handler -->|"serves dashboard"| node_dashboard
node_dashboard -->|"requests data"| node_handler
node_handler -->|"calls summary RPC"| node_supabase
node_handler -->|"reads in example mode"| node_example
node_handler -->|"serves boundaries"| node_geo

click node_handler "https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/api/index.py"
click node_login "https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/login.html"
click node_dashboard "https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/painel.html"
click node_geo "https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/brasil-uf.json"
click node_example "https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/exemplo.json"

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_handler,node_login,node_browser toneBlue
class node_dashboard,node_geo toneAmber
class node_example,node_supabase toneMint
```

## Components

### Access and routing

- [HTTP handler](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/api/index.py): `api/index.py`
- [Login page](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/login.html): `painel/login.html`

### Dashboard experience

- [Telemetry dashboard](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/painel.html): `painel/painel.html`
- [State boundaries](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/brasil-uf.json): `painel/brasil-uf.json`

### Telemetry data

- [Example data](https://github.com/rodrigoaiosa/dashboard_skydatasoluction/blob/main/painel/exemplo.json): `painel/exemplo.json`
- **Supabase RPC and telemetry**

### Other components

- **Browser**

## Connections

- Browser → HTTP handler: requests routes (evidence: `api/index.py`)
- HTTP handler → Login page: serves login (evidence: `api/index.py`)
- Browser → HTTP handler: submits login (evidence: `api/index.py`)
- HTTP handler → Telemetry dashboard: serves dashboard (evidence: `api/index.py`)
- Telemetry dashboard → HTTP handler: requests data (evidence: `README.md`)
- HTTP handler → Supabase RPC and telemetry: calls summary RPC (evidence: `api/index.py`)
- HTTP handler → Example data: reads in example mode (evidence: `api/index.py`)
- HTTP handler → State boundaries: serves boundaries (evidence: `api/index.py`)
