From b2f035d75f09b7331da4010c2175ee67442a80bf Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Wed, 14 Feb 2024 11:15:27 -0600 Subject: [PATCH] remove multiview activity and use a singular `Histories` panel This panel "switches" to a multi history selector panel when we are on the multiview route. It also has a button group that routes to the histories list or the multiview. --- .../components/ActivityBar/ActivityBar.vue | 8 +- .../components/History/HistoryScrollList.vue | 2 +- .../src/components/Panels/ActivityPanel.vue | 22 ++- .../src/components/Panels/HistoriesPanel.vue | 142 +++++++++++++-- .../src/components/Panels/MultiviewPanel.vue | 161 ------------------ client/src/stores/activitySetup.ts | 11 -- 6 files changed, 154 insertions(+), 192 deletions(-) delete mode 100644 client/src/components/Panels/MultiviewPanel.vue diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 17e00eb84e09..7c17c97229e7 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -18,7 +18,6 @@ import UploadItem from "./Items/UploadItem.vue"; import ContextMenu from "@/components/Common/ContextMenu.vue"; import FlexPanel from "@/components/Panels/FlexPanel.vue"; import HistoriesPanel from "@/components/Panels/HistoriesPanel.vue"; -import MultiviewPanel from "@/components/Panels/MultiviewPanel.vue"; import NotificationsPanel from "@/components/Panels/NotificationsPanel.vue"; import ToolPanel from "@/components/Panels/ToolPanel.vue"; import WorkflowPanel from "@/components/Panels/WorkflowPanel.vue"; @@ -182,7 +181,7 @@ function toggleContextMenu(evt: MouseEvent) { :to="activity.to" @click="onToggleSidebar()" /> - - - - + diff --git a/client/src/components/History/HistoryScrollList.vue b/client/src/components/History/HistoryScrollList.vue index 7e73c924556d..c3fe379e0ce4 100644 --- a/client/src/components/History/HistoryScrollList.vue +++ b/client/src/components/History/HistoryScrollList.vue @@ -188,7 +188,7 @@ function openInMulti(history: HistorySummary) { historyStore.pinHistory(history.id); emit("update:show-modal", false); if (props.inPanel && !isMultiviewPanel.value) { - useUserStore().toggleSideBar("multiview"); + useUserStore().toggleSideBar("histories"); } } diff --git a/client/src/components/Panels/ActivityPanel.vue b/client/src/components/Panels/ActivityPanel.vue index 7d8de02d0647..d6c38ab741e2 100644 --- a/client/src/components/Panels/ActivityPanel.vue +++ b/client/src/components/Panels/ActivityPanel.vue @@ -1,12 +1,14 @@ @@ -70,6 +82,10 @@ const emit = defineEmits(["goToAll"]); .activity-panel-footer { margin-top: 0.5rem; + + .btn { + width: 100%; + } } } diff --git a/client/src/components/Panels/HistoriesPanel.vue b/client/src/components/Panels/HistoriesPanel.vue index 4762c2e93fbd..c1d0c12a4189 100644 --- a/client/src/components/Panels/HistoriesPanel.vue +++ b/client/src/components/Panels/HistoriesPanel.vue @@ -1,24 +1,39 @@ diff --git a/client/src/components/Panels/MultiviewPanel.vue b/client/src/components/Panels/MultiviewPanel.vue deleted file mode 100644 index e86beb32dc2d..000000000000 --- a/client/src/components/Panels/MultiviewPanel.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/client/src/stores/activitySetup.ts b/client/src/stores/activitySetup.ts index e19f988e4426..e793f9b663ef 100644 --- a/client/src/stores/activitySetup.ts +++ b/client/src/stores/activitySetup.ts @@ -82,17 +82,6 @@ export const Activities = [ to: null, visible: true, }, - { - description: "Displays the history selector panel and opens History Multiview in the center panel.", - icon: "fa-columns", - id: "multiview", - mutable: false, - optional: true, - title: "History Multiview", - tooltip: "Select histories to show in History Multiview", - to: "/histories/view_multiple", - visible: true, - }, { description: "Displays all of your datasets across all histories.", icon: "fa-folder",