Block Kit select in a plugin admin form shows the option value instead of its label once closed
A plugin admin page form block with a select element (options: [{ label, value }]): the dropdown list shows the labels, but after choosing an option the closed control shows the raw value (for example a UUID) instead of the selected option's label.
Repro: return blocks.form({ fields: [elements.select("x", "Pick one", [{ label: "Alpha", value: "a1b2c3" }])], ... }) from a plugin admin route, open the page, pick "Alpha". The closed select shows a1b2c3.
Observed: emdash 0.30.0 admin UI. I have not re-observed it live on 1.0.1, but the source looks unchanged: packages/blocks/src/elements/select.tsx (@emdash-cms/blocks 1.0.1) renders <Select defaultValue={initial_value} onValueChange=...> with <Select.Option value={opt.value}>{opt.label}</Select.Option> children and gives the Kumo Select no value-to-label mapping. If Kumo's closed state falls back to the raw value when it has no items/label map, this would explain it.
Suggested fix: pass the options to Kumo's Select in the form it uses to resolve the displayed label (for example an items/label map built from element.options), so the closed state shows label.
Found while building Nordbook (a booking plugin), where select values are event-type IDs.
Source: emdash-cms/emdash