Automations and webhooks for the AT Protocol airglow.run

fix(form): unwrap a pasted {{path}} in the loop path and the other step-name inputs #55

Open opened by tyb.there-hugo.dev

Only the condition field and the variable name now unwrap a copied {{path}} placeholder (see readUnwrapped in app/islands/AutomationForm.tsx). The loop step's "Array path" input and the reference-name inputs of fetch, search, loop and action steps still store the pasted text verbatim. I read their onInput handlers, which save e.target.value as is. The save-time validators then reject the braces: FOR_EACH_PATH_RE and FETCH_SEARCH_NAME_RE in lib/actions/validation.ts allow no {. The name inputs give no inline error, only the native pattern attribute.

Where to start: route those onInput handlers through readUnwrapped, and reuse the variable step's inline name error (STEP_NAME_RE) for the other name inputs.

Found by the loop while working on #17, rkey 3my32g5t66f22.

Sign up or Sign in to add to the discussion.