Skip to content

fix(builder): name Review's setting and option rows, not their keys - #326

Open
harenome wants to merge 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/review-row-names
Open

harenome wants to merge 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/review-row-names

Conversation

@harenome

@harenome harenome commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #296

What

Two kinds of Review row showed keys where the rest of the page shows names.

  • A benchmark setting row ended with the ids of the datasets using its value, even with one dataset or when every chosen dataset shares it: "default (its default) · platinum". It now names datasets only when they differ, by their labels, with a row per value: "bm25 (its default) · Banking knowledge" on τ³-bench's Airline and Banking knowledge, "default (its default)" on GSM8K-Platinum.
  • An agent's or capability's option row read the option's key: "reasoning_effort medium (its default)". It now reads the option's label, or the words the Agent step shows: "Reasoning effort medium (its default)".

Before, a setting whose value differed between the chosen datasets showed one row with one of the values. It now shows a row per value. No bundled default differs this way.

Benchmark cards that read "needs cuda_gpu" (#293) are a separate issue and unchanged here.

Touches

standard (app/nullius/standard/pages/recipe.py) · tests

Before and after

Before After
01-before-review-gsm8k 01-after-review-gsm8k
02-before-review-locomo-mem0 02-after-review-locomo-mem0
  1. Review, the issue's GSM8K recipe (GSM8K-Platinum, Original and Codex 2.2.2). Before: Temperature "default (its default) · platinum", Options of Codex 2.2.2 "reasoning_effort medium (its default)". After: "default (its default)" and "Reasoning effort medium (its default)".
  2. Review, LoCoMo-10 with Mem0. Before: RAG mode "dialog (its default) · locomo10"; Options "reasoning_effort default (its default), infer on (its default), …, top_k 20 (its default), …". After: "dialog (its default)"; "Reasoning effort default (its default), Infer on (its default), …, Top k 20 (its default), …".

Verified

A Playwright check in Chromium, 1280 px wide, light theme, an empty profile, on upstream/main (3a0a35e5) and on this branch. Recipes were imported and Review opened. Run was never clicked.

Acceptance upstream/main This branch
One dataset: no dataset name or id in a setting row GSM8K-Platinum: "· platinum". LoCoMo-10: "· locomo10" on each setting No dataset on any setting row
Several datasets with different values: named by their labels τ³-bench, Airline and Banking knowledge: "base (its default) · airline", "bm25 (its default) · banking_knowledge"; a shared value listed both ids "base (its default) · Airline", "bm25 (its default) · Banking knowledge"; a shared value names none. GSM8K test and Platinum: "default (its default)"
An agent's or capability's options by label or the Agent step's words "reasoning_effort medium", "top_k 20" "Reasoning effort medium", "Top k 20"; a labelled option reads its label
The issue's tests are added and pass Fail Pass

No page errors on either.

  • app/tests/test_standard_bench_options.py: the issue's two tests, a shared value on two datasets, and Mem0's option row. Each fails on upstream/main. The τ³-bench retrieval test now expects the dataset's label.
  • app/tests/test_standard_options.py: an option row in the Agent step's words, and by its label when it has one. Both fail on upstream/main.
  • In a rootless podman python:3.12 container with Node:
    • python3 app/tests/parallel.py: 2784 tests in 170 modules, OK.
    • python3 app/tests/parallel.py app/ui_tests: 619 tests in 63 modules, OK.

Risk

  • A setting that differs between the chosen datasets shows several rows with one name. Review keys rows by position, not by name.
  • Review text only; the compiled commands are unchanged. Undone by a revert. Nothing on disk changes.

A benchmark setting row ended with the ids of the datasets using its
value, even with one dataset or when every dataset shares it. It now
names datasets, by their labels, only when they differ, with a row per
value. An agent's or capability's option row read its key
("reasoning_effort medium"); it now reads the option's label, or the
words the Agent step shows ("Reasoning effort medium").
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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review: setting and option rows show keys, not names ("default (its default) · platinum", "reasoning_effort medium")

1 participant