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

MOVE ui into it's own group #3884

Merged
merged 1 commit into from
Jul 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@ exports[`Storyshots Addons|Backgrounds story 2 1`] = `
</button>
`;

exports[`Storyshots Addons|Backgrounds, parameters disabled via [] 1`] = `
exports[`Storyshots Addons|Backgrounds.parameters disabled via [] 1`] = `
<button>
This one should not use backgrounds
</button>
`;

exports[`Storyshots Addons|Backgrounds, parameters overriden 1`] = `
exports[`Storyshots Addons|Backgrounds.parameters overriden 1`] = `
<button>
This one should have different backgrounds
</button>
`;

exports[`Storyshots Addons|Backgrounds, parameters skipped via disable:true 1`] = `
exports[`Storyshots Addons|Backgrounds.parameters skipped via disable:true 1`] = `
<button>
This one should not use backgrounds either
</button>
`;

exports[`Storyshots Addons|Backgrounds, parameters story 1 1`] = `
exports[`Storyshots Addons|Backgrounds.parameters story 1 1`] = `
<button>
You should be able to switch backgrounds for this story
</button>
`;

exports[`Storyshots Addons|Backgrounds, parameters story 2 1`] = `
exports[`Storyshots Addons|Backgrounds.parameters story 2 1`] = `
<button>
This one too!
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ storiesOf('Addons|Backgrounds', module)
])(() => <BaseButton label="This one should have different backgrounds" />)
);

