GUI: Aufgabenkarten mit Beschreibung, Plan-und-Stand-Matrix, feste Startleiste mit Zeitschätzung, Hinweis bei wenigen Durchläufen, klickbare Ergebnis-Zellen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 17:54:17 +01:00
parent 0832b8c96f
commit 10b0b1ce8e
6 changed files with 469 additions and 99 deletions

View File

@ -66,6 +66,20 @@
detail = { run, steps: await api.steps(selected, run) };
}
// Kleinste Zahl gewerteter Durchläufe in einer Zelle der Matrix.
let minRepeats = $derived(ranking && ranking.cells.length > 0 ? Math.min(...ranking.cells.map((c) => c.runs)) : 0);
async function openCell(model: string, task: string) {
const r = rows.find((x) => x.model === model && x.task_id === task);
if (!r) return;
try {
await showSteps(r);
setTimeout(() => document.getElementById("run-detail")?.scrollIntoView({ behavior: "smooth", block: "start" }), 50);
} catch (e) {
error = String(e);
}
}
function cell(model: string, task: string) {
return ranking?.cells.find((c) => c.model === model && c.task_id === task);
}
@ -145,6 +159,13 @@
{/each}
</div>
{#if minRepeats < 3}
<p class="notice">
Pro Aufgabe {minRepeats === 1 ? "gab es nur 1 Durchlauf" : `gab es nur ${minRepeats} Durchläufe`}. Dann können Unterschiede
zwischen Modellen Zufall sein, und die Rangfolge ist nur ein Hinweis. Für belastbare Werte mindestens 3 Durchläufe wählen.
</p>
{/if}
{#if ranking.excluded_runs > 0}
<p class="muted">
{ranking.excluded_runs} Lauf/Läufe sind nicht gewertet, weil der Modell-Server oder die Umgebung ausfiel. Sie
@ -172,7 +193,7 @@
</ul>
</details>
<h3>Aufgaben im Detail</h3>
<h3>Aufgaben im Detail <span class="muted small">Zelle anklicken öffnet den Lauf</span></h3>
<div class="scroll">
<table class="matrix">
<thead>
@ -190,7 +211,8 @@
{#each ranking.tasks as t (t.id)}
{@const c = cell(m.model, t.id)}
<td
class="num"
class="num clickable"
onclick={() => openCell(m.model, t.id)}
style:background={c ? `color-mix(in srgb, ${pctColor(c.mean_score * 100)} 28%, transparent)` : ""}
title={c ? `${Math.round(c.mean_score * 100)} %, ${c.successes} von ${c.runs} bestanden` : "keine Läufe"}
>
@ -244,7 +266,7 @@
{/if}
{#if detail}
<div class="detail">
<div class="detail" id="run-detail">
<h3>
Schritte: {detail.run.model} · {detail.run.task_id} · Durchlauf {detail.run.repeat_idx}
<button class="link" onclick={() => (detail = null)}>schließen</button>
@ -378,6 +400,21 @@
.n.few {
color: var(--danger);
}
.notice {
border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
background: var(--accent-soft);
border-radius: 10px;
padding: 0.6rem 0.9rem;
margin: 0 0 1rem;
font-size: 0.9rem;
}
td.clickable {
cursor: pointer;
}
td.clickable:hover {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.how {
margin: 0.5rem 0 1.2rem;
color: var(--muted);