Merge pull request 'fix(goldset): score panel open by default + sparse-negatives hint' (#106) from worktree-goldset-score-open into main
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 38s

This commit was merged in pull request #106.
This commit is contained in:
2026-06-07 14:12:08 +00:00

View File

@@ -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 (
<div className="rounded-lg border border-rule bg-surface">
<button
@@ -88,6 +91,12 @@ function ScorePanel({ batch }: { batch: string }) {
</button>
{open && (
<div className="px-4 pb-3 overflow-x-auto">
<p className="text-[0.72rem] text-ink-muted mb-2">
המדדים מודדים זיהוי <strong>"לא-הלכה"</strong> (יישום / ציטוט-קטוע / אי-הכרעה...).
{negatives < 10
? ` עד כה תויגו רק ${negatives} פריטי "לא הלכה" — המספרים יהפכו משמעותיים ככל שיצטברו עוד (במיוחד מבקט המסומנים).`
: " precision גבוה = מעט אזעקות-שווא; recall גבוה = תופס את רוב ה'לא-הלכה'."}
</p>
<table className="w-full text-sm tabular-nums">
<thead>
<tr className="text-ink-muted text-[0.72rem] border-b border-rule">