Repository navigation
fix: let a quoted playground connect without a split view, and keep corpus ids unique - #5217
Merged
Merged
Conversation
…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
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The generated corpus failed
page checkfor two separate reasons, and each is fixed here:if (!split) throw new Error("The playground needs its rendered split view"). A quoted playground, one insidedata-lf-exhibit, draws only its authored markup and never has a.lf-playground-split, so every quoted playground failed. That includesquoted-alertsin 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.tests/fixtures/pages/page-annotations.htmlwith idstitle,planandtail, whichthread-journey-inline.htmlalready uses. On current main,leaf-dev corpusrefuses 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 arollout-prefix, and theproxy-note-own-annotationsstill 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 twopage-reportsplit-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:browserpasses.The
measurement-lagfinding in the report is advice-level and doesn't affect the check's status.Closes #5173 — automated triage
Closes #5072 — automated triage