feat(workflow): serve step type titles with the step vocabulary (#1961)

Each step type declares its title beside its factory and settings; the
control plane serves it in x-step-types, and the dashboard reads it instead
of a hand-written TYPE_TITLES table. Parallel and switch are YAML shapes, not
registered types, so their titles stay with the graph.
This commit is contained in:
sam committed 2026-11-13 20:26:27 +11:00
1 parent 841c6aea16
commit ca4b039cb4
19 files changed
+72 -75

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ const unpinned = computed(() => Boolean(watchedRun.value && !watchedRun.value.wo
const drawnStages = computed(() => unpinned.value ? [] : stages.value);
const pinnedYaml = computed(() => watchedRun.value?.workflow_definition_yaml);
const canvasYaml = computed(() => pinnedYaml.value || yaml.value);
const graph = computed(() => withRuns(workflowGraph(canvasYaml.value), drawnStages.value));
const graph = computed(() => withRuns(workflowGraph(canvasYaml.value, workflows.stepTypes), drawnStages.value));
function toggle(key: string): void {
open.value = open.value === key ? null : key;
const run = graph.value.nodes.find((node) => JSON.stringify(node.data.path ?? null) === open.value)?.data.run;