Repository navigation
Commit a6fcf15
Repair the three nightly tests the interaction gallery left red (#359)
Three nightly tests have been red on `main` since #341, and nightly runs
after `main` moves, so PR CI and `wt merge` both stay green while nobody
sees them. All three are the same seam: the live interaction gallery
injects its playback row from the runtime and leaves the authored page
owning it.
**The ring census.** The page drew `outline: var(--here-ring)` on the
injected presses without naming the ring, so the floor below divided by
a population short of it. It was drawing the ring twice over: `offer`
marks those buttons `data-lf-offer="button"`, so the theme's pressable
floor already carries the hand, the hover tint, the disabled treatment,
and a ring that names itself. The page's copies are gone and the floor's
answer stands alone. No other authored page in the corpus draws the
layer's ring.
**The control-row sweep.** The row is a control row nothing had
declared. Declaring it means proving it holds still, and it did not: the
toggle rewrites its own word as a demo runs — Loading…, Play, Pause,
Played — so pressing Replay moved the button beside it, and the live
status line changed length on the same line as both presses. The toggle
now reserves the width of every word it can say, through `reserve`, the
layer's own helper, called where the runtime builds the row —
`scripts/corpus.py` copies each source's `<main>` and none of its
`<head>`, so a rule in the gallery's head would not reach the generated
corpus, which is the page this sweep actually walks. The status line
stands under the two presses at every width rather than only on a phone;
reserving its width instead would hold the row open at the width of its
longest sentence. `interaction-playback` is the new archetype; an
archetype may now name an `example`, because a demo is a scenario the
module names rather than markup the synthetic stability page can
compose, so its proof runs on the gallery itself. Replay is the press
for the same reason the diff's review press is: the button that has to
hold still is the toggle, and pressing Replay is what sends it through
every word it has.
**The injected-surfaces walk.** The gallery's own counts had moved on:
#341 added a live undecided suggestion and a second stored version, and
merging `main` brought the playground package's ask, so the walk now
sees thirteen asks and three version rows.
`tests/test_site.py` asserted the status line's `margin-left: 0` at
390px, which the layout change makes vacuous; it now reads the invariant
that replaced it.
## Checks
`uv run pre-commit run --all-files` is clean, and `uv run pytest tests
--run-nightly` passed whole — 2096 tests — on this branch before `main`
moved under it.
On the merged tree that full run reports 11 failures. A paired control,
a detached checkout of `ca4ac82d` with none of this branch on it, fails
10 of the same tests, so they arrived with the eight PRs that landed
while the first run was going. The eleventh,
`test_a_failed_preview_bootstrap_hears_the_replacement_server[theme.css]`,
passes on its own here and on the control: a flake in a 27-minute run.
The three tests this PR is about pass.
Nightly is red on `main` for two reasons this PR does not reach, both
worth someone's attention:
- the playground package's Reset, Copy instruction and Apply card share
rows and match no archetype, so
`test_the_composed_corpus_declares_every_control_row_archetype` fails on
`main` for that reason now instead;
- `.lf-resolve.lf-icon-action` (#347) has the left edge of its focus
ring under `.lf-react-trigger` (#349) in the ship-review thread, two
independent PRs whose rows now overlap by two pixels, which
`test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`
reports as 2 faults over 714 stops.
Plus pre-existing reds in `test_render_anchors`, `test_render_export`,
`test_render_projection` and `test_render_widgets`, all present on the
control. **#340 is the standing
fix for the shape of this: nightly modules a PR touches never run before
it lands.
## Overlapping PRs
**#353 repairs the same three
readings, and opened while this branch's first suite was running. It
took the `reserve` route from the start, which is where this one has now
arrived; it also rehomes the scenarios' `#bg-motion-*` lookups onto the
stage, which this does not. One of the two should close, and which is
Max's call.
## Note for #351
**#351 deletes this same block
of gallery CSS and rehomes none of it, which would leave the injected
buttons without their pill shape or their `--aim-floor` aim target.
Whichever lands first, the other conflicts here.
> _This was written by Claude Code on behalf of max-sixty_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Q7ZBoNLYxFVhWgDsXH1RTx
---------
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>1 parent d6bb623 commit a6fcf15
5 files changed
Lines changed: 59 additions & 30 deletions
File tree
- examples/developer
- skills/leaf/assets/runtime
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
| |||
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | | - | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
203 | 199 | | |
204 | | - | |
| 200 | + | |
205 | 201 | | |
206 | 202 | | |
207 | 203 | | |
| |||
298 | 294 | | |
299 | 295 | | |
300 | 296 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | 297 | | |
307 | 298 | | |
308 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
309 | 324 | | |
310 | 325 | | |
311 | 326 | | |
| 327 | + | |
| 328 | + | |
312 | 329 | | |
313 | 330 | | |
314 | 331 | | |
| |||
322 | 339 | | |
323 | 340 | | |
324 | 341 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
| 342 | + | |
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
198 | 211 | | |
199 | 212 | | |
200 | 213 | | |
| |||
1585 | 1598 | | |
1586 | 1599 | | |
1587 | 1600 | | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1588 | 1605 | | |
1589 | 1606 | | |
1590 | | - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1591 | 1610 | | |
1592 | 1611 | | |
1593 | 1612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
570 | 580 | | |
571 | 581 | | |
572 | 582 | | |
| |||
591 | 601 | | |
592 | 602 | | |
593 | 603 | | |
594 | | - | |
595 | 604 | | |
596 | 605 | | |
597 | 606 | | |
| |||
0 commit comments