Skip to content

Make the homepage confetti example a live demo - #498

Merged
mjackson merged 2 commits into
mainfrom
mjackson/live-run-demo
Aug 26, 2026
Merged

mjackson merged 2 commits into
mainfrom
mjackson/live-run-demo

Conversation

@mjackson

Copy link
Copy Markdown
Member

The Inline Scripts section's confetti example gains a Run this example button that executes the exact snippet through the real /run pipeline: it recreates the inline text/ts script tag, loads /run, which transforms the source via esm.unpkg.com/transform and imports canvas-confetti from the ESM CDN. The docs now demonstrate themselves, and the button doubles as a permanent production canary for the whole inline-script path.

  • New RunDemo hydrated component; registered in the assets bundle.
  • Browser smoke suite gains a case that loads the homepage, waits for hydration, clicks the button, and asserts the confetti canvas appears. Verified locally: 36/36 smoke cases.
  • CI's smoke step now also starts the www assets dev server (the dev worker serves hydration assets from it).
  • Also removes accidentally committed wrangler dev state (miniflare cache/trace files from a local wrangler dev session) and ignores .wrangler/ repo-wide — previously only unpkg-www had the ignore rule.

Adds a Run this example button under the Inline Scripts confetti
snippet that recreates the example's inline text/ts script tag and
executes it through the real /run helper — transform via
esm.unpkg.com/transform, canvas-confetti loaded from the ESM CDN — so
the docs demonstrate themselves and the button doubles as a production
canary for the whole inline-script pipeline.

The browser smoke suite gains a case that clicks the button on the
served homepage and waits for the confetti canvas; CI's smoke step now
also runs the www assets dev server, which the dev worker needs for
hydration.
Miniflare cache and trace state from a local wrangler dev session was
accidentally committed; remove it from tracking and ignore .wrangler
everywhere (only unpkg-www had the ignore rule).
@mjackson
mjackson merged commit a228464 into main Aug 26, 2026
1 check passed
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