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

#1750 CRA Example cleanup - knobs and notes #2177

Merged
merged 5 commits into from Oct 30, 2017
Merged

#1750 CRA Example cleanup - knobs and notes #2177

merged 5 commits into from Oct 30, 2017

Conversation

danielduan
Copy link
Member

Issue:

#1750 example app too messy

What I did

reorganized knobs and notes

How to test

Is this testable with jest or storyshots?
yes
Does this need a new example in the kitchen sink apps?
yes
Does this need an update to the documentation?
no
If your answer is yes to any of these, please make sure to include it in your PR.

@danielduan danielduan added cleanup Minor cleanup style change that won't show up in release changelog documentation labels Oct 29, 2017
</WithNotes>
));

storiesOf('component.base.Link', module)
Copy link
Member Author

Choose a reason for hiding this comment

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

I got rid of these because they don't seem to be testing or documenting anything in particular. Seems like a waste of space and code to me.

Copy link
Member

Choose a reason for hiding this comment

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

I think they are for testing deep nesting of stories

Copy link
Member Author

Choose a reason for hiding this comment

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

I think in this case it should be okay to delete. The examples for Addon Info are pretty well nested too.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, it was added for the hierarchy feature. If other examples are descriptive enough to demonstrate the hierarchy, it's ok to delete all of these.

@codecov
Copy link

codecov bot commented Oct 29, 2017

Codecov Report

Merging #2177 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2177   +/-   ##
=======================================
  Coverage   21.43%   21.43%           
=======================================
  Files         263      263           
  Lines        5803     5803           
  Branches      698      686   -12     
=======================================
  Hits         1244     1244           
- Misses       4029     4047   +18     
+ Partials      530      512   -18
Impacted Files Coverage Δ
addons/info/src/components/PropTable.js 21% <0%> (ø) ⬆️
lib/ui/src/modules/ui/libs/filters.js 47.36% <0%> (ø) ⬆️
addons/info/src/components/markdown/htags.js 30% <0%> (ø) ⬆️
addons/knobs/src/components/PropField.js 10.63% <0%> (ø) ⬆️
addons/knobs/src/components/types/Boolean.js 11.62% <0%> (ø) ⬆️
app/react/src/client/preview/element_check.js 41.17% <0%> (ø) ⬆️
lib/ui/src/modules/api/configs/init_api.js 40.47% <0%> (ø) ⬆️
addons/info/src/components/PropVal.js 41.41% <0%> (ø) ⬆️
addons/knobs/src/components/PropForm.js 9.09% <0%> (ø) ⬆️
addons/knobs/src/components/types/Number.js 8.06% <0%> (ø) ⬆️
... and 9 more

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 25583c9...9f3f044. Read the comment docs.

</WithNotes>
));

storiesOf('component.base.Link', module)
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, it was added for the hierarchy feature. If other examples are descriptive enough to demonstrate the hierarchy, it's ok to delete all of these.

@danielduan danielduan merged commit 2d0e4ac into master Oct 30, 2017
@danielduan danielduan deleted the dd/cra-reorg branch October 30, 2017 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon: knobs addon: notes cleanup Minor cleanup style change that won't show up in release changelog documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants