From da8e1e1579eb17a26e8c0bb0c61680ecc679c9e8 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Thu, 7 Mar 2024 11:59:43 -0600 Subject: [PATCH 01/11] remove `UploadButton` from workflow `ToolBox` --- client/src/components/Panels/ToolBox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Panels/ToolBox.vue b/client/src/components/Panels/ToolBox.vue index 7296116bc834..29698f105af4 100644 --- a/client/src/components/Panels/ToolBox.vue +++ b/client/src/components/Panels/ToolBox.vue @@ -253,7 +253,7 @@ function setButtonText() { @onQuery="(q) => (query = q)" @onResults="onResults" />
- +
From b20a52b4c62a3387ac434dcb51e7ea5b2be6559f Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Thu, 7 Mar 2024 12:00:11 -0600 Subject: [PATCH 02/11] fetch panel view in case the view string changes but panel isn't stored This can happen if the user has Galaxy open on 2 windows, and they changed the panel view, it will show up on one, and would keep loading on the other since the panel isn't populated (panel string is stored in `localStorage` and panel views in the pinia store; both don't get updated simultaneously. --- client/src/components/Panels/ToolPanel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/Panels/ToolPanel.vue b/client/src/components/Panels/ToolPanel.vue index b95fbaf2ebe1..fa7f599df5ae 100644 --- a/client/src/components/Panels/ToolPanel.vue +++ b/client/src/components/Panels/ToolPanel.vue @@ -34,7 +34,7 @@ const emit = defineEmits<{ const arePanelsFetched = ref(false); const toolStore = useToolStore(); -const { currentPanelView, defaultPanelView, isPanelPopulated, loading, panelViews } = storeToRefs(toolStore); +const { currentPanelView, defaultPanelView, isPanelPopulated, loading, panel, panelViews } = storeToRefs(toolStore); const loadingView = ref(undefined); const query = ref(""); @@ -62,7 +62,7 @@ watch( watch( () => currentPanelView.value, async (newVal) => { - if (!newVal && arePanelsFetched.value) { + if ((!newVal || !panel.value[newVal]) && arePanelsFetched.value) { await initializeTools(); } } From 8bc5c7a88646bd3646050029504319453384fc3e Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Thu, 7 Mar 2024 12:21:38 -0600 Subject: [PATCH 03/11] convert `FavoritesButton` to composition+ts... ... as this also fixes the "could not find icon" error. --- .../Panels/Buttons/FavoritesButton.vue | 114 +++++++++--------- 1 file changed, 59 insertions(+), 55 deletions(-) diff --git a/client/src/components/Panels/Buttons/FavoritesButton.vue b/client/src/components/Panels/Buttons/FavoritesButton.vue index 6c375eb30100..c7d285bb4253 100644 --- a/client/src/components/Panels/Buttons/FavoritesButton.vue +++ b/client/src/components/Panels/Buttons/FavoritesButton.vue @@ -1,5 +1,61 @@ + + - - From 07deeffc0c33f701c4c520f428ba8f694e7a20b4 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Thu, 7 Mar 2024 18:14:43 -0600 Subject: [PATCH 04/11] sync tool panel `filterText` to favorited tool(s) Fixes part 1 of https://github.com/galaxyproject/galaxy/issues/17150 --- .../components/Panels/Common/ToolSearch.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/client/src/components/Panels/Common/ToolSearch.vue b/client/src/components/Panels/Common/ToolSearch.vue index 4f4e326c12ec..2b94c93a53ae 100644 --- a/client/src/components/Panels/Common/ToolSearch.vue +++ b/client/src/components/Panels/Common/ToolSearch.vue @@ -1,9 +1,10 @@