feat: wavelets

This commit is contained in:
OpenSquared
2026-07-24 20:22:21 +02:00
parent 32f2d27782
commit 67d27eaeb6
5 changed files with 99 additions and 31 deletions

View File

@@ -1067,13 +1067,17 @@ export default function Dashboard() {
title="Double-click to open in Instrument Analysis → Wavelets"
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"
>
<span className={clsx('shrink-0', s.direction === 'up' ? 'text-emerald-400' : 'text-red-400')}>
{s.direction === 'up' ? '↑' : '↓'}
<span className={clsx('shrink-0',
s.direction === 'up' ? 'text-emerald-400' : s.direction === 'down' ? 'text-red-400' : 'text-slate-700'
)}>
{s.direction === 'up' ? '↑' : s.direction === 'down' ? '↓' : '·'}
</span>
<span className="text-slate-200 font-bold shrink-0 truncate max-w-[90px]" title={s.ticker}>
{nameByTicker[s.ticker] || s.ticker}
</span>
<span className="text-slate-500 truncate flex-1 text-[9px]">{s.band_label} · {s.signal_kind ?? 'veille'}</span>
<span className="text-slate-500 truncate flex-1 text-[9px]">
{s.band_label ? `${s.band_label} · ${s.signal_kind ?? 'veille'}` : 'Pas de données'}
</span>
{s.computed_at && <span className="text-[8px] text-slate-700 shrink-0 font-mono">{s.computed_at.slice(0, 10)}</span>}
</div>
))}