Repository navigation
feat(studio): add Desktop app showcase card, Catalog upsell, and Desktop header - #9218
miguel-heygen wants to merge 3 commits into
Conversation
Edit accuracy: accurate 275 (base branch 275), smooth 75 of thoseThe gate passes. Quarantined, measured but not gated (0) |
|
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
left a comment
There was a problem hiding this comment.
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: hiddento the closed rule andvisibility: visibleto the open rule, withtransition: opacity .18s, transform .18s, visibility 0s .18son close so the exit still animates; or - set
inerton the card root whileopenis 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) andlaunchDesktopDownload(desktopCardStore.ts) are now two copies of the same open-tab, toast and telemetry steps.useGuide.downloadcould calllaunchDesktopDownloadand keep onlysetDownloaded(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: trueand noclosedstep is recorded. AcloseDesktopCard()whencanShowDesktopUpsellturns 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
|
Fixed in 0b3e3d07:
|
jrusso1020
left a comment
There was a problem hiding this comment.
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.
useCardDismisssetsinerton the card root wheneveropenis 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 hasvisibility: 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
inertandaria-hidden="true", opens it, and closes it again.
Nits from the last round
- Media load while closed: fixed. The stage mounts only once
openSeqis above 0, and the choreography effect waits for the same condition and hasopenSeqin its deps, so it picks up the stage on first open. Auto-open goes throughopenDesktopCard, which always bumpsopenSeq. - Duplicate download handler: fixed. The guide's
downloadnow callslaunchDesktopDownload, 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.
setDesktopCardRoutecloses 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
Summary
Brings the new Desktop app showcase experience and Desktop header to OSS Studio when the Desktop app is not yet installed:
HyperFramesmark + wordmark and/divider before the project name (HyperFrames / <project>).!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-motionrespected). Preserves"Open in desktop app"for installed handoff and the folder-drop guide card for open-failed / Linux-installed / storyboard placements.ABC Solar Displayheadlines (loaded from public CDN with system fallback), OS-aware download CTA (Download free for Mac/Windows/Linux->Download startedwithhf_ctaattribution), and agent-tailored Scene 0 copy viaresolveAgentRuntime():<Agent>subscription (or 5-agent row fallback)hf_desktop_card_last_auto_atinlocalStorage).⌘K/Ctrl+K) -> Scene 0D) -> Scene 1C) -> Scene 1R.)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-promofixture): stackedHeyGen / HyperFrames | product-promoheader, standard"Install the desktop app"button, empty"Nothing selected"inspector with no Desktop rows, and Catalog tab with no Desktop upsell card.After
After this change (
registry/examples/product-promofixture): 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)
Ctrl+K)Card Scenes & Hover Detail
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:
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), andpackages/studio/src/components/OpenInDesktopButton.dom.test.tsx(aurora"Make editing easier"pill, 5-scene floating card, OS-aware CTA, install detection) all fail againstmainwithout these changes.7331and1093): 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).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-subpathsall green.registry/examples/product-promoacross 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.