Repository navigation
Docs: Document the stages of replacing a legacy component - #85764
Merged
Merged
Conversation
Write down the order of the WC alias, trial migrations, recommendation, remaining migrations, and the optional deprecation when a @wordpress/ui component replaces a @wordpress/components component, with reviewer checks for each stage. Link it from the package contributing guides and the Design System skills.
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
This was referenced Oct 28, 2026
mirka
marked this pull request as ready for review
October 28, 2026 13:42
mirka
requested review from
a team,
fabiankaegy and
juanmaguitar
as code owners
October 28, 2026 13:42
aduth
approved these changes
Oct 28, 2026
aduth
left a comment
Member
There was a problem hiding this comment.
This looks great 👍 Very exhaustive. With the skill improvements I'm also keen to test it out in AI review 🙂
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.
What?
Follow-up to #85519 (comment)
Document the stages of replacing a
@wordpress/componentscomponent with one from@wordpress/ui, with the condition for starting each stage, the changes that belong together, and what a reviewer should check.This is just the docs side of things. Separately, I'm working on some automated checks to prevent drift, in addition to cleaning up the places that have already drifted.
Why?
The individual steps were spread out across the components contributing guide, the
@wordpress/uicomponent status guidance, and theuse-recommended-componentsdocs, but the order was not written down. As a result, past replacements took different paths. For example,WC*aliases were added anywhere from before the recommendation to six months after it, and some components are marked as not recommended in Storybook without a denylist entry. A written sequence gives reviewers something to check against, and can be followed by agents implementing or reviewing these changes.How?
Add a "Replace a legacy component" section to the Design System packages guide with five stages:
WC*alias whenever a public@wordpress/uiexport has the same name as a@wordpress/componentsexport, independent of the new component's status.manifesttags, the allowlist and denylist, the migration guide, and the suppressions baseline. Anot-recommendedstatus and a denylist entry always change together.Link the section from the
@wordpress/componentsand@wordpress/uicontributing guides and from thedesign-system-contribution,design-system-code-review,design-system-ui-composition, anddesign-system-ui-reviewskills.Testing Instructions
packages/components/CONTRIBUTING.md,packages/ui/CONTRIBUTING.md, and the two skills, and confirm that they land on the section.