From e752647ede87b770afe0a59729d773d3cb0ab609 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Mon, 29 Jul 2024 16:07:48 -0500 Subject: [PATCH] Workflow Invocation view improvements This first commit tackles point A in the roadmap: List of invocations is now not visible continously, it goes away after you settle on one invocation and `mouseleave` the panel area. Roadmap: https://hackmd.io/@nekrut/HkinoEh8A --- .../src/components/Panels/InvocationsPanel.vue | 17 +++++++++++++++-- .../Invocation/InvocationScrollList.vue | 3 +++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/client/src/components/Panels/InvocationsPanel.vue b/client/src/components/Panels/InvocationsPanel.vue index cd329d1a2ae1..ba810258676e 100644 --- a/client/src/components/Panels/InvocationsPanel.vue +++ b/client/src/components/Panels/InvocationsPanel.vue @@ -1,6 +1,7 @@ diff --git a/client/src/components/Workflow/Invocation/InvocationScrollList.vue b/client/src/components/Workflow/Invocation/InvocationScrollList.vue index 0e78c686650f..f42dd3b858ed 100644 --- a/client/src/components/Workflow/Invocation/InvocationScrollList.vue +++ b/client/src/components/Workflow/Invocation/InvocationScrollList.vue @@ -32,6 +32,8 @@ const props = withDefaults(defineProps(), { limit: 20, }); +const emit = defineEmits(["invocation-clicked"]); + library.add(faEye, faArrowDown, faInfoCircle); const stateClasses: Record = { @@ -97,6 +99,7 @@ function cardClicked(invocation: WorkflowInvocation) { let path = `/workflows/invocations/${invocation.id}`; if (props.inPanel) { path += "?from_panel=true"; + emit("invocation-clicked"); } router.push(path); }