From 7e7de485a4c514367e1a5aa3b5c6212b57e4b10c Mon Sep 17 00:00:00 2001 From: Chaim Date: Sun, 7 Jun 2026 14:11:49 +0000 Subject: [PATCH] fix(goldset): score panel open by default + sparse-negatives hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The validator score panel was collapsed by default, so taggers thought nothing was happening. Now open by default, with a caption explaining the metrics measure "not-a-holding" detection and become meaningful as more "לא הלכה" items are tagged (showing the current negative count while it's small). Verified: tsc --noEmit 0. Co-Authored-By: Claude Opus 4.8 (1M context) --- web-ui/src/components/goldset/goldset-panel.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web-ui/src/components/goldset/goldset-panel.tsx b/web-ui/src/components/goldset/goldset-panel.tsx index 1daa656..d571e62 100644 --- a/web-ui/src/components/goldset/goldset-panel.tsx +++ b/web-ui/src/components/goldset/goldset-panel.tsx @@ -71,9 +71,12 @@ function isTagged(it: GoldsetItem): boolean { function ScorePanel({ batch }: { batch: string }) { const { data } = useGoldsetScore(batch); - const [open, setOpen] = useState(false); + const [open, setOpen] = useState(true); if (!data || data.labeled === 0) return null; const rows = Object.entries(data.validators); + // negatives so far (truly "not a holding") = tp+fn of any validator. + const af = data.validators.any_flag; + const negatives = af ? af.tp + af.fn : 0; return (