Skip to content

fix(gui): portable Canva converter, clearer prerequisites banner, executable script (#191) - #199

Merged
PAMulligan merged 1 commit into
mainfrom
fix/demo-readiness-191
Nov 8, 2026
Merged

PAMulligan merged 1 commit into
mainfrom
fix/demo-readiness-191

Conversation

@PAMulligan

Copy link
Copy Markdown
Collaborator

Three items from the #191 checklist (does not close it; the timed end-to-end run, the visual baselines and the recording remain). Part of #186.

Canva converter runs on any awk

scripts/canva-fse/convert-html-to-blocks.sh used gawk's three-argument match() with a capture array in the heading, paragraph, image and button rules. mawk (Debian/Ubuntu) and BWK awk (macOS) reject it with syntax error at or near ,. On this Ubuntu 26.04 host that made the setup wizard's Canva path fail, which is the path the GUI's Convert design screen delegates to, so the demo run would have broken before WordPress was involved. The rules now use POSIX match() with RSTART/RLENGTH and two helpers (attr, inner_text), keeping the old semantics (first attribute occurrence, text up to the last closing tag).

Before: tests/canva-fse/convert-html-to-blocks.bats 7/9 on mawk, tests/init/unit/canva-generator.test.mts failing. After: 9/9 and the whole init-wizard suite 71/71. CI's Canva e2e runs the same script on the PR.

Prerequisites banner says what to fix

The banner opened with "Ready to use this template: NO". New copy, from a pure, unit-tested readinessSummary():

  • all clear: "All checks passed. This machine is ready for Flavian."
  • failures: "Not ready yet: 2 checks need attention" and a second line "Docker, GitHub account. Follow the guidance below, then re-check." Optional software never counts.
  • not ready with no failing check (the script did not complete): "Not ready yet: the check did not complete" pointing at the raw output.

The script's own output is unchanged; only the panel's copy moved.

wordpress-local.sh is executable in git

Tracked as 100755 now; the docs call it as ./wordpress-local.sh.

Verification

GUI lint, typecheck, 103 unit tests (5 new), build and smoke pass; pnpm test:init 71/71; the Canva bats suite 9/9 on mawk 1.3.4.

🤖 Generated with Claude Code

…cutable script (#191)

Three items from the demo-readiness checklist.

- scripts/canva-fse/convert-html-to-blocks.sh used gawk's three-argument
  match() with a capture array in its heading, paragraph, image and button
  rules. mawk (Debian and Ubuntu's awk) and BWK awk (macOS) reject it with
  "syntax error at or near ,", so the Canva path of the setup wizard, which
  the GUI's Convert design screen delegates to, failed on this Ubuntu host
  before WordPress was even involved. The rules now use POSIX match() with
  RSTART/RLENGTH and two small helpers (attr, inner_text); the bats suite
  for the script passes 9/9 on mawk (2 failed before) and the init-wizard
  suite passes 71/71.
- The Prerequisites banner opened with "Ready to use this template: NO",
  the first thing a new user read when a check failed. readinessSummary()
  now says what is wrong and which checks to fix ("Not ready yet: 2 checks
  need attention" plus the failing check names, or an all-clear naming the
  product); optional software never counts, and a run that did not complete
  points at the raw output. Unit-tested.
- wordpress-local.sh is tracked as 100755: the docs call it as
  ./wordpress-local.sh.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@PAMulligan PAMulligan changed the title fix(gui): demo readiness: portable Canva converter, readable prerequisites banner, executable wordpress-local.sh (#191) fix(gui): portable Canva converter, clearer prerequisites banner, executable script (#191) Nov 8, 2026
@PAMulligan
PAMulligan force-pushed the fix/demo-readiness-191 branch from b9ba84d to c29059c Compare November 8, 2026 20:23
@PAMulligan
PAMulligan merged commit dfbab1f into main Nov 8, 2026
20 checks passed
@PAMulligan
PAMulligan deleted the fix/demo-readiness-191 branch November 8, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant