How ahzpokes/fmp-dashboard works
Eurocontrol ACC Performance Dashboard presents traffic and ATFM-delay performance for European control centres. Users select an ACC through its URL or dashboard controls, then explore a global KPI summary and five views: annual summary, annual comparison, cause analysis, weekly focus, and a French-ACC network view. The frontend loads traffic data and uses shared helpers to derive chart series and KPIs. The README identifies a Python ETL; its detailed data handoffs are not shown in the sampled source, so those links are left unverified.
Main entry points: App.tsx Dashboard application · dataHelpers.ts Data calculations · View2.tsx Annual comparison · View3.tsx Cause analysis
Components 23
Data ingestion
- Data fetch ETL
scripts/fetch_data.py - Data extraction
src/data/extract.py
Traffic data
- Traffic dataset
src/data/traffic_data.json - Reims CSV data
src/data/reims_annual.csv - Daily CSV data
src/data/reims_daily.csv
Dashboard experience
- Dashboard application
src/App.tsx - Dynamic PWA identity
src/hooks/useDynamicManifest.ts - ACC and theme header
src/components/Header.tsx - View navigation
src/components/Tabs.tsx - Dashboard footer
src/components/Footer.tsx
Performance views
- Global KPIs
src/components/KPIGlobal.tsx - Annual summary
src/components/View1.tsx - Annual comparison
src/components/View2.tsx - Cause analysis
src/components/View3.tsx - Weekly focus
src/components/View4.tsx - DSNA network view
src/components/View5.tsx
Shared presentation
- ACC configuration
src/config.ts - Theme and ACC mapping
src/utils/theme.ts - Data calculations
src/utils/dataHelpers.ts - Period selector
src/components/PeriodToggle.tsx - Chart legends
src/components/ChartLegends.tsx
Other components
- Dashboard user
- jsDelivr data host
Connections 31
- Dashboard user → Dashboard application: selects ACC
README.md - Dashboard application → Dynamic PWA identity: sets identity
src/App.tsx - Dashboard application → ACC and theme header: renders
src/App.tsx - Dashboard application → Global KPIs: renders
src/App.tsx - Dashboard application → View navigation: renders
src/App.tsx - Dashboard application → Annual summary: renders
src/App.tsx - Dashboard application → Annual comparison: renders
src/App.tsx - Dashboard application → Cause analysis: renders
src/App.tsx - Dashboard application → Weekly focus: renders
src/App.tsx - Dashboard application → DSNA network view: renders
src/App.tsx - Dashboard application → Dashboard footer: renders
src/App.tsx - Dashboard application → Data calculations: computes week
src/App.tsx - Dashboard application → Theme and ACC mapping: maps ACC slug
src/App.tsx - Dashboard application → Traffic dataset: loads fallback
src/App.tsx - jsDelivr data host → Dashboard application: serves data
- Dashboard application → ACC configuration: uses ACC settings
src/App.tsx - Global KPIs → Data calculations: computes metrics
src/components/KPIGlobal.tsx - Annual summary → Data calculations: derives series
src/components/View1.tsx - Annual comparison → Data calculations: derives series
src/components/View2.tsx - Cause analysis → Data calculations: derives causes
src/components/View3.tsx - Weekly focus → Data calculations: derives weeks
src/components/View4.tsx - DSNA network view → Data calculations: derives network metrics
src/components/View5.tsx - Annual comparison → Period selector: renders
src/components/View2.tsx - Cause analysis → Period selector: renders
src/components/View3.tsx - Annual comparison → Chart legends: renders
src/components/View2.tsx - Cause analysis → Chart legends: renders
src/components/View3.tsx - Weekly focus → Chart legends: renders
src/components/View4.tsx - ACC and theme header → Theme and ACC mapping: uses theme
src/components/Header.tsx - Data fetch ETL → Traffic dataset: produces data
- Data extraction → Reims CSV data: processes data
- Data extraction → Daily CSV data: processes data