From ce96e553146eec292701cd7c13c3f271379bc237 Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Mon, 29 Jun 2026 22:24:24 +0200 Subject: [PATCH] feat: instrument analysis --- frontend/src/pages/InstrumentDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/InstrumentDashboard.tsx b/frontend/src/pages/InstrumentDashboard.tsx index e50b483..c84de24 100644 --- a/frontend/src/pages/InstrumentDashboard.tsx +++ b/frontend/src/pages/InstrumentDashboard.tsx @@ -711,9 +711,9 @@ function comprehensionScore(ev: SnapshotEvent, tmpl: CausalTemplate, instrument: const actual = actuals[instrument] ?? actuals[instrument.toUpperCase()] ?? actuals[instrument.toLowerCase()] if (actual == null) return null - // Find the market_asset node for this instrument + // Find the output node for this instrument (built-in templates use "output", auto-generated use "market_asset") const outputNode = tmpl.graph_json.nodes.find(n => - n.type === 'market_asset' && n.instrument?.toUpperCase() === instrument.toUpperCase() + (n.type === 'market_asset' || n.type === 'output') && n.instrument?.toUpperCase() === instrument.toUpperCase() ) const predicted = outputNode ? (preds[outputNode.id] ?? null) : null if (predicted == null) return null