Skip to content
SprecherEast
Issue 1540

process: Check that a changed shared component keeps its showcase examples

Back to our plan
Open
ciprocesstoolingpriority: medium

Problem

Nothing stops a shared component from changing without its showcase examples, so the showcase would slowly drift from the code.

Proposed fix

  • A CI check that fails a pull request that adds a shared component without an examples file, or changes a component's props or variants without changing its examples file. Mechanical, like Knowledge sync.
  • Guard rail 5 says "its showcase examples" in place of "its gallery entry"; the filing checklist, the self-review and the reviewer's checks say the same. This is a policy change the owner asked for (2026-11-26, recorded on #1424).

Existing work compared

Searched open and closed issues on 2026-11-26 (showcase, Storybook, gallery, toggle, switch, developer site, examples, theme readiness, usage, side navigation). Part of epic #1528, which replaces #1424 (owner decision 2026-11-26, recorded there). No other issue covers this step.

Acceptance criteria

  • Not done: Tests first: a new component without examples fails; a props change without an examples change fails; a change to only a test or a comment passes
  • Not done: The check runs on every pull request and is added to the required checks
  • Not done: Guard rail 5, the component set and the review skills say the new rule

Files likely touched

scripts/, .github/workflows/ci.yml, docs/guidelines/guard-rails.md, docs/ui/component-set.md, .agents/skills/self-review/SKILL.md, .agents/skills/pr-review/SKILL.md

Must not touch

src/modules/, src/payload.config.ts, src/app/

Open questions

  • Adding a required check is a ruleset change; the owner asked for the mechanism, so it follows the normal path.

Area

ci, tooling

Priority

priority: medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab