Skip to content
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

Convert all stories to CSF #971

Merged
merged 1 commit into from
Nov 30, 2020
Merged

Convert all stories to CSF #971

merged 1 commit into from
Nov 30, 2020

Conversation

craigpalermo
Copy link
Collaborator

@craigpalermo craigpalermo commented Nov 29, 2020

This PR is prep for #970 to make it easier to review. Long story short, the easiest way to add support for TypeScript in the core package requires upgrading to Storybook 6 because it provides zero-config TS support. In order to do that, we need to remove usages of the deprecated @storybook/addon-info, and we do that by replacing those usages with parameters.docs.description.component in the default export for CSF story files. Obviously, this requires refactoring all stories to CSF, hence this PR.

This PR does not upgrade to SB6, it's just prep and will not change any functionality. The docs pages of all stories are still broken.

  • run rush change

@craigpalermo craigpalermo force-pushed the core-stories-to-csf branch 2 times, most recently from 60ebece to d35b2eb Compare November 29, 2020 16:25
@craigpalermo craigpalermo marked this pull request as ready for review November 29, 2020 16:29
Copy link
Contributor

@pcln-james pcln-james left a comment

Choose a reason for hiding this comment

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

LGTM

@craigpalermo craigpalermo changed the title Convert all core stories to CSF Convert all stories to CSF Nov 30, 2020
@codecov-io
Copy link

codecov-io commented Nov 30, 2020

Codecov Report

Merging #971 (8090f81) into master (4d38f92) will decrease coverage by 0.40%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #971      +/-   ##
==========================================
- Coverage   91.74%   91.33%   -0.41%     
==========================================
  Files          78       78              
  Lines        1345     1351       +6     
  Branches      269      269              
==========================================
  Hits         1234     1234              
- Misses         90       96       +6     
  Partials       21       21              
Impacted Files Coverage Δ
packages/core/src/Stamp/Stamp.js 100.00% <ø> (ø)
packages/slider/src/Slider.stories.js 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d38f92...8090f81. Read the comment docs.

@craigpalermo craigpalermo merged commit 392c271 into master Nov 30, 2020
@craigpalermo craigpalermo deleted the core-stories-to-csf branch November 30, 2020 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants