From 0559a543ff828dfe7d72abfb9c4729821c258f87 Mon Sep 17 00:00:00 2001 From: Jamie Maguire Date: Wed, 31 Jul 2024 15:49:22 +0100 Subject: [PATCH] feat(pie-storybook): DSW-000 alphabetically sort components and stories (#1662) * alphabetically sort components and stories * sort components but not stories * changeset --- .changeset/real-clocks-swim.md | 5 +++++ apps/pie-storybook/.storybook/preview.ts | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/real-clocks-swim.md diff --git a/.changeset/real-clocks-swim.md b/.changeset/real-clocks-swim.md new file mode 100644 index 0000000000..e48da7c799 --- /dev/null +++ b/.changeset/real-clocks-swim.md @@ -0,0 +1,5 @@ +--- +"pie-storybook": minor +--- + +[Changed] - Alphabetically sort components in Storybook sidebar diff --git a/apps/pie-storybook/.storybook/preview.ts b/apps/pie-storybook/.storybook/preview.ts index 8245acbdb7..6edc018d1d 100644 --- a/apps/pie-storybook/.storybook/preview.ts +++ b/apps/pie-storybook/.storybook/preview.ts @@ -90,6 +90,11 @@ export default { viewport: { viewports: CUSTOM_VIEWPORTS }, - layout: 'centered' + layout: 'centered', + options: { + storySort: { + method: 'alphabetical', + } + } } };