From b5d4eb71e786e4ad8bb2979d6f069126f16d2600 Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Sun, 28 Jun 2026 13:35:29 +0200 Subject: [PATCH] feat: instrument analysis --- frontend/src/pages/CausalLab.tsx | 16 ++++++++-- frontend/src/pages/InstrumentDashboard.tsx | 37 ++++++++++------------ 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/frontend/src/pages/CausalLab.tsx b/frontend/src/pages/CausalLab.tsx index 9623511..7ddc47f 100644 --- a/frontend/src/pages/CausalLab.tsx +++ b/frontend/src/pages/CausalLab.tsx @@ -1,4 +1,5 @@ import { useState, useEffect, useRef, useCallback } from 'react' +import { useSearchParams } from 'react-router-dom' import { FlaskConical, Library, Zap, BarChart3, RefreshCw, Edit3, Sliders, Brain, Search, CheckCircle, XCircle, Minus, AlertCircle, @@ -372,7 +373,7 @@ function GraphLegend() { // ── Tab: Bibliothèque ───────────────────────────────────────────────────────── -function TabLibrary() { +function TabLibrary({ initialTemplateId }: { initialTemplateId?: number | null }) { const [templates, setTemplates] = useState([]) const [selected, setSelected] = useState