Skip to content

Storybook: Rewrite the introduction page as the front door of the design system - #82437

Merged
juanmaguitar merged 7 commits into
trunkfrom
update/storybook-ia-09-introduction
Sep 21, 2026
Merged

juanmaguitar merged 7 commits into
trunkfrom
update/storybook-ia-09-introduction

Conversation

@juanmaguitar

@juanmaguitar juanmaguitar commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Part of #82402. One PR per proposal, stacked so each stays small; this comment on the issue maps every proposal to its PR.

What?

Rewrites storybook/stories/introduction.mdx so the front door of the site points at the design system. Copy only; the story id is unchanged.

Why?

The page said the project uses Storybook for the components in WordPress packages "especially @wordpress/components", and its only code sample imported from it. It did not link to the design system introduction, tokens, theme or the MCP server, and it said nothing about the status icons and tag filter in the sidebar. Proposal 6 in #82402.

The new page keeps the original shape (what the site is, how it works) and:

  • points the opening sentence and the code sample at the WordPress Design System and @wordpress/ui;
  • describes each top-level folder in one line (Design System, Classic Components, Editor, Widgets, Playground);
  • adds a "Finding your way around" section: search box, tag filter, and a table of the status icons with their status-* tags (from Storybook: Show the component status in the sidebar as status-* tags #82435);
  • gives the design system MCP server a short section that points to its README for setup;
  • moves the eslint rules and the handbook page into the resources list.

Testing Instructions

  1. npm run storybook:dev and open Introduction.
  2. Every internal link opens a page (all ?path= targets were checked against the story titles).
  3. The in-page link "Finding your way around" scrolls to that section.

Stack

Part of #82402. One PR per proposal, stacked so each stays small; this comment on the issue maps every proposal to its PR. Each PR targets the branch below it; GitHub retargets to trunk as they merge. To test everything together, check out the top of the stack, update/storybook-ia-09-introduction, and run npm run storybook:dev.

None of the move PRs wait for #82123: each pins the current id of the files it renames, so the overlap is one identical line per file and whichever lands second rebases.

🤖 Generated with Claude Code

@juanmaguitar juanmaguitar added [Type] Enhancement A suggestion for improvement. Storybook Storybook and its stories for components labels Sep 4, 2026
@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include @coderabbitai review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 7bca3db4-8e89-4d0d-8bef-d0cc3b18e6bd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

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: juanmaguitar <juanmaguitar@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>

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

@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from fe39d6b to 479e28d Compare September 4, 2026 11:18
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-08-root-allowlist branch from 9f1f50f to 1f71f1f Compare September 4, 2026 11:47
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from 3c524a5 to 38d6270 Compare September 4, 2026 11:47
@juanmaguitar
juanmaguitar requested a review from a team September 4, 2026 12:14
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-08-root-allowlist branch from 1f71f1f to de7e575 Compare September 5, 2026 06:17
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from 38d6270 to 7888944 Compare September 5, 2026 06:17

@mirka mirka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for working on an update!

Comment thread storybook/stories/introduction.mdx Outdated
## Welcome!

The WordPress Gutenberg project uses Storybook to view and work with the UI components developed in WordPress packages, especially [@wordpress/components](https://github.com/WordPress/gutenberg/tree/trunk/packages/components).
The WordPress Gutenberg project uses Storybook to view and work with the UI components developed in WordPress packages, especially the [WordPress Design System](?path=/docs/design-system-introduction--docs) (`@wordpress/ui`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This wording kind of implies that the WordPress Design System is @wordpress/ui. Also, if anything, I think the scope of the Storybook has grown larger to the point where we can no longer say it's "especially" for @wordpress/ui or @wordpress/components.

@juanmaguitar juanmaguitar Sep 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. Addressed in b6aa118.
The opening now describes Storybook’s broader scope first, then highlights the full WordPress Design System (foundations, tokens, theme, patterns, and components) without equating it with @wordpress/ui

Comment thread storybook/stories/introduction.mdx Outdated

The components displayed on this site can be used in your code to build the editor's UI for your custom blocks or other pages.
Import them from the components root directory like in below example:
The components displayed on this site can be used in your code to build the editor's UI for your custom blocks or other pages. Import them from `@wordpress/ui` like in the example below:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Import them from @wordpress/ui like in the example below

This reads like all components in the Storybook can be imported from the @wordpress/ui package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 515cd45. The text now refers specifically to the Button example instead of implying that every component in Storybook is imported from @wordpress/ui


export default function MyButton() {
return <Button>Click Me!</Button>;
return <Button>Click me</Button>;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice fix for style adherence 👍

- **Classic Components** documents `@wordpress/components`, the original WordPress UI library. It is still widely used and still the place to look for what `@wordpress/ui` does not cover yet. Each component page shows its recommendation status; see [Finding your way around](#finding-your-way-around) for the icons.
- **Editor** documents UI of the WordPress editing experience: the block editor controls, global styles, the image cropper and the media editor.
- **Widgets** documents the dashboard widget system: its primitives, the dashboard shell, and the grid that lays widgets out.
- **Playground** runs a whole block editor inside Storybook.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not necessarily within the scope of this PR, but this reminds me that we should probably rename "Playground" here, as it now conflicts with WordPress Playground and is confusing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I couldn’t find an earlier discussion about this. I agree that the Playground name is confusing now that WordPress Playground exists. A rename seems worth discussing in a separate issue, since it affects the sidebar structure rather than just the introduction copy.

Comment thread storybook/stories/introduction.mdx Outdated
## Resources to learn more:
## Using it with AI agents

AI agents cannot read this site, so the [WordPress Design System MCP Server](https://github.com/WordPress/gutenberg/tree/trunk/packages/design-system-mcp) gives them the same component documentation, examples and design tokens in a machine-readable form. With it, an agent picks recommended components and valid tokens instead of guessing from outdated sources.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI agents cannot read this site

I'm not sure this is true as a broad statement, and I feel like it will get even more stale as Storybook provides more machine-readability out of the box. Maybe just say the MCP provides a better experience or something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're right. Addressed in a4174ba.

The copy now describes the MCP server as providing direct, machine-readable access instead of making a broad claim about what agents can or cannot read.

@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-08-root-allowlist branch from de7e575 to 2844c8f Compare September 8, 2026 13:07
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from 7888944 to cd4cd59 Compare September 8, 2026 13:07
@juanmaguitar
juanmaguitar requested a review from mirka September 8, 2026 14:40
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-08-root-allowlist branch from d90cd18 to 9e0f923 Compare September 8, 2026 14:41
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from a4174ba to 9d4c35f Compare September 8, 2026 14:41

@mirka mirka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!


```jsx
import { Button } from '@wordpress/components';
import { Button } from '@wordpress/ui';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ciampo @simison Are we close to marking the new Button as recommended? This may affect whether or not we want to start showcasing this snippet here, which will currently trigger a lint rule.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Last I recall the only soft blocker we had was some migration documentation.

#76135 (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.

Not sure if we should consider the (remaining) misalignment between components and ui Button here — #82506 for context.

@jasmussen

Copy link
Copy Markdown
Contributor

Nice work, thanks for contributing!

@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-08-root-allowlist branch from 9e0f923 to 733e75f Compare September 9, 2026 13:35
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from 9d4c35f to ae0646b Compare September 9, 2026 13:35
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-08-root-allowlist branch from 6156a04 to e731187 Compare September 16, 2026 14:17
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from ae0646b to 7e09703 Compare September 16, 2026 14:17
@juanmaguitar
juanmaguitar changed the base branch from update/storybook-ia-08-root-allowlist to trunk September 21, 2026 10:51
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from 5346ab6 to a7e4ac7 Compare September 21, 2026 10:58
@github-actions github-actions Bot added [Package] Components /packages/components [Package] Editor /packages/editor [Package] Block editor /packages/block-editor [Package] Icons /packages/icons [Package] Base styles /packages/base-styles [Package] DataViews /packages/dataviews [Package] Fields /packages/fields [Package] UI /packages/ui [Package] Image Cropper Related to packages/image-cropper [Package] Admin UI /packages/admin-ui [Package] Grid /packages/grid [Package] Widget primitives /packages/widget-primitives [Package] Widget Dashboard /packages/widget-dashboard labels Sep 21, 2026
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

📦 Bundle size

Size Change: 0 B

Total Size: 8.21 MB

From faa094f, not the current head. Run

@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from a7e4ac7 to df655aa Compare September 21, 2026 11:24
@github-actions github-actions Bot removed [Package] Icons /packages/icons [Package] DataViews /packages/dataviews [Package] Fields /packages/fields [Package] Admin UI /packages/admin-ui labels Sep 21, 2026
@juanmaguitar
juanmaguitar force-pushed the update/storybook-ia-09-introduction branch from df655aa to 0974019 Compare September 21, 2026 11:50
juanmaguitar and others added 7 commits September 21, 2026 15:57
…ign system

The introduction said the project uses Storybook for the components in
WordPress packages "especially @wordpress/components", and its only code
sample imported from it. It did not link to the design system
introduction, tokens, theme or the MCP server, and it said nothing about
the status icons and tag filter in the sidebar.

Keep the original shape (what the site is, how it works) but point the
opening and the code sample at the design system and @wordpress/ui.
Describe each top-level folder in one line, add a "Finding your way
around" section with the search box, the tag filter and a table of the
status icons and their tags, give the design system MCP server a short
section that points to its README for setup, and move the eslint rules
and the handbook page into the resources list.

Copy only; the story id is unchanged. Part of #82402 (proposal 6).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Storybook's MDX does not parse GFM tables, so the pipes showed up as
text. Wrap the table in the Markdown block, as the other MDX pages in
the repository do.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The status table listed the recommendation tags in the status-* namespace,
which they no longer use.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants