Skip to content

v0.2.0 — validator + scripts + docs hardening

Latest

Choose a tag to compare

@dobomode dobomode released this 21 Apr 21:26
· 1 commit to main since this release

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 when showHeader=\"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 / $main when the position entry uses header / main (Frames are $-prefixed; positions often drop the prefix).
  • Duplicate ID check scoped by parent widget — Column, Option, Action, ToolbarButton, View, Event IDs are unique per parent in Retool, not globally. Two Tables can share Column 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. --apply required 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.
  • --container preserved 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 in funcBody={...}.
  • <Tags> renders from value=, not data=. Adds style={{ ordered: [{ defaultBackground: \"automatic\" }] }} for auto-colored pills.
  • Table <Action> handlers must use method=\"run\" with inline script myQuery.trigger({ additionalScope: { currentSourceRow, i } }) — a plain method=\"trigger\" leaves currentSourceRow undefined in the query scope.

Upgrade notes

  • fix_positions.py workflows now need --apply to persist (previously wrote by default). The NEW and EDIT app workflows in SKILL.md have been updated.
  • No data migrations required. Existing apps keep working.