-
Notifications
You must be signed in to change notification settings - Fork 122
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
docs: upgrade storybook to 5.2.8 and refactor stories to CSF #508
Conversation
Codecov Report
@@ Coverage Diff @@
## master #508 +/- ##
==========================================
- Coverage 75.36% 75.33% -0.04%
==========================================
Files 192 192
Lines 5769 5773 +4
Branches 1109 1115 +6
==========================================
+ Hits 4348 4349 +1
- Misses 1405 1408 +3
Partials 16 16
Continue to review full report at Codecov.
|
9ac7bfb
to
e0729a0
Compare
Choose any story that uses knobs and it hangs with all knobs available disregarding defaults. After clicking any of the checkboxes, then storybook resolves to the correct knob configuration. Investigating... In the network tab in developer tools, the hurdle may be linked to webpack where it's loading for 36.07s The fix ended up being moving variables within the scope of each story vs having them as global variables Other visual test issue was based on the config which has been changed instead of using loadStories. |
7d4a395
to
5139d1e
Compare
Thank you @markov00 for the help with commit a75d477 🙇♀ and for reference: https://github.com/smrq/babel-plugin-require-context-hook/blob/master/register.js Also, this commit includes readded integration tests since all.test.ts was setup differently (currently integration tests do not delete if outdated, so I deleted the entire image_snapshots directory, ran |
Based on previous conversations, we may just create a static table in bar_chart basic for the sake of this PR. I'm including some information on the 5.3.0 storybook release which may include something to incorporate in the future:
In terms of the story source being included in the docs section, there's a slightly relevant issue, but again with storybook 5.3.0 with the fix: |
@markov00 I have a very sketchy basic table included in bar_chart.tsx with the BarSeries props, and wanted to touch base about other props (in this table or in a new one) that would make sense to be included in the docs section for the basic bar chart. In terms of the story source, it looks like there are some good paths to explore with MDX (but seems to be problematic with CSF docs rendering here: storybookjs/storybook#7479 (comment)). In commit eac67b2 I'm working on the built in Preview blocks with the docs addon. I'm having issues with the tags with "basic" not being defined. I think this might give us a code sample if I'm understanding correctly (storybookjs/storybook#7607). Let me know if you think this is the right path to go down and if you have any suggestions. |
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.
LGTM tested locally
🎉 This PR is included in version 17.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
This PR is addressing issue #498. Stories have been refactored to be in CSF format and further documentation improvement has been broken into issue #523 to address in a subsequent PR.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.src/index.ts
(and stories only import from../src
except for test data & storybook)- [ ] This was checked for cross-browser compatibility, including a check against IE11