Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
1b7edd0
refactor(web): keep the shared table styles in one block
harenome Nov 17, 2026
305299c
refactor(web): share the Columns menu and unnamed headers as table ma…
harenome Nov 17, 2026
eb373b9
refactor(web): start a table's toolbar and pages in one call
harenome Nov 17, 2026
bc8b196
fix(web): keep a toolbar menu open when an option's label is clicked
harenome Nov 17, 2026
eb68bc4
feat(web): place sticky columns from the widths before them
harenome Nov 17, 2026
14ad607
feat(web): build a table from one column list, with search and fitted…
harenome Nov 17, 2026
0424174
refactor(web): pin a sticky column's cells from its header
harenome Nov 17, 2026
3d11ad4
fix(web): search a table by each word, and read out its rows once typ…
harenome Nov 17, 2026
77858bd
refactor(web): write a table's cells in its columns' order, each alig…
harenome Nov 17, 2026
5156dce
refactor(runs): tick All runs' compare boxes with the table toolkit's…
harenome Nov 17, 2026
a1db766
feat(web): grey a workspace's launches count when it has none
harenome Nov 17, 2026
5d80361
fix(web): keep the count buttons outlined on the open workspace's row
harenome Nov 17, 2026
612cc79
feat(runs): find a launch by the agents its record names for jobs not…
harenome Nov 17, 2026
489c23a
docs: name the table toolkit in the AGENTS map
harenome Nov 17, 2026
e046ed0
fix(web): read out a table's rows only after a change, counted in its…
harenome Nov 17, 2026
41854a4
feat(web): give a table's controls row slots for a page's own buttons
harenome Nov 17, 2026
517a790
refactor(runs): put All runs on the table toolkit's controls row
harenome Nov 17, 2026
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: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ and its resources. The source layout stays under `app/`.
by `git ls-remote`), `secrets` (a benchmark's licences, kept per benchmark outside the repository, and the Hugging Face token of Data providers), `sandbox` (Docker's state, and the Docker Hub login Data providers uses) and `redact` at the top.
- `app/templates/`, `app/static/` — the interface, grouped by the same capability
names (`runs/`, `traces/`, `builder/`, …; `base.html`, `style.css` and the fonts at the top), including the command
builder's JavaScript, which owns the generated recipes.
builder's JavaScript, which owns the generated recipes. `app/templates/_tables.html` and
`app/static/tables.js` are the table toolkit: one column list builds a table's headers, cells and controls.
- `app/tests/`, `app/ui_tests/` — the backend suite and the route suite.
Beside the backend tests sit scripts run by hand:
`app/tests/field_contract.py`, which refreshes the `field_contract.json` the
Expand Down
37 changes: 11 additions & 26 deletions app/static/runs/launches.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,36 +115,21 @@ dialog.std-how.launch-delete { width: min(520px, calc(100vw - 32px)); }
.la-gap { display: block; margin-top: 2px; font: 11.5px var(--sans); color: var(--patch_failed_tests); }

/* the Launches page: one row per launch */
.inventory .inv-open { display: inline; }
.inventory .inv-open .linkish { padding: 0; text-align: left; }
/* as the Runs page's table: text columns keep a floor and short values stay on one line, so past the box's width the table scrolls instead of squeezing */
.inventory td[data-col="launch"] { min-width: 12rem; overflow-wrap: anywhere; }
.inventory td[data-col="bench"], .inventory td[data-col="ws"] { min-width: 8rem; }
.inventory td[data-col="machines"] { min-width: 10rem; }
.inventory td[data-col="started"], .inventory td.num { white-space: nowrap; }
@media (max-width: 640px) { .inventory td[data-col="launch"] { min-width: 9rem; } } /* a phone keeps room beside the pinned title */
.grid.sortable.inventory thead th:not([data-type]) { cursor: default; }
.grid.sortable.inventory thead th:not([data-type])::after { content: none; }
.inventory td.inv-acts { position: relative; white-space: nowrap; } /* holds its hidden reason, inside the table's scroll */ /* Add, then Delete, side by side on every row */
.inventory .launch-add-btn:focus-visible { color: var(--text); }
#launches .launch-open { display: inline; }
#launches .launch-open .linkish { padding: 0; text-align: left; }
#launches .launch-add-btn:focus-visible { color: var(--text); }
/* State and Launch stay put while the table scrolls sideways; State's header is its name for a screen reader only */
.inventory { --inv-state-w: 2.2rem; }
.inventory [data-col="state"] { width: var(--inv-state-w); min-width: var(--inv-state-w); padding-left: 0; padding-right: 0; text-align: center; }
.inventory [data-col="launch"] { --sticky-left: var(--inv-state-w); }
#launches :is(th, td)[data-col="state"] { width: 2.2rem; min-width: 2.2rem; padding-left: 0; padding-right: 0; text-align: center; }
/* a run's state: its icon, coloured as the Runs page's state dots */
.inventory td[data-col="state"] .ic { vertical-align: middle; }
.inventory .st-finished, .inventory .st-running, .inventory .st-preparing { color: var(--resolved); }
.inventory .st-failed, .inventory .st-refused, .inventory .st-stopped { color: var(--bad); }
.inventory .st-paused, .inventory .st-stopping { color: var(--patch_failed_tests); }
.inventory .st-running { animation: inv-beat 2s ease-in-out infinite; }
@keyframes inv-beat { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .inventory .st-running { animation: none; } }
.inv-cols { margin-top: 1rem; }
#launches td[data-col="state"] .ic { vertical-align: middle; }
#launches .st-finished, #launches .st-running, #launches .st-preparing { color: var(--resolved); }
#launches .st-failed, #launches .st-refused, #launches .st-stopped { color: var(--bad); }
#launches .st-paused, #launches .st-stopping { color: var(--patch_failed_tests); }
#launches .st-running { animation: state-beat 2s ease-in-out infinite; }
@keyframes state-beat { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { #launches .st-running { animation: none; } }
.launch-delete select { margin-left: 8px; }
/* Add to workspace: the name field only for a new workspace, under its label as the select is */
.launch-delete .launch-add-new { display: none; }
.launch-delete .launch-add-new input { display: block; width: 100%; margin-top: 4px; }
.launch-delete form:has(option[value=""]:checked) .launch-add-new { display: block; }
/* ten columns fit at 1280 px: narrower gutters, and a count takes only its width */
.inventory th, .inventory td { padding-left: .4rem; padding-right: .4rem; }
.inventory th.num, .inventory td.num { width: 1%; }
5 changes: 0 additions & 5 deletions app/static/settings/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,6 @@
.st-index a span { color: inherit; font-size: 15px; }
.st-index a .ic { flex: none; width: 17px; height: 17px; }
.st-index [hidden] { display: none; }
.st-search { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); color: var(--text-dim); }
.st-search .ic { flex: none; width: 17px; height: 17px; }
.st-search input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--text); font: 13px var(--sans); }
.st-search input:focus-visible { outline: none; }
.st-search:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.st-search-empty { padding: 8px 12px; font-size: 13px; color: var(--text-dim); }
.st-theme-options { display: flex; flex-wrap: wrap; gap: 8px; }
.st-theme-options .btn[aria-pressed="true"] { border-color: transparent; background: var(--accent-soft); color: var(--text); }
Expand Down
86 changes: 43 additions & 43 deletions app/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,22 @@ button.seg:hover { filter: brightness(1.25); }
overflow: hidden; background: var(--surface-2);
}

/* table toolbar + column menu */
/* the table toolkit (templates/_tables.html, static/tables.js): controls, menus, sorting, sticky columns, pages */
.table-tools { display: flex; align-items: center; gap: .75rem; margin: 0 0 .6rem; }
.artifact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.artifact-tools { flex-wrap: wrap; }
/* the controls row: the search takes what the buttons leave, else a line of its own; the buttons go right */
.table-controls { flex-wrap: wrap; margin-top: 1rem; }
.table-controls .st-search { flex: 1 1 14rem; margin: 0; }
.table-buttons, .table-slot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .75rem; }
.table-buttons { margin-left: auto; }
.table-buttons .menu { left: auto; right: 0; } /* opens leftwards, inside the page */
/* a search box, its icon first (the Settings page's too) */
.st-search { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); color: var(--text-dim); }
.st-search .ic { flex: none; width: 17px; height: 17px; }
.st-search input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--text); font: 13px var(--sans); }
.st-search input:focus-visible { outline: none; }
.st-search:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.menu-wrap { position: relative; }
.btn.sm { font-size: .8rem; padding: .42rem .75rem; }
.menu {
Expand All @@ -376,22 +388,20 @@ button.seg:hover { filter: brightness(1.25); }

.grid.sortable thead th { cursor: pointer; user-select: none; white-space: nowrap; }
.grid.sortable thead th:hover { color: var(--text); }
/* Arrows are set in a size independent of the small uppercase header text —
at .76rem uppercase they were rendering near-invisible. */
.grid.sortable thead th::after {
content: "↕"; margin-left: .4rem; font-size: 1.05rem; line-height: 0;
vertical-align: -.1em; opacity: .4; color: var(--text-faint);
}
.grid.sortable thead th:hover::after { opacity: .8; color: var(--text-dim); }
.grid.sortable thead th[data-sorted]::after { opacity: 1; color: var(--accent); font-weight: 500; }
/* an arrow on the sorted column only, in a size independent of the small uppercase header text */
.grid.sortable thead th[data-sorted]::after {
margin-left: .4rem; font-size: 1.05rem; line-height: 0; vertical-align: -.1em; color: var(--accent); font-weight: 500;
}
.grid.sortable thead th[data-sorted="asc"]::after { content: "↑"; }
.grid.sortable thead th[data-sorted="desc"]::after { content: "↓"; }
.grid.sortable thead th:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-soft); }
/* a header without data-type (a checkbox, a state, the actions) does not sort */
.grid.sortable thead th:not([data-type]) { cursor: default; }
.nowrap { white-space: nowrap; }

/* give the two text-heavy columns room; the rest stay compact */
.grid th[data-col="run"], .grid td[data-col="run"] { min-width: 14rem; }
.grid th[data-col="dataset"], .grid td[data-col="dataset"] { min-width: 10.5rem; }
.grid:not(.snug) th[data-col="dataset"], .grid:not(.snug) td[data-col="dataset"] { min-width: 10.5rem; } /* a .snug table fits its columns */
.grid td[data-col="dataset"] { color: var(--text-dim); }

/* ---- wide-table handling: scroll the table, not the page ---- */
Expand All @@ -406,21 +416,15 @@ button.seg:hover { filter: brightness(1.25); }
The left-pinned columns below work correctly, because the wrapper really
does scroll horizontally. */

