- {signals.map((s: any, i: number) => (
+ {regimes.map((r: any, i: number) => (
quickAddInstrument.mutate(s.ticker, {
- onSuccess: ({ id }) => navigate(`/instruments/${encodeURIComponent(id)}?tab=wavelets`),
- onError: (e) => console.error(`[WaveletsSignal] failed to open ${s.ticker} in Instrument Analysis:`, e),
+ onDoubleClick={() => quickAddInstrument.mutate(r.ticker, {
+ onSuccess: ({ id }) => navigate(`/instruments/${encodeURIComponent(id)}?tab=regime`),
+ onError: (e) => console.error(`[CurveRegime] failed to open ${r.ticker} in Instrument Analysis:`, e),
})}
- title="Double-click to open in Instrument Analysis → Wavelets"
+ title="Double-click to open in Instrument Analysis → Curve Regime"
className="flex items-center gap-1.5 text-[10px] rounded px-1 -mx-1 py-0.5 cursor-pointer hover:bg-dark-700/40 transition-colors"
>
- {s.direction === 'up' ? '↑' : s.direction === 'down' ? '↓' : '·'}
+ {r.direction === 'up' ? '↑' : r.direction === 'down' ? '↓' : '·'}
-
- {nameByTicker[s.ticker] || s.ticker}
+
+ {nameByTicker[r.ticker] || r.ticker}
-
- {s.band_label ? `${s.band_label} · ${s.signal_kind ?? 'veille'}` : 'Pas de données'}
+
+ {r.regime_label ?? 'Pas de données'}
- {s.computed_at && {s.computed_at.slice(0, 10)}}
+ {r.computed_at && {r.computed_at.slice(0, 10)}}
))}