Skip to content

Render banner status and approval through their owners - #2337

Merged
max-sixty merged 3 commits into
mainfrom
lit-runtime-cleanups
Oct 11, 2026
Merged

max-sixty merged 3 commits into
mainfrom
lit-runtime-cleanups

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

The banner status view renders one template with refs, classMap, and a native popover target. Approval renders directly into its toolbar button with synchronous attributes, removing the child component that wrote its parent. Publication links remain ordinary links outside the disclosure. Phone notices keep a fixed first-line position when background news changes from two lines to one.

Survey item 13. Measured source: banner-status-view.js 171 → 192, banner.js 890 → 899, banner-approval.js 67 → 0; total 1,128 → 1,091 (−37), plus four stylesheet lines for the stable phone notice slot. The survey underestimated formatted template size. The dot export was unused, but its getter serves favicon coloring and is retained. The layout test now protects publication links and keyboard disclosure rather than requiring node identity across the page-lifetime publication branch. Template helpers use the shared facade from #2321.

The notice slot reserves two lines and top-aligns news while keeping ordinary status centered. Previously a shorter notice moved down by half a line; retaining its Text node exposed that existing layout defect. The regression reproduces the 8.73px movement before the fix and now passes.

Validation: focused status, publication, approval, favicon, phone-notice replacement, and the 390px primary-package browser journeys passed. Independent source review and 323 runtime tests passed. CI runs the complete landing gates.

This was written by Codex on behalf of max-sixty

leaf-agent
leaf-agent previously approved these changes Oct 11, 2026
@leaf-agent
leaf-agent dismissed their stale review October 11, 2026 03:23

The pinned test check failed on test_primary_package_reader_retains_native_widgets_drafts_and_creation[390].

@leaf-agent

Copy link
Copy Markdown
Collaborator

The 390px status notice moves about 9px after the package reply settles, so the PR's test check is red on test_primary_package_reader_retains_native_widgets_drafts_and_creation[390]. I reproduced the failure on this head; the same test passes on its base commit 4ba9fecbf when that worktree imports its own Leaf code.

The new notice text stays in the Lit-rendered words box as its message changes. In the banner status view, that box changes layout when the notice appears. I verified a local repair that positions the visible notice over the words box, with the box as its containing block, and the failing test then passes. The notice should keep its full two-line reading while that box remains stationary. I dismissed my earlier approval after the red check.

@max-sixty
max-sixty merged commit cde56b0 into main Oct 11, 2026
6 checks passed
@max-sixty
max-sixty deleted the lit-runtime-cleanups branch October 11, 2026 04:50
leaf-agent added a commit that referenced this pull request Oct 11, 2026
The public example and unheld-status browser checks compare the status
dot's class tokens. [Main run
38133035955](https://github.com/max-sixty/leaf/actions/runs/38133035955)
failed because Lit's `classMap` serializes the lone `lf-dot` token with
surrounding whitespace, while the checks required the raw attribute to
begin with `lf-dot`. The dot still has only that class, so the check
keeps the intended grey, unclaimed status contract without depending on
serialization whitespace.

The banner detail is also rendered inside Lit template whitespace. Its
tests now allow that leading whitespace while still checking the
complete expected sentence. The startup readiness check trims the same
whitespace before deciding whether “Connecting” has cleared; without the
trim, it could pass while the page was still connecting.

This assertion became stale when #2337 moved the banner status view to
Lit. The public example, banner attendance, startup readiness, status
coalescing, claim clock, gallery workflow, and stale workflow cases
passed locally with these changes. The other failures in the original
run have separate causes and are tracked in their own PRs.

---------

Co-authored-by: leaf-agent <[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.

2 participants