Repository navigation
Storybook: Remove legacy manifest compatibility shim - #85778
Merged
Merged
Conversation
🤖 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 📦 Bundle sizeSize Change: 0 B Total Size: 8.56 MB
|
aduth
force-pushed
the
remove/storybook-legacy-docgen-shim
branch
from
October 28, 2026 18:12
5011584 to
7531628
Compare
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?
Removes the temporary compatibility shim added in #77382 that was intended to maintain compatibility for
@wordpress/design-system-mcpconsumers while migrating to a new component manifest structure.Why?
It was intended as temporary, and its own source code describes that it is meant to be removed after the next release of the
@wordpress/design-system-mcpserver. That was back in April, and there have since been 10 new versions of the package released since then.The continued existence of the shim also impedes work in #80697, where we may eventually need to migrate again to a changed structure for the manifest, as the Storybook manifest is still unstable. The intended approach we're adopting there is to make the MCP capable of handling both structures, rather than shimming.
Finally, the shim inflates the size of the
components.jsonfile by duplicating contents acrossreactComponentMetaandreactDocgenkeys. The size of this file came up in the context of @mirka 's #85757 (comment), as agents may not be willing to read such a large file.Testing Instructions
Verify that
npm run storybook:buildbuilds successfully, and that the resultingstorybook/build/manifests/components.jsonincludesreactComponentMetafor each component story and not areactDocgenproperty.Use of AI Tools
Researched existing usage and implemented removal via Claude Code + Opus 5.5.