Skip to content

Commit 67e6aa9

Browse files
authored
Reorder Storybook (#265)
The storybook is currently in alphabetical order. In preparation for using storybook for documentation, they are now changed to be ordered by importance. Discussion on [ordering](https://www.notion.so/Storybook-ordering-3b11704e6b53455c8608a4538a26ac6b) can be found in this [slack thread](https://yext.slack.com/archives/C032CKFARGS/p1658946249184429?thread_ts=1658946060.176239&cid=C032CKFARGS). J=SLAP-2271 TEST=manual Tested that storybook was reordered as prescribed in preview.js.
1 parent 1c5bcf6 commit 67e6aa9

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.storybook/preview.js

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,39 @@ export const parameters = {
66
controls: {
77
matchers: {
88
color: /(background|color)$/i,
9-
date: /Date$/,
9+
date: /Date$/
1010
},
1111
expanded: true
1212
},
1313
a11y: {
1414
options: {
1515
runOnly: {
1616
type: 'tag',
17-
values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'],
17+
values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']
1818
}
1919
}
20+
},
21+
options: {
22+
storySort: {
23+
order: [
24+
'SearchBar',
25+
'UniversalResults',
26+
'VerticalResults',
27+
'DirectAnswer',
28+
'FilterSearch',
29+
'StaticFilters',
30+
'StandardFacets',
31+
'NumericalFacets',
32+
'HierarchicalFacets',
33+
'RangeInput',
34+
'AppliedFilters',
35+
'Pagination',
36+
'AlternativeVerticals',
37+
'SpellCheck',
38+
'ResultsCount',
39+
'LocationBias'
40+
]
41+
}
2042
}
2143
};
2244

0 commit comments

Comments
 (0)