-
Notifications
You must be signed in to change notification settings - Fork 201
chore(storybook): add migrated components list #3745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: spectrum-two
Are you sure you want to change the base?
chore(storybook): add migrated components list #3745
Conversation
|
🚀 Deployed on https://pr-3745--spectrum-css.netlify.app |
File metricsSummaryTotal size: 1.42 MB* 🎉 No changes detected in any packages * Size is the sum of all main files for packages in the library.* An ASCII character in UTF-8 is 8 bits or 1 byte. |
5792f6c
to
83e37cf
Compare
- adds a MigratedComponentsList() block to ComponentDetails.jsx. That block gets used in the S2 Migration guide MDX file - adds a migrated-component-scanner.js task to scan the components directory and generate a list of migrated components based on their status (status: type: "migrated") - adds a migrated-components.json file to the .storybook/data directory - updates the package.json scripts to include the new migrated-component-scanner.js task so that it builds and captures the migration status when storybook is started
83e37cf
to
17e141a
Compare
|
||
This is a list of all components that have been fully migrated to Spectrum 2. | ||
|
||
<MigratedComponentsList /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
@@ -15,7 +15,7 @@ | |||
"scripts": { | |||
"build": "yarn builder tag:component,ui-icons", | |||
"build:docs": "yarn build:preview --output-dir ../dist/", | |||
"build:preview": "yarn report && nx build storybook", | |||
"build:preview": "yarn report && yarn component:data && nx build storybook", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there's a way to include this task as a storybook report. In the storybook project.json, if we use this script as the report, would it get run automatically with the others? What's the downside of doing that, maybe it's run more than it needs to be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm picturing you could run it like nx report storybook
Description
DISCLAIMER: MOST CODE GENERATED BY CURSOR
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
Regression testing
Validate:
Screenshots
To-do list