forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an invocation graph view to the invocation summary
This graph view utilizes the same workflow editor canvas, and instead of showing step details on each step node, it shows the job states for the steps. Clicking on a step expands the details for the invocation step. The `useInvocationGraph` composable loads the graph based on the original workflow id and invocation object; and the step info is loaded via the `step_jobs_summary` api route.
- Loading branch information
1 parent
180e464
commit 28e9fd0
Showing
15 changed files
with
949 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
client/src/components/Workflow/Editor/NodeInvocationText.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script setup lang="ts"> | ||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; | ||
import { isWorkflowInput } from "@/components/Workflow/constants"; | ||
import { type GraphStep, iconClasses } from "@/composables/useInvocationGraph"; | ||
const props = defineProps<{ | ||
invocationStep: GraphStep; | ||
}>(); | ||
const statePlaceholders: Record<string, string> = { | ||
ok: "successful", | ||
error: "failed", | ||
}; | ||
</script> | ||
<template> | ||
<div class="p-1 unselectable"> | ||
<div v-if="props.invocationStep.jobs"> | ||
<div v-for="(value, key) in props.invocationStep.jobs" :key="key"> | ||
<span v-if="value !== undefined" class="d-flex align-items-center"> | ||
<FontAwesomeIcon | ||
v-if="iconClasses[key]" | ||
:icon="iconClasses[key]?.icon" | ||
:class="iconClasses[key]?.class" | ||
:spin="iconClasses[key]?.spin" | ||
size="sm" | ||
class="mr-1" /> | ||
{{ value }} job{{ value > 1 ? "s" : "" }} {{ statePlaceholders[key] || key }}. | ||
</span> | ||
</div> | ||
</div> | ||
<div v-else-if="isWorkflowInput(props.invocationStep.type)"> | ||
<!-- TODO: Maybe put a ContentItem here? --> | ||
This is an input | ||
</div> | ||
<div v-else-if="props.invocationStep.type === 'subworkflow'">This is a subworkflow.</div> | ||
<div v-else>This step has no jobs as of yet.</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.