From 5e9598e7e306d8e6dd3c0af9a07c02935154c7dc Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Sat, 4 Jan 2020 14:40:04 -0500 Subject: [PATCH 1/4] Correct the file path for the Button story --- app/react/src/demo/Welcome.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/src/demo/Welcome.tsx b/app/react/src/demo/Welcome.tsx index e941571d3240..fb091ca44f54 100644 --- a/app/react/src/demo/Welcome.tsx +++ b/app/react/src/demo/Welcome.tsx @@ -151,7 +151,7 @@ const Welcome: FunctionComponent = ({ showApp }) => ( You can also edit those components and see changes right away.
(Try editing the Button stories located at  - src/stories/index.js + src/stories/0-Welcome.stories.js .)

From 2db48fd44d4577177eb0f60889d58bcf7d302d75 Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Sun, 5 Jan 2020 16:35:47 -0500 Subject: [PATCH 2/4] Update Welcome.tsx --- app/react/src/demo/Welcome.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/src/demo/Welcome.tsx b/app/react/src/demo/Welcome.tsx index fb091ca44f54..67ba2904f23e 100644 --- a/app/react/src/demo/Welcome.tsx +++ b/app/react/src/demo/Welcome.tsx @@ -151,7 +151,7 @@ const Welcome: FunctionComponent = ({ showApp }) => ( You can also edit those components and see changes right away.
(Try editing the Button stories located at  - src/stories/0-Welcome.stories.js + src/stories/1-Button.stories.js .)

From fdcd08e93c27fe6ca65833d0aeca994097d53d01 Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Sun, 5 Jan 2020 16:46:15 -0500 Subject: [PATCH 3/4] Update the Button story file path for the others --- examples/mithril-kitchen-sink/src/Welcome.js | 2 +- examples/preact-kitchen-sink/src/Welcome.js | 2 +- lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js | 2 +- lib/cli/generators/PREACT/template-csf/stories/Welcome.js | 2 +- lib/cli/generators/RAX/template-csf/stories/Welcome.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/mithril-kitchen-sink/src/Welcome.js b/examples/mithril-kitchen-sink/src/Welcome.js index 3826e784d534..7a3cff5b761c 100644 --- a/examples/mithril-kitchen-sink/src/Welcome.js +++ b/examples/mithril-kitchen-sink/src/Welcome.js @@ -109,7 +109,7 @@ const Welcome = { You can also edit those components and see changes right away.
(Try editing the Button stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/examples/preact-kitchen-sink/src/Welcome.js b/examples/preact-kitchen-sink/src/Welcome.js index fc7649231ddd..c9c86cd43780 100644 --- a/examples/preact-kitchen-sink/src/Welcome.js +++ b/examples/preact-kitchen-sink/src/Welcome.js @@ -112,7 +112,7 @@ const Welcome = ({ showApp }) => ( You can also edit those components and see changes right away.
(Try editing the Button stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js b/lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js index 2c0f425a5f8c..51b005563ce5 100644 --- a/lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js +++ b/lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js @@ -150,7 +150,7 @@ const Welcome = { You can also edit those components and see changes right away.
(Try editing the Button stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/lib/cli/generators/PREACT/template-csf/stories/Welcome.js b/lib/cli/generators/PREACT/template-csf/stories/Welcome.js index 3a8e289817f4..de792f888c55 100644 --- a/lib/cli/generators/PREACT/template-csf/stories/Welcome.js +++ b/lib/cli/generators/PREACT/template-csf/stories/Welcome.js @@ -101,7 +101,7 @@ const Welcome = ({ showApp }) => ( You can also edit those components and see changes right away.
(Try editing the Button stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/lib/cli/generators/RAX/template-csf/stories/Welcome.js b/lib/cli/generators/RAX/template-csf/stories/Welcome.js index 2c590d205b9a..340844748cd3 100644 --- a/lib/cli/generators/RAX/template-csf/stories/Welcome.js +++ b/lib/cli/generators/RAX/template-csf/stories/Welcome.js @@ -92,7 +92,7 @@ const Welcome = ({ showApp }) => (

Just like that, you can add your own components as stories. You can also edit those components and see changes right away. (Try editing the Button stories located - at src/stories/index.js + at src/stories/1-Button.stories.js .)

From 5db1f17bcd6d7cb1fde836e1357c53887bb198c1 Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Mon, 6 Jan 2020 20:02:13 -0500 Subject: [PATCH 4/4] Update snapshots --- .../stories/__snapshots__/storyshot.enzyme.test.js.snap | 4 ++-- .../stories/__snapshots__/storyshot.shallow.test.js.snap | 4 ++-- .../__snapshots__/storyshot.shallowWithOptions.test.js.snap | 4 ++-- .../storyshot.snapshotWithOptionsFunction.test.js.snap | 4 ++-- .../required_with_context/__snapshots__/Welcome.stories.foo | 2 +- .../__snapshots__/Welcome.stories.storyshot | 4 ++-- .../src/stories/__snapshots__/welcome.stories.storyshot | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.enzyme.test.js.snap b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.enzyme.test.js.snap index 75ec281cdcdc..2c7cbf790b68 100644 --- a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.enzyme.test.js.snap +++ b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.enzyme.test.js.snap @@ -246,7 +246,7 @@ exports[`Storyshots Welcome MDX to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .) @@ -450,7 +450,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .) diff --git a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallow.test.js.snap b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallow.test.js.snap index 445c7ba9a4fa..caccf51b2609 100644 --- a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallow.test.js.snap +++ b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallow.test.js.snap @@ -139,7 +139,7 @@ exports[`Storyshots Welcome MDX to Storybook 1`] = ` stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

@@ -213,7 +213,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallowWithOptions.test.js.snap b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallowWithOptions.test.js.snap index 445c7ba9a4fa..caccf51b2609 100644 --- a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallowWithOptions.test.js.snap +++ b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.shallowWithOptions.test.js.snap @@ -139,7 +139,7 @@ exports[`Storyshots Welcome MDX to Storybook 1`] = ` stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

@@ -213,7 +213,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` stories located at  - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.snapshotWithOptionsFunction.test.js.snap b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.snapshotWithOptionsFunction.test.js.snap index 30257648479e..8a70ef0ff961 100644 --- a/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.snapshotWithOptionsFunction.test.js.snap +++ b/addons/storyshots/storyshots-core/stories/__snapshots__/storyshot.snapshotWithOptionsFunction.test.js.snap @@ -213,7 +213,7 @@ exports[`Storyshots Welcome MDX to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .)

@@ -387,7 +387,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.foo b/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.foo index 4662f49c8761..9f31125b1177 100644 --- a/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.foo +++ b/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.foo @@ -117,7 +117,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.storyshot b/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.storyshot index 97712dfd14e0..357ca8ea27ac 100644 --- a/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.storyshot +++ b/addons/storyshots/storyshots-core/stories/required_with_context/__snapshots__/Welcome.stories.storyshot @@ -117,7 +117,7 @@ exports[`Storyshots Welcome MDX to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .)

@@ -291,7 +291,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .)

diff --git a/examples/preact-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot b/examples/preact-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot index 9ab4da81238d..5d740bb097a3 100644 --- a/examples/preact-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot +++ b/examples/preact-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot @@ -128,7 +128,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` } } > - src/stories/index.js + src/stories/1-Button.stories.js .)