Skip to content

Storybook: Remove legacy manifest compatibility shim - #85778

Merged
aduth merged 1 commit into
trunkfrom
remove/storybook-legacy-docgen-shim
Oct 29, 2026
Merged

aduth merged 1 commit into
trunkfrom
remove/storybook-legacy-docgen-shim

Conversation

@aduth

@aduth aduth commented Oct 27, 2026

Copy link
Copy Markdown
Member

What?

Removes the temporary compatibility shim added in #77382 that was intended to maintain compatibility for @wordpress/design-system-mcp consumers 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-mcp server. 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.json file by duplicating contents across reactComponentMeta and reactDocgen keys. 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:build builds successfully, and that the resulting storybook/build/manifests/components.json includes reactComponentMeta for each component story and not a reactDocgen property.

Use of AI Tools

Researched existing usage and implemented removal via Claude Code + Opus 5.5.

@aduth
aduth requested review from ciampo and mirka October 27, 2026 19:39
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: aduth <aduth@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: 0 B

Total Size: 8.56 MB

7531628 Run

@aduth aduth added [Type] Build Tooling Issues or PRs related to build tooling Storybook Storybook and its stories for components labels Oct 27, 2026

@ciampo ciampo 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.

🥳

LGTM 🚀

@aduth
aduth force-pushed the remove/storybook-legacy-docgen-shim branch from 5011584 to 7531628 Compare October 28, 2026 18:12
@aduth
aduth merged commit e368811 into trunk Oct 29, 2026
57 of 58 checks passed
@aduth
aduth deleted the remove/storybook-legacy-docgen-shim branch October 29, 2026 13:26
@github-actions github-actions Bot added this to the Gutenberg 24.4 milestone Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storybook Storybook and its stories for components [Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants