-
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());
CanvasYAML
- History
- Performance
- Runs {{ runsCount ?? 0 }}
+ History
+ Runs {{ runs.length }}
- {{ SECTIONS[view] }}