What's new in flua — 0.1.174 through 0.1.183

Ten releases in a few days, and one theme dominates: QuickApp user interfaces grew up in flua — the modern elements, a paste-ready UI printer, and a proper model of how button presses actually become method calls on the controller. As usual, most of it exists because someone hit a wall first. (The button that did nothing — that story gets its own post, linked below.)

QuickApp UIs got modern

How button presses actually work

Building the above forced the question: what exactly happens between a tap and your method running? The answer turned out to be a small three-case model — and one silent, maddening bug. The whole story, in plain language, is in the companion post The button that did nothing. The short version: the main QA has a callback table, children don't — their views name the method directly — and an empty argument list must be json.array() or the controller silently drops the press.

Paste-ready UIs for child devices

Child devices are the one place the HC3's editor never rewrites a UI — which makes them the natural home for tabbed panels. flua now prints any declared UI as a paste-ready Lua table (flua --tool ui --as-lua) that drops straight into createChildDevice, with the child-style bindings baked in. And a new --%%rsrc directive lets a QA declare its child UIs as named resources that flua injects at runtime and packages into a file automatically — we'll give that its own post soon, it deserves one.

Under the hood (for the tinkerers)

flua: https://github.com/jangabrielsson/flua · the UI-events companion post: The button that did nothing