Repository navigation
v1.12.0 — scale editor
Band scales were config-only, which meant hand-editing YAML. The soil and solar cards now have a Scale section in the card editor: one row per band with threshold, label and a colour picker, plus Add band, a remove button, an axis maximum, and Reset to default.
The section opens pre-filled with the card's defaults so there is something to edit, and the first change writes the whole list into the config. Reset deletes the key again — which is also how a card goes back to inheriting any future change to the defaults.
Bands are kept in threshold order, so unlike the metric list there is nothing to drag; the numbers decide the order. Sorting happens when a field loses focus rather than on every keystroke, so a row never jumps out from under the cursor while you are typing a number.
Verified against a live editor: thresholds, labels and colours all reach the card, Add band inserts below the open-ended band, remove works, the axis maximum switches the config to its { max, bands } form, out-of-order thresholds re-sort only on blur, and reset restores the defaults and disables itself.