Repository navigation
Render banner status and approval through their owners - #2337
Conversation
The pinned test check failed on test_primary_package_reader_retains_native_widgets_drafts_and_creation[390].
|
The 390px status notice moves about 9px after the package reply settles, so the PR's 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. |
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]>
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.