-
Notifications
You must be signed in to change notification settings - Fork 14k
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
feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) #26907
Conversation
c890960
to
c72ef0d
Compare
This reverts commit f969594.
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.
Wow! 🎉
Just need a final code-owner check from @michael-s-molina @kgabryje or @geido (because I touched Select, MetadataBar, DropdownContainer) and we'll be good to smash this thing in! |
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.
Thanks for all the great work that went into this! Let's keep an eye on Netlify to make sure everything goes smooth when we merge this up.
@@ -161,6 +162,28 @@ module.exports = { | |||
'react/static-property-placement': 0, // re-enable up for discussion | |||
'prettier/prettier': 'error', | |||
'file-progress/activate': 1, | |||
// delete me later: temporary rules to help with migration |
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.
* under the License. | ||
*/ | ||
|
||
// import { Meta, Source, Story, ArgsTable } from '@storybook/addon-docs'; |
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.
// import { Meta, Source, Story, ArgsTable } from '@storybook/addon-docs'; |
// import { ActionMenuItem } from 'src/components/Table/cell-renderers/index'; | ||
// import ActionCell from './index'; |
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.
// import { ActionMenuItem } from 'src/components/Table/cell-renderers/index'; | |
// import ActionCell from './index'; |
// { | ||
// test: /\.mdx?$/, | ||
// use: [ | ||
// { | ||
// loader: require.resolve('@storybook/mdx2-csf/loader'), | ||
// options: { | ||
// skipCsf: false, | ||
// mdxCompileOptions: { | ||
// remarkPlugins: [remarkGfm], | ||
// }, | ||
// }, | ||
// }, | ||
// ], | ||
// }, |
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.
// { | |
// test: /\.mdx?$/, | |
// use: [ | |
// { | |
// loader: require.resolve('@storybook/mdx2-csf/loader'), | |
// options: { | |
// skipCsf: false, | |
// mdxCompileOptions: { | |
// remarkPlugins: [remarkGfm], | |
// }, | |
// }, | |
// }, | |
// ], | |
// }, |
@@ -310,6 +351,24 @@ module.exports = { | |||
'react/static-property-placement': 0, // disabled temporarily | |||
'react-prefer-function-component/react-prefer-function-component': 1, | |||
'prettier/prettier': 'error', | |||
// disabling some things that come with the eslint 7->8 upgrade. Will address these in a separate PR |
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.
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.
Nothing to add on top of Diego’s comments, amazing work!!
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.
Thank you for all the hard work @rusackas!
While testing the PR, I found the following problems:
Some components are not rendering anymore:
Some components are rendering but their content is not:
Some controls that used to work are not rendering. In this example, sizes and styles were a select:
Some plugins are overflowing the render area:
This list is not exhaustive, as I only tested a sample of the stories. I can confirm that these problems don't happen on master. Given the size of the PR and the possibility of conflicts, I'm ok with merging it as is and tackling the problems in a follow-up given that the Storybook is an isolated area.
Amazing work 👏🏼
@@ -161,6 +162,28 @@ module.exports = { | |||
'react/static-property-placement': 0, // re-enable up for discussion | |||
'prettier/prettier': 'error', | |||
'file-progress/activate': 1, | |||
// delete me later: temporary rules to help with migration |
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.
Maybe add a TODO:
prefix to make it discoverable by IDEs?
// delete me later: temporary rules to help with migration | |
// TODO: Delete me later. Temporary rules to help with migration. |
@@ -203,6 +226,22 @@ module.exports = { | |||
], | |||
'no-only-tests/no-only-tests': 'error', | |||
'max-classes-per-file': 0, | |||
// temporary rules to help with migration - please re-enable! |
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.
// temporary rules to help with migration - please re-enable! | |
// TODO: Temporary rules to help with migration - please re-enable! |
@@ -310,6 +351,24 @@ module.exports = { | |||
'react/static-property-placement': 0, // disabled temporarily | |||
'react-prefer-function-component/react-prefer-function-component': 1, | |||
'prettier/prettier': 'error', | |||
// disabling some things that come with the eslint 7->8 upgrade. Will address these in a separate PR |
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.
// disabling some things that come with the eslint 7->8 upgrade. Will address these in a separate PR | |
// TODO: Disabling some things that come with the eslint 7->8 upgrade. Will address these in a separate PR. |
Follow-up PRs to address all of the above coming soon! I was spot checking stories as I ported them to the new format, but knew that some would get screwed up along the way. Let the polishing phase begin! |
Tracking this here https://github.com/orgs/apache/projects/315/views/1?pane=issue&itemId=53539080 |
…-to-the-embedded-dashboard * master: (1182 commits) fix(ci): mypy pre-commit issues (apache#27161) feat(Alerts and Reports): Modal redesign (apache#26202) refactor: Migrate ErrorBoundary to typescript (apache#27143) chore(tests): Remove unnecessary explicit Flask-SQLAlchemy session expunges (apache#27136) fix(plugins): Apply dashboard filters to comparison query in BigNumber with Time Comparison chart (apache#27138) fix: Duplicated toast messages (apache#27135) docs: add Geotab to users list (apache#27134) fix: Plain error message when visiting a dashboard via permalink without permissions (apache#27132) fix: ID param for DELETE ssh_tunnel endpoint (apache#27130) chore(hail mary): Update package-lock.json via npm-audit-fix (apache#26693) chore: lower cryptography min version to 41.0.2 (apache#27129) docs(miscellaneous): Export Datasoruces: export datasources exports to ZIP (apache#27120) fix(pivot-table-v2): Added forgotten translation pivot table v2 (apache#22840) fix: RLS modal overflow (apache#27128) refactor: Updates some database columns to MediumText (apache#27119) fix: gevent upgrade to 23.9.1 (apache#27112) fix: removes old deprecated sqllab endpoints (apache#27117) feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) (apache#26907) fix: bump grpcio, urllib3 and paramiko (apache#27124) chore(internet_port): added new ports and removed unnecessary string class (apache#27078) ...
SUMMARY
This PR does the following:
Temporarily removes the deny-list for license types. For some reason it's blocking a goofily-licensed submodule, which is perfectly license compatible (MIT). I'll flip this back on once I'm done with this effort.Resolved.superset-ui-demo
on its own as well, though)mdx
stories (overviews) totsx
- these might need touchupsBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Run the root storybook and look at all the bells and whistles!
ADDITIONAL INFORMATION