Skip to content

ci(fix): let the visual-baselines workflow mint template baselines - #616

Merged
Ducksss merged 1 commit into
mainfrom
fix/visual-baselines-templates-spec
Oct 10, 2026
Merged

Ducksss merged 1 commit into
mainfrom
fix/visual-baselines-templates-spec

Conversation

@Ducksss

@Ducksss Ducksss commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

What

  • visual-baselines.yml: the template-visual spec choice becomes templates-visual, both case arms are updated, and the validated argv array is kept. The header comment is rewritten; it named only blog-visual and still described committed darwin baselines and a 38-component suite.
  • tests/int/release-gate.int.spec.ts: pins the new name, checks that every choice names a real e2e spec, and checks that all-visual covers every *-visual spec.
  • CONTRIBUTING.md: says which spec to pick.

Why

When #554 turned the free-text spec input into a choice list, the template-visual choice never matched tests/e2e/templates-visual.e2e.spec.ts. Playwright reads a positional argument as a file-path regex, so spec=template-visual failed with "No tests found". Worse, all-visual silently minted only the component and blog baselines and never the 150 template ones. Template baselines therefore couldn't be minted through the workflow at all. That surfaced during the Datasheet rebrand (#604).

Verification

Rebased onto current main. tests/int/release-gate.int.spec.ts passes 12/12, and Prettier is clean.

No issue closed.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Corrected the visual-baseline workflow option for template checks and ensured the “all” option includes template, component, and blog visual checks.
  • Documentation
    • Clarified the supported visual-baseline options and Linux rendering guidance.
  • Tests
    • Added checks that workflow options map to existing visual test suites and that “all” includes every visual suite.

The `template-visual` spec choice, added when #554 turned the free-text
input into a choice list, never matched
tests/e2e/templates-visual.e2e.spec.ts. Playwright reads a positional
argument as a file-path regex, so `spec=template-visual` failed with
"No tests found" and `all-visual` silently minted only the component
and blog baselines, never the 150 template ones.

Rename the choice to `templates-visual` and update both case arms,
keeping the validated argv array. Rewrite the header comment, which
named only blog-visual and still described committed darwin baselines
and a 38-component suite. The release-gate int spec now pins the new
name and checks that every choice names a real e2e spec and that
all-visual covers every *-visual spec. CONTRIBUTING.md says which spec
to pick.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
payload-components Ready Ready Preview Oct 10, 2026 4:34pm UTC

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: Ducksss/payload-components/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6cd40c82-e116-43a9-b218-c6c518d846f4

📥 Commits

Reviewing files that changed from the base of the PR and between fe8e295 and d2f13c0.


📒 Files selected for processing (3)
  • .github/workflows/visual-baselines.yml
  • CONTRIBUTING.md
  • tests/int/release-gate.int.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

The visual-baselines workflow now uses templates-visual and runs all three visual suites when all-visual is selected. Contributor instructions describe the available choices. The release-gate test checks that choices map to existing visual specs.

Changes

Visual baseline suite selection

Layer / File(s) Summary
Workflow suite selection and validation
.github/workflows/visual-baselines.yml, tests/int/release-gate.int.spec.ts, CONTRIBUTING.md
The workflow dispatch and shell mapping use templates-visual, and all-visual runs the component, template, and blog suites. The release-gate test checks that suite choices match discovered visual specs. Contributor instructions describe the workflow options and Linux PNG review.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix


Merge Risk: ⚪ Minimal · up to d2f13

The suite selections route to the available tests, and all-visual includes all three visual suites. No outstanding issue is evident; the PR appears mergeable after normal checks.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: enabling the visual-baselines workflow to create template baselines.
Description check Passed The description clearly explains the changes, the cause, and the verification results. It does not use the template headings exactly and omits the Registry Checklist and Notes sections, but the main r…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR


🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Ducksss
Ducksss merged commit a19d639 into main Oct 10, 2026
17 checks passed
@Ducksss
Ducksss deleted the fix/visual-baselines-templates-spec branch October 10, 2026 17:01

This branch was successfully deployed

1 active deployment
Preview — d2f13c02 Deployed Oct 10, 2026 by vercel[bot]
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