Repository navigation
test(visual): add the Disabled SelectableCard shots to the baseline - #14042
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 4b6ca4c |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Changes requested. The manifest entries for the two Disabled SelectableCard frames check out as gate.mjs accept output from main's capture run, and each frame matches its recorded hash, but the reason recorded for them describes something the frames do not show.
- The Why now bullet and the decision reason written into
.github/visual-baseline/manifest.jsonsay these frames show thedata-disabledstyling from #14017, but the Neutral theme styles nothing ondata-disabled, so both frames show SelectableCard's own half-opacity disabled style, which predates #14017; re-rungate.mjs acceptfrom the same capture with the same two keys and a reason that says the frames cover the disabled dimming in Neutral, and reword the bullet the same way.
The Proof run has not happened at this head yet: CI skips drafts, and with ci:run-visual already set it runs once the pull request is ready.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the Disabled SelectableCard shots join the baseline (title): verified, two keys, two PNGs and one decision record.
- Claim: until now only the one-selected story had SelectableCard baseline shots: verified against the base manifest; no other baseline story renders a disabled card.
- Claim: a disabled-card regression showed no visual mark before and does with these shots: verified, the touched visual plan takes tagged stories and keeps only accepted keys.
- Claim: both shots join with manifest entries and acceptance records: verified.
- Claim: #14031 tagged the Disabled story after #14017 merged: verified in history.
- Claim: #14017 gave disabled cards the data-disabled styling, so the first accepted picture shows it: false, Neutral does not style data-disabled and the dimming predates #14017.
- Claim: produced by gate.mjs accept with exactly these two keys from main's capture run, no hand-copied PNGs: verified for the manifest (an exact replay of accept's write; PNG hashes match their entries); the PNG bytes against the capture artifact: reported.
- Claim: the capture lists both keys as added: reported; the capture reports four added keys.
- Claim: a labelled visual run at this head shows both shots unchanged: reported, not yet run because CI skips drafts.
- Claim: no CI impact, baseline data only: verified, three data files and no workflow, runner or check change.
- Claim: no overlapping open pull request: reported. Claim: #14031 and #14017 merged: verified.
- Claim: owning session and land path: reported.
- File
.github/visual-baseline/manifest.json: finding (decision reason, above). - File
.github/visual-baseline/shots/core-selectablecard--disabled__neutral-dark.png: clear. - File
.github/visual-baseline/shots/core-selectablecard--disabled__neutral-light.png: clear.
|
/approve-spec 3de14a9 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft; it runs once the pull request is marked ready, and ci:run-visual is already applied.
The decision reason recorded in .github/visual-baseline/manifest.json now says what the two Disabled SelectableCard frames show, the half-opacity disabled dimming in Neutral, which fixes the earlier finding. Both frames are byte-identical to main's capture run, and the manifest is exactly what gate.mjs accept writes for these two keys.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: the Disabled SelectableCard shots join the baseline (title): verified, two keys, two PNGs and one decision record.
- Claim: until now only the single-select story had SelectableCard baseline shots: verified against the base manifest; the only other baseline story that renders SelectableCard disables none.
- Claim: a disabled-card regression showed no visual mark before and does with these shots: verified, a component edit's visual plan keeps only accepted keys, and both keys are now accepted.
- Claim: both shots join with their manifest entries and acceptance record: verified.
- Claim: the frames cover the half-opacity disabled dimming in Neutral, selected and unselected, beside an enabled selected card: verified against the story and both frames.
- Claim: #14031 tagged the Disabled story for the baseline: verified in history.
- Claim: Neutral styles nothing on the disabled attribute: verified, the Neutral theme has no SelectableCard entry and no disabled state key.
- Claim: a theme's disabled-attribute styling gets pixels only once the story also runs in the probe theme: verified, the baseline captures only Neutral and the probe theme, and the probe theme styles the disabled state.
- Claim: produced by
gate.mjs acceptwith exactly these two keys from main's capture run, with no hand-copied PNGs: verified, the PNGs are byte-identical to the capture and replaying accept reproduces the manifest. - Claim: the capture lists both keys as added: verified in its verdict.
- Claim: a labelled visual run at this head shows both shots unchanged: reported, not yet run because CI skips drafts.
- Claim: no CI impact, baseline data only: verified, three data files and no workflow, runner or check change.
- Claim: no open pull request overlaps the baseline: reported.
- Claim: owning session and land path: reported.
- File
.github/visual-baseline/manifest.json: clear. - File
.github/visual-baseline/shots/core-selectablecard--disabled__neutral-dark.png: clear. - File
.github/visual-baseline/shots/core-selectablecard--disabled__neutral-light.png: clear.


































Who this helps
Anyone changing SelectableCard's disabled state. Until now only the single-select story was in the visual baseline, so a regression in disabled cards (selected or unselected) showed no Visual mark. With these two shots it does.
What changes
core-selectablecard--disabled__neutral-lightand__neutral-darkjoin.github/visual-baseline, with their manifest entries and acceptance records.data-disabled, so a theme'sdata-disabledstyling (which [Component Audit] SelectableCard: themes can style a disabled card #14017 made reachable) gets pixels only once the story also runs in the probe theme; that is a separate follow-up.gate.mjs acceptwith exactly these two keys from main'soperation=capturerun 46297093443 (ee895f3). No hand-copied PNGs. That capture lists both keys as added against the baseline.The shots
Proof
ci:run-visualon this head: both shots appear as unchanged rather than added.CI impact
CI impact: none. Baseline data only (PNGs and the manifest); no workflow, runner or required check changes.
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the drain's serial merge loop, on green, CodeBunny approval and Specs' exact-head
/approve-spec.Overlap checked: none (no open pull request changes .github/visual-baseline; #14031 merged)