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
@@ -79,7 +79,7 @@ type diffRulesSettings struct {
|
||||
// way the shipped stages are declared: the factory builds the stage the
|
||||
// executing side runs from the settings the validating side accepted.
|
||||
func DiffRulesStepType() StepType {
|
||||
return StepType{Name: DiffRulesStepName, Factory: newDiffRulesStage, Settings: diffRulesSettings{}}
|
||||
return StepType{Name: DiffRulesStepName, Title: "Diff rules", Factory: newDiffRulesStage, Settings: diffRulesSettings{}}
|
||||
}
|
||||
|
||||
// newDiffRulesStage decodes and compiles the step's settings, refusing every
|
||||
|
||||
Reference in new issue
Block a user