Skip to content

Keep a playground's Send beside the items the user sets - #3898

Closed
max-sixty wants to merge 2 commits into
mainfrom
grind/g-grinding-ui
Closed

max-sixty wants to merge 2 commits into
mainfrom
grind/g-grinding-ui

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

A playground whose controls all stand in its preview, beside the items they set,
stacked its presets, the stage and then the instruction with Send, at every width.
That is how every Leaf author wrote the configuration task's six alerts (7 of 7
samples on 2026-10-24). On a column page Send was in view at 3 to 5 of the 19 to
25 scroll positions the user passes while setting the alerts, and in a workspace
the stage and the instruction split the window's height. The plain HTML pages
these were judged against kept the settings to send in a sticky sidebar beside
all six alerts.

At 43.5rem and wider, such a playground now stands its rail beside the stage. The
rail holds the instruction and its actions, takes minmax(16rem, 25%) rather than
the shared-controls rail's third, and sticks in view as that rail already did. The
presets keep their place before the stage in the DOM and head the rail's column
above the instruction, so reading and Tab order match what is drawn at every
width. In a workspace the instruction body scrolls under fixed actions when the
rail is too short. Narrower playgrounds and playgrounds with shared controls are
unchanged. Only packages/playground/theme.css changes the runtime; the DOM the
playground builds is main's.

Evidence (notes/agent-usability-evals.md, "Playground rail beside an inline
stage"):

  • Seven saved configuration pages re-served on both runtimes at 1600x1000: on
    the six column pages, Send in view at 23 of 120 window scroll positions on
    base and 98 of 100 on the candidate. The workspace sample's stage grew from
    523 to 785px tall and fits all six alerts. The stage narrows from 1552 to
    about 1140px; one base page whose author fixed its grid at 83rem overflows
    under the rail, which page check --render reports as a covered-words error.
    Firefox replays of two of these pages match Chromium's numbers.
  • Four fresh Claude Code authors, base against candidate: all four final judges
    pass; pair judges split one pair each, the candidate's win citing the sidebar
    that keeps the instruction and Send beside the alerts. Against two HTML samples
    HTML still wins both pairs on either runtime, on the column page's introduction
    and the final record, which the note names as the next weakness.

Behavior changes in tests:

  • test_inline_playground_keeps_half_a_short_workspace_for_its_stage becomes two
    tests. Beside a rail, the stage takes the short workspace's whole height and
    Send is in view; stacked in a playground narrower than 43.5rem, the 2026-10-22
    contract holds (stage at least half the window, the workspace scrolls to the
    instruction). The beside test fails on main's playground (no rail box).
  • test_inline_playground_is_read_in_the_order_it_is_drawn tabs from a preset to
    the stage's control to Reset at 390x844 and 1600x1000. It guards a regression an
    earlier revision of this branch had, where the presets moved after the stage in
    the DOM while still drawn above it on a phone.

leaf-dev stills gains playground-inline-stage: examples/motion-playground.html
at arrival, the shipped playground whose every control is in its preview. At
1440x900 its recordings narrow by about 30% (573x90 to 401x63, as measured in review) and Send moves
from y=996, below the fold, into view at y=370.

The playground author instructions now describe where the rail stands.

Tests: tests/browser/widgets/test_playgrounds.py, the playground cases in
test_workspaces_and_bounds.py and test_readiness.py (29 passed);
leaf-dev stills on the playground states (only the new inline-stage state
differs from base); pnpm run check:browser.

Decisions for Max

  • Should a wide-media stage be able to stay stacked? The rail's placement is
    fixed in CSS, so a playground comparing wide media (the motion example's
    recordings) gives up a quarter of the stage's width to keep Send in view. If
    you want an opt-out, a documented custom property would cost one style query,
    following --playground-choice-columns: page CSS sets
    --playground-rail: below on the lf-playground, and the theme wraps its
    wide-rail rules in @container not style(--playground-rail: below), the kind
    of custom-property style query layouts.css already uses for
    --lf-track-scroll-behavior. Not built here.
  • Shared controls still read after the stage on a phone. Below 43.5rem a
    playground with shared controls draws them above the stage (sticky) while the
    DOM keeps them after it, in the rail with the instruction; this predates the
    branch. Moving them before the stage as this branch does for presets would
    split them from the sticking rail at wide widths, so they would scroll away
    instead of staying in view beside the stage. That trade is yours; not changed.
  • The inline-only rail's width (minmax(16rem, 25%)) trades a quarter of the
    stage for Send in view; the fresh-author pairs did not show the narrower stage
    costing the judged result, but two samples a side can't rule it out.

Not verified: WebKit; fresh Codex authors; the reading-order fix against fresh
authors (it changes no layout the replays measure).

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

max-sixty and others added 2 commits October 24, 2026 21:50
A playground whose controls all stand in its preview, beside the items they set,
stacked its presets, the stage and then the instruction with Send, at every width.
That is how every Leaf author wrote the configuration task's six alerts (7 of 7
samples on 2026-10-24). On a column page Send was in view at 3 to 5 of the 19 to
25 scroll positions the user passes while setting the alerts, and in a workspace
the stage and the instruction split the window's height. The plain HTML pages
these were judged against kept the settings to send in a sticky sidebar beside
all six alerts.

