From 9dcd31687cac925e5584a091ae3e59869057f5a3 Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 16 Nov 2026 17:29:39 +0100 Subject: [PATCH] Data: a filter of the targets shown on the plots; Images: the names checked by default Co-Authored-By: Claude Opus 5.5 --- app/web/src/pages/Data.jsx | 38 +++++++++++++++++++++++++++++------- app/web/src/pages/Images.jsx | 2 +- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/app/web/src/pages/Data.jsx b/app/web/src/pages/Data.jsx index fd4ed52..d1d8290 100644 --- a/app/web/src/pages/Data.jsx +++ b/app/web/src/pages/Data.jsx @@ -45,9 +45,10 @@ export default function Data({ selection, choose, analysis, setAnalysis }) { // all; otherwise the detectors run again without the others) const [source, setSource] = useState("detectors"), [families, setFamilies] = useState(DETECTED), [targets, setTargets] = useState(""); const [focus, setFocus] = useState(false); // with an event open, the plots show only its sensors + const [hidden, setHidden] = useState([]); // the targets removed from the plots (the detectors still read them) const { station, start, end } = selection; useEffect(() => { - setData(null); setTargets(""); + setData(null); setTargets(""); setHidden([]); if (!station) return; setLoading(true); call(`/api/curves?${new URLSearchParams({ station, start, end })}`).then(d => { setData(d); setLoading(false); }); @@ -66,8 +67,9 @@ export default function Data({ selection, choose, analysis, setAnalysis }) { {loading && } + {data &&