You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(website): finish the medium switcher — Render, Ship, and live tabs (#833)
Completes the switcher across all four homepage sections. Render and Ship gain
video and code tabs, and every section gains a Live tab that frames the real
demo opened on that section's own scenario.
Two new clips, recorded against aimock fixtures so a recut reproduces
frame-for-frame:
- Render — the agent emits a spec and a real contact form mounts as Angular
components, `render_a2ui_surface` visible in the tool call.
- Ship — a rich markdown answer, then a page reload, and it all comes back.
Durability was initially judged unwatchable; it is exactly watchable, and it
is the claim that section makes.
The live tab uses `?featured=` (merged in #832) so each section opens the demo on
its own curated scenario instead of the same empty chat under four headings.
`section-media.spec.ts` gains the guard that matters here: it reads the DEMO's
actual suggestion list off disk and asserts every `live.featured` id exists
there. `?featured=` falls back silently for an unknown id, so a typo would
quietly turn a live tab back into the generic demo with nothing else failing.
Mutation-tested — a one-character typo fails with
`approve -> approve-before-a-destructiv: expected [...] to include`.
The active-pane-only guarantee holds at full scale, which was the spec's main
technical risk. The built homepage carries 4 tablists, **4** `<video>` elements
rather than 12, and **0** iframes — the live iframe is not requested until its
tab is selected. Verified in a browser too: clicking Live takes iframes 0 -> 1
and videos 5 -> 4 as the video pane unmounts.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments