Skip to content

feat(website): expand the homepage live demo into a modal on launch#650

Open
blove wants to merge 5 commits into
mainfrom
worktree-demo-modal
Open

feat(website): expand the homepage live demo into a modal on launch#650
blove wants to merge 5 commits into
mainfrom
worktree-demo-modal

Conversation

@blove

@blove blove commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Clicking "Launch live demo" on the homepage now opens the live demo in a large, accessible modal/lightbox instead of swapping a cramped ~720px inline iframe — so visitors get a genuinely usable chat surface.

  • DemoModal (new): backdrop + browser-frame chrome with the LangGraph | AG-UI tabs inside (switch runtime while open), faux URL, ×; a lazy <iframe> body at a perfect 16:10; footer with close hint + "Open the full demo ↗".
  • Sizing: width = min(96vw, 90vh×16/10) → fills the viewport while holding 16:10; backdrop absorbs the rest. Mobile (<640px): full-screen sheet.
  • Open: fade + scale-in; respects prefers-reduced-motion. Close: × / Esc / backdrop-click; focus returns to the launch button; body scroll-locked while open.
  • DemoShowcase: the inline frame stays a perpetual looping video; launched set → modalOpen boolean; launch fires analytics (home_demo_launch_*).
  • e2e: apps/website/e2e/demo-modal.spec.ts — launch→dialog→iframe, Esc closes + focus returns, in-modal tab-switch updates the runtime. Passed locally 2/2.

Spec: docs/superpowers/specs/2026-06-07-demo-modal-design.md · Plan: docs/superpowers/plans/2026-06-07-demo-modal.md

Test Plan

  • CI website (lint + build) and website — e2e green.
  • Vercel preview: launch opens the modal near-viewport at 16:10; tabs switch runtime; ×/Esc/backdrop close; mobile is a full-screen sheet.

🤖 Generated with Claude Code

blove and others added 5 commits June 9, 2026 17:19
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jun 10, 2026 12:54am

Request Review

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