Serve step type titles with the workflow step vocabulary #1961

Closed
opened 2026-11-13 07:01:42 +00:00 by sam · 1 comment
Owner

What is wrong

The workflow editor names step types from a hand-written table in the dashboard (TYPE_TITLES in ui/src/workflows/workflow-graph.ts). The served vocabulary (x-step-types) carries each type's name, whether it needs a repository and its settings schema, but no title, so a new server step type shows its raw name until the table is edited.

Wanted

Each registered step type serves its title beside its name, and the dashboard reads it.

Done when

  • x-step-types entries carry a title.
  • TYPE_TITLES is deleted from the UI.
## What is wrong The workflow editor names step types from a hand-written table in the dashboard (`TYPE_TITLES` in `ui/src/workflows/workflow-graph.ts`). The served vocabulary (`x-step-types`) carries each type's name, whether it needs a repository and its settings schema, but no title, so a new server step type shows its raw name until the table is edited. ## Wanted Each registered step type serves its title beside its name, and the dashboard reads it. ## Done when - `x-step-types` entries carry a title. - `TYPE_TITLES` is deleted from the UI.
sam added the lowtask labels 2026-11-13 07:01:42 +00:00
Author
Owner

Fixed in ca4b039c. Each StepType declares a Title beside its factory and settings; the Manager keeps the descriptors, and x-step-types entries carry title. Registration refuses a step type with no title. The dashboard reads the served title through stepTitle(type, vocabulary), falls back to the raw type name while the vocabulary is unloaded, and TYPE_TITLES is deleted. parallel and switch are YAML shapes, not registered types, so their two titles stay in workflow-graph.ts. Ran task check (gofmt/go fix, golangci-lint, go vet, go test -short, UI build, pnpm test 127 passing, pnpm run typecheck) with exit 0. No new tests added. The served entry was not fetched live from a running server.

Fixed in ca4b039c. Each StepType declares a Title beside its factory and settings; the Manager keeps the descriptors, and x-step-types entries carry title. Registration refuses a step type with no title. The dashboard reads the served title through stepTitle(type, vocabulary), falls back to the raw type name while the vocabulary is unloaded, and TYPE_TITLES is deleted. parallel and switch are YAML shapes, not registered types, so their two titles stay in workflow-graph.ts. Ran task check (gofmt/go fix, golangci-lint, go vet, go test -short, UI build, pnpm test 127 passing, pnpm run typecheck) with exit 0. No new tests added. The served entry was not fetched live from a running server.
sam closed this issue 2026-11-13 09:26:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1961