0016 — a web UI builder for --%%u / --%%rsrc

Context

Child devices are the one place on the HC3 where modern view elements (tabView, collapsible) are safe — the editor never rewrites a child's uiView. But that safety comes with a cost: there is no HC3-side tool to author those UIs, so today they are written as --%%u/--%%rsrc rows by hand (or pasted from --tool ui --as-lua). flua already owns the entire compile chain — rows → uiView/viewLayout/uiCallbacks, the inverse (ui_to_u_rows), lua_literal, child_bindings, --%%rsrc — and its web viewer already renders the uiView faithfully. The missing piece is authoring: a visual builder that emits the directives.

The shape

flua --tool uibuilder [PORT] serves a standalone page in the same style as the UI viewer. The editor model is the row JSON the directives parse to — no new format.

Reuse

Non-goals

Decisions

  1. Standalone --tool uibuilder (not a mode inside --ui).
  2. Export the directive forms first (--%%u / --%%rsrc); the raw Lua table comes later behind a toggle.
  3. The binding/format choice is a three-way target, not a v1/v2 element toggle: the uiView format is the same everywhere; what differs is the binding target (main QA UIAction vs. child actionName) and the one format a child cannot have (viewLayout/v1).