/* the checkbox and Run columns stay put while you scroll sideways, so a row
never loses its identity; so do a table's .sticky-col cells, at --sticky-left */
.table-wrap .grid th.pick-col, .table-wrap .grid td.pick-col, .table-wrap .grid .sticky-col {
/* a table's .sticky-col cells stay put while it scrolls sideways, at --sticky-left (tables.js `sticky`), so a
row never loses its identity; .sticky-edge draws the line after the last one */
.table-wrap .grid .sticky-col {
position: sticky; left: var(--sticky-left, 0); z-index: 2; background: var(--bg);
}
.table-wrap .grid .sticky-col.sticky-edge { box-shadow: 1px 0 0 var(--border-soft); }
.table-wrap .grid th[data-col="run"], .table-wrap .grid td[data-col="run"] {
position: sticky; left: 2.2rem; z-index: 2; background: var(--bg);
box-shadow: 1px 0 0 var(--border-soft);
}
.table-wrap .grid thead th.pick-col,
.table-wrap .grid thead th[data-col="run"], .table-wrap .grid thead th.sticky-col { z-index: 4; background: var(--bg); }
.table-wrap .grid thead th.sticky-col { z-index: 4; background: var(--bg); }
/* opaque sticky cells would hide the row hover, so repaint them to match */
.table-wrap .grid tbody tr:hover td.pick-col,
.table-wrap .grid tbody tr:hover td[data-col="run"], .table-wrap .grid tbody tr:hover td.sticky-col { background: var(--surface); }
.table-wrap .grid tbody tr:hover td.sticky-col { background: var(--surface); }

/* compact density — same data, ~35% less width */
.grid.compact { font-size: .88rem; }
Expand All @@ -429,38 +433,36 @@ button.seg:hover { filter: brightness(1.25); }
.grid.compact th[data-col="dataset"], .grid.compact td[data-col="dataset"] { min-width: 8rem; }
.grid.compact .minibar { width: 56px; }

/* per-column value filter */
.th-filter { position: relative; display: inline-block; }
.filter-btn {
font: inherit; font-size: .8rem; line-height: 1; cursor: pointer;
background: none; border: none; padding: 0 .15rem; margin-left: .3rem;
color: var(--text-faint); border-radius: 4px;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.on { color: var(--accent); }
.filter-btn.on::after { content: "•"; margin-left: .1rem; }
.filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.filter-menu {
right: 0; left: auto; text-transform: none; letter-spacing: 0;
font-weight: 400; max-height: 18rem; overflow-y: auto; min-width: 200px;
}
/* a table's Filter and Sort by menus (the tools macro): no header carets, an arrow on the sorted column only */
.grid.sortable.tools thead th:not([data-sorted])::after { content: none; }
/* a table's Filter and Sort by menus (the controls macro) */
.tools-menu { min-width: 220px; max-height: min(70vh, 34rem); overflow-y: auto; }
.tools-menu fieldset { margin: 0; padding: .3rem 0; border: 0; border-top: 1px solid var(--border-soft); min-width: 0; }
.tools-menu fieldset:first-of-type { border-top: 0; }
.tools-menu legend { float: left; padding: .3rem .45rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.tools-menu .tools-all { display: flex; justify-content: flex-end; gap: .75rem; padding: .3rem .45rem; font-size: .8rem; }
.tools-menu label { clear: both; }
.tools-menu .tools-clear { align-self: flex-start; padding: .2rem .45rem .4rem; font-size: .8rem; }
/* a list in a .tools table: rows top-aligned; in a .snug one (the table macro's), narrow gutters and each column
as wide as its widest cell on one line, but the one that expands (its rule beside the table: the rest of the
width, no less than --expand-min, wrapping); a header or cell positioned holds a hidden name or reason inside
the table's scroll */
.grid.tools td { vertical-align: top; }
.grid.snug { --expand-min: 12rem; }
@media (max-width: 640px) { .grid.snug { --expand-min: 9rem; } } /* a phone keeps room beside a pinned column */
.grid.snug th, .grid.snug td { width: 1%; white-space: nowrap; padding-left: .4rem; padding-right: .4rem; }
.grid.snug th { position: relative; }
.grid td.acts-col { position: relative; white-space: nowrap; }
.count-btn { font-variant-numeric: tabular-nums; } /* an icon and a count, as one button */
.btn[aria-disabled="true"] { opacity: .45; cursor: default; } /* greyed: it cannot act here */
.btn.ghost[aria-disabled="true"]:hover { color: var(--text-dim); border-color: var(--border); background: transparent; }
.btn:not(.ghost)[aria-disabled="true"]:hover { background: var(--accent); }
/* a column's alignment (its `align`), header and cells */
.grid .align-right { text-align: right; }
.grid .align-center { text-align: center; }
.tools-count { margin-left: .4rem; padding: 0 .4em; border-radius: 99px; background: var(--accent-soft); color: var(--text); font-size: .72rem; font-variant-numeric: tabular-nums; }
.menu-head { display: flex; gap: .75rem; padding: .15rem .45rem .4rem; border-bottom: 1px solid var(--border-soft); margin-bottom: .25rem; }
.chip.clear { border-style: dashed; }

.pick-col { width: 2.2rem; }
.pick-col input { accent-color: var(--accent); cursor: pointer; }
.grid.sortable thead th.pick-col { cursor: default; }
.grid.sortable thead th.pick-col::after { content: none; }
.compare-bar { display: flex; align-items: center; gap: .7rem; margin: 0; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }

Expand Down Expand Up @@ -928,8 +930,6 @@ button.seg:hover { filter: brightness(1.25); }
.legend .chip:hover { cursor: help; }

.cat-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-dim); }
.grid.tools td { vertical-align: top; }
.grid.tools tr.row-failed td { background: color-mix(in srgb, var(--agent_error) 7%, transparent); }
.files { margin: 0; padding-left: 1.1rem; color: var(--text-dim); font-size: .88rem; }
.files li { margin: .2rem 0; }

Expand Down
Loading
Loading