Skip to content

Keep a dashboard's or tuning page's working state in the first window - #3957

Merged
max-sixty merged 4 commits into
mainfrom
dashboard-working-window
Oct 25, 2026
Merged

max-sixty merged 4 commits into
mainfrom
dashboard-working-window

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Leaf dashboards and tuning pages were written as documents. The test was a release-rollout request: "I glance at it every few minutes ... the state has to read at a glance". Fresh Opus 5.5 authors on main followed page-layout.md's "a release dashboard" to a sidebar page set as a document. Each page opened with a 46px title and a three-line lede, then metrics and decision prose. The trend chart, region table and checks fell below a 1600x1000 window, on pages 2229-2692px tall. The plain HTML control fitted status, metrics, chart, regions, checks, decision and log in that one window.

On the same run's dashboards, panel headings came out as long all-caps sentences, such as a three-line, 129-character cause. And when the user's final settings were recorded on a configuration page, authors either left the playground authored at today's values under a "Final" heading, or folded it into a <details>.

This PR makes four changes, one per commit.

  • Window guidance (page-authoring.md, "Composing a page"). The bullet for a screen the reader works in now also covers settings tuned against their evidence and a dashboard glanced at between other work. It states the goal: keep the working state in the reader's window, since a glance or a tuning pass doesn't scroll. It keeps the title and premise to a line or two and gives main density-working. A dashboard is a sidebar page with its regions side by side. page-layout.md says what density-working does on a column or sidebar main.
  • Theme (browser/styles/theme.css). On a working-density page, a sidebar page keeps the working title (22px) instead of the wide-page 46px title, and the page starts 28px from the window's top instead of 72px. Only the column and sidebar Layouts read --page-pad-start. Among the examples, only examples/developer/playwright-trace-gallery.html (a layout-column density-working main) changes, by that head room.
  • Panel headings (page-authoring.md, "Reading cost"). A section.panel heading is set in small capitals, which read as a region's name. So the heading names the region in a few words, and the panel's first line states the finding.
  • An applied playground (authoring-revisions.md). An applied playground becomes a record. Each control is authored at the chosen value, so the preview, Reset and the page's account agree. The playground stays open beside its evidence.
  • The note. It adds the campaign's retained and rejected changes, with their numbers, to notes/agent-usability-evals.md.

Known regression: the dashboard at a short window

At a 900x600 window, the branch lost the dashboard 2 of 2, one sample per arm. The guidance steers a dashboard to a sidebar page. Main's author wrote a workspace with a compact header and independently scrolling columns, and that did better at that height. The other short-window tasks went to the branch on configuration (2 of 2) and split on the queue (1 of 2), so the branch took 3 of 6 at 900x600, against 17 of 24 at 1600x1000. A likely next step is for the dashboard bullet to prefer a workspace when the reader's window is short. That hasn't been tried.

Measured effect

All authors were fresh Opus 5.5 Claude Code sessions at 1600x1000, with Sol live and pair judges, and base = main.

Window guidance and theme:

  • Dashboard first versions were 2667-3390px tall on main (median about 3020, n=6) and 1704-1947px with the change (median about 1790, n=6).
  • Across the dashboard runs, all 5 candidate authors put density-working on the page and fitted regions, metrics, chart and decision in the first window. Of 4 base authors, none fitted them all.
  • Pair judgments against main went 7 of 8 for the change. Against HTML, the change took 4 of 4, where the baseline had lost 2 of 2. HTML's decision control didn't record a choice, and the judge still credited HTML's use of space.
  • Configuration first versions, before the user stated a window, were 1454 and 1944px with all six alerts or three in the window. On main they were 3332 and 2124px with one. Both arms reached a fitting page once the user stated the window, and the later pairs went 1 of 4 for the change, with the judges preferring base's final-record details.
  • A document control kept its reading column and document type. The live judges passed every candidate sample (9 of 9).

Panel headings:

  • 7 of 7 earlier Leaf dashboards with panels had at least one panel heading over 40 characters, up to 129.
  • The 2 authors given the line wrote 9 panel headings, the longest 20 characters, each followed by its finding.

Applied playground:

  • Candidate authors authored every control at the chosen value with the tuner open 2 of 2 times, and base 0 of 2. Across every later configuration run, authors with the line did so 7 of 8 times, authors on main 0 of 4.
  • Pairs went 4 of 4 for the candidate against base. Against the earlier HTML controls, the candidate took 1 of 4, up from 0 of 4; HTML still won on its separate final table and aligned rows.

End state:

  • The campaign branch against main won 17 of 24 judgments, with two samples per task: configuration 4/4, dashboard 4/4, queue 4/4, latency 3/4, document 2/4, patch review 0/4. The patch review losses were on content: which diff the page showed and how it recorded approval.
  • The live judges passed 10 of 12 samples on each arm. The defects were content.
  • Codex authors (Sol 6.1) wrote working-density dashboards on both arms, so the guidance changes nothing there. Their configuration and queue pairs went to main 4 of 4, for causes outside these changes: a browser user's wrong click, and an item the author left open. That is n=1 per task.

