Repository navigation
Run the weekly destination check, and gate the header's layout shift and contrast - #230
Merged
Merged
Conversation
why: The first scheduled run, 40326763466 on 2026-10-26, failed in both API steps with ERR_MODULE_NOT_FOUND for web-tree-sitter, imported from packages/api-model/src/parser.ts. The job checked out the repository and set up Node but never installed the workspace, so the API verifier stopped at its first import. The header destination steps before it passed, and the red run hid that. what: - Set up pnpm, cache it with setup-node and run pnpm install --frozen-lockfile before the verifiers, as test.yml does - Hold the order in the workflow test, one promise per clause: pnpm before Node, which caches it; the install after Node; the install before the API verifier. Five planted breaks name them: no install, an install before Node, an install after the verifier, no pnpm, and pnpm after Node - Say in docs/ci.md why the job installs the workspace Verified: the workflow test passes, and with the previous workflow file put back it fails on the new promises and on the comment-only control. Not verified here: a live run of the workflow, which needs a dispatch.
why: The header gate measured that the port links fit from 280 to 1920 pixels and that the Packages disclosure opens, closes and returns focus. It never measured a layout shift, and it ran in the default light scheme only, so the disclosure's text could lose contrast in dark, or a late script could nudge the bar, without a check noticing. what: - Add checkHeaderLinksRender: in light and dark, at 320 and 1440 pixels, with and without JavaScript, the open panel's name, detail line, heading and title and the chips' labels must each be drawn, at full opacity, with 4.5:1 text contrast over the surfaces beneath them. A selector that finds nothing visible fails, and so does a page whose surface is not in the scheme asked for - With JavaScript, wait a few frames after the page enhances itself, flush the browser's pending layout shifts and require that none is attributed to the header. The bar's height stays with the existing link check. A call that passes script or css for a page with scripting off throws, because a style tag added there never returns - Add checkHeaderLinksRenderFail: an unbroken run, then a bar that moves two frames after enhancement, a light grey detail line on the light panel, a dark grey one on the dark panel (each passing in the other scheme), a faint chip label, a half-opaque detail line and a heading nothing draws must each fail by the problem they name - Run both from --global-header and from the full matrix beside the existing header-link check, and describe them in CONTRIBUTING.md Measured on the Rust landing page at 320, 375, 768, 1024 and 1440 pixels in a fresh browser profile: no horizontal scroll, header shift 0 with JavaScript, panel name and detail contrast between 6.2:1 and 15.0:1. The passes take 3 to 5s and the controls 4 to 5s; four consecutive runs of both agreed.
why: The component comment said the chips show their mark alone below 70rem, but the rule in global.css and the test that pins it hide the labels below 80rem. The picker stylesheet called a group's heading a product's, though the groups are source, packages and API reference. what: - Correct the comment to 80rem - Say a kind's heading, not a product's
tony
temporarily deployed
to
docs-preview-cleanup
November 1, 2026 14:58 — with
GitHub Actions
Inactive
tony
added a commit
that referenced
this pull request
Nov 1, 2026
This branch was successfully deployed
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 port header's repository, package and API links and its searchable Packages menu already shipped in #181. I audited them against the P025 brief before writing anything, and this PR covers what the audit found missing: the weekly check that proves those links resolve has been red since its first run, and nothing gated the header's layout shift or its dark-scheme contrast, both of which the brief names as acceptance.
What the audit found
On the live Rust page, and for all 16 ports, the header matches
main: the repository, package host and API reference are ordinary links, and a native<details>Packages disclosure lists every other package, module, product and companion with a registry mark, a label and one line of detail. It filters as the reader types, moves between rows with the arrow keys, closes on Escape with focus returned, and is a plain list without JavaScript. It reusesdata-doc-pickerrather than adding a menu (HeaderPicker.astro,portHeaderLinks), and the current row has no accent bar.Accept: text/htmland 200 with it, and the crates.io API names the crate and its repository. Four npm pages answer 403 to a bot, andregistry.npmjs.orglists each package with its dist-tags. The committed evidence records 141 passing destinations and 8 deliberately unlinked ones (conan, vcpkg, two Hex and two LuaRocks companions, and two javadoc.io pages that land on a version list), andverify-destinations.negative.mjsplants a 404, a 200 about another package and a renamed repository and requires each to fail.What changes
ERR_MODULE_NOT_FOUNDforweb-tree-sitter, because the job never installed the workspace thatverify-api-destinations.mjsimports. The header steps passed, and the red run hid that.verify-destinations.ymlnow sets up pnpm, then Node with its cache, then runspnpm install --frozen-lockfile, astest.ymldoes.verify-destinations-workflow.test.tsholds the order one promise per clause and plants five breaks: no install, an install before Node, an install after the verifier, no pnpm, and pnpm after Node. Against the previous workflow file it fails on the new promises.checkHeaderLinksRenderruns from--global-headerand the full matrix. In light and dark, at 320 and 1440 pixels, with and without JavaScript, it requires the page to be in the scheme asked for, every text it samples to be drawn (a selector that finds nothing visible fails), at full opacity, with 4.5:1 contrast over the surfaces beneath it. With JavaScript it flushes the browser's pending layout shifts a few frames after the page enhances itself and requires none attributed to the header.checkHeaderLinksRenderFailruns the unbroken page first, then a bar that moves two frames after enhancement, a light grey detail line on the light panel, a dark grey one on the dark panel (each passing in the other scheme), a faint chip label, a half-opaque detail line and a heading nothing draws, and requires each to fail by the problem it names. The passes take 3 to 5 seconds and the controls 4 to 5.CONTRIBUTING.mdanddocs/ci.mddescribe both.Screenshots
Taken with Playwright's Chromium in a fresh context per shot, saved under
/home/d/tmp-wave/p025/shots/and not uploaded. They were taken on the header ofd2d48767f; #226 since changed onlyDocsLayout.astroamong the header's files. For each of 320, 375, 768, 1024 and 1440 pixels, in light and dark, with and without JavaScript, there is a closed bar, an open Packages panel, and with JavaScript the panel filtered bymcp.mcpleavestmux-mcponce under each of Source, Packages and API reference, and the footer line names the port and its repository.Open questions the spec leaves unanswered
header-links.test.tspins this on purpose. The brief can be read as asking for a product page to lead with its own package. That would change whatportHeaderLinkstakes and what the page passes it.Checks and review
On the head, in a clean worktree: the nine header suites (304 tests),
oxlinton the changed scripts and test, andnode site/scripts/check-dev.mjs --global-header, which runs the existing header gates and the two new ones. I dispatched the weekly workflow from this branch (run 41300689362). The install now succeeds, the header destination verification passes against every live host, and the committed evidence is within its age bound. The standard-library and SDK step now gets past its import and checks 811 destinations, then fails by its own rule: 52 are unverifiable becauseen.cppreference.comanswers every runner request with 403, and the rule allows 40. That bound is a separate decision (exempt that host, raise the bound, or check cppreference some other way), so this PR leaves it, and the weekly run stays red until it is settled.An independent reviewer read the first head and approved with nits, with four should-fix findings: the dark controls could not tell the schemes apart, most samples could be silently empty, a fixed 400 ms wait stood in for delivery of layout shifts, and the docblock claimed to measure bar growth. All four are fixed, with the scheme proved from the page surface, every selector required, a flush of pending records and the claim narrowed. The same reviewer re-checked the new head and approved with nits, which are fixed except two it left open: the rest-state colour of the trigger label is not sampled, and a shift caused by opening the panel is not read.