fix(simulation): surface market_cascade path in UI — increase uiTheaters topPaths cap 2→3 (#2285)

The simulation produces 3 paths (escalation, containment, market_cascade) but
writeSimulationOutcome was slicing to 2, silently dropping market_cascade before
writing the Redis pointer. The UI and ForecastPanel never saw the economic cascade path.
This commit is contained in:
Elie Habib
2026-03-26 12:43:03 +04:00
committed by GitHub
parent 7709c6f302
commit 5b08ce3788

View File

@@ -15704,7 +15704,7 @@ async function writeSimulationOutcome(pkg, outcome, { storageConfig } = {}) {
theaterId: tr.theaterId,
theaterLabel: tr.theaterLabel || tr.theaterId,
stateKind: tr.stateKind || '',
topPaths: (tr.topPaths || []).slice(0, 2).map((p) => ({
topPaths: (tr.topPaths || []).slice(0, 3).map((p) => ({
label: p.label,
summary: p.summary,
confidence: p.confidence,