Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/static/builder/command-builder.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/static/builder/command-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
if (failed) return {state: 'no', text: '✕ not proven', title: (failed.problems || []).join(' · ')};
return {state: 'none', text: 'not run'};
}
const proofSpan = p => `<span class="std-proof std-proof-${p.state}"${p.title ? ` title="${esc(p.title)}"` : ''}>${esc(p.text)}</span>`;
const proofSpan = p => `<span class="std-proof std-proof-${p.state}" title="${esc(p.title || p.text)}">${esc(p.text)}</span>`;
// A control or a check as a plain chip: its name and its proof; where the control comes from is in its title.
const controlChip = (c, proof = true, of = '') => `<span class="std-ctl" title="${of ? esc(of) + ' · ' : ''}${esc((c.key === 'nop' ? 'no answer at all' : c.key === 'oracle' ? 'the reference answers' : '') + ': must score ' + (c.must || (c.key === 'nop' ? 'nothing' : 'everything')))} - ${esc(SOURCE_SAYS[c.source] || c.source)}: ${esc(c.from)}"><b>${esc(c.key)}</b>${of ? `<em>${esc(of)}</em>` : ''}`
+ (proof ? proofSpan(proofOf(c.proven, c.failed, c.expect, c.short)) : '') + '</span>';
Expand Down Expand Up @@ -735,7 +735,7 @@
// and state in a group that holds one value, radioOf; else a toggle)}
const tile = t => `<button class="nb-tile${t.disabled ? ' nb-tile-unfit' : ''}" data-${t.attr}="${esc(t.key)}" ${t.radio || `aria-pressed="${t.on}"`}${t.data || ''}${t.disabled ? ` disabled aria-disabled="true" title="${esc(t.why || '')}"` : t.tip ? ` title="${esc(t.tip)}"` : ''}>`
+ `<span class="nb-tile-head">${t.mark ? `<span class="nb-mark">${t.mark}</span>` : ''}<strong>${esc(t.title)}</strong><span class="nb-tile-check" aria-hidden="true">${t.on ? '<svg class="ic"><use href="#i-check"/></svg>' : ''}</span></span>`
+ (t.line ? `<span class="nb-tile-line">${esc(t.line)}</span>` : '') + (t.note ? `<span class="nb-tile-note">${esc(t.note)}</span>` : '')
+ (t.line ? `<span class="nb-tile-line" title="${esc(t.line)}">${esc(t.line)}</span>` : '') + (t.note ? `<span class="nb-tile-note">${esc(t.note)}</span>` : '')
+ (t.meta || t.foot ? `<span class="nb-tile-foot">${t.meta ? `<span>${esc(t.meta)}</span>` : ''}${t.foot || ''}</span>` : '') + '</button>';
// A group that holds one value, as radios: radioOf(values, on)(v) is v's role and state. Its one tab stop is the first
// checked, else the first (two are checked where each participant keeps its own default); the arrows choose (keydown below).
Expand Down
2 changes: 1 addition & 1 deletion app/static/builder/recipes.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* The Recipes page: one row per saved recipe; Info and Delete in one dialog (the Launches page's, runs/launches.css). */
.rcp-name { overflow-wrap: anywhere; } /* a name wraps, never cut */
.rcp-warn { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; color: var(--patch_failed_tests); cursor: help; }
.rcp-val { display: block; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* the whole value is its tooltip */
.rcp-val { display: block; width: max-content; max-width: 10rem; white-space: normal; overflow-wrap: anywhere; }
#recipes td[data-col="name"] { white-space: normal; }
dialog.std-how.launch-delete.wide { width: min(56rem, calc(100vw - 32px)); }
.launch-delete .rcp-problems { list-style: none; padding: 0; margin: 12px 0 0; }
Expand Down
2 changes: 1 addition & 1 deletion app/static/compare/comparison.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
.grid.compare.tasks .compare-task-head > th { color: var(--text-dim); font-weight: 500; font-size: .78rem; border-bottom-color: var(--border); }
.compare-task-name { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.compare-task-name .disclose { flex: none; margin: 0; min-height: 1.8rem; }
.compare-task-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; overflow-wrap: anywhere; font-size: .82rem; }
.compare-task-label { display: block; min-width: 0; overflow-wrap: anywhere; font-size: .82rem; }
.compare-run-cell { container-type: inline-size; }
.compare-cell-summary { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 5rem; align-items: center; gap: .75rem; }
.compare-cell-outcome { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
Expand Down
16 changes: 8 additions & 8 deletions app/static/runs/board.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
.rp .key .op { stroke-width: 1.5; }

/* ---- the scoreboard: rate | outcomes → judge (lanes · flags), and run totals as its footer line.
Outcomes and lanes keep one row pitch (label 44 · slot 30 · outcome rows 45, +30 per extra reading · total 34),
so an outcome, its readings and the tally share a line. ---- */
Outcomes start at 45px, +30 per extra reading; wrapped labels grow their rows.
board.js keeps each lane row as tall as its outcome. ---- */
.rp .rp-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); }
.rp .bw { container: board / inline-size; }
.rp .board { display: grid; grid-template-columns: 150px minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "rate out judge" "tot tot tot"; }
Expand Down Expand Up @@ -121,9 +121,9 @@
.rp .mseg::after { content: ""; position: absolute; inset: -7px 0; }
.rp .mseg:first-child { border-radius: 4px 0 0 4px; } .rp .mseg:last-child { border-radius: 0 4px 4px 0; } .rp .mseg:only-child { border-radius: 4px; }
.rp .mseg:hover, .rp .mseg.hot { filter: brightness(1.18); }
.rp .lg { height: 45px; grid-template-columns: 10px 2.2em minmax(0, 1fr); column-gap: 10px; align-content: start; padding-top: 12px; font-size: 13px; color: var(--text); }
.rp .lg { height: auto; min-height: 45px; grid-template-columns: 10px 2.2em minmax(0, 1fr); column-gap: 10px; align-content: start; padding-top: 12px; font-size: 13px; color: var(--text); }
.rp .lg b, .rp .tot b { font: 500 13px/20px var(--sans); color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.rp .lg > span { overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.rp .lg > span { white-space: normal; overflow-wrap: anywhere; line-height: 20px; }
.rp .lg > .sw { align-self: start; margin-top: 5px; }
.rp .tot { grid-template-columns: 10px 2.2em minmax(0, 1fr); column-gap: 10px; font-size: 12px; color: var(--text-faint); }
.rp .lg > b, .rp .tot > b { grid-row: 1; grid-column: 2; } .rp .lg > span, .rp .tot > span { grid-row: 1; grid-column: 3; }
Expand Down Expand Up @@ -196,7 +196,7 @@
align-content: start; column-gap: 10px; padding: 0 14px 6px; }
.rp .b-flags .slot { grid-column: 1 / -1; padding: 0; }
.rp .fr { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 28px; margin: 0 -14px; padding: 0 14px; font: 11px/1 var(--mono); }
.rp .fr .fn { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .fr .fn { color: var(--text-dim); white-space: normal; overflow-wrap: anywhere; }
.rp .fr.lit .key-n::before, .rp .fr:hover .key-n::before, .rp .fr.hot .key-n::before, .rp .fr.on .key-n::before { background: var(--text); }
.rp .fr:hover .fn, .rp .fr.on .fn, .rp .fr.hot .fn, .rp .fr.lit .fn { color: var(--text); }
.rp .fb { position: relative; height: 6px; background: var(--ftrack); }
Expand Down Expand Up @@ -310,19 +310,19 @@
.rp .tt td:first-child { min-width: 150px; }
.rp tr:hover .task { text-decoration: underline; text-decoration-color: var(--hush); text-underline-offset: 4px; }
.rp .tt .badge { margin-left: 6px; }
.rp .exd summary { display: flex; align-items: center; min-height: 20px; font: 11px/20px var(--mono); color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .exd summary { display: flex; align-items: center; min-height: 20px; font: 11px/20px var(--mono); color: var(--text-faint); white-space: normal; overflow-wrap: anywhere; }
.rp .exd summary .tw { width: 12px; flex: none; }
.rp .exd summary:hover { color: var(--text-dim); }
.rp .exd code { display: block; margin: 2px 0 2px 12px; font: 11px/16px var(--mono); color: var(--text-dim); overflow-wrap: anywhere; white-space: normal; }
.rp .exn { display: block; font: 11px/20px var(--mono); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp .exn { display: block; font: 11px/20px var(--mono); color: var(--text-faint); white-space: normal; overflow-wrap: anywhere; }
/* the Cause cell: the board's connector in miniature, straight or jogged, ending in the judge's ring */
.rp .rc { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; vertical-align: top; }
.rp .kg { width: 22px; height: 14px; flex: none; overflow: visible; }
.rp .kg path, .rp .kg circle { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp .kg circle { stroke-width: 1.5; }
.rp .kg .dt { stroke-dasharray: .1 3.5; }
.rp tr:hover .kg path, .rp tr.lit .kg path, .rp tr:hover .kg circle, .rp tr.lit .kg circle { stroke: var(--text-dim); }
.rp .rc .ctag { font: 11px/20px var(--mono); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp .rc .ctag { font: 11px/20px var(--mono); color: var(--text-dim); min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.rp .rc .na { padding: 0; font-size: 12px; }
.rp .ins { color: var(--text-dim); }
.rp .ins small { color: var(--hush); font-size: 11px; }
Expand Down
12 changes: 12 additions & 0 deletions app/static/runs/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
const $ = (s, r = document) => r.querySelector(s), $$ = (s, r = document) => [...r.querySelectorAll(s)];
const page = $('#run-page'); if (!page) return;
const board = $('#board'), tbody = $('#trial-rows'), empty = $('#no-trial-matches');
// A wrapped outcome can be taller than its judge lanes. Keep their row boundaries aligned.
const legends = $$('.run-outcome-filters .lg', page);
const laneRows = new Map($$('.lanes > .lr', page).map(r => [r.dataset.o, r]));
if (laneRows.size) {
const alignLanes = () => legends.forEach(row => {
const lane = laneRows.get(row.dataset.o);
if (lane) lane.style.height = row.getBoundingClientRect().height + 'px';
});
alignLanes();
const resize = new ResizeObserver(alignLanes);
legends.forEach(row => resize.observe(row));
}
const rows = $$('#trial-rows tr[data-outcome]'), N = rows.length;
const count = $('#trial-count'), clear = $('#clear-filters'), liveEl = $('#trials-live'), heading = $('#trials-heading');
const KEYS = ['o', 'c', 's', 'f'];
Expand Down
2 changes: 1 addition & 1 deletion app/static/runs/live-board.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
.lb-winners th { text-align: left; font: 400 11.5px var(--sans); color: var(--text-dim); padding: 4px 14px 4px 0; border-bottom: 1px solid var(--lb-hair); white-space: nowrap; }
.lb-winners td { padding: 4px 14px 4px 0; border-bottom: 1px solid var(--lb-hair); white-space: nowrap; }
.lb-winners .num { text-align: right; font: 12px var(--mono); }
.lb-winners .task { font: 12px var(--mono); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
.lb-winners .task { font: 12px var(--mono); max-width: 22rem; white-space: normal; overflow-wrap: anywhere; }
.lb-win { font-weight: 500; font-family: var(--mono); }
.lb-open { color: var(--patch_failed_tests); }
.lb-note { margin: 6px 0 0; font-size: 12px; color: var(--text-faint); }
Expand Down
2 changes: 1 addition & 1 deletion app/static/runs/live-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
${t.state !== 'running' && (t.activity || t.last_line) ? `<p class="lb-last"><span>Last line, redacted</span>${redacted(t.activity || t.last_line)}</p>` : ''}
${facts.length ? `<dl class="lb-facts">${facts.map(([k, v, f]) => `<div><dt>${k}</dt><dd>${f(v)}</dd></div>`).join('')}</dl>` : ''}
<div class="lb-evl"><span>events.jsonl, latest</span><span>${events.length} in the tail</span></div>
<div class="lb-ev">${events.length ? events.map(e => `<div><span>${hms(e.ts)}</span><span class="e">${esc(e.event)}</span><span>${redacted(e.phase || e.outcome || e.activity || e.line || '')}</span></div>`).join('') : '<div><span>—</span></div>'}</div>
<div class="lb-ev">${events.length ? events.map(e => `<div><span>${hms(e.ts)}</span><span class="e">${esc(e.event)}</span><span title="${esc(e.phase || e.outcome || e.activity || e.line || '')}">${redacted(e.phase || e.outcome || e.activity || e.line || '')}</span></div>`).join('') : '<div><span>—</span></div>'}</div>
${href ? `<a class="lb-open-trial" href="${esc(href)}">Open the trial →</a>` : ''}`;
}

Expand Down
18 changes: 9 additions & 9 deletions app/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -615,17 +615,17 @@ button.seg:hover { filter: brightness(1.25); }
.pane-title { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.pane-id {
display: block; font-size: .74rem; max-width: 100%;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
white-space: normal; overflow-wrap: anywhere;
}
/* Run id and trial link share the card's last row. The id takes the slack and
truncates, so a long job name can't push the link out of a narrow column. */
/* Run id and trial link share the card's last row. The id wraps within
the available space, keeping the link in a narrow column. */
.pane-links { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.pane-links .pane-id { flex: 1 1 auto; min-width: 0; }
.pane-open { flex: none; font-size: .74rem; white-space: nowrap; }
.pane-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; margin: 0; }
.pane-stats dt { color: var(--text-dim); font-size: .68rem; text-transform: uppercase;
letter-spacing: .08em; font-weight: 500; white-space: nowrap;
overflow: hidden; text-overflow: ellipsis; }
letter-spacing: .08em; font-weight: 500;
white-space: normal; overflow-wrap: anywhere; }
.pane-stats dd { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 500;
font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* drag-to-reorder columns */
Expand Down Expand Up @@ -783,13 +783,13 @@ button.seg:hover { filter: brightness(1.25); }
.wf-tick:not(:first-child):not(:last-child) { display: none; }
}

.wf-row { height: 24px; position: relative; }
.wf-row { min-height: 24px; position: relative; }
.wf-row:hover { background: var(--surface-2); }
.wf-row.selected { background: var(--accent-soft); }

.wf-gutter {
display: flex; align-items: center; gap: .3rem; min-width: 0;
padding-left: calc(var(--depth, 0) * 14px);
padding-left: min(calc(var(--depth, 0) * 14px), 25%);
}
.wf-chev, .wf-chev-gap { width: 14px; flex: none; }
.wf-chev {
Expand All @@ -802,7 +802,7 @@ button.seg:hover { filter: brightness(1.25); }
.wf-label {
border: none; background: none; padding: 0; cursor: pointer;
color: var(--text); font: inherit; text-align: left;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
min-width: 0; white-space: normal; overflow-wrap: anywhere;
}
.wf-row.selected .wf-label { font-weight: 500; }

Expand Down Expand Up @@ -1222,7 +1222,7 @@ pre.msg { color: var(--text); max-height: 220px; }
background: var(--surface-2); border: 1px solid var(--border-soft);
border-radius: 8px; padding: .45rem .5rem .45rem .7rem; font-size: .86rem;
}
.staged-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staged-name { flex: 1; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.staged-count { font-size: .78rem; white-space: nowrap; }
input[type=text] {
flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
Expand Down
4 changes: 2 additions & 2 deletions app/templates/_cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{%- for x in ([v] if v is string or v is mapping or v is number else v or []) if x is not none and x != '' %}{{ caller(f, x if x is mapping else {'text': x}) }}{% endfor %}{% endfor %}{% endmacro %}

{#- A value as a pill: its field's class and its own, its tooltip. #}
{% macro pill(f, v) %}{% set cls = [f.class, v.class]|select|join(' ') %}<span{% if cls %} class="{{ cls }}"{% endif %}{% if v.title %} title="{{ v.title }}"{% endif %}>{{ v.text }}</span>{% endmacro %}
{% macro pill(f, v) %}{% set cls = [f.class, v.class]|select|join(' ') %}<span{% if cls %} class="{{ cls }}"{% endif %}{% if v.title or f.class == 'std-clamp' %} title="{{ v.title or v.text }}"{% endif %}>{{ v.text }}</span>{% endmacro %}

{# A collection of cards (NulliusTable.cards): its controls row, its cards, the note when none passes. `id` names it;
`search`, `choices`, `only`, `layout` and each field's `filter` as the table's controls; `sort` the Sort by menu, over
Expand Down Expand Up @@ -98,7 +98,7 @@
{%- call(f, v) each(item, by.delete) %}<button type="button" class="icon-btn danger{{ ' ' ~ v.class if v.class }}"{% if v.title %} title="{{ v.title }}"{% endif %}{{ v.attrs|xmlattr if v.attrs }}><svg class="ic" aria-hidden="true"><use href="#i-trash"/></svg></button>{% endcall %}{% endset %}
{%- if corner %}<span class="bench-card-corner">{{ corner }}</span>{% endif %}</div>
{%- call(f, v) each(item, by.text) %}
<div class="bench-card-domain{{ ' ' ~ f.class if f.class }}">{% if f.style == 'code' %}<code>{{ v.text }}</code>{% else %}{{ v.text }}{% endif %}</div>{% endcall %}
<div class="bench-card-domain{{ ' ' ~ f.class if f.class }}"{% if v.title or f.class == 'std-clamp' %} title="{{ v.title or v.text }}"{% endif %}>{% if f.style == 'code' %}<code>{{ v.text }}</code>{% else %}{{ v.text }}{% endif %}</div>{% endcall %}
{%- set badges %}{% call(f, v) each(item, by.badge) %}{{ pill(f, v) }}{% endcall %}{% endset %}{% if badges %}
<div class="bench-card-runs run-tags" role="group" aria-label="{{ by.badge|map(attribute='label')|join(', ') }}">{{ badges }}</div>{% endif %}
{%- call(f, v) each(item, by.note) %}
Expand Down
Loading