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:
19 files changed
+72
-75
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user