That branch also carried the playground label-choice fix (#3953), the queue summary size (#3955) and the diff fix (#3951).

Evidence (local, in the campaign worktree /Users/maximilian/workspace/leaf.agent-a10f091f355e3a600):

  • Dashboard: .tmp/overnight/c2/ (base-1, base-2, cand-1, cand-2, html).
  • Dashboard and configuration with the final wording: .tmp/overnight/c3/.
  • Page heights: .tmp/overnight/c3/heights.tsv.
  • Configuration final records: .tmp/overnight/c4/config-final-{base,cand}-*.png.
  • Panel-heading counts: .tmp/overnight/panelheads.py.
  • Cycle log: .tmp/overnight/page-quality.md.
  • Runs: under .tmp/eval/.

Checks

These ran on this branch cherry-picked onto current main.

  • tests/browser/widgets/test_workspaces_and_bounds.py, tests/browser/test_render_gate.py, tests/browser/margin/test_rail.py and tests/browser/widgets/test_tabs.py with -k "workspace or sidebar or wide or release_page or working_prose_density or page_form_decides or title": 43 passed, 1 failed.
    • The failure is test_a_release_page_is_wide_and_keeps_the_log_on_its_newest_line (lp-steps right edge 1531, expected 1536). It fails the same way on main, so this change doesn't cause it.
  • tests/model/test_interact_layer.py and tests/model/test_delivery.py with -k "skill or reference": 4 passed.
  • pnpm run test:runtime: 550 passed.
  • pnpm run check:browser passes (the generated browser/theme.css matches its source).
  • pre-commit passes.

No open PR changes the same guidance or theme rules. #3898, #3913 and #3923 also append sections to notes/agent-usability-evals.md, so whichever lands second resolves that conflict by keeping both sections.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 4 commits October 25, 2026 07:47
Leaf dashboards read as documents. For the release-rollout request ("I glance
at it every few minutes ... the state has to read at a glance"), fresh Opus
5.5 authors on main followed page-layout.md's "a release dashboard" to a
sidebar page in document type: a 46px title and a 3-line lede, then metrics
and decision prose, with the trend chart, region table and checks below a
1600x1000 window (pages 2229-2692px). The HTML control fitted status, metrics,
chart, regions, checks, decision and log in that window, and both 21:28 pair
judgments preferred it.

page-authoring.md, "Composing a page": the bullet for a screen the reader
works in now covers what it missed, settings tuned against their evidence and
a dashboard glanced at between other work. It states the goal (keep the
working state in the reader's window, since a glance or a tuning pass doesn't
scroll), keeps title and premise to a line or two, and gives main
density-working; a dashboard is a sidebar page with its regions side by side.
"A desktop interface the reader tunes" alone read as a UI design, so
configuration authors chose a column page.

Theme: a working-density page keeps the working title (22px) on a sidebar
page instead of the wide-page 46px one, and starts 28px from the window's top
rather than 72px, so the panels get that room.

Evidence, fresh Opus 5.5 authors at 1600x1000, base = main:
- Dashboard, 2+2 (narrower first wording) then 2+2 (this wording): all 5
  candidate authors put density-working on the page and fitted regions,
  metrics, chart and decision in the first window (1463-1810px pages); base
  0 of 4 fitted them all. Pairs on the first 2+2: 3 of 4 judgments for the
  candidate. Candidate vs HTML: 2 of 2 for Leaf (HTML's decision control
  didn't record a choice; the judge still credited HTML's use of space).
- Configuration, 2+2: candidate first pages (before any window preference)
  1454 and 1944px with all six alerts or three in the first window, base
  3332 and 2124px with one; both arms reach a fitting page after the
  preference. A document control kept the reading column and document type.
- Live judges passed every candidate sample (9 of 9).
- Later pairs with this wording: dashboard candidate 4 of 4 judgments against
  base; configuration 1 of 4 (both arms fit after the window preference;
  the judges preferred base's final-record details).
Screens: .tmp/overnight/c2/, .tmp/overnight/c3/.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
page-authoring.md tells authors to state a section's finding in its heading,
and the theme sets a section.panel heading in the label voice: 10.5px tracked
small capitals meant for a region's name. On dashboards the two met as long
all-caps sentences: 7 of 7 Leaf dashboards with panels written without this line had at
least one panel heading over 40 characters, up to a three-line, 129-character
cause ("CAUSE, CONFIRMED BY PAYMENTS AT 15:52: PAYMENTS-SDK 7.2 CUT THE CONNECT
TIMEOUT FROM 10 S TO 3 S, AND ONLY EU-WEST CALLS ADYEN EU"). The section.panel
registry entry already says "a short heading that names it", but the general
finding rule won.

"Reading cost" now says a panel heading is set in small capitals, which read
as a name, so it names the region in a few words and the panel's first line
states the finding.

Evidence: the two fresh Opus 5.5 dashboard authors given this line (run
20261024-205859-d_xpsabm) wrote 9 panel headings, the longest 20 characters
("Rollout by region", "Event log", "Decision for eu-west"), each followed by
its finding ("Stages 1% -> 10% -> 50% -> 100%. Only eu-west is out of line.").
Count with .tmp/overnight/panelheads.py.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
authoring-revisions.md says how an applied lf-options decision becomes a
record (`settled`), and said nothing for a playground. Fresh Opus 5.5
configuration authors recording the user's six final settings did one of
two things on main: left the playground live with its controls still
authored at today's values, so the page said "Final" while the preview, and
Reset, showed today's settings and any exploration (a pair judge flagged
the conflict: B-explore.png), or folded the tuner into a <details>, so the
evidence behind the record sat behind a disclosure. HTML controls kept the
evidence open beside a final table with a "Back to final" control, and won
4 of 4 judgments against the Leaf pages.

The paragraph now says an applied playground becomes a record too: author
each control at the chosen value, so the preview, Reset and the page's
account of the choice agree, and keep it and its evidence open beside what
came of the choice. Reset then brings an exploring user back to the record.

Evidence (run 20261024-223844-21mfswkb, configuration --base --repeat 2):
candidate authors 2 of 2 authored every control at the chosen value and kept
the tuner open ("Reset returns here"); base 0 of 2 (today's values, or the
tuner in a disclosure). Across every later configuration run, authors with
this line did so 7 of 8 times, authors on main 0 of 4. Pair judgments:
candidate 4 of 4 against base, each citing all six alerts, evidence and
routing visible together in the final record. Against the earlier HTML
controls the candidate took 1 of 4 judgments, up from 0 of 4; HTML still won
on its separate final table and aligned rows. Screens: .tmp/overnight/c4/.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Adds what the 2026-10-24 /grinding-ui run retained and rejected, with the
page heights, pair judgments and HTML comparisons behind each, and the HTML
advantages the judges still named, so the next campaign starts from them.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
The reader picks the next item in a side-list queue by its summary, and
`page-layout.md` asks authors to start each summary with what the item
is about. Summaries were set at the label size, 10.5px at working
density, the same size as "To answer" and a group's small capitals, in a
16rem column. In a fresh Opus 5.5 escalation queue at 1600x1000, 1473 of
the first window's characters were 10.5px, nearly all of them summaries.
The plain HTML control set its list at 13px in a 330px column, and the
pair judge credited HTML with "clearer typography ... more comfortable
desktop controls".

Summaries now take `--t-working-label`, the rung between the name's size
and the label size: 12px at working density and 13px at the root,
against names of 12.5px and 14px. The list column widens from 16rem to
18rem. A page of parts' list shares the rule.

Row heights don't change, since the summary keeps its stated 17px line.
A long summary may wrap one line more, and a phone's row strip still
reserves one line. Using the names' own size (`--t-5`) was tried first
and rejected, because it made a part's summary as large as the next
part's name in code-comparison's list.

Measured effect: in the overnight campaign's end-state comparison,
direct pairs of the campaign branch against main favoured the branch on
the queue task in 4 of 4 judgments. Two of those judgments named the
larger summaries. That branch also carried the guidance changes in
#3957, so this measures the two together.

Evidence (local, in the campaign worktree
`/Users/maximilian/workspace/leaf.agent-a10f091f355e3a600`):
- `.tmp/overnight/c5/queue-list-base.png` and
`.tmp/overnight/c5/queue-list-after.png` show the queue list.
- `.tmp/overnight/c5/parts-base.png` and
`.tmp/overnight/c5/parts-after.png` show a page of parts.
- The stills alert-queue, alert-queue-touch, side-tab-focus and
alert-queue-tally are in `.tmp/stills/run-adlp9r05`. They were taken at
the rejected `--t-5`.

Checks, on this branch cherry-picked onto current main:
- `tests/browser/widgets/test_tabs.py`,
`tests/browser/test_render_aim.py` and
`tests/browser/controls/test_rings.py` with `-k "side or queue or
repeated_summary or parts"`: 28 passed.
- `pnpm run test:runtime`: 550 passed.
- `pnpm run check:browser` passes, so the generated
`packages/default/theme.css` matches its source.
- pre-commit passes.

This was a commit on the same campaign branch as #3957. It goes on its
own because it is a theme change to a different surface, and the known
short-window regression on that branch doesn't involve it. #3853 also
edits `tabs.css` (a phone's queue row) and merges cleanly with this
change.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit cbb85a5 into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the dashboard-working-window branch October 25, 2026 15:03
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.

2 participants