mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-15 16:03:02 +00:00
Labels were bare strings with nowhere to hang metadata, so a color had no
home. Add a sparse `label_settings` registry keyed by (workspace, name): a
label only gets a row once someone picks a color, and one without a row stays
an ordinary label rendered in the blue it has always had.
`labels/list` now returns `{name, color?}` and unions the registry into the
vocabulary, so a label whose last item was deleted keeps its color, and labels
that live only on jobs or triggers become colorable without widening the
seven-table union. `labels/update` upserts, and a null color drops the row.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QNUCuRqmzNukjR7FDewN7W
1.0 MiB
1.0 MiB