mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-13 18:46:21 +02:00
* feat(supply-chain): restructure panel for scannable metrics and richer shipping tab Chokepoints tab: replace text blob description with structured metric rows showing warnings, vessels, WoW change, disruption %, and risk level. Move routing advisory into styled callout box on expand. Remove duplicated riskSummary and warning counts from server description field. Shipping Rates tab: add corridor disruption snapshot table showing per-corridor vessel counts, WoW traffic changes, disruption %, and risk levels. Tab now renders useful data even without FRED API key. Add CSS for expanded card state (previously no-op), metric rows, disruption color coding, routing advisory callout, and disruption table. * test(supply-chain): add restructure tests, update description assertion Add 7 structural tests for panel restructure: - activeHasData accepts chokepointData without FRED - renderShipping delegates to renderDisruptionSnapshot - null/empty loading states - data-cp-id and data-chart-cp preservation - conditional description rendering - server description no longer duplicates warning counts Update existing test: description now asserts counts are NOT in text (they moved to structured fields).