Skip to content

ref(stories): automatic categories via index#113506

Merged
natemoo-re merged 11 commits intomasterfrom
nm/stories/category
Apr 21, 2026
Merged

ref(stories): automatic categories via index#113506
natemoo-re merged 11 commits intomasterfrom
nm/stories/category

Conversation

@natemoo-re
Copy link
Copy Markdown
Member

Adds a new rspack plugin (build-utils/frontmatter-index-loader.ts) which extracts frontmatter from *.mdx story files at compile time.

yaml now added as a direct dependency because it's being used explicitly, but it already existed in our dependency tree from remark-mdx-frontmatter@5.2.0, knip@6.4.1, and eslint-plugin-mdx@3.6.2.

Removes manual category config in storySearch.tsx (categories are now fully derived from frontmatter)

Fixes DE-1012, which was an issue with the depth of our search logic

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 20, 2026

@natemoo-re natemoo-re marked this pull request as ready for review April 20, 2026 23:40
@natemoo-re natemoo-re requested review from a team as code owners April 20, 2026 23:40
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 20, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0e7cbd7. Configure here.

Comment thread static/app/stories/view/storyTree.tsx Outdated
Comment thread build-utils/frontmatter-index-loader.ts
@natemoo-re natemoo-re force-pushed the nm/stories/category branch from 0e7cbd7 to f665424 Compare April 21, 2026 15:42
Comment thread build-utils/frontmatter-index-loader.ts Outdated
@natemoo-re natemoo-re merged commit 2cac614 into master Apr 21, 2026
69 of 71 checks passed
@natemoo-re natemoo-re deleted the nm/stories/category branch April 21, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants