feat: instrument analysis
This commit is contained in:
@@ -741,7 +741,7 @@ const FRISE_POPUP_W = 220 // largeur du popup
|
|||||||
|
|
||||||
function CausalFrise({
|
function CausalFrise({
|
||||||
events, templates, priceData, selectedDate, causalInsts,
|
events, templates, priceData, selectedDate, causalInsts,
|
||||||
chartDateToX, chartCanvasLeft, chartReady,
|
chartDateToX, chartCanvasLeft, chartReady, causalScores,
|
||||||
}: {
|
}: {
|
||||||
events: SnapshotEvent[]
|
events: SnapshotEvent[]
|
||||||
templates: CausalTemplate[]
|
templates: CausalTemplate[]
|
||||||
@@ -751,6 +751,7 @@ function CausalFrise({
|
|||||||
chartDateToX?: (d: string) => number | null
|
chartDateToX?: (d: string) => number | null
|
||||||
chartCanvasLeft?: number
|
chartCanvasLeft?: number
|
||||||
chartReady?: number
|
chartReady?: number
|
||||||
|
causalScores: Record<number, number | null>
|
||||||
}) {
|
}) {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const containerRef = useRef<HTMLDivElement>(null)
|
const containerRef = useRef<HTMLDivElement>(null)
|
||||||
@@ -1016,11 +1017,12 @@ function CausalFrise({
|
|||||||
// ── ExplanationScore ──────────────────────────────────────────────────────────
|
// ── ExplanationScore ──────────────────────────────────────────────────────────
|
||||||
|
|
||||||
function ExplanationScore({
|
function ExplanationScore({
|
||||||
events, templates, causalInsts, onRefreshDone, onDebugResult, debugInfo,
|
events, templates, causalInsts, onRefreshDone, onDebugResult, debugInfo, causalScores,
|
||||||
}: {
|
}: {
|
||||||
events: SnapshotEvent[]
|
events: SnapshotEvent[]
|
||||||
templates: CausalTemplate[]
|
templates: CausalTemplate[]
|
||||||
causalInsts: string[]
|
causalInsts: string[]
|
||||||
|
causalScores: Record<number, number | null>
|
||||||
onRefreshDone?: () => void
|
onRefreshDone?: () => void
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
onDebugResult?: (data: any) => void
|
onDebugResult?: (data: any) => void
|
||||||
@@ -1617,6 +1619,7 @@ export default function InstrumentDashboard({ instrumentIdProp, isVisible }: { i
|
|||||||
chartDateToX={chartDateToXRef.current ?? undefined}
|
chartDateToX={chartDateToXRef.current ?? undefined}
|
||||||
chartCanvasLeft={chartCanvasLeftRef.current}
|
chartCanvasLeft={chartCanvasLeftRef.current}
|
||||||
chartReady={chartReady}
|
chartReady={chartReady}
|
||||||
|
causalScores={causalScores}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1663,6 +1666,7 @@ export default function InstrumentDashboard({ instrumentIdProp, isVisible }: { i
|
|||||||
events={snapshot.events}
|
events={snapshot.events}
|
||||||
templates={templates}
|
templates={templates}
|
||||||
causalInsts={causalInsts}
|
causalInsts={causalInsts}
|
||||||
|
causalScores={causalScores}
|
||||||
onRefreshDone={fetchSnapshotSilent}
|
onRefreshDone={fetchSnapshotSilent}
|
||||||
onDebugResult={setRefreshDebug}
|
onDebugResult={setRefreshDebug}
|
||||||
debugInfo={refreshDebug}
|
debugInfo={refreshDebug}
|
||||||
|
|||||||
Reference in New Issue
Block a user