storiesOf('Addons|Backgrounds, parameters', module)
storiesOf('Addons|Backgrounds.parameters', module)
.addDecorator(withBackgrounds)
.addParameters({
backgrounds: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots ui/MenuItem default 1`] = `
exports[`Storyshots UI|MenuItem default 1`] = `
<div
role="menuitem"
tabindex="0"
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/src/modules/ui/components/menu_item.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';

import MenuItem from './menu_item';

storiesOf('ui/MenuItem', module).add('default', () => (
storiesOf('UI|MenuItem', module).add('default', () => (
<MenuItem title="title" onClick={action('onClick')}>
Content
</MenuItem>
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/src/modules/ui/components/search_box.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (rootElement != null) {
// For some reason react-modal causes an segfault (infinite loop maybe?)
// when rendered by storyshots/react-test-renderer
if (!navigator.userAgent.match(/Node\.js/) && !navigator.userAgent.match(/jsdom/)) {
storiesOf('ui/SearchBox', module)
storiesOf('UI|SearchBox', module)
.add('default', () => (
<Component showSearchBox onSelectStory={onSelectStory} onClose={onClose} />
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (rootElement != null) {
// For some reason react-modal causes an segfault (infinite loop maybe?)
// when rendered by storyshots/react-test-renderer
if (!navigator.userAgent.match(/Node\.js/) && !navigator.userAgent.match(/jsdom/)) {
storiesOf('ui/ShortcutHelp', module).add('default', () => (
storiesOf('UI|ShortcutHelp', module).add('default', () => (
<ShortcutsHelp isOpen onClose={onClose} />
));
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots ui/stories/StoriesPanel default 1`] = `
exports[`Storyshots UI|stories/StoriesPanel default 1`] = `
<div
class="css-3dwd22"
>
Expand Down Expand Up @@ -33,7 +33,7 @@ exports[`Storyshots ui/stories/StoriesPanel default 1`] = `
</div>
`;

exports[`Storyshots ui/stories/StoriesPanel storiesHierarchies exists but is empty 1`] = `
exports[`Storyshots UI|stories/StoriesPanel storiesHierarchies exists but is empty 1`] = `
<div
class="css-3dwd22"
>
Expand Down Expand Up @@ -66,7 +66,7 @@ exports[`Storyshots ui/stories/StoriesPanel storiesHierarchies exists but is emp
</div>
`;

exports[`Storyshots ui/stories/StoriesPanel when open on mobile device 1`] = `
exports[`Storyshots UI|stories/StoriesPanel when open on mobile device 1`] = `
<div
class="css-nk32ej"
>
Expand Down Expand Up @@ -99,7 +99,7 @@ exports[`Storyshots ui/stories/StoriesPanel when open on mobile device 1`] = `
</div>
`;

exports[`Storyshots ui/stories/StoriesPanel with storiesHierarchies prop 1`] = `
exports[`Storyshots UI|stories/StoriesPanel with storiesHierarchies prop 1`] = `
<div
class="css-3dwd22"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots ui/stories/TextFilter with filterText 1`] = `
exports[`Storyshots UI|stories/TextFilter with filterText 1`] = `
<div
class="css-79elbk"
>
Expand All @@ -19,7 +19,7 @@ exports[`Storyshots ui/stories/TextFilter with filterText 1`] = `
</div>
`;

exports[`Storyshots ui/stories/TextFilter without filterText 1`] = `
exports[`Storyshots UI|stories/TextFilter without filterText 1`] = `
<div
class="css-79elbk"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const decorator = withLifecyle({
const storiesHierarchies = createHierarchies([{ kind: 'kk', namespaces: ['kk'], stories: ['bb'] }]);
const openShortcutsHelp = action('openShortcutsHelp');
const onStoryFilter = action('onStoryFilter');
storiesOf('ui/stories/StoriesPanel', module)
storiesOf('UI|stories/StoriesPanel', module)
.addDecorator(decorator)
.add('default', () => (
<StoriesPanel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots ui/stories/Stories empty 1`] = `
exports[`Storyshots UI|stories/Stories empty 1`] = `
<div
class="css-7w6khc"
>
Expand All @@ -20,7 +20,7 @@ exports[`Storyshots ui/stories/Stories empty 1`] = `
</div>
`;

exports[`Storyshots ui/stories/Stories simple 1`] = `
exports[`Storyshots UI|stories/Stories simple 1`] = `
<div
class="css-7w6khc"
>
Expand Down Expand Up @@ -178,7 +178,7 @@ exports[`Storyshots ui/stories/Stories simple 1`] = `
</div>
`;

exports[`Storyshots ui/stories/Stories with hierarchy - hierarchySeparator is defined 1`] = `
exports[`Storyshots UI|stories/Stories with hierarchy - hierarchySeparator is defined 1`] = `
<div
class="css-7w6khc"
>
Expand Down Expand Up @@ -436,7 +436,7 @@ exports[`Storyshots ui/stories/Stories with hierarchy - hierarchySeparator is de
</div>
`;

exports[`Storyshots ui/stories/Stories with highlighting when storiesFilter is provided 1`] = `
exports[`Storyshots UI|stories/Stories with highlighting when storiesFilter is provided 1`] = `
<div
class="css-7w6khc"
>
Expand Down Expand Up @@ -659,7 +659,7 @@ exports[`Storyshots ui/stories/Stories with highlighting when storiesFilter is p
</div>
`;

exports[`Storyshots ui/stories/Stories without hierarchy - hierarchySeparator is defined 1`] = `
exports[`Storyshots UI|stories/Stories without hierarchy - hierarchySeparator is defined 1`] = `
<div
class="css-7w6khc"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const decorator = withLifecyle({
},
});

storiesOf('ui/stories/Stories', module)
storiesOf('UI|stories/Stories', module)
.addDecorator(decorator)
.add('empty', () => (
<Stories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TextFilter from './text_filter';

const onChange = action('onChange');
const onClear = action('onClear');
storiesOf('ui/stories/TextFilter', module)
storiesOf('UI|stories/TextFilter', module)
.add('without filterText', () => <TextFilter onChange={onChange} onClear={onClear} />)
.add('with filterText', () => (
<TextFilter text="Filter Text" onChange={onChange} onClear={onClear} />
Expand Down