feat(phase-8): implement operational web dashboard, rest api, and telemetry data provider

This commit is contained in:
2026-10-21 13:14:00 +05:30
parent 630855252b
commit be37f15432
15 changed files with 2770 additions and 15 deletions
+36 -4
View File
@@ -101,8 +101,20 @@ The system decouples discrete-event simulation from 3D visualization, enabling d
- [x] Synchronized visual indicators (Status dome glow, battery health LED, cargo box attachment).
- [x] Comprehensive unit test suite (137 passed in 1.01s).
### Completed - Phase 8: Operational Dashboard
- [x] Zero-dependency decoupled dashboard server (`DashboardServer`, standard library `http.server`).
- [x] Fast telemetry data provider & CSV parser (`DashboardDataProvider`, read-only safety guarantees).
- [x] Sleek dark-mode Single Page Web Application (`index.html`, `app.css`, `app.js`).
- [x] 6 Executive KPI cards (Throughput, Turnaround p50/p95, SLA %, Fleet Util %, Energy, Contention).
- [x] Latency distribution percentile matrix ($p_{50}, p_{90}, p_{95}, p_{99}$, mean, max).
- [x] Real-time AMR fleet telemetry matrix with dynamic battery health bars.
- [x] Embedded 2D spatial SVG congestion heatmap viewer and top corridor bottleneck diagnosis table.
- [x] Scenario comparison matrices for fleet sizing ($2, 4, 6, 8$ AMRs) and dispatch policies.
- [x] Audit-ready executive Markdown report viewer with instant download.
- [x] Optional Streamlit interface (`streamlit_app.py`).
- [x] Comprehensive unit test suite (144 passed in 2.43s).
### Planned Roadmap
- **Phase 8**: Interactive operational dashboard.
- **Phase 9**: Optimization scenarios, layout variations, and final demonstration.
---
@@ -240,7 +252,27 @@ The visualizer connects via file-based trajectory playback and time-sampled Open
---
## 10. Current Implementation Phase
## 10. Operational Dashboard (Phase 8)
**Current Phase**: **Phase 7: Omniverse USD Visualization (COMPLETED)**.
**Next Phase**: **Phase 8: Operational Dashboard** (Planned).
Launch the interactive web dashboard to explore telemetry, KPIs, heatmaps, and scenario comparisons:
```bash
warehouse-twin dashboard --port 8501 --results-dir results
```
Open your browser at `http://127.0.0.1:8501`.
Key Views:
- **Overview & KPIs**: Executive cards, throughput, p50/p95 turnaround latency, SLA compliance.
- **AMR Fleet & Battery**: Live robot status, battery gauges, loaded vs empty travel ratios, charging bay occupancy.
- **Corridor Congestion**: 2D spatial SVG heatmap and prioritized bottleneck recommendations.
- **Tasks & SLAs**: Completed, in-progress, pending counts, and task-type performance breakdowns.
- **Scenario Comparison**: Side-by-side comparison tables across fleet sizes ($2, 4, 6, 8$ AMRs) and dispatch policies.
- **Executive Report**: Embedded audit-ready Markdown report viewer with instant file download.
---
## 11. Current Implementation Phase
**Current Phase**: **Phase 8: Operational Dashboard (COMPLETED)**.
**Next Phase**: **Phase 9: Optimization and Final Demonstration** (Planned).