Frontend error on unknown widget
The compiler guarantees every widget string comes from *widgets*
(valid-widget-value rejects unknown values; finalize-ui
injects :textbox when :widget is missing), so a widget the
frontend doesn't recognize means vocabulary drift, not user
error. renderFormField now has an explicit textbox / ''
branch and a WIDGET_VOCABULARY set mirroring *widgets*; a
widget that falls through renders a red "Unknown widget" marker
plus a console.error instead of silently rendering a text
input. The error distinguishes unknown (backend vocabulary grew
without the frontend) from unhandled (frontend routing bug).
Inline error rather than a throw — no React error boundary
exists, and the failure is per-field. Scope: editable-form path
only; list cells and read-only fields keep their lenient
defaults.
- Slot
- 25900
- Status
- 60 Done
- Tags
- frontend
- Contributors
- Donnie