Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As an initial step in organizing our Storybook such that it will be more useful and less cluttered, we're going to implement a hierarchy that will allow us to group similar components. This will allow us to see redundancy in our components, potentially consolidate and deprecate, and more easily find pre-existing components when designing new features.
By prepending a category, in this case "Button/" to storiesOf, Storybook (now that we are using version 3.2) will automatically group and collapse components in the same category. As a start, I made a Buttons category, sub-divided based on whether the button is used in games or more broadly on the site.
Note: This does not change the use of any components, their Stories or where they are in our codebase; it just starts to declutter the list on the left panel of Storybook.
Next steps:
LegacyButton
andDialogButtons
.CollapserButton
,ScrollButtons
,ArrowButtons
,StepButton
, andLargeChevronLink
, for example - this list is not exhaustive) need Stories, warrant their own component or could be swapped out for a standardized button, and/or should be grouped in this Button hierarchy.