Skip to content

test(visual): add the Disabled SelectableCard shots to the baseline - #14042

Merged
cixzhang merged 2 commits into
mainfrom
test/visual-baseline-selectablecard-disabled
Nov 29, 2026
Merged

cixzhang merged 2 commits into
mainfrom
test/visual-baseline-selectablecard-disabled

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Shots: core-selectablecard--disabled__neutral-light and __neutral-dark join .github/visual-baseline, with their manifest entries and acceptance records.
  • What they cover: SelectableCard's disabled dimming (half opacity) in the Neutral theme, selected and unselected, beside an enabled selected card. test(visual): the disabled SelectableCard story joins the visual baseline #14031 (merged at ee895f3) tagged the Disabled story for the baseline. Neutral styles nothing on data-disabled, so a theme's data-disabled styling (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.
  • Path: the repository's baseline-update path (AST-030 FR12): gate.mjs accept with exactly these two keys from main's operation=capture run 46297093443 (ee895f3). No hand-copied PNGs. That capture lists both keys as added against the baseline.

The shots

Light Dark

Proof

ci:run-visual on 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)

gate.mjs accept from main capture run 46297093443 (ee895f3) for core-selectablecard--disabled__neutral-light and __neutral-dark, which #14031 tagged for the baseline; they show #14017's data-disabled styling.
@cixzhang cixzhang added the ci:run-visual Run the visual suite on this PR; write access, next push (AST-030 FR12) label Nov 29, 2026
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 29, 2026 8:13pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 29, 2026
@astracat-bot

astracat-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 29, 2026, 8:25 PM UTC

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 4b6ca4c

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 3de14a9

Storybook · Sandbox · built from this PR's head

Visual changes: 13 snapshots in 6 components

A change is a question for the reviewer, not a failure.

Component · story Before After Diff
ContextMenu · Default (neutral, dark) · inherited from main before frame after frame diff frame
__tests__ · Presented hit testing (neutral, light) · inherited from main before frame after frame diff frame
__tests__ · Presented hit testing (neutral, dark) · inherited from main before frame after frame diff frame
TableRowIndex · Default (neutral, light) · inherited from main before frame after frame diff frame
TableRowIndex · Default (neutral, dark) · inherited from main before frame after frame diff frame
Stepper · Default (neutral, light) · inherited from main before frame after frame diff frame
Stepper · Default (neutral, dark) · inherited from main before frame after frame diff frame
Stepper · Default (probe, dark) · inherited from main before frame after frame diff frame
Stepper · Default (probe, light) · inherited from main before frame after frame diff frame
Chat · Default (neutral, dark) · inherited from main before frame after frame diff frame
Chat · Default (neutral, light) · inherited from main before frame after frame diff frame
core-layer-dismissal--continuously-animating-trigger__probe-dark — after frame —

1 more are in the run's visual report.

Inheritance checked against the 10 newest reports of other pull requests.

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json say these frames show the data-disabled styling from #14017, but the Neutral theme styles nothing on data-disabled, so both frames show SelectableCard's own half-opacity disabled style, which predates #14017; re-run gate.mjs accept from 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.

Automated review (maintainer link)

Comment thread .github/visual-baseline/manifest.json Resolved
… show

CodeBunny on 4b6ca4c: Neutral styles nothing on data-disabled, so the frames show SelectableCard's own half-opacity disabled dimming, not #14017's data-disabled styling. gate.mjs accept is re-run from the same capture and keys with that reason. Frames unchanged.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 3de14a9

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 accept with 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 29, 2026 20:33
@cixzhang
cixzhang merged commit 32adb4e into main Nov 29, 2026
150 checks passed
@github-actions
github-actions Bot deleted the test/visual-baseline-selectablecard-disabled branch November 30, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 3de14a94 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run-visual Run the visual suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant