Repository navigation
Conversation
A host requirement can carry a label; every bundled one now has one. The Benchmarks page cards, the builder's Where step, Review and the generated benchmark pages read the label, and the key when there is none.
harenome
added a commit
that referenced
this pull request
Nov 23, 2026
…, or with Escape (#346) Closes #345 ## What The search box of the table and card toolkit had no clear control of its own: Chromium drew its native cancel button, in its own colour and skipped by Tab. - The controls macro writes a clear button inside the field, with the sprite's `i-x` icon and `aria-label="Clear search"`. It is hidden while the field is empty. - A click on it, or Escape in a non-empty field, empties the field, sends the same `input` event as typing, and leaves the focus in the field. Escape used to clear the field without that event, so a page's own listener did not hear it. - The browser's own cancel button is hidden on the toolkit's search, so one control shows in every browser. - In the builder, the button's focus ring keeps style.css's 1 px offset, so it stays inside the search box's own ring rather than running into it. Every page that uses the toolkit's search gets it with no change of its own: Runs (All runs), Benchmarks, Agents, Capabilities, Kits, Workspaces (cards and table), Launches and Recipes when they list something, and the builder's Benchmark and Agent steps. The search boxes of Settings, Settings' providers, Data providers, the host picker and Compare's run menu are built apart from the toolkit and are unchanged. ## Touches templates and static (`app/templates/_tables.html`, `app/static/tables.js`, `app/static/style.css`, `app/static/builder/command-builder.css`) · tests ## Before and after | Before | After | | --- | --- | | <img width="2006" height="118" alt="01-before-runs" src="https://github.com/user-attachments/assets/7983a89c-294e-4f3d-be5c-eba668c8b217" /> | <img width="2006" height="118" alt="01-after-runs" src="https://github.com/user-attachments/assets/afad3242-fb40-4008-aa2b-cf08248220b6" /> | | <img width="2006" height="208" alt="02-before-benchmarks" src="https://github.com/user-attachments/assets/b9160e99-2093-416f-ad91-4ccc8bc7f79d" /> | <img width="2006" height="208" alt="02-after-benchmarks" src="https://github.com/user-attachments/assets/677b8a07-ad26-42cd-9da2-edbf762de62c" /> | | <img width="764" height="208" alt="03-before-agents-phone" src="https://github.com/user-attachments/assets/0b91f160-a801-48f9-aa2d-a7498cab1386" /> | <img width="764" height="208" alt="03-after-agents-phone" src="https://github.com/user-attachments/assets/77c8094f-e139-4482-8bbe-6199db16536a" /> | 1. Runs, All runs, light, 1280 px, a query typed. Before: Chromium's own blue cross. After: the app's cross in the field. 2. Benchmarks, dark, 1280 px, the same. 3. Agents, light, 390 px, the same. ## Verified A Playwright check in Chromium, an empty profile with one job tree, on Runs (All runs), Benchmarks, Agents, Capabilities, Kits, Workspaces (cards and table) and the builder's Benchmark step, light and dark, at 1280 and 390 px: 32 cases. In each, typing a word from the first item narrows the list and shows the button inside the field; a click empties the field, shows every row or card again, hides the button and leaves the focus in the field; Escape does the same. No page errors. - `app/ui_tests/test_tables.py`: the button under Node on the toolkit's stand-in DOM: hidden at load, shown while typing, and a click or Escape empties the field, shows every row, hides the button, keeps the focus and is heard by a page's own `input` listener. Fails on upstream/main. - `app/ui_tests/test_routes.py`: Runs, Benchmarks, Agents, Kits and Workspaces render the button, hidden. Fails on upstream/main. - In a rootless podman `python:3.12` container with Node: - `python3 app/tests/parallel.py`: 2779 tests in 170 modules, OK. - `python3 app/tests/parallel.py app/ui_tests`: 624 tests in 64 modules, OK. - In the builder, light and dark: Tab from a field with text lands on the button, whose ring sits inside the box's ring. - Merges without conflict with #325, #326, #328, #329 and #330. ## Risk - A page that empties the search itself and then filters through Clear filters hides the button again; one that empties it without filtering again would leave the button showing until the next keystroke. Runs is the only page that empties it, and it filters again. - Undone by a revert. Nothing on disk changes.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #293
What
The Benchmarks page cards said "needs cuda_gpu", and the builder's Where step said "cuda_gpu cannot be provided in a container". Both showed the key of a benchmark's host requirement where a name belongs. OSWorld2's requirements already had labels, but the cards and the Where step did not read them.
standard.jsoncan carry alabel. The definition check refuses a label that is empty or not a string.NVIDIA GPU(LoCoMo and LongMemEvalcuda_gpu),NVIDIA GPU with 12000 MiB(LongMemEvalstella_gpu),Docker(OSWorld1docker) andSandbox runtime(τ³-benchsandbox). Each comes from the requirement'ssummary.hostreq.label, gives the label, or the key when there is none. These read it: the cards' "needs" line and its tooltip, the Where step's container message, the same message on Review, the Review prerequisite rows, and the option table on each generated benchmark page underdocs/benchmarks/supported/.labelamong a host requirement's fields.The builder's Benchmark step uses the same card data, but its cards show no "needs" line, on main or here.
Touches
catalogue (
standard.jsonof locomo, longmemeval, osworld1, tau3-bench) · backend (hostreq,definitions,standard/pages/recipe.py) · static (app/static/builder/command-builder.js) · docs (generated benchmark pages, import-standard skill) · testsBefore and after
dialogretrieval: the Container tile is disabled. Before: "cuda_gpu cannot be provided in a container: choose local processes." After: "NVIDIA GPU cannot be provided in a container: choose local processes."Verified
A Playwright check in Chromium, 1280 x 900, light theme, an empty profile, on upstream/main (
3a0a35e5) and on this branch. A LoCoMo recipe was imported and Run was never clicked. No page errors on either.label; every bundled one whose key does not read has oneapp/tests/test_benchmark_listing.py: the helper with and without a label, the label check, a label on every bundled requirement, and the listing's labels with the key as fallback. Fails on upstream/main.app/ui_tests/test_catalogue_routes.py: the needs line and tooltip on the LoCoMo, LongMemEval, OSWorld2 and τ³-bench cards. Fails on upstream/main.app/ui_tests/test_builder_where.py,app/tests/test_standard_setups.py,app/tests/test_standard_bench_options.py: the Where tile, the compiled error and the Review row now expect the label. Each fails on upstream/main.python:3.12container with Node:python3 app/tests/parallel.py: 2783 tests in 170 modules, OK.python3 app/tests/parallel.py app/ui_tests: 623 tests in 64 modules, OK.python3 app/tests/catalogue_docs.pyandpython3 app/tests/field_contract.py: no drift.Risk
hostblock. Without a label it still shows the key.labelis now refused by the definition check.