Skip to content

fix: use registered scrollers in the published workspace check - #4839

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4827
Oct 31, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The published-page journey inferred pane scrollers from direct children, so the footer-only instruction bar introduced by #4274 made code-comparison call getComputedStyle(undefined). The journey now reads Leaf's registered visible reading regions and their effective scrollers through the diagnostic API. It requires a nonempty set of regions, scrollers inside the workspace with automatic overflow, and a document that does not scroll. A nested region may use its containing region's scroller, as the compact instruction bar intentionally does.

This preserves #4274's compact bar and popover and retains the complete live published-page sweep. The existing synchronous check-API wait resolves the module before polling the predicate.

Validation: uv run pytest tests/journeys/test_site.py::test_every_published_page_stands_as_a_live_page -xq -n0 reproduced the reported failure on the unchanged test and passes with this change (1 passed). A focused Chromium probe on code-comparison passes normally and rejects a control with its scrollers disabled. Ruff lint/format, Python compilation and git diff --check also pass.

Closes #4827 — automated triage

The footer-only playground instruction bar introduced in #4274 has no child matching the old pane-body inference. Read visible registered regions and their effective scrollers instead, preserving the compact bar and allowing a nested region to use its containing scroller. Keep the document bounded and the complete live published-page sweep.

The published-page journey reproduces getComputedStyle(undefined) before this change and passes afterward. A focused code-comparison probe also rejects an unbounded-scroller control.

Closes #4827
@leaf-agent
leaf-agent merged commit fa7575d into main Oct 31, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4827 branch October 31, 2026 11:52
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.

Published workspace readiness calls getComputedStyle on a missing region

1 participant