From 780f722c6086858a47b35a015f4da4ea7212a518 Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 19 Dec 2022 19:57:56 -0500 Subject: [PATCH 01/57] Add d-flex parent Place layout Use components directly Add padding to center panel, scope styles Remove unused wrapper Align dimensions to previous layout Convert analysis module to composition api Add navitem to sidebar Use navbar vertical for now Move upload-button to sidebar Adjust background color Add tooltip fix orientation Remove unused imports, restore conditions Align side panel size --- client/src/components/Panels/ToolBox.vue | 4 +- client/src/components/Upload/UploadButton.vue | 14 +- .../src/entry/analysis/modules/Analysis.vue | 166 ++++++++++-------- 3 files changed, 102 insertions(+), 82 deletions(-) diff --git a/client/src/components/Panels/ToolBox.vue b/client/src/components/Panels/ToolBox.vue index 5d8a462abdd6..49faacfb958f 100644 --- a/client/src/components/Panels/ToolBox.vue +++ b/client/src/components/Panels/ToolBox.vue @@ -30,7 +30,6 @@ @onQuery="onQuery" @onResults="onResults" />
-
@@ -71,7 +70,7 @@ import ToolSection from "./Common/ToolSection"; import ToolSearch from "./Common/ToolSearch"; import { UploadButton } from "components/Upload"; -import { useGlobalUploadModal } from "composables/globalUploadModal"; +import { openGlobalUploadModal } from "components/Upload"; import FavoritesButton from "./Buttons/FavoritesButton"; import PanelViewButton from "./Buttons/PanelViewButton"; import { filterToolSections, filterTools, hasResults, hideToolsSection } from "./utilities"; @@ -81,7 +80,6 @@ import _l from "utils/localization"; export default { components: { - UploadButton, FavoritesButton, PanelViewButton, ToolSection, diff --git a/client/src/components/Upload/UploadButton.vue b/client/src/components/Upload/UploadButton.vue index cfa90e5ae881..8ce67ff92796 100644 --- a/client/src/components/Upload/UploadButton.vue +++ b/client/src/components/Upload/UploadButton.vue @@ -1,25 +1,23 @@ + + From b772cb3605a1cb0e9a0d5a70ff5e3bc9010ec733 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Wed, 18 Jan 2023 16:47:46 +0100 Subject: [PATCH 02/57] Update ToolBox.vue --- client/src/components/Panels/ToolBox.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/components/Panels/ToolBox.vue b/client/src/components/Panels/ToolBox.vue index 49faacfb958f..6c8f880c8c5c 100644 --- a/client/src/components/Panels/ToolBox.vue +++ b/client/src/components/Panels/ToolBox.vue @@ -106,7 +106,6 @@ export default { }, }, setup() { - const { openGlobalUploadModal } = useGlobalUploadModal(); return { openGlobalUploadModal }; }, data() { From 47661c9633af7a5ded9357178d4ef6bf57f97e3f Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Wed, 18 Jan 2023 16:49:45 +0100 Subject: [PATCH 03/57] create `userStore` and persist it add `toggledSideBar` state with default `search` value add `toggleSideBar` action --- client/src/stores/userStore.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 client/src/stores/userStore.ts diff --git a/client/src/stores/userStore.ts b/client/src/stores/userStore.ts new file mode 100644 index 000000000000..b45640d8c860 --- /dev/null +++ b/client/src/stores/userStore.ts @@ -0,0 +1,19 @@ +import { defineStore } from "pinia"; + +interface State { + toggledSideBar: string; +} + +export const useUserStore = defineStore("userStore", { + state: (): State => ({ + toggledSideBar: "search", + }), + actions: { + toggleSideBar(this: State, currentOpen: string) { + this.toggledSideBar = this.toggledSideBar === currentOpen ? "" : currentOpen; + }, + }, + persist: { + paths: ["toggledSideBar"], + }, +}); From adf587fca7682f21e29c21fa9c2b1c01f35253a2 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Wed, 18 Jan 2023 16:53:01 +0100 Subject: [PATCH 04/57] add animation on sidebar toggle, indicate active and use `userStore` to persist state --- .../src/entry/analysis/modules/Analysis.vue | 74 ++++++++++++++++--- 1 file changed, 62 insertions(+), 12 deletions(-) diff --git a/client/src/entry/analysis/modules/Analysis.vue b/client/src/entry/analysis/modules/Analysis.vue index 39e560aa5df6..5b9b049fd13d 100644 --- a/client/src/entry/analysis/modules/Analysis.vue +++ b/client/src/entry/analysis/modules/Analysis.vue @@ -1,17 +1,19 @@ + + + diff --git a/client/src/entry/analysis/modules/Analysis.vue b/client/src/entry/analysis/modules/Analysis.vue index 5b9b049fd13d..9efab06fb90d 100644 --- a/client/src/entry/analysis/modules/Analysis.vue +++ b/client/src/entry/analysis/modules/Analysis.vue @@ -2,13 +2,11 @@ import { getGalaxyInstance } from "app"; import CenterFrame from "./CenterFrame"; import { useUserStore } from "@/stores/userStore"; -import HistoryIndex from "@/components/History/Index"; +import HistoryIndex from "@/components/History/Index.vue"; +import ActivityBar from "@/components/Masthead/ActivityBar.vue"; import { WindowManager } from "@/layout/window-manager"; -import ToolBox from "@/components/Panels/ProviderAwareToolBox"; -import { UploadButton } from "@/components/Upload"; import { useRoute, useRouter } from "vue-router/composables"; import { computed, ref, onMounted, onUnmounted } from "vue"; -import DragAndDropModal from "@/components/Upload/DragAndDropModal"; const route = useRoute(); const router = useRouter(); @@ -23,12 +21,6 @@ const showPanels = computed(() => { } return true; }); -const toolBoxProperties = computed(() => { - const Galaxy = getGalaxyInstance(); - return { - storedWorkflowMenuEntries: Galaxy.config.stored_workflow_menu_entries, - }; -}); // methods function hideCenter() { @@ -59,26 +51,7 @@ onUnmounted(() => { + + \ No newline at end of file From 13fcec2eb15ac36e7f878ecc647b9a660e53cdb1 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 15 Feb 2023 10:53:27 -0500 Subject: [PATCH 06/57] Rough cleanout, continue drafting activity bar layout --- .../src/components/Masthead/ActivityBar.vue | 28 ++++----- .../src/entry/analysis/modules/Analysis.vue | 57 +------------------ 2 files changed, 17 insertions(+), 68 deletions(-) diff --git a/client/src/components/Masthead/ActivityBar.vue b/client/src/components/Masthead/ActivityBar.vue index 569ca28bc22e..9dc445c3ed21 100644 --- a/client/src/components/Masthead/ActivityBar.vue +++ b/client/src/components/Masthead/ActivityBar.vue @@ -5,10 +5,7 @@ import { WindowManager } from "@/layout/window-manager"; import { UploadButton } from "@/components/Upload"; import { useRoute, useRouter } from "vue-router/composables"; import { computed, ref } from "vue"; -import CenterFrame from "@/entry/analysis/modules/CenterFrame.vue"; -import HistoryIndex from "@/components/History/Index.vue"; import ToolBox from "@/components/Panels/ProviderAwareToolBox.vue"; -import DragAndDropModal from "@/components/Upload/DragAndDropModal.vue"; const route = useRoute(); const router = useRouter(); @@ -22,9 +19,16 @@ const toolBoxProperties = computed(() => { }; }); +function sidebarIsActive(menuKey) { + return userStore.toggledSideBar === menuKey; +} + +function onToggleSidebar(toggle) { + userStore.toggleSideBar(toggle); +} @@ -57,7 +59,7 @@ const toolBoxProperties = computed(() => { list-style-type: none; } -.left-column { +.left-column-disable { min-width: 15.2rem; max-width: 15.2rem; width: 15.2rem; @@ -71,9 +73,9 @@ const toolBoxProperties = computed(() => { .side-bar { z-index: 100; - width: 2.8rem; - min-width: 2.8rem; - max-width: 2.8rem; + //width: 2.8rem; + //min-width: 2.8rem; + //max-width: 2.8rem; background: $panel-bg-color; } diff --git a/client/src/entry/analysis/modules/Analysis.vue b/client/src/entry/analysis/modules/Analysis.vue index 9efab06fb90d..61c188a9d4ec 100644 --- a/client/src/entry/analysis/modules/Analysis.vue +++ b/client/src/entry/analysis/modules/Analysis.vue @@ -51,7 +51,7 @@ onUnmounted(() => { - \ No newline at end of file + From 2e9638f468c9994e6a73e3ce52e190a932aa4823 Mon Sep 17 00:00:00 2001 From: guerler Date: Sun, 19 Mar 2023 12:23:31 +0300 Subject: [PATCH 07/57] Cleanout classes, fix styling --- .../src/components/Masthead/ActivityBar.vue | 50 ++++--------------- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git a/client/src/components/Masthead/ActivityBar.vue b/client/src/components/Masthead/ActivityBar.vue index 9dc445c3ed21..3b7748dc6e34 100644 --- a/client/src/components/Masthead/ActivityBar.vue +++ b/client/src/components/Masthead/ActivityBar.vue @@ -29,23 +29,21 @@ function onToggleSidebar(toggle) { @@ -53,39 +51,19 @@ function onToggleSidebar(toggle) { diff --git a/client/src/components/ActivityBar/Items/UploadButton.vue b/client/src/components/ActivityBar/Items/UploadButton.vue index 8ce67ff92796..618f43540fa5 100644 --- a/client/src/components/ActivityBar/Items/UploadButton.vue +++ b/client/src/components/ActivityBar/Items/UploadButton.vue @@ -1,7 +1,6 @@ @@ -72,3 +72,13 @@ export default { }, }; + \ No newline at end of file From 8816f4d8ff673cdf748afaf6b6ba02cff62ca298 Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 27 Mar 2023 11:55:08 +0300 Subject: [PATCH 11/57] Rename upload item component --- .../components/ActivityBar/ActivityBar.vue | 69 ++++++++----------- .../components/ActivityBar/ActivityItem.vue | 7 +- .../{UploadButton.vue => UploadItem.vue} | 0 3 files changed, 34 insertions(+), 42 deletions(-) rename client/src/components/ActivityBar/Items/{UploadButton.vue => UploadItem.vue} (100%) diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 11016609b0d8..4fa1ef139147 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -4,7 +4,7 @@ import { useUserStore } from "@/stores/userStore"; import { WindowManager } from "@/layout/window-manager"; import { useRoute, useRouter } from "vue-router/composables"; import { computed, ref } from "vue"; -import UploadButton from "./Items/UploadButton.vue"; +import UploadItem from "./Items/UploadItem.vue"; import ToolBox from "@/components/Panels/ProviderAwareToolBox.vue"; import ActivityItem from "./ActivityItem"; @@ -38,33 +38,33 @@ function onToggleSidebar(toggle) { :is-active="sidebarIsActive('search')" @click="onToggleSidebar('search')" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -106,19 +106,6 @@ function onToggleSidebar(toggle) { display: none; } -.nav-item-active { - border-radius: 0.5rem; - background: $gray-300; -} - -.nav-icon { - height: 2rem; - display: flex; - align-items: center; - align-content: center; - justify-content: center; -} - .panels-enter-active, .panels-leave-active { transition: all 0.3s; diff --git a/client/src/components/ActivityBar/ActivityItem.vue b/client/src/components/ActivityBar/ActivityItem.vue index fc2cb56bc38e..0cde48277793 100644 --- a/client/src/components/ActivityBar/ActivityItem.vue +++ b/client/src/components/ActivityBar/ActivityItem.vue @@ -25,10 +25,11 @@ const emit = defineEmits<{ @@ -72,13 +74,3 @@ export default { }, }; - \ No newline at end of file diff --git a/client/src/style/scss/theme/blue.scss b/client/src/style/scss/theme/blue.scss index dea3b86c847f..ce44133eeedb 100644 --- a/client/src/style/scss/theme/blue.scss +++ b/client/src/style/scss/theme/blue.scss @@ -129,7 +129,7 @@ $portlet-bg-color: $gray-200; // Borders $border-radius-base: 0.1875rem; $border-radius-large: 0.3125rem; -$border-radius-extralarge: 1rem; +$border-radius-extralarge: 0.7rem; $border-default: 1px solid $border-color; // Buttons From 2e970cce71bb066fb6d306b592949753633f83fc Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 27 Mar 2023 14:25:13 +0300 Subject: [PATCH 13/57] Re-use activity item component for uploader, adjust style --- .../components/ActivityBar/ActivityItem.vue | 13 +++--- .../ActivityBar/Items/UploadItem.vue | 45 +++++++------------ client/src/style/scss/upload.scss | 6 ++- 3 files changed, 29 insertions(+), 35 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityItem.vue b/client/src/components/ActivityBar/ActivityItem.vue index 3a7fc10bff23..1c0dffc4099a 100644 --- a/client/src/components/ActivityBar/ActivityItem.vue +++ b/client/src/components/ActivityBar/ActivityItem.vue @@ -23,15 +23,18 @@ const emit = defineEmits<{ diff --git a/client/src/components/ActivityBar/Items/UploadItem.vue b/client/src/components/ActivityBar/Items/UploadItem.vue index fe45584c351a..bce1befd3208 100644 --- a/client/src/components/ActivityBar/Items/UploadItem.vue +++ b/client/src/components/ActivityBar/Items/UploadItem.vue @@ -1,44 +1,33 @@ diff --git a/client/src/components/ActivityBar/Items/UploadItem.vue b/client/src/components/ActivityBar/Items/UploadItem.vue index 9dfbab536c1a..1bd62ce57bc9 100644 --- a/client/src/components/ActivityBar/Items/UploadItem.vue +++ b/client/src/components/ActivityBar/Items/UploadItem.vue @@ -3,19 +3,10 @@ id="tool-panel-upload-button" title="Upload" icon="upload" + :progress-percentage="percentage" + :progress-status="status" :tooltip="tooltip" - @click="showUploadDialog"> - - + @click="showUploadDialog" /> + + diff --git a/client/src/components/Popper/usePopper.ts b/client/src/components/Popper/usePopper.ts index 0589b43e31ca..f19c15bcafeb 100644 --- a/client/src/components/Popper/usePopper.ts +++ b/client/src/components/Popper/usePopper.ts @@ -133,7 +133,7 @@ export function usePopperjs( clearTimeout(timer.value); timer.value = setTimeout(() => { doOpen(); - }, unref(options?.delayOnMouseover) ?? 200); + }, unref(options?.delayOnMouseover) ?? 100); } }; const doMouseout = () => { @@ -143,7 +143,7 @@ export function usePopperjs( clearTimeout(timer.value); timer.value = setTimeout(() => { doClose(); - }, unref(options?.delayOnMouseout) ?? 200); + }, unref(options?.delayOnMouseout) ?? 100); } }; From 8bb421e2b1ab957e28de58de26f530672bdca023 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 12:07:49 +0300 Subject: [PATCH 25/57] Convert upload item to composition api and typescript --- .../components/ActivityBar/ActivityItem.vue | 3 +- .../ActivityBar/Items/UploadItem.vue | 86 +++++++++---------- 2 files changed, 41 insertions(+), 48 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityItem.vue b/client/src/components/ActivityBar/ActivityItem.vue index 0081356c8669..54bfe471a8fb 100644 --- a/client/src/components/ActivityBar/ActivityItem.vue +++ b/client/src/components/ActivityBar/ActivityItem.vue @@ -55,7 +55,8 @@ const emit = defineEmits<{
- {{ tooltip | l }} + {{ tooltip | l }} + No tooltip available for this item
diff --git a/client/src/components/ActivityBar/Items/UploadItem.vue b/client/src/components/ActivityBar/Items/UploadItem.vue index 4c96ab1ea2ff..913e508f4309 100644 --- a/client/src/components/ActivityBar/Items/UploadItem.vue +++ b/client/src/components/ActivityBar/Items/UploadItem.vue @@ -1,55 +1,47 @@ + + - - From cea8b34c178a53f64611369a1f7898b957616e05 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 12:08:23 +0300 Subject: [PATCH 26/57] Fix --- client/src/components/ActivityBar/Items/UploadItem.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/src/components/ActivityBar/Items/UploadItem.vue b/client/src/components/ActivityBar/Items/UploadItem.vue index 913e508f4309..d5ee364864dc 100644 --- a/client/src/components/ActivityBar/Items/UploadItem.vue +++ b/client/src/components/ActivityBar/Items/UploadItem.vue @@ -8,8 +8,6 @@ import { useGlobalUploadModal } from "composables/globalUploadModal.js"; // @ts-ignore import { eventHub } from "components/plugins/eventHub.js"; -const { openGlobalUploadModal } = useGlobalUploadModal(); - const status: Ref = ref("success"); const percentage: Ref = ref(0); From 9051d97a26d4e3118c9067bc2ea92de4717e37cc Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 12:16:01 +0300 Subject: [PATCH 27/57] Fix defaults, restore imports --- client/src/components/ActivityBar/ActivityItem.vue | 4 ++-- client/src/components/ActivityBar/Items/UploadItem.vue | 6 ++++-- client/src/components/Panels/ToolBox.vue | 2 ++ client/src/entry/analysis/modules/Analysis.vue | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityItem.vue b/client/src/components/ActivityBar/ActivityItem.vue index 54bfe471a8fb..87b80184ba55 100644 --- a/client/src/components/ActivityBar/ActivityItem.vue +++ b/client/src/components/ActivityBar/ActivityItem.vue @@ -8,8 +8,8 @@ export interface Props { icon?: string; isActive?: boolean; tooltip?: string; - progressPercentage: number; - progressStatus: string; + progressPercentage?: number; + progressStatus?: string; } const props = withDefaults(defineProps(), { diff --git a/client/src/components/ActivityBar/Items/UploadItem.vue b/client/src/components/ActivityBar/Items/UploadItem.vue index d5ee364864dc..9ae59b3a2816 100644 --- a/client/src/components/ActivityBar/Items/UploadItem.vue +++ b/client/src/components/ActivityBar/Items/UploadItem.vue @@ -2,19 +2,21 @@ import { ref, onMounted, onUnmounted, type Ref } from "vue"; import ActivityItem from "components/ActivityBar/ActivityItem.vue"; // @ts-ignore -import { get } from "utils/query-string-parsing.js"; +import Query from "utils/query-string-parsing.js"; // @ts-ignore import { useGlobalUploadModal } from "composables/globalUploadModal.js"; // @ts-ignore import { eventHub } from "components/plugins/eventHub.js"; +const { openGlobalUploadModal } = useGlobalUploadModal(); + const status: Ref = ref("success"); const percentage: Ref = ref(0); onMounted(() => { eventHub.$on("upload:status", setStatus); eventHub.$on("upload:percentage", setPercentage); - if (get("tool_id") == "upload1") { + if (Query.get("tool_id") == "upload1") { openGlobalUploadModal(); } }); diff --git a/client/src/components/Panels/ToolBox.vue b/client/src/components/Panels/ToolBox.vue index 6c8f880c8c5c..329a58939348 100644 --- a/client/src/components/Panels/ToolBox.vue +++ b/client/src/components/Panels/ToolBox.vue @@ -70,6 +70,7 @@ import ToolSection from "./Common/ToolSection"; import ToolSearch from "./Common/ToolSearch"; import { UploadButton } from "components/Upload"; +import { useGlobalUploadModal } from "composables/globalUploadModal"; import { openGlobalUploadModal } from "components/Upload"; import FavoritesButton from "./Buttons/FavoritesButton"; import PanelViewButton from "./Buttons/PanelViewButton"; @@ -106,6 +107,7 @@ export default { }, }, setup() { + const { openGlobalUploadModal } = useGlobalUploadModal(); return { openGlobalUploadModal }; }, data() { diff --git a/client/src/entry/analysis/modules/Analysis.vue b/client/src/entry/analysis/modules/Analysis.vue index f516e556a596..ca037d99c2d6 100644 --- a/client/src/entry/analysis/modules/Analysis.vue +++ b/client/src/entry/analysis/modules/Analysis.vue @@ -1,9 +1,10 @@ From 4d6ff1808ef5c320092068dbb2af2e472395ed8e Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 16:12:04 +0300 Subject: [PATCH 29/57] Add options to dropdown popover --- client/src/components/ActivityBar/ActivityItem.vue | 14 ++++++++++++++ client/src/components/Popper/Popper.vue | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/client/src/components/ActivityBar/ActivityItem.vue b/client/src/components/ActivityBar/ActivityItem.vue index 01da2e55dd1a..84385ac29582 100644 --- a/client/src/components/ActivityBar/ActivityItem.vue +++ b/client/src/components/ActivityBar/ActivityItem.vue @@ -2,6 +2,11 @@ import { ref } from "vue"; import Popper from "components/Popper/Popper.vue"; +interface Option { + name: string; + value: string; +} + export interface Props { id: string; title: string; @@ -10,12 +15,14 @@ export interface Props { tooltip?: string; progressPercentage?: number; progressStatus?: string; + options?: Option[]; } const props = withDefaults(defineProps(), { icon: "question", isActive: false, tooltip: null, + options: [], }); const emit = defineEmits<{ @@ -57,6 +64,13 @@ const emit = defineEmits<{
{{ tooltip | l }} No tooltip available for this item +
+ + + {{ option.name }} + + +
diff --git a/client/src/components/Popper/Popper.vue b/client/src/components/Popper/Popper.vue index 7f06df890d7e..913dc673cad1 100644 --- a/client/src/components/Popper/Popper.vue +++ b/client/src/components/Popper/Popper.vue @@ -111,7 +111,7 @@ export default defineComponent({ color: $brand-light; border-radius: $border-radius-base; max-width: 12rem; - opacity: 0.9; + opacity: 0.95; } .popper-arrow, From dde05569ff46538b773beb61fc6643d3906ebd29 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 16:23:54 +0300 Subject: [PATCH 30/57] Prep favorite workflows item --- .../components/ActivityBar/ActivityBar.vue | 2 ++ .../ActivityBar/Items/WorkflowItem.vue | 32 +++++++++++++++++++ client/src/components/plugins/icons.js | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 client/src/components/ActivityBar/Items/WorkflowItem.vue diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index b740d17f8d57..3f74c83a9454 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -5,6 +5,7 @@ import { WindowManager } from "@/layout/window-manager"; import { useRoute, useRouter } from "vue-router/composables"; import { computed, ref } from "vue"; import UploadItem from "./Items/UploadItem.vue"; +import WorkflowItem from "./Items/WorkflowItem.vue"; import ToolBox from "@/components/Panels/ProviderAwareToolBox.vue"; import ActivityItem from "./ActivityItem"; @@ -38,6 +39,7 @@ function onToggleSidebar(toggle) { tooltip="Search and run tools" :is-active="sidebarIsActive('search')" @click="onToggleSidebar('search')" /> + diff --git a/client/src/components/ActivityBar/Items/WorkflowItem.vue b/client/src/components/ActivityBar/Items/WorkflowItem.vue new file mode 100644 index 000000000000..482a479c46e8 --- /dev/null +++ b/client/src/components/ActivityBar/Items/WorkflowItem.vue @@ -0,0 +1,32 @@ + + + diff --git a/client/src/components/plugins/icons.js b/client/src/components/plugins/icons.js index a48d469b83e0..5dd51fbfdc8f 100644 --- a/client/src/components/plugins/icons.js +++ b/client/src/components/plugins/icons.js @@ -33,6 +33,7 @@ import { faPlus, faQuestion, faShareAlt, + faSitemap, faStream, faTags, faTrash, @@ -76,6 +77,7 @@ library.add( faPlus, faQuestion, faShareAlt, + faSitemap, faStream, faTags, faTrash, From 4361737cd49c1de15014a47a7e83c02a92f6f092 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 16:50:40 +0300 Subject: [PATCH 31/57] Parse actual favorite workflows to activity bar item --- .../components/ActivityBar/ActivityBar.vue | 2 +- .../components/ActivityBar/ActivityItem.vue | 9 +++- .../ActivityBar/Items/WorkflowItem.vue | 44 ++++++++++++------- client/src/components/Popper/Popper.vue | 2 +- 4 files changed, 37 insertions(+), 20 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 3f74c83a9454..302137838c86 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -39,7 +39,7 @@ function onToggleSidebar(toggle) { tooltip="Search and run tools" :is-active="sidebarIsActive('search')" @click="onToggleSidebar('search')" /> - + diff --git a/client/src/components/ActivityBar/ActivityItem.vue b/client/src/components/ActivityBar/ActivityItem.vue index 84385ac29582..52504a4488be 100644 --- a/client/src/components/ActivityBar/ActivityItem.vue +++ b/client/src/components/ActivityBar/ActivityItem.vue @@ -22,7 +22,6 @@ const props = withDefaults(defineProps(), { icon: "question", isActive: false, tooltip: null, - options: [], }); const emit = defineEmits<{ @@ -64,7 +63,7 @@ const emit = defineEmits<{
{{ tooltip | l }} No tooltip available for this item -
+ - -
-
- -
@@ -97,14 +90,6 @@ export default { currentPanelView: { type: String, }, - storedWorkflowMenuEntries: { - type: Array, - required: true, - }, - workflowTitle: { - type: String, - default: _l("Workflows"), - }, }, setup() { const { openGlobalUploadModal } = useGlobalUploadModal(); @@ -143,22 +128,6 @@ export default { const Galaxy = getGalaxyInstance(); return !!(Galaxy.user && Galaxy.user.id); }, - workflows() { - return [ - { - title: _l("All workflows"), - href: `${getAppRoot()}workflows/list`, - id: "list", - }, - ...this.storedWorkflowMenuEntries.map((menuEntry) => { - return { - id: menuEntry.id, - title: menuEntry.name, - href: `${getAppRoot()}workflows/run?id=${menuEntry.id}`, - }; - }), - ]; - }, hasResults() { return this.results && this.results.length > 0; }, From 149d32dc4279dd6e564dd094eadeed6c149113fa Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 17:18:41 +0300 Subject: [PATCH 34/57] Show workflow list when clicking on workflow item --- client/src/components/ActivityBar/ActivityBar.vue | 2 +- client/src/components/ActivityBar/Items/WorkflowItem.vue | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 06a82575755e..fc8b156b0612 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -68,7 +68,7 @@ function onToggleSidebar(toggle) {
diff --git a/client/src/components/ActivityBar/Items/WorkflowItem.vue b/client/src/components/ActivityBar/Items/WorkflowItem.vue index fe9994a686d6..67cb962b634c 100644 --- a/client/src/components/ActivityBar/Items/WorkflowItem.vue +++ b/client/src/components/ActivityBar/Items/WorkflowItem.vue @@ -1,5 +1,6 @@ From fe78ffa2d26943422e10acf5a14d3321c944b77b Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 17:22:17 +0300 Subject: [PATCH 35/57] Remove unused props from toolbox wrapper --- .../src/components/Panels/ProviderAwareToolBox.vue | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client/src/components/Panels/ProviderAwareToolBox.vue b/client/src/components/Panels/ProviderAwareToolBox.vue index 95232d56f7b0..47c928faf709 100644 --- a/client/src/components/Panels/ProviderAwareToolBox.vue +++ b/client/src/components/Panels/ProviderAwareToolBox.vue @@ -9,8 +9,6 @@ :toolbox="currentPanel" :panel-views="config.panel_views" :current-panel-view="currentPanelView" - :stored-workflow-menu-entries="storedWorkflowMenuEntries" - :workflow-title="workflowTitle" @updatePanelView="updatePanelView"> @@ -30,16 +28,6 @@ export default { ToolBox, ToolPanelViewProvider, }, - props: { - storedWorkflowMenuEntries: { - type: Array, - required: true, - }, - workflowTitle: { - type: String, - default: _l("Workflows"), - }, - }, methods: { updatePanelView(panelView) { this.setCurrentPanelView(panelView); From b091cf14058a3e7cc379d09ef44bd824f6c3be1b Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 Mar 2023 17:40:58 +0300 Subject: [PATCH 36/57] Remove debugging icons, add new test activities --- .../components/ActivityBar/ActivityBar.vue | 42 ++++++------------- client/src/components/plugins/icons.js | 2 + 2 files changed, 15 insertions(+), 29 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index fc8b156b0612..598f8b2ffe7f 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -14,7 +14,7 @@ const router = useRouter(); const showCenter = ref(false); const userStore = useUserStore(); -const storedWorkflowMenuEntries = computed(() => { +const workflows = computed(() => { const Galaxy = getGalaxyInstance(); return Galaxy.config.stored_workflow_menu_entries; }); @@ -26,10 +26,15 @@ function sidebarIsActive(menuKey) { function onToggleSidebar(toggle) { userStore.toggleSideBar(toggle); } + +function showVisualizationList() { + router.push("/visualizations"); +} + + From 2434a74a2d4c4579d0fc90e3a9f61e9eb3f0b9c0 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 4 Apr 2023 18:55:12 +0300 Subject: [PATCH 40/57] Move column width handling to panel handler, prep for drag operation to resize --- client/src/components/Panels/FlexPanel.vue | 5 ++++- client/src/entry/analysis/modules/Analysis.vue | 12 +----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/client/src/components/Panels/FlexPanel.vue b/client/src/components/Panels/FlexPanel.vue index deda98ca7f3c..da933af9f2ae 100644 --- a/client/src/components/Panels/FlexPanel.vue +++ b/client/src/components/Panels/FlexPanel.vue @@ -18,7 +18,7 @@ function toggle() {