Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop-app): unify the brand lockup and settle the onboarding card
Andy Pavia841fadb57bb9
diff --git a/desktop-app/ui/src/components/AuthBrand/index.tsx b/desktop-app/ui/src/components/AuthBrand/index.tsxnew file mode 100644index 000000000..7176dcf50--- /dev/null+++ b/desktop-app/ui/src/components/AuthBrand/index.tsx@@ -0,0 +1,30 @@+import { formatDesktopAppVersionTooltip, useDesktopAppInfo } from '@hooks/useDesktopAppInfo'++/**+ * The brand lockup for pre-authentication cards (sign-in and onboarding).+ *+ * Uses the logotype SVG — one asset carrying the mark and the wordmark+ * together — rather than the square mark beside hand-typed text, matching+ * Control UI's login card and this app's own SidebarNav. Both themes ship as+ * separate files and are toggled by CSS, not by reading the theme in JS, so+ * the correct one is painted on the first frame with no flash.+ *+ * Only the dark variant carries alt text; the light one is aria-hidden, so+ * assistive tech announces "Evenfire" exactly once no matter which is visible.+ */+export function AuthBrand() {+ const desktopAppInfo = useDesktopAppInfo()+ const desktopVersionTooltip = formatDesktopAppVersionTooltip(desktopAppInfo)++ return (+ <div className="auth-brand" title={desktopVersionTooltip}>+ <img+ className="brand-lockup brand-lockup--light"+ src="./logotype-light.svg"+ alt=""+ aria-hidden="true"+ />+ <img className="brand-lockup brand-lockup--dark" src="./logotype-dark.svg" alt="Evenfire" />+ </div>+ )+}diff --git a/desktop-app/ui/src/components/BootSplash/index.tsx b/desktop-app/ui/src/components/BootSplash/index.tsxindex 188ba543c..df014c6ad 100644--- a/desktop-app/ui/src/components/BootSplash/index.tsx+++ b/desktop-app/ui/src/components/BootSplash/index.tsx@@ -38,11 +38,17 @@ export function BootSplash({ loading }: BootSplashProps) {<div className={`boot-overlay${leaving ? ' boot-overlay--leaving' : ''}`}><section className="boot-screen glass-card" role="status" aria-live="polite"><div className="boot-brand">- <img className="boot-brand-mark" src="./logo.svg" alt="" aria-hidden="true" />- <span className="boot-brand-copy">- <span className="boot-brand-title">Evenfire</span>- <span className="boot-brand-subtitle">Desktop App</span>- </span>+ <img+ className="brand-lockup brand-lockup--light"+ src="./logotype-light.svg"+ alt=""+ aria-hidden="true"+ />+ <img+ className="brand-lockup brand-lockup--dark"+ src="./logotype-dark.svg"+ alt="Evenfire"+ /></div><div className="boot-progress" aria-hidden="true" /><p className="boot-status muted">Loading session…</p>diff --git a/desktop-app/ui/src/pages/AuthPage/index.tsx b/desktop-app/ui/src/pages/AuthPage/index.tsxindex f0f07f2e0..e9585bdec 100644--- a/desktop-app/ui/src/pages/AuthPage/index.tsx+++ b/desktop-app/ui/src/pages/AuthPage/index.tsx@@ -1,9 +1,9 @@import type { FormEvent } from 'react'import { useState } from 'react'import { useAuthContext } from '@contexts/AuthContext'+import { AuthBrand } from '@components/AuthBrand'import { Button, Field, StatusBanner, TextInput } from '@components/Common'import { RuntimeConfigDock } from '@components/RuntimeConfigDock'-import { formatDesktopAppVersionTooltip, useDesktopAppInfo } from '@hooks/useDesktopAppInfo'/*** Sign-in for a configured environment.@@ -39,8 +39,6 @@ export function AuthPage() {Boolean(runtimeConfigSetupName.trim()) &&Boolean(runtimeConfigSetupExternalRestApiBaseUrl.trim())const [forgotPasswordBusy, setForgotPasswordBusy] = useState(false)- const desktopAppInfo = useDesktopAppInfo()- const desktopVersionTooltip = formatDesktopAppVersionTooltip(desktopAppInfo)const handlePasswordSubmit = (event: FormEvent<HTMLFormElement>) => {event.preventDefault()@@ -79,15 +77,12 @@ export function AuthPage() {<main className="auth-page"><section className="auth-card glass-card"><header className="auth-card__header">- <div className="auth-brand" title={desktopVersionTooltip}>- <img className="auth-brand-mark" src="./logo.svg" alt="" aria-hidden="true" />- <span className="auth-brand-copy">- <span className="auth-brand-title">Evenfire</span>- <span className="auth-brand-subtitle">Desktop App</span>- </span>- </div>+ <AuthBrand /></header>+ {/* Sign-in stays content-sized. The fixed height belongs to the+ onboarding wizard, which needs it because its steps differ wildly+ in length; sign-in has one short form and reads better snug. */}{runtimeSetupVisible ? (<form className="auth-form-stack" onSubmit={handleRuntimeSetupSubmit}><Fielddiff --git a/desktop-app/ui/src/pages/OnboardingPage/index.tsx b/desktop-app/ui/src/pages/OnboardingPage/index.tsxindex d470bfecd..1e1be68e4 100644--- a/desktop-app/ui/src/pages/OnboardingPage/index.tsx+++ b/desktop-app/ui/src/pages/OnboardingPage/index.tsx@@ -1,5 +1,5 @@+import { AuthBrand } from '@components/AuthBrand'import { RuntimeConfigDock } from '@components/RuntimeConfigDock'-import { formatDesktopAppVersionTooltip, useDesktopAppInfo } from '@hooks/useDesktopAppInfo'import { Hosted } from './steps/Hosted'import { InvitedMember } from './steps/InvitedMember'import { ManualEnvironment } from './steps/ManualEnvironment'@@ -20,35 +20,38 @@ interface OnboardingPageProps {*/export function OnboardingPage({ onboarding }: OnboardingPageProps) {const { step, canGoBack, answerOrigin, answerRunStyle, goToManual, back } = onboarding- const desktopAppInfo = useDesktopAppInfo()- const desktopVersionTooltip = formatDesktopAppVersionTooltip(desktopAppInfo)return (<main className="auth-page">- <section className="auth-card glass-card onboarding-card">+ <section className="auth-card glass-card auth-card--flow"><header className="auth-card__header">- <div className="auth-brand" title={desktopVersionTooltip}>- <img className="auth-brand-mark" src="./logo.svg" alt="" aria-hidden="true" />- <span className="auth-brand-copy">- <span className="auth-brand-title">Evenfire</span>- <span className="auth-brand-subtitle">Desktop App</span>- </span>- </div>+ <AuthBrand /></header>+ <div className="auth-card__divider" role="presentation" />- {step === 'origin' || step === 'runStyle' ? (- <PathChoice step={step} onAnswerOrigin={answerOrigin} onAnswerRunStyle={answerRunStyle} />- ) : null}- {step === 'invited' ? <InvitedMember /> : null}- {step === 'hosted' ? <Hosted onContinue={goToManual} /> : null}- {step === 'selfHosted' ? <SelfHosted onContinue={goToManual} /> : null}- {step === 'manual' ? <ManualEnvironment /> : null}+ {/* One wrapper for every step so the card can hold a constant height+ and scroll internally, instead of resizing as steps change. */}+ <div className="auth-card__body">+ {step === 'origin' || step === 'runStyle' ? (+ <PathChoice+ step={step}+ onAnswerOrigin={answerOrigin}+ onAnswerRunStyle={answerRunStyle}+ />+ ) : null}+ {step === 'invited' ? <InvitedMember /> : null}+ {step === 'hosted' ? <Hosted onContinue={goToManual} /> : null}+ {step === 'selfHosted' ? <SelfHosted onContinue={goToManual} /> : null}+ {step === 'manual' ? <ManualEnvironment /> : null}+ </div>- {canGoBack ? (- <button type="button" className="auth-inline-link" onClick={back}>- Back- </button>- ) : null}+ <div className="auth-card__footer">+ {canGoBack ? (+ <button type="button" className="auth-inline-link" onClick={back}>+ Back+ </button>+ ) : null}+ </div></section><RuntimeConfigDock onAddEnvironment={goToManual} /></main>diff --git a/desktop-app/ui/src/styles.css b/desktop-app/ui/src/styles.cssindex cd296d265..22f360454 100644--- a/desktop-app/ui/src/styles.css+++ b/desktop-app/ui/src/styles.css@@ -9995,45 +9995,17 @@ button.page-breadcrumb-link--plain-action:hover:enabled {animation: boot-screen-out var(--boot-exit-duration) ease forwards;}+/* The splash carries the same lockup as the auth cards, one step larger since+ it stands alone on a full-screen backdrop rather than above a form. */.boot-brand {+ --brand-lockup-height: 34px;+display: inline-flex;align-items: center;- gap: var(--space-2-5);opacity: 0;animation: boot-brand-in 600ms cubic-bezier(0.2, 0.8, 0.25, 1) both;}-.boot-brand-mark {- width: 44px;- height: 44px;- flex: 0 0 auto;- object-fit: contain;-}--.boot-brand-copy {- display: grid;- gap: 2px;- min-width: 0;- text-align: left;-}--.boot-brand-title {- font-size: var(--font-size-xl);- font-weight: var(--font-weight-bold);- line-height: var(--line-height-tight);- color: var(--text);-}--.boot-brand-subtitle {- font-size: var(--font-size-xs);- font-weight: var(--font-weight-bold);- line-height: 1.15;- color: var(--text-muted);- letter-spacing: var(--letter-spacing-caps);- text-transform: uppercase;- white-space: nowrap;-}-.boot-progress {position: relative;width: 200px;@@ -10129,42 +10101,54 @@ button.page-breadcrumb-link--plain-action:hover:enabled {.auth-card__header {display: grid;gap: var(--space-2);+ justify-items: center;}+/* Hairline separating the brand from the form or wizard step below. Its own+ element rather than a border on the header, so the space above and below is+ the rule's own margin and can be tuned without touching header padding.+ Uses the edge token so it tracks the theme instead of pinning one grey. */+.auth-card__divider {+ width: 70%;+ height: 1px;+ /* No margin — the card's grid gap already spaces this. `justify-self` does+ the centering instead, so the two never compound. */+ justify-self: center;+ background: rgba(var(--edge-rgb), 0.3);+}++/* One logotype asset carrying mark and wordmark together, the same lockup+ Control UI's login card and this app's SidebarNav use — not the square mark+ beside hand-typed text. Shared by every brand surface (auth, onboarding, the+ boot splash) so they cannot drift apart. The two theme files are swapped by+ CSS rather than by reading the theme in JS, so the right one paints on the+ first frame. Height is a variable so a surface can scale the lockup without+ forking the rule. */.auth-brand {display: inline-flex;align-items: center;- gap: var(--space-2);+ margin: var(--space-2) 0;}-.auth-brand-mark {- width: 42px;- height: 42px;- flex: 0 0 auto;+.brand-lockup {+ display: block;+ width: 100%;+ max-width: 200px;+ max-height: var(--brand-lockup-height, 28px);object-fit: contain;+ background: transparent;}-.auth-brand-copy {- display: grid;- gap: 2px;- min-width: 0;+.brand-lockup--dark {+ display: none;}-.auth-brand-title {- font-size: var(--font-size-xl);- font-weight: 700;- line-height: 1.1;- color: var(--text);+:root[data-theme='dark'] .brand-lockup--light {+ display: none;}-.auth-brand-subtitle {- font-size: var(--font-size-xs);- font-weight: 700;- line-height: 1.15;- color: var(--text-muted);- letter-spacing: 0.08em;- text-transform: uppercase;- white-space: nowrap;+:root[data-theme='dark'] .brand-lockup--dark {+ display: block;}.auth-flow-card {@@ -10264,10 +10248,44 @@ button.page-breadcrumb-link--plain-action:hover:enabled {/* First-run onboarding (spec §5.2). The wizard reuses the auth card shell andthe auth form/link primitives; only the answer list is new. */+/* Hold one height across every step so the card stops growing and shrinking as+ the user moves through the wizard. The body takes the slack and scrolls if a+ step ever outgrows it, and the footer keeps Back pinned to the bottom so it+ does not travel with the content above it. Capped against the viewport so a+ short window scrolls instead of overflowing. */+/* One card shape shared by every pre-authentication screen — the onboarding+ wizard and sign-in alike — so the card never resizes as the user moves+ between steps, or when onboarding hands off to sign-in.++ Sized to the tallest content: the manual environment form with the Localhost+ option showing, which needs ~500px (two fields, a 72px option, and the brand+ header). Shorter screens carry the slack as empty space; that is the trade+ for a card that holds still. Capped against the viewport so a short window+ scrolls the body instead of overflowing. */+.auth-card--flow {+ height: min(540px, 86vh);+ /* header, divider, body, footer — the body takes the slack. */+ grid-template-rows: auto auto 1fr auto;+}++.auth-card__body {+ display: grid;+ gap: var(--space-3);+ align-content: start;+ overflow-y: auto;+ min-height: 0;+}++.auth-card__footer {+ display: flex;+ align-items: end;+ min-height: var(--space-5);+}+/* A bare h1 falls back to the browser's 2em — 32px, which is off the typescale entirely and oversized inside a 420px card. Pull it onto the scale,above the 18px brand title so the step heading still leads. */-.onboarding-card h1 {+.auth-card--flow h1 {font-size: var(--font-size-2xl);font-weight: var(--font-weight-semibold);line-height: var(--line-height-tight);