Repository navigation
What's new since v0.1.0
Validator: eliminate five false-positive FAIL classes (61cfba3)
Shipped apps that imported and ran fine in Retool were failing validate_app.py. Fixed:
- Form
<Footer>is now optional — only<Body>is strictly required;<Header>is required only whenshowHeader=\"true\". Most real Forms omit Footer (parent container provides save). AppStyles,DocumentTitle,UrlFragments,ButtonGroup2-Button,SidebarFrame, and missed query types no longer incorrectly flagged as "missing position entry" — they're not visual / positioned-by-parent.- Container references accept
$header/$mainwhen the position entry usesheader/main(Frames are$-prefixed; positions often drop the prefix). - Duplicate ID check scoped by parent widget —
Column,Option,Action,ToolbarButton,View,EventIDs are unique per parent in Retool, not globally. Two Tables can shareColumn id=\"92e3f\". - View IDs — accept both 5-char hex (Retool-generated) AND descriptive camelCase (hand-authored). The previous regex contradicted the skill's own spec.
Verified: 18 PASS / 0 FAIL on all 6 scaffold templates + all 8 example apps + a real production export (Experience Studio, ~300 components).
fix_positions.py: safe-by-default + surgical shift mode (db4e2d9)
Previous version would rewrite 160+ row values across 26 scopes on any app with authored gaps, because its only heuristic was "collapse every gap to tight packing". New behavior:
- Dry-run by default.
--applyrequired to write. Prints the planned diff. - Skip scopes that are already valid — only rewrite a scope if it has an overlap or zero-height entry. Authored spacing preserved.
- New
--scope <name> --shift-from <row> --by <delta>mode — first-class CLI for the common editing operation ("I inserted 3 rows at position 10.2 in EditInteractionForm, shift everything ≥ 10.2 down by 3.2"). Predictable, composable, no gap-collapsing. --containerpreserved as a deprecated alias for--scope.
list_components.py: hand-rolled tokenizer (b4d44ac)
Regex-based component extraction broke on nested events with complex JSX expressions. Replaced with a proper JSX tokenizer.
Docs: reactive-reference rules, {{}} in transformers, and two Retool gotchas (f57a5ea)
- New cheatsheet §11 clarifies: JavaScriptQuery and SqlQueryUnified use bare reactive refs in
query={...}, while<Function>(aka "transformer") requires{{ }}wrapping infuncBody={...}. <Tags>renders fromvalue=, notdata=. Addsstyle={{ ordered: [{ defaultBackground: \"automatic\" }] }}for auto-colored pills.- Table
<Action>handlers must usemethod=\"run\"with inline scriptmyQuery.trigger({ additionalScope: { currentSourceRow, i } })— a plainmethod=\"trigger\"leavescurrentSourceRowundefined in the query scope.
Upgrade notes
fix_positions.pyworkflows now need--applyto persist (previously wrote by default). TheNEWandEDITapp workflows inSKILL.mdhave been updated.- No data migrations required. Existing apps keep working.