diff --git a/src/renderer/src/components/feature-wall/BrowserAnimatedVisual.tsx b/src/renderer/src/components/feature-wall/BrowserAnimatedVisual.tsx index 39f8b7f69..3c7f353a6 100644 --- a/src/renderer/src/components/feature-wall/BrowserAnimatedVisual.tsx +++ b/src/renderer/src/components/feature-wall/BrowserAnimatedVisual.tsx @@ -13,6 +13,11 @@ import { FeatureWallClickRing } from './FeatureWallClickRing' const PROMPT_TEXT = 'Make Starter card stand out' +// Why: these hand-rolled tour popovers need the same dark-mode separation as +// Orca's dropdown/popover primitives while staying inside the storyboard DOM. +const TOUR_FLOATING_SURFACE_CLASS = + 'border border-black/14 bg-[rgba(255,255,255,0.82)] text-popover-foreground shadow-[0_16px_36px_rgba(0,0,0,0.24),inset_0_1px_0_rgba(255,255,255,0.14)] backdrop-blur-2xl dark:border-white/14 dark:bg-[rgba(0,0,0,0.72)] dark:shadow-[0_20px_44px_rgba(0,0,0,0.42),inset_0_1px_0_rgba(255,255,255,0.04)]' + const PRE_INTRO_MS = 600 const NEWTAB_APPROACH_MS = 700 const NEWTAB_CLICK_MS = 180 @@ -124,7 +129,9 @@ const TERM_ENTRIES: readonly { entry: TermEntry; minPhase: Phase }[] = [ html: ( <> ✓ Updated{' '} - .pp-card[data-card="starter"] .pp-cta + + .pp-card[data-card="starter"] .pp-cta + ) }, @@ -204,6 +211,9 @@ export function BrowserAnimatedVisual(props: { } } + /* oxlint-disable react-doctor/no-adjust-state-on-prop-change -- Why: this + storyboard effect owns timed local animation state; deriving every phase + during render would break measured cursor sequencing. */ useEffect(() => { if (reducedMotion) { setPhase('verified') @@ -428,6 +438,7 @@ export function BrowserAnimatedVisual(props: { timeouts.forEach((id) => window.clearTimeout(id)) } }, [onCycleComplete, reducedMotion]) + /* oxlint-enable react-doctor/no-adjust-state-on-prop-change */ const isIntroPhase = phase === 'idle' || @@ -476,7 +487,7 @@ export function BrowserAnimatedVisual(props: { }} > {/* Browser app-window — column 1 */} -
+
@@ -522,14 +532,14 @@ export function BrowserAnimatedVisual(props: { ref={newtabRowRef} className={cn( 'grid items-center gap-2 rounded-md px-2 py-[5px]', - newtabRowActive ? 'bg-foreground/[0.06]' : null + newtabRowActive ? 'bg-black/8 dark:bg-white/14' : null )} style={{ gridTemplateColumns: '18px 1fr' }} > - + - New Browser Tab + New Browser Tab {newBrowserShortcutLabel} @@ -595,7 +605,8 @@ export function BrowserAnimatedVisual(props: {
div.pricing-grid > div.card.starter:nth-of-type(1) > a.cta - -
+ +
{typedChars > 0 ? ( <> {PROMPT_TEXT.slice(0, typedChars)} - + ) : ( Describe the change… @@ -632,7 +643,7 @@ export function BrowserAnimatedVisual(props: { key={flashKey} aria-hidden className={cn( - 'pointer-events-none absolute inset-0 z-40 bg-white', + 'pointer-events-none absolute inset-0 z-40 bg-background/85 dark:bg-foreground/12', flashing ? 'animate-[browserFlash_360ms_ease-out_forwards]' : 'opacity-0' )} /> @@ -653,13 +664,9 @@ export function BrowserAnimatedVisual(props: {
- {/* Terminal pane — column 2, sibling of the browser. Light theme to - match the other terminals in this tile (Terminal sub-step + the - workbench mock's `.br-terminal`); a dark pane next to a light - browser reads as two broken UIs (see STYLEGUIDE one-theme rule). */}
@@ -728,9 +735,9 @@ function DropdownSkeletonRow(props: { widthPct: number }): JSX.Element { className="grid items-center gap-2 rounded-md px-2 py-[5px]" style={{ gridTemplateColumns: '18px 1fr' }} > - +
@@ -741,7 +748,7 @@ function TermEntryView(props: { entry: TermEntry }): JSX.Element { const { entry } = props if (entry.kind === 'prompt') { return ( - + > {entry.text} ) @@ -749,25 +756,25 @@ function TermEntryView(props: { entry: TermEntry }): JSX.Element { if (entry.kind === 'working') { return ( - + Working… ) } if (entry.kind === 'ok') { - return {entry.html} + return {entry.html} } if (entry.kind === 'tool') { return ( - {entry.tool}{' '} - {entry.arg} + {entry.tool}{' '} + {entry.arg} ) } return ( - {entry.tool}{' '} + {entry.tool}{' '} {entry.muted} )