Skip to content

feat(studio): add Desktop app showcase card, Catalog upsell, and Desktop header - #9218

Queued
miguel-heygen wants to merge 3 commits into
mainfrom
dsurvey2/studio-desktop-card
Queued

miguel-heygen wants to merge 3 commits into
mainfrom
dsurvey2/studio-desktop-card

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Summary

Brings the new Desktop app showcase experience and Desktop header to OSS Studio when the Desktop app is not yet installed:

  1. Desktop header: Replaces the stacked brand lockup with Desktop's 2-leaf cyan-to-green HyperFrames mark + wordmark and / divider before the project name (HyperFrames / <project>).
  2. Glowing "Make editing easier" pill: Replaces the header install button when Desktop is not installed (!app_installed && !handoff && downloadUrl !== null) with a 32px dark liquid-glass pill featuring a sloshing aurora canvas, hover green text sweep, glowing SVG rim, and subtle electric crackle wisps (prefers-reduced-motion respected). Preserves "Open in desktop app" for installed handoff and the folder-drop guide card for open-failed / Linux-installed / storyboard placements.
  3. 5-scene floating Desktop app card: Interactive liquid-glass popover card (dark and light paper themes) with 5 clickable progress segments, animated ABC Solar Display headlines (loaded from public CDN with system fallback), OS-aware download CTA (Download free for Mac / Windows / Linux -> Download started with hf_cta attribution), and agent-tailored Scene 0 copy via resolveAgentRuntime():
    • Scene 0: Keep using your <Agent> subscription (or 5-agent row fallback)
    • Scene 1: Comment and draw on any frame (animated canvas pan, draw stroke, pin, comment input, send checkmark)
    • Scene 2: All your projects, available instantly (Your Projects / For You switcher)
    • Scene 3: The motion library (scrollable library grid + "Add as inspiration" hover)
    • Scene 4: Remix any video (Kimi K3 radial wipe + two-phone A-roll comparison)
    • Auto-opens once playback reaches the end or a render export completes, rate-limited to at most once every 7 days (hf_desktop_card_last_auto_at in localStorage).
  4. Catalog tab aurora upsell card: First item inside the Catalog tab (hidden when Desktop is installed) with a dark liquid-glass aurora pour animation, 3 fanned vertical preview videos, and an OS-aware download pill.
  5. "Nothing selected" Desktop-only rows: Shown in the empty Design inspector when Desktop is not installed (hidden inside Desktop's own Studio), each opening the showcase card directly to its matching scene:
    • Describe a change to the agent (⌘K / Ctrl+K) -> Scene 0
    • Draw on any frame (D) -> Scene 1
    • Comment on any frame (C) -> Scene 1
    • Browse the motion library -> Scene 3
    • Remix a reference video -> Scene 4
    • ("Record a gesture" is omitted because OSS Studio already ships R.)

All card media assets are compressed and served from https://static.heygen.ai/hyperframes-oss/studio/desktop-card/v1/; no media or font binaries are committed to the repo.

Before

Before this change (main, registry/examples/product-promo fixture): stacked HeyGen / HyperFrames | product-promo header, standard "Install the desktop app" button, empty "Nothing selected" inspector with no Desktop rows, and Catalog tab with no Desktop upsell card.

Before initial dark

Before Catalog dark

After

After this change (registry/examples/product-promo fixture): Desktop header (HyperFrames / product-promo), glowing "Make editing easier" aurora pill with hover crackle, 5-scene liquid-glass showcase card (dark + light paper themes, macOS + Windows + Linux, agent-tailored Scene 0), Catalog tab aurora pour upsell with 3 fanned vertical videos, and 5 clickable Desktop-only rows in the empty inspector.

Side-by-Side Motion Comparison (Prototype vs Live OSS Studio)

Watch the synchronized 31-second comparison walking through pill hover, Scenes 0 through 4, card close, and the Catalog tab aurora pour:

https://static.heygen.ai/hyperframes-oss/pr-captures/studio-desktop-card-v1/side-by-side-mock-vs-live.mp4

Studio Surfaces (Dark & Light)

Surface Capture
Initial dark (Desktop header + aurora pill + 5 empty-inspector rows) After dark
Catalog tab aurora upsell (dark) After Catalog dark
Catalog tab + empty inspector (light paper theme) After light Catalog
Windows light theme (Ctrl+K) After Windows light

Card Scenes & Hover Detail

Pill hover (crackle + green shine) Scene 0 (Claude Code, dark) Scene 0 (Fallback + Windows, light)
Pill hover Scene 0 dark Scene 0 light
Scene 1 (Comment & draw) Scene 2 (Synced projects) Scene 3 (Motion library) Scene 4 (Remix)
Scene 1 Scene 2 Scene 3 Scene 4

Candidate Follow-Up Rows for "Nothing selected" Inspector

Kept to the 5 rows above for this PR. Additional Desktop-only workflows that could be considered as follow-up rows if desired:

  • Script editing (edit timed script + audio transcript directly)
  • Brand Kit (extract and apply brand fonts, colors, and logos)
  • Caption looks (one-click animated caption style presets)
  • Picture edit (in-place AI image generation and edits)
  • Camera / Avatars (record A-roll or add AI presenter avatars)
  • Sounds (voiceover, SFX, and music library)
  • Podcast / multi-angle switcher (auto-cut talking-head angles)
  • Cloud export / Share / Publish (hosted share links and cloud render)

Verification

fails without the fix: packages/studio/src/components/desktop-card/desktopCard.test.tsx, packages/studio/src/components/StudioHeader.dom.test.tsx (Desktop mark + / divider), and packages/studio/src/components/OpenInDesktopButton.dom.test.tsx (aurora "Make editing easier" pill, 5-scene floating card, OS-aware CTA, install detection) all fail against main without these changes.

  • Unit & gate tests (3 consecutive runs, including shuffled seeds 7331 and 1093): 7/7 files, 65/65 tests passed (hexRatchet.test.ts, tokenGate.test.ts, headerExports.test.tsx, StudioHeader.dom.test.tsx, OpenInDesktopButton.dom.test.tsx, PropertyPanelEmptyState.test.tsx, desktopCard.test.tsx).
  • Build & static checks: oxfmt --check (0 issues), oxlint (0 warnings, 0 errors), @hyperframes/studio typecheck (0 errors), @hyperframes/studio build (Vite + tsup ESM + DTS), check:studio-copy-dashes, check:tracked-artifacts, check:workspace-contracts, check:package-cycles, check:package-subpaths all green.
  • Live Chrome walkthrough: Verified on registry/examples/product-promo across dark and light paper themes, macOS + Windows OS routes, Claude Code + Cursor agent runtimes, Catalog aurora pour, empty-inspector row click jump to Scene 4, and synchronized 31s side-by-side motion recording against the prototype.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 275 (base branch 275), smooth 75 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Raised @hyperframes/studio packed size budget in scripts/package-size-budgets.json from 6,589,635 to 6,700,000 bytes (+87 KB actual packed size from the Desktop showcase card, aurora canvas engine, Catalog upsell, and empty-inspector rows; zero binaries or media assets are bundled).

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 7e6418f412fb41905f87ff526da7b6a6673c2775. Read in full: OpenInDesktopButton.tsx, desktopCardStore.ts, cardMedia.ts, DesktopAppCard.tsx, CatalogDesktopUpsell.tsx, and the diffs of StudioHeader.tsx, PropertyPanelEmptyState.tsx, BlocksTab.tsx, the budget file. Skimmed for timers, listeners and observers only: auroraRing.ts, cardChoreography.ts, cardScenePlayers.ts, DesktopInstallPill.tsx, the CSS. Not read line by line: auroraTables.ts, agentBrands.tsx, DesktopAppCardStage.tsx markup, the test files beyond their case names. No tests run locally; all 69 checks pass on this head. No earlier reviews on the PR.

Requesting changes for one thing, with a small fix.

Important: the closed card stays in the keyboard tab order (new in this PR).
HeaderShowcaseTrigger always renders DesktopAppCard, and the card is portalled to document.body whether or not it is open (DesktopAppCard.tsx:220). Closed, it is hidden only by opacity: 0; transform: scale(0.85); pointer-events: none (components.css, .hf-dc-card[data-open="false"]), with aria-hidden on the wrapper. Nothing sets visibility, inert or tabIndex on the card's own controls (grep for inert|visibility|tabIndex in desktop-card/ finds only the tabIndex={-1} on the mock editor buttons inside the stage). So for everyone without Desktop, every Studio page has 7 invisible focusable buttons at the end of the document: Close, the 5 scene segments, and the download button. Tabbing lands on them with no visible focus, and Enter on the last one opens the download tab and records get_desktop_app and sent_to_download.

Fix, either one:

  • CSS only: add visibility: hidden to the closed rule and visibility: visible to the open rule, with transition: opacity .18s, transform .18s, visibility 0s .18s on close so the exit still animates; or
  • set inert on the card root while open is false.

Test that would prove it: with the card closed, assert the card root is inert (or that getComputedStyle(card).visibility === "hidden"), and that it is not when open. I approve once that is in.

Nit (same area, could ride the same change): the closed card loads its media on every Studio start. Because the stage is mounted while closed, its images (editor frame, 6 project thumbs, 3 synced thumbs, library tiles) and three preload="metadata" videos are requested from the CDN as soon as the header shows the pill, before anyone opens the card. Mounting DesktopAppCardStage only after the first open (openSeq > 0) removes that, and would also fix the finding above for the stage contents.

Nits, not blocking:

  • useGuide.download (OpenInDesktopButton.tsx) and launchDesktopDownload (desktopCardStore.ts) are now two copies of the same open-tab, toast and telemetry steps. useGuide.download could call launchDesktopDownload and keep only setDownloaded(true).
  • When the install watch sees the app arrive while the card is open, the header switches to the guide button and the card unmounts, but the store keeps open: true and no closed step is recorded. A closeDesktopCard() when canShowDesktopUpsell turns false would keep the store and the telemetry in step.
  • role="dialog" with no focus move on open and no focus return on close; Escape and outside-press do work.
  • The Catalog tab now scrolls as a whole, so the search box and category chips scroll away with the grid. If that is intended for the upsell, fine; otherwise keep the search row sticky top-0.
  • The once-a-week key is in localStorage, so it is per origin: a preview on a different port auto-opens again.
  • The "fails without the fix:" line is present in the body.

Need: yes, asked for by the Studio owner · Size: large but one feature; the header and logo change could have been its own PR · Reuse: launchDesktopDownload should replace the copy in useGuide.download; checked ui/Popover (unmounts when closed, which is why the old button did not have this issue) · Simpler: mount the stage on first open · Structure: fine (checked DesktopGuideCard types reused for the route, ui/Popover not reused because the card animates from the pill, store is one module with one writer per field; one duplicate noted above)
Risk: medium — new always-mounted UI in the Studio header for every user without Desktop, plus auto-open on playback end and export.

Rames

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Fixed in 0b3e3d07:

  • Closed card is now marked inert + visibility: hidden (with visibility 0s linear 0.18s on close so the exit animation stays intact), removing Close, the 5 scene segments, and the download CTA from keyboard Tab order while closed.
  • Lazy-mounted DesktopAppCardStage on first open (openSeq > 0) so Studio startup no longer fetches card images or videos before the card is opened.
  • Deduplicated useGuide.download to delegate to launchDesktopDownload, and closed an open showcase card (plus recorded the closed step) when canShowDesktopUpsell flips false on install detection.
  • Added regression tests in desktopCard.test.tsx covering closed inert/lazy-stage, open/close toggle, and route transition to installed (verified red before the fix; 4/4 test files, 49 tests green across 3 runs including 2 shuffled seeds).

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at 0b3e3d07df0d439df6b564c064c8772f52ba38d5. Read the whole delta from 7e6418f4 (one commit, 5 files, +168/-44) and the touched hooks and store functions at this head.

My blocker from the last round is resolved.

  • useCardDismiss sets inert on the card root whenever open is false and removes it on open, so Close, the five scene segments and the download button are out of the tab order while closed.
  • .hf-dc-card[data-open="false"] now also has visibility: hidden, delayed by the 0.18s exit transition, so the close animation still plays and the card is hidden before the first effect runs.
  • The new test renders the card closed, asserts inert and aria-hidden="true", opens it, and closes it again.

Nits from the last round

  • Media load while closed: fixed. The stage mounts only once openSeq is above 0, and the choreography effect waits for the same condition and has openSeq in its deps, so it picks up the stage on first open. Auto-open goes through openDesktopCard, which always bumps openSeq.
  • Duplicate download handler: fixed. The guide's download now calls launchDesktopDownload, which sends the same three events. One side effect: a guide download now also flips the showcase card's "Download started" label, which reads as correct.
  • Card left open after install: fixed. setDesktopCardRoute closes it when the route no longer qualifies, the "closed" step is still tracked, and a test covers it.
  • Still open, none blocking: no focus move into the card on open or back to the trigger on close, the Catalog card scrolls away with the search results, and the weekly key is per origin.

Not run locally. CI was still running on this head when I posted (28 checks pending, none failed).

Need: yes · Size: ok · Reuse: guide download now reuses launchDesktopDownload · Simpler: already minimal · Structure: fine (checked desktopCardStore launchDesktopDownload and useGuide; the stage slot and segments were split out of the card component; no further split)
Risk: low — UI-only change in Studio, closed-state behaviour covered by a test.

— Rames

@miguel-heygen
miguel-heygen added this pull request to the merge queue Dec 1, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
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.

2 participants