feat: enhance variable handling and UI components with business labels and descriptions

This commit is contained in:
mlogclub
2026-06-29 18:37:31 +08:00
parent 295c7b4bea
commit 87760d5e89
8 changed files with 166 additions and 85 deletions
@@ -2,6 +2,19 @@ package registry
import "testing"
func TestDefaultRegistryVariablesHaveBusinessLabels(t *testing.T) {
for _, spec := range DefaultRegistry().List() {
for _, variable := range append(spec.InputSchema, spec.OutputSchema...) {
if variable.Label == "" {
t.Fatalf("%s.%s is missing business label", spec.Type, variable.Name)
}
if variable.Description == "" || variable.Description == variable.Name {
t.Fatalf("%s.%s is missing readable description", spec.Type, variable.Name)
}
}
}
}
func TestDefaultRegistryExposesStartOutputs(t *testing.T) {
spec, ok := DefaultRegistry().Get(NodeTypeStart)
if !ok {