From 62ffa9c39a4e03ea3ff1232cf0b3f496c84a01c2 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 25 Aug 2022 18:09:09 +0500 Subject: [PATCH] Adding menu options in sidebar, and improving order (#3713) * Adding category and board options at the top * Updating UI * Updating test * Updating test * Updating icon * Fixing bug and translation * Updating createCategory component * Removing unused vars * Removing unused vars * Updating UI * fixed tests * fixed tests * fixed tests * Updating test Co-authored-by: Mattermod Co-authored-by: Harshil Sharma --- .../__snapshots__/boardSelector.test.tsx.snap | 6 +- .../webapp/src/components/boardSelector.scss | 9 +- webapp/i18n/en.json | 3 +- .../confirmationDialogBox.test.tsx.snap | 4 +- .../__snapshots__/dialog.test.tsx.snap | 4 +- .../boardsSwitcher/boardsSwitcher.scss | 14 +- .../boardsSwitcher/boardsSwitcher.tsx | 64 +++++++-- .../boardSwitcherDialog.test.tsx.snap | 2 +- .../boardSwitcherDialog.scss | 4 - .../createCategory.test.tsx.snap | 6 +- .../createCategory/createCategory.scss | 26 ++-- .../createCategory/createCategory.test.tsx | 128 ++++++++++++------ .../createCategory/createCategory.tsx | 52 ++++++- webapp/src/components/dialog.scss | 50 ++++--- webapp/src/components/dialog.tsx | 5 +- .../components/searchDialog/searchDialog.scss | 14 +- .../sidebarBoardItem.test.tsx.snap | 108 +++++++-------- .../src/components/sidebar/sidebar.test.tsx | 14 +- webapp/src/components/sidebar/sidebar.tsx | 2 +- .../components/sidebar/sidebarBoardItem.tsx | 29 ++-- .../components/sidebar/sidebarCategory.tsx | 48 ++----- .../viewLimitDialog.test.tsx.snap | 4 +- .../viewLimitDialogWrapper.test.tsx.snap | 4 +- webapp/src/widgets/menu/menu.scss | 1 + 24 files changed, 355 insertions(+), 246 deletions(-) diff --git a/mattermost-plugin/webapp/src/components/__snapshots__/boardSelector.test.tsx.snap b/mattermost-plugin/webapp/src/components/__snapshots__/boardSelector.test.tsx.snap index e81581852..42663e865 100644 --- a/mattermost-plugin/webapp/src/components/__snapshots__/boardSelector.test.tsx.snap +++ b/mattermost-plugin/webapp/src/components/__snapshots__/boardSelector.test.tsx.snap @@ -23,7 +23,7 @@ exports[`components/boardSelector renders with no results 1`] = ` >