The rail now stands beside the stage at 43.5rem and wider whatever it holds. With
every control in the preview it holds the presets and the instruction, takes
`minmax(16rem, 25%)` rather than the shared-controls rail's third, and sticks in
view as that rail already did. In a workspace its instruction body scrolls under
fixed actions when the rail is too short. Narrower playgrounds and those with
shared controls are unchanged.

Evidence (notes/agent-usability-evals.md, "Playground rail beside an inline
stage"):

- Seven saved configuration pages re-served on both runtimes at 1600x1000: on
  the six column pages, Send in view at 23 of 120 window scroll positions on
  base and 98 of 100 on the candidate. The workspace sample's stage grew from
  523 to 785px tall and fits all six alerts. The stage narrows from 1552 to about 1140px; one base page whose
  author fixed its grid at 83rem overflows under the rail, which
  `page check --render` reports as a `covered-words` error.
- Four fresh Claude Code authors, base against candidate: all four final judges
  pass; pair judges split one pair each, the candidate's win citing the sidebar
  that keeps the instruction and Send beside the alerts. Against two HTML samples
  HTML still wins both pairs on either runtime, on the column page's introduction
  and the final record, which the note names as the next weakness.

Behavior change: `test_inline_playground_keeps_half_a_short_workspace_for_its_stage`
becomes two tests. Beside a rail, the stage takes the short workspace's whole
height and Send is in view; stacked in a playground narrower than 43.5rem, the
2026-10-22 contract holds (stage at least half the window, the workspace scrolls
to the instruction). The beside test fails on main's playground (no rail box).

The playground author instructions now describe where the rail stands.

Tests: tests/browser/widgets/test_playgrounds.py, the playground cases in
test_workspaces_and_bounds.py and test_readiness.py (27 passed);
`leaf-dev stills` on six playground states (unchanged);
`pnpm run check:browser`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The previous commit moved a presets-only pane into the rail, after the preview in
the DOM, while below 43.5rem the theme still drew the presets above the stage, so
Tab reached the starting points only after every stage control (found in review:
Strict, A, B on base became A, B, Strict at 390x844). The presets now keep their
place before the preview in the DOM, as on main; at 43.5rem and wider they head the
rail's column through grid placement, and the rail beside the stage holds only the
instruction and its actions, sticking in view below them. Send stays in view at the
same scroll positions on the seven saved configuration pages as before this fix.

`test_inline_playground_is_read_in_the_order_it_is_drawn` tabs from the preset to
the stage's control to Reset at 390x844 and 1600x1000; it fails on the previous
commit. `leaf-dev stills` gains `playground-inline-stage`, the motion-playground
example at arrival, the shipped playground whose every control is in its preview.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
…#3957)

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_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
…it-first names and ids (#3952)

Playground authors on the configuration task spent their first turn
reconstructing the page script from Leaf's source and repairing `page
check` refusals that protected nothing. This change shows the script
whole and lifts those refusals.

- **The page script, whole.** "Stateful previews" in
`packages/playground/instructions/author.md` named
`registerInstructionProvider`, `subscribe`, `PAGE_INTERFACE`,
`present()` and `whileConnected` but never showed how a page script
reaches the playground. It now gives the complete script from
`examples/alert-thresholds.html` and says what to adapt. Claude Code
(Opus 5.5), first turn, 3 authors per arm, interleaved: grep/sed calls
into Leaf's source 6, 7, 7 against 0, 0, 0; tool calls 29, 39, 31
against 17, 14, 28; native minutes mean 4.4 against 3.5; cost $1.25,
$1.48, $1.35 against $0.98, $0.85, $1.21.
- **Names may start with a digit.** A control's `name`, a setting's and
value's `for` and the `values` keys took `^[a-z][a-z0-9-]*$`, while
every id in the layer takes `^[a-z0-9][a-z0-9-]*$`. A name only becomes
a JSON key, a `data-playground-NAME` attribute and a `--playground-NAME`
property. 2 of 3 Claude Code authors on main named the payments alert's
controls `5xx-threshold` and were refused.
- **`id` on controls, choices and presets.** page-authoring.md asks for
a stable id on each element a user points at, but these three declared
none. All 4 Codex (Sol 6.1) authors in the validation run gave their
controls ids, were refused, and stripped them with a regex. The examples
now carry ids on a control, a choice and a preset, for the corpus floor.
- **`--playground-choice-columns` on plain choices.** The property set
only rich candidates' columns; a plain choice control kept its auto-fit
grid. In 24 configuration samples the author looked the property up in
Leaf's CSS, and 13 of 78 pages ended with rules against the generated
`.lf-playground-choices` class. Plain choices now read the property with
their old auto-fit default.

Overlap: #3898 also edits `packages/playground/instructions/author.md`
and `theme.css` (Send placement); the two touch different rules.

Checks run: `pnpm run test:runtime` (550 pass); `uv run pytest
tests/model/test_interact_product.py` and the corpus-floor test in
`tests/model/test_interact_document.py`;
`tests/browser/widgets/test_playgrounds.py -k "candidates_keep_previews
or notification_playground or authored_defaults_draw"` (4 pass);
pre-commit over the diff.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
…horing-effort campaign (#3960)

The arrangement executor pinned every author's `page check --render` to
the fixed 1280×720 window, so authors fought a constraint Leaf doesn't
impose in use. This PR stops that, and records the 2026-10-24
authoring-effort campaign in `notes/agent-usability-evals.md`.

**Unpinned author render checks.** `arms.environment` pins the render
check's window for every child so a judged page's verdict doesn't depend
on who last viewed it, and that pin also reached the authors. In the
width phase the user states a 1600×1000 window, but the browser user
first opens the page in the comment phase, so every render check kept
reading 1280×720 ("fixed, pinned by LEAF_RENDER_VIEWPORT"). In 8 of 12
Claude Code Leaf width revisions the author hunted for a way out: it ran
`LEAF_RENDER_VIEWPORT=1600x1000 leaf page check` (a ValueError), grepped
Leaf's source for the variable, unset it, and took its own screenshots.
In use the check reads the window the user's browser last reported, so
this cost came from the harness. Leaf authors now run unpinned, and
after the first handoff the executor opens the page once at the run's
first window, as the user who said "I'll open it" would, until the page
records the view. The harness's own checks keep the pin. Configuration
workflow, Claude Code (Opus 5.5), 5 samples after the change: render
checks after the handoff read 1600×1000, "the user's window"; no call
named the variable (0 of 5, against 4 of 6 before); width-phase minutes
2.1, 2.0, 2.2, 2.2, 2.8 against 2.6, 2.8, 1.6, 1.9, 1.9, 4.9; 4 of 4
judged samples passed. One sample's scratch cleanup failed with
"Directory not empty" on its state home after the Stop hook was killed
(137); the next 3 ran clean.

**The notes section** ("Authoring effort, 2026-10-24") records where a
Leaf author's first turn spent time an HTML author's didn't, the repair
for each sink with its before and after counts (#3952, #3954, #3956,
#3959), the full-workflow validation on Claude Code and Codex, the
record review's measured cost, and the decision-overclaim observation
with the reader split behind #3959's wording change. The per-cycle log
and scripts stay in the campaign worktree's `.tmp/overnight/`.

Overlap: #3913 also edits `dev/leaf_dev/arrangement_eval.py` (task
selection, not the render pin), and #3898, #3901, #3913 and #3923 each
add to `notes/agent-usability-evals.md`; whichever lands second takes a
textual merge.

Checks run: `dev/tests/test_evals.py` and
`dev/tests/model/test_eval_discover.py` (3 pass); an import of
`leaf_dev.arrangement_eval`; pre-commit over the diff. The executor
change itself was exercised by the campaign's 5 post-change workflow
samples, not rerun here.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
A playground's label choices (`kind="choice"` with no preview) sat in
equal grid cells, so any label longer than its share of the row wrapped
inside itself. In a fresh Opus 5.5 configuration page at 1600x1000, on
an alert card about 450px wide, "over 1% (today)", "over 800 ms (today)"
and "Page on-call (today)" each broke onto two lines while half the card
stood empty. The author first tried `--playground-choice-columns`, which
reaches only rich candidates, and in its next revision overrode the
cells with `display: flex` in a `data-controls` sheet to get one-line
labels.

Label choices now run in a wrapping row, as a form's radios do, and wrap
between labels. A label wider than the whole row still wraps on its own.
Rich candidates keep their grid. In the rail, two short choices now sit
together at the start instead of at the rail's two halves.

Evidence (local, in the campaign worktree
`/Users/maximilian/workspace/leaf.agent-a10f091f355e3a600`):
- `.tmp/overnight/c1/config-choices-base.png` and
`.tmp/overnight/c1/config-choices-after.png` show the saved
configuration page on main's runtime and on this change's.
- The stills playground-controls, choice and text are in
`.tmp/stills/run-dp1pi0c2`.

Checks, on this branch cherry-picked onto current main:
- `tests/browser/widgets/test_playgrounds.py`,
`tests/browser/controls/test_rings.py` and
`tests/browser/controls/test_theme_and_device.py` with `-k "choice or
candidates or preset or narrow"`: 8 passed.
- `pnpm run test:runtime`: 550 passed.
- pre-commit passes.

#3952, which landed first, had plain label choices read
`--playground-choice-columns` on their grid. That grid is now this
change's wrapping row, where the property has no effect, so the merge
keeps the row and drops #3952's plain-choice columns: rich candidates
keep the property, and `packages/playground/instructions/author.md` now
says the property arranges rich choices and that plain label choices
take no columns. #3898 also edits `packages/playground/theme.css`, but
not the choice rules.

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

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 overnight page relayed #3898's playground layout call, and #3869's and
#3865's spacing calls, as text. Max: "it's totally impossible to review this
sort of thing with text". `/developing-leaf` already handed visible changes off
as still pairs, but said nothing of a UI call a PR body leaves open or a page
relays from it. Now every UI option left to the user carries a still, sketch,
diagram or live sample, and `/grinding-backlog`'s handover points there.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner Author

Closing: Max would rather shrink the playground's instruction panel (one send button, Reset as an icon, the prompt behind a reveal) than give it a rail beside the stage, and a separate session is designing that. The branch grind/g-grinding-ui keeps this change and its evidence note.

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

@max-sixty max-sixty closed this Oct 25, 2026
max-sixty added a commit that referenced this pull request Oct 26, 2026
A playground's instruction pane drew the whole prompt at rest under an
"Instruction to agent" title, with worded Reset and submit buttons in a
footer, so a long instruction took more of the playground than the
controls that wrote it. The pane is now one bar: Reset as the `retry`
symbol (as a live sample's Reset is), a `more` (⋯) button that opens the
instruction, and the one worded action, the submission. At 1440×900 the
notification workspace's pane goes from about 210px to 58px.

The ⋯ button opens the instruction in a popover at the middle of the
window, so reading it changes no layout and nothing the user set or
pressed moves. The popover holds the instruction's title, the text
(which scrolls when long) and Leaf's copy control. A second press,
Escape, or a click elsewhere closes it and leaves focus on ⋯; Tab goes
from ⋯ to Copy. A change in the window's width closes it rather than
reflowing it; a height-only change, as a phone's toolbars move, keeps
it. The submitted instruction still reaches the agent's thread.

Rejected designs:

- **Unfolding the instruction inside the pane**, below the bar in a
flowing page and above it at a held workspace's foot. Reviews kept
finding the bar moving under the pointer wherever the window was short,
after a resize, or with the stage at its floor.
- **A popover anchored to the bar.** The bar can stand in a sticky rail,
and Firefox draws an anchored box at a stuck target's unstuck position
(`notes/browser-support.md`).
- **Hover**, which gives touch no route.

Other changes:

- The icon table moves from `browser/runtime/icons.js` into
`browser/runtime/icon-paths.js`, a module with no imports, so a
package's first-paint producer draws Leaf's symbols. It replaces
`motion-icon-paths.js`; `icons.js` keeps the Lit template.
- `widget-api.js` exports `copyControl`, Leaf's one copy control, for a
copy among a widget's own controls; `module-reading.md` documents it
beside `copyBlock`. A code block's copy (`copyBlock`) hides while its
block is away and came back a frame after the popover opened in Firefox,
after a Tab had passed it.
- Copying an instruction keeps the space before a decimal such as `.32`.
- The playground author instructions say the user reads the instruction
only on request, so what they need to decide goes in the preview or the
controls.

Behavior changes in tests:

- New: `test_a_playground_opens_its_instruction_over_the_page`.
- `test_inline_playground_keeps_half_a_short_workspace_for_its_stage`:
the bar stays in view under the half-window stage, and a long
instruction scrolls in its popover (the workspace no longer scrolls to
it).
- `test_a_short_workspace_shows_more_below_its_playground_regions` takes
its scrolling controls from the notification playground, since the code
comparison's now fit beside the one-row bar.
- The notification layout test reads the bar as the instruction region's
body and drops the title-voice check; there is no title.
- The note test is renamed for the actions pane it measures.
- The journeys that copy the instruction open it first; the preset
journey reaches Copy by Tab from ⋯.

`leaf-dev stills` gains `playground-instruction` (the popover open) and
`playground-inline-end` (the motion playground's bar under its stage).

Tests: the playground cases in
`tests/browser/widgets/test_playgrounds.py`, the three playground
journeys in `tests/journeys/test_render_widgets.py`, the playground
cases in the widget, readiness, on-panel, widget-quality and focus
suites, `pnpm run test:runtime`, `node build/browser/build.mjs --check`.
Probes in Chromium and Firefox at desktop and 390×844 touch, light and
dark, on the four bundled playgrounds; five Codex review rounds and a
fresh-user test, the last round with no functional findings.

Relation to #3898: that draft moves an inline playground's instruction
into a sticky rail a quarter of the stage's width so Send stays in view.
With the pane down to one row, the rail would hold a single bar, so the
width it costs buys less. The two branches conflict in
`packages/playground/widgets.css`.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.

1 participant