diff --git a/ui/src/workflows/SlowestStagesCard.vue b/ui/src/workflows/SlowestStagesCard.vue deleted file mode 100644 index 29a16c297..000000000 --- a/ui/src/workflows/SlowestStagesCard.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - diff --git a/ui/src/workflows/StageFailuresCard.vue b/ui/src/workflows/StageFailuresCard.vue deleted file mode 100644 index 9829a9ecb..000000000 --- a/ui/src/workflows/StageFailuresCard.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - diff --git a/ui/src/workflows/WorkflowBar.vue b/ui/src/workflows/WorkflowBar.vue deleted file mode 100644 index eaa5bce01..000000000 --- a/ui/src/workflows/WorkflowBar.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index fa3e56b31..44dac79ec 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -40,6 +40,7 @@ import { deleteStep, duplicateStep, insertStep, moveStep, normalizeStepIDs, repl import ChangeList from "@/components/ChangeList.vue"; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { useWorkflowRuns } from "./workflow-runs"; +import WorkflowRuns, { type StageStats } from "./WorkflowRuns.vue"; import { useWorkflowTriggers } from "./workflow-triggers"; import { useSettingsStore } from "@/stores/settings"; import { @@ -69,7 +70,8 @@ const modelAliases = computed(() => const collection = computed(() => workflows.collection); // Which definition is open belongs to the page, which also lists them. const selected = defineModel("selected", { required: true }); -defineProps<{ runsCount?: number }>(); +// Stage statistics are read by the page with the rest of the workflow stats. +defineProps<{ stageStats: StageStats[]; statsKnown: boolean; statsError: string }>(); const id = ref(""); const yaml = ref(""); const loadedYaml = ref(""); @@ -413,7 +415,6 @@ const lines = computed(() => yamlLines(yaml.value)); // The sections that sit beside Canvas and YAML once the editor has the width // for them (the workflow list takes 24rem of it), and otherwise the one menu, // which names the section in view beside the tabs. -const SECTIONS: Record = { history: "History", performance: "Performance", runs: "Runs" }; // The highlight layer sits behind the textarea and never scrolls by itself, so // it follows the textarea's own scroll. Lines wrap at the editor's width, and @@ -458,11 +459,9 @@ onBeforeUnmount(() => yamlObserver?.disconnect()); Canvas YAML - History - Performance - Runs {{ runsCount ?? 0 }} + History + Runs {{ runs.length }} - {{ SECTIONS[view] }}
yamlObserver?.disconnect()); Publish - History - Performance - Runs {{ runsCount ?? 0 }} Open run @@ -581,8 +577,9 @@ onBeforeUnmount(() => yamlObserver?.disconnect()); - - + + +