From 199ab985a0456e824fd67fd8587b8a749063bfdd Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Mon, 28 Mar 2022 11:23:21 +0100 Subject: [PATCH] Merge pull request #7223 from overleaf/ta-storybook-organise Reorganise Storybook Stories GitOrigin-RevId: 91014f49f84c645f87091724f03a007b731a8ad5 --- services/web/frontend/stories/chat.stories.js | 2 +- services/web/frontend/stories/clone-project-modal.stories.js | 2 +- services/web/frontend/stories/contact-us-modal.stories.js | 2 +- services/web/frontend/stories/dropdown.stories.js | 2 +- .../web/frontend/stories/editor-navigation-toolbar.stories.js | 2 +- services/web/frontend/stories/editor-switch.stories.js | 2 +- services/web/frontend/stories/file-tree.stories.js | 2 +- services/web/frontend/stories/file-view.stories.js | 2 +- services/web/frontend/stories/git-bridge-modal.stories.js | 2 +- services/web/frontend/stories/hotkeys-modal.stories.js | 2 +- services/web/frontend/stories/icon.stories.js | 2 +- services/web/frontend/stories/linked-file.stories.js | 2 +- .../modals/create-file/create-file-modal-footer.stories.js | 2 +- .../stories/modals/create-file/create-file-modal.stories.js | 2 +- .../modals/create-file/create-file-name-input.stories.js | 2 +- .../stories/modals/create-file/error-message.stories.js | 2 +- services/web/frontend/stories/outline.stories.js | 2 +- services/web/frontend/stories/pagination.stories.js | 2 +- .../web/frontend/stories/pdf-preview-error-boundary.stories.js | 2 +- services/web/frontend/stories/pdf-preview.stories.js | 2 +- services/web/frontend/stories/pdf-viewer.stories.js | 2 +- services/web/frontend/stories/share-project-modal.stories.js | 2 +- services/web/frontend/stories/use-expand-collapse.stories.js | 2 +- services/web/frontend/stories/word-count-modal.stories.js | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/services/web/frontend/stories/chat.stories.js b/services/web/frontend/stories/chat.stories.js index 708f1e60f8..67298db30f 100644 --- a/services/web/frontend/stories/chat.stories.js +++ b/services/web/frontend/stories/chat.stories.js @@ -69,7 +69,7 @@ export const Loading = args => { } export default { - title: 'Chat', + title: 'Editor / Chat', component: ChatPane, argTypes: { resetUnreadMessages: { action: 'resetUnreadMessages' }, diff --git a/services/web/frontend/stories/clone-project-modal.stories.js b/services/web/frontend/stories/clone-project-modal.stories.js index 1f5e5bd507..f560df8bf5 100644 --- a/services/web/frontend/stories/clone-project-modal.stories.js +++ b/services/web/frontend/stories/clone-project-modal.stories.js @@ -41,7 +41,7 @@ export const SpecificErrorResponse = args => { } export default { - title: 'Modals / Clone Project', + title: 'Editor / Modals / Clone Project', component: CloneProjectModal, args: { show: true, diff --git a/services/web/frontend/stories/contact-us-modal.stories.js b/services/web/frontend/stories/contact-us-modal.stories.js index 354d0899e2..1a6736bd47 100644 --- a/services/web/frontend/stories/contact-us-modal.stories.js +++ b/services/web/frontend/stories/contact-us-modal.stories.js @@ -23,7 +23,7 @@ export const RequestError = args => { } export default { - title: 'Modals / Contact Us', + title: 'Shared / Modals / Contact Us', component: ContactUsModal, args: { show: true, diff --git a/services/web/frontend/stories/dropdown.stories.js b/services/web/frontend/stories/dropdown.stories.js index f588cd8f40..57a3996983 100644 --- a/services/web/frontend/stories/dropdown.stories.js +++ b/services/web/frontend/stories/dropdown.stories.js @@ -32,7 +32,7 @@ Customized.args = { } export default { - title: 'Dropdown', + title: 'Shared / Components / Dropdown', component: ControlledDropdown, args: { bsStyle: 'default', diff --git a/services/web/frontend/stories/editor-navigation-toolbar.stories.js b/services/web/frontend/stories/editor-navigation-toolbar.stories.js index c2b4df7ae7..0b02685fe4 100644 --- a/services/web/frontend/stories/editor-navigation-toolbar.stories.js +++ b/services/web/frontend/stories/editor-navigation-toolbar.stories.js @@ -25,7 +25,7 @@ ManyConnectedUsers.args = { } export default { - title: 'EditorNavigationToolbar', + title: 'Editor / Toolbar', component: ToolbarHeader, argTypes: { goToUser: { action: 'goToUser' }, diff --git a/services/web/frontend/stories/editor-switch.stories.js b/services/web/frontend/stories/editor-switch.stories.js index d0fe03f25d..2b5ca8da42 100644 --- a/services/web/frontend/stories/editor-switch.stories.js +++ b/services/web/frontend/stories/editor-switch.stories.js @@ -3,7 +3,7 @@ import { setupContext } from './fixtures/context' import { withContextRoot } from './utils/with-context-root' export default { - title: 'Editor Switch', + title: 'Editor / Switch', component: EditorSwitch, } diff --git a/services/web/frontend/stories/file-tree.stories.js b/services/web/frontend/stories/file-tree.stories.js index fe3abf24e5..e2b7f59cd0 100644 --- a/services/web/frontend/stories/file-tree.stories.js +++ b/services/web/frontend/stories/file-tree.stories.js @@ -146,7 +146,7 @@ export const FilesLimit = args => { } export default { - title: 'File Tree', + title: 'Editor / File Tree', component: FileTreeRoot, args: { setStartedFreeTrial: () => { diff --git a/services/web/frontend/stories/file-view.stories.js b/services/web/frontend/stories/file-view.stories.js index 8b79368d6d..ad08dab13b 100644 --- a/services/web/frontend/stories/file-view.stories.js +++ b/services/web/frontend/stories/file-view.stories.js @@ -247,7 +247,7 @@ UploadedFile.args = { } export default { - title: 'FileView', + title: 'Editor / FileView', component: FileView, argTypes: { storeReferencesKeys: { action: 'store references keys' }, diff --git a/services/web/frontend/stories/git-bridge-modal.stories.js b/services/web/frontend/stories/git-bridge-modal.stories.js index d57c1b6ed4..34843a9670 100644 --- a/services/web/frontend/stories/git-bridge-modal.stories.js +++ b/services/web/frontend/stories/git-bridge-modal.stories.js @@ -31,7 +31,7 @@ TeaserModal.args = { } export default { - title: 'Modals / Git Bridge', + title: 'Editor / Modals / Git Bridge', component: GitBridgeModal, args: { show: true, diff --git a/services/web/frontend/stories/hotkeys-modal.stories.js b/services/web/frontend/stories/hotkeys-modal.stories.js index 629ccb1bc2..a32896ecf5 100644 --- a/services/web/frontend/stories/hotkeys-modal.stories.js +++ b/services/web/frontend/stories/hotkeys-modal.stories.js @@ -13,7 +13,7 @@ export const MacModifier = args => { } export default { - title: 'Modals / Hotkeys', + title: 'Editor / Modals / Hotkeys', component: HotkeysModal, args: { animation: false, diff --git a/services/web/frontend/stories/icon.stories.js b/services/web/frontend/stories/icon.stories.js index d9374606dd..d0f0d2d885 100644 --- a/services/web/frontend/stories/icon.stories.js +++ b/services/web/frontend/stories/icon.stories.js @@ -45,6 +45,6 @@ AccessibilityLabel.args = { } export default { - title: 'Icon', + title: 'Shared / Components / Icon', component: Icon, } diff --git a/services/web/frontend/stories/linked-file.stories.js b/services/web/frontend/stories/linked-file.stories.js index fed3417aef..587c4e0e67 100644 --- a/services/web/frontend/stories/linked-file.stories.js +++ b/services/web/frontend/stories/linked-file.stories.js @@ -13,7 +13,7 @@ MendeleyLinkedFile.args = { } export default { - title: 'LinkedFileInfo', + title: 'Editor / LinkedFileInfo', component: LinkedFileInfo, args: { file: { diff --git a/services/web/frontend/stories/modals/create-file/create-file-modal-footer.stories.js b/services/web/frontend/stories/modals/create-file/create-file-modal-footer.stories.js index fd2cd1a872..224850f494 100644 --- a/services/web/frontend/stories/modals/create-file/create-file-modal-footer.stories.js +++ b/services/web/frontend/stories/modals/create-file/create-file-modal-footer.stories.js @@ -43,7 +43,7 @@ FileLimitError.args = { } export default { - title: 'Modals / Create File / Footer', + title: 'Editor / Modals / Create File / Footer', component: FileTreeModalCreateFileFooterContent, args: { fileCount: { diff --git a/services/web/frontend/stories/modals/create-file/create-file-modal.stories.js b/services/web/frontend/stories/modals/create-file/create-file-modal.stories.js index 10db775e41..b4c7fb5315 100644 --- a/services/web/frontend/stories/modals/create-file/create-file-modal.stories.js +++ b/services/web/frontend/stories/modals/create-file/create-file-modal.stories.js @@ -97,6 +97,6 @@ FileLimitReached.decorators = [ ] export default { - title: 'Modals / Create File', + title: 'Editor / Modals / Create File', component: FileTreeModalCreateFile, } diff --git a/services/web/frontend/stories/modals/create-file/create-file-name-input.stories.js b/services/web/frontend/stories/modals/create-file/create-file-name-input.stories.js index b0a649d57d..f61e7ab723 100644 --- a/services/web/frontend/stories/modals/create-file/create-file-name-input.stories.js +++ b/services/web/frontend/stories/modals/create-file/create-file-name-input.stories.js @@ -58,7 +58,7 @@ BlockedError.args = { } export default { - title: 'Modals / Create File / File Name Input', + title: 'Editor / Modals / Create File / File Name Input', component: FileTreeCreateNameInput, decorators: [ModalBodyDecorator, ModalContentDecorator], } diff --git a/services/web/frontend/stories/modals/create-file/error-message.stories.js b/services/web/frontend/stories/modals/create-file/error-message.stories.js index 3c29babdae..c436aac351 100644 --- a/services/web/frontend/stories/modals/create-file/error-message.stories.js +++ b/services/web/frontend/stories/modals/create-file/error-message.stories.js @@ -103,6 +103,6 @@ export const SpecificClassErrors = () => { } export default { - title: 'Modals / Create File / Error Message', + title: 'Editor / Modals / Create File / Error Message', component: ErrorMessage, } diff --git a/services/web/frontend/stories/outline.stories.js b/services/web/frontend/stories/outline.stories.js index 2ee30b541b..2af8b52f4d 100644 --- a/services/web/frontend/stories/outline.stories.js +++ b/services/web/frontend/stories/outline.stories.js @@ -43,7 +43,7 @@ NonTexFile.args = { } export default { - title: 'Outline', + title: 'Editor / Outline', component: OutlinePane, argTypes: { jumpToLine: { action: 'jumpToLine' }, diff --git a/services/web/frontend/stories/pagination.stories.js b/services/web/frontend/stories/pagination.stories.js index 7a46750df7..67d32738c8 100644 --- a/services/web/frontend/stories/pagination.stories.js +++ b/services/web/frontend/stories/pagination.stories.js @@ -5,7 +5,7 @@ export const Interactive = args => { } export default { - title: 'Pagination', + title: 'Shared / Components / Pagination', component: Pagination, args: { currentPage: 1, diff --git a/services/web/frontend/stories/pdf-preview-error-boundary.stories.js b/services/web/frontend/stories/pdf-preview-error-boundary.stories.js index 8d2928a257..c4d1ed8abd 100644 --- a/services/web/frontend/stories/pdf-preview-error-boundary.stories.js +++ b/services/web/frontend/stories/pdf-preview-error-boundary.stories.js @@ -3,7 +3,7 @@ import { setupContext } from './fixtures/context' import { withContextRoot } from './utils/with-context-root' export default { - title: 'PDF Preview / Error Boundary', + title: 'Editor / PDF Preview / Error Boundary', component: ErrorBoundaryFallback, } diff --git a/services/web/frontend/stories/pdf-preview.stories.js b/services/web/frontend/stories/pdf-preview.stories.js index 880457f59a..06ef750e95 100644 --- a/services/web/frontend/stories/pdf-preview.stories.js +++ b/services/web/frontend/stories/pdf-preview.stories.js @@ -26,7 +26,7 @@ import { cloneDeep } from 'lodash' setupContext() export default { - title: 'PDF Preview', + title: 'Editor / PDF Preview', component: PdfPreview, subcomponents: { PdfPreviewHybridToolbar, diff --git a/services/web/frontend/stories/pdf-viewer.stories.js b/services/web/frontend/stories/pdf-viewer.stories.js index 9b4af0836b..270029b446 100644 --- a/services/web/frontend/stories/pdf-viewer.stories.js +++ b/services/web/frontend/stories/pdf-viewer.stories.js @@ -14,7 +14,7 @@ import { useEffect } from 'react' setupContext() export default { - title: 'PDF Viewer', + title: 'Editor / PDF Viewer', component: PdfViewer, } diff --git a/services/web/frontend/stories/share-project-modal.stories.js b/services/web/frontend/stories/share-project-modal.stories.js index 9652c97e6e..454e65cbfd 100644 --- a/services/web/frontend/stories/share-project-modal.stories.js +++ b/services/web/frontend/stories/share-project-modal.stories.js @@ -163,7 +163,7 @@ const project = { } export default { - title: 'Modals / Share Project', + title: 'Editor / Modals / Share Project', component: ShareProjectModal, args: { show: true, diff --git a/services/web/frontend/stories/use-expand-collapse.stories.js b/services/web/frontend/stories/use-expand-collapse.stories.js index 07ba4b77cd..8c5000b063 100644 --- a/services/web/frontend/stories/use-expand-collapse.stories.js +++ b/services/web/frontend/stories/use-expand-collapse.stories.js @@ -131,5 +131,5 @@ const horizontalContents = ( ) export default { - title: 'useExpandCollapse', + title: 'Shared / Hooks / useExpandCollapse', } diff --git a/services/web/frontend/stories/word-count-modal.stories.js b/services/web/frontend/stories/word-count-modal.stories.js index c48c8cbc72..79f0ca7e16 100644 --- a/services/web/frontend/stories/word-count-modal.stories.js +++ b/services/web/frontend/stories/word-count-modal.stories.js @@ -56,7 +56,7 @@ export const ErrorResponse = args => { } export default { - title: 'Modals / Word Count', + title: 'Editor / Modals / Word Count', component: WordCountModal, args: { show: true,