Skip to content

fix: let a quoted playground connect without a split view, and keep corpus ids unique - #5217

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5173
Nov 3, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5173

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The generated corpus failed page check for two separate reasons, and each is fixed here:

  • Quoted playgrounds threw on connect. Make strict checking the default for maintained browser modules #4873 (strict type checking) replaced a cast with if (!split) throw new Error("The playground needs its rendered split view"). A quoted playground, one inside data-lf-exhibit, draws only its authored markup and never has a .lf-playground-split, so every quoted playground failed. That includes quoted-alerts in the corpus and the playground browser tests in Quoted playground setup requires a missing rendered split view #5072. The split view's only job there is to receive the controls region's height. A quoted playground has no controls region, so the lookup is optional again (split?.style). This keeps Make strict checking the default for maintained browser modules #4873's typing without the invariant it wrongly assumed.
  • Duplicate ids stopped the corpus from being generated. Build every press by a role, and check that each one is #5118 added tests/fixtures/pages/page-annotations.html with ids title, plan and tail, which thread-journey-inline.html already uses. On current main, leaf-dev corpus refuses to build ("id 'title' is in both …"). This landed after the scheduled run in the report, so the nightly would have hit it next. The fixture's ids now have a rollout- prefix, and the proxy-note-own-annotations still follows the paragraph's new id. Nothing on screen changes apart from those ids.

Verification:

  • tests/journeys/test_interact_product.py::test_page_fixtures_pass_check[corpus] (--run-nightly): fails on main at corpus generation. With only the id rename it fails with the two page-report split-view errors. With both changes it passes.
  • tests/browser/widgets/test_playgrounds.py: the two quoted-playground tests named in Quoted playground setup requires a missing rendered split view #5072 error at teardown on main. The whole file passes with the change (38 passed).
  • pnpm run check:browser passes.

The measurement-lag finding in the report is advice-level and doesn't affect the check's status.

Closes #5173 — automated triage
Closes #5072 — automated triage

…orpus ids unique

#4873 added a throw when an lf-playground has no `.lf-playground-split`
child, but a quoted playground (inside `data-lf-exhibit`) draws only its
authored markup and never has one, so every quoted playground failed at
connect with "The playground needs its rendered split view". The split
view only receives the controls region's height, which a quoted
playground doesn't have, so the lookup is now optional again.

#5118 added tests/fixtures/pages/page-annotations.html with ids `title`,
`plan` and `tail`, which thread-journey-inline.html already uses, so the
generated corpus refused to build. The fixture's ids now carry a
`rollout-` prefix, and the still that comments on its paragraph follows.

Closes #5173
Closes #5072
@leaf-agent
leaf-agent merged commit a823c10 into main Nov 3, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5173 branch November 3, 2026 14:45
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.

Generated corpus fails measurement and markup checks Quoted playground setup requires a missing rendered split view

1 participant