Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(onboarding): sign-in or API key in each provider row, plainer name and voice steps
rubenluetke10-beepbd7f9b7297a4
diff --git a/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.test.tsx b/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.test.tsxindex aac21c4033..4e5acf333e 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.test.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.test.tsx@@ -6,21 +6,14 @@ vi.mock("./setup/SetupTour", () => ({preview,startAt,onFinished,- onSkipAll,}: {preview: boolean;startAt?: string;onFinished: () => void;- onSkipAll?: () => void;}) => (- <>- <button type="button" data-testid="guide" data-preview={String(preview)} data-start={startAt ?? ""} onClick={onFinished}>- guide- </button>- <button type="button" data-testid="guide-skip-all" onClick={onSkipAll}>- skip- </button>- </>+ <button type="button" data-testid="guide" data-preview={String(preview)} data-start={startAt ?? ""} onClick={onFinished}>+ guide+ </button>),}));vi.mock("./setup/SectionWalk", () => ({@@ -194,15 +187,3 @@ it("never completes onboarding after a replayed setup", async () => {expect(urls).not.toContain("/api/onboarding/complete");expect(urls).not.toContain("/api/onboarding/tour-complete");});--it("skips the whole first run: tour recorded, onboarding completed, no guide left", async () => {- const fetchMock = stub({ ...base, completed: false, tour_completed: false });- render(<OnboardingGate activeSection="chats" />);- const skip = await screen.findByTestId("guide-skip-all");- act(() => skip.click());- const urls = () => fetchMock.mock.calls.map((c) => String(c[0]));- await waitFor(() => expect(urls()).toContain("/api/onboarding/complete"));- expect(urls()).toContain("/api/onboarding/tour-complete");- expect(screen.queryByTestId("guide")).toBeNull();- expect(screen.queryByTestId("tour")).toBeNull();-});diff --git a/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsx b/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsxindex 5bac859c91..209f724595 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsx@@ -86,14 +86,14 @@ export function OnboardingGate({ activeSection }: { activeSection?: string } = {// A real first run is recorded as done (the walk included) and gets its// one completion restart; a replay just closes.- const completeFirstRun = (reason: string) => {+ const completeFirstRun = () => {void (async () => {await onb.completeTour();try {await onb.complete();} catch (e) {// The next start resumes setup at its last step, so nothing is lost.- console.warn(`onboarding: completing after ${reason} failed`, e);+ console.warn("onboarding: completing after the walk failed", e);}})();};@@ -105,17 +105,11 @@ export function OnboardingGate({ activeSection }: { activeSection?: string } = {key={setupReplay}onb={onb}preview={isPreview}- onSkipAll={() => {- setSetupReplay(0);- setDismissed(true);- if (isPreview) return;- completeFirstRun("skipping setup");- }}onFinished={() => {setSetupReplay(0);setDismissed(true);if (isPreview) return;- completeFirstRun("the walk");+ completeFirstRun();}}/></Suspense>diff --git a/jarvis/ui/web/frontend/src/components/onboarding/setup/ConnectStep.tsx b/jarvis/ui/web/frontend/src/components/onboarding/setup/ConnectStep.tsxindex bbee73bfeb..9044369e98 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/setup/ConnectStep.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/setup/ConnectStep.tsx@@ -1,17 +1,21 @@/*** Setup window, step 2: connect an AI.*- * Subscriptions the user already pays for come first, one row each, signed- * in with one click — the official CLI opens the browser, and the row polls- * until the login lands. An API key sits below as its own row: one key is- * all the assistant needs to think and talk, and a key saved here is switched- * on right away (a starter plan it completes, or the Brain when none is- * active yet).+ * One row per provider. A row offers both ways in side by side: sign in with+ * a subscription the user already pays for (the official CLI opens the+ * browser, and the row polls until the login lands), or paste an API key+ * right in the row. Providers that only take a key sit under "More+ * providers". A key saved here is switched on right away (a starter plan it+ * completes, or the Brain when none is active yet).+ *+ * Which key card belongs to a row is decided by provider FAMILY from the+ * catalog, never a hardcoded id, so any single key that can be the brain+ * works (AP-21).*/-import { Check, ChevronRight, Copy, KeyRound, Loader2, Lock } from "lucide-react";+import { Check, ChevronRight, Copy, Loader2, Lock } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { ApiKeyForm } from "@/components/ApiKeyForm";-import { ProviderLogo } from "@/components/providers/ProviderLogo";+import { providerFamily, ProviderLogo } from "@/components/providers/ProviderLogo";import { Button } from "@/components/ui/button";import { switchBrainProvider, useProviders, type ProviderDescriptor } from "@/hooks/useProviders";import { applyStarterPlan, getStarterPlans, selectStarterPlan, type StarterPlan } from "@/hooks/useStarterPlans";@@ -19,16 +23,12 @@ import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";import { planKeysComplete, primarySlot, slotConfigured, slotEffective, startableProviders } from "../brainPlans";-/** How a subscription row reads its CLI login, and when it counts as signed in. */+/** How a subscription reads its CLI login, and when it counts as signed in. */export interface SubscriptionSpec {- id: string;- /** A provider id ProviderLogo knows, for the brand mark. */- logoId: string;- label: string;- /** The plans that sign in here — product names, the same in every language. */- plans: string;statusUrl: string;loginUrl: string;+ /** The plans that sign in here — product names, the same in every language. */+ plans: string;isReady: (status: CliStatus) => boolean;}@@ -39,48 +39,71 @@ export interface CliStatus {user_email?: string | null;}-export const SUBSCRIPTIONS: readonly SubscriptionSpec[] = [+/** A provider row: its brand, its subscription (if any) and the key family it takes. */+export interface ProviderRowSpec {+ id: string;+ label: string;+ /** A provider id ProviderLogo knows, for the brand mark. */+ logoId: string;+ /** The `providerFamily` of the brain key card this row edits. */+ keyFamily: string;+ subscription: SubscriptionSpec;+}++export const PROVIDER_ROWS: readonly ProviderRowSpec[] = [{id: "claude",- logoId: "claude-cli",label: "Claude",- plans: "Claude Pro · Max",- statusUrl: "/api/claude/status",- loginUrl: "/api/claude/login",- isReady: (s) => Boolean(s.connected && s.mode === "subscription"),+ logoId: "claude-cli",+ keyFamily: "claude",+ subscription: {+ statusUrl: "/api/claude/status",+ loginUrl: "/api/claude/login",+ plans: "Claude Pro · Max",+ isReady: (s) => Boolean(s.connected && s.mode === "subscription"),+ },},{- id: "codex",+ id: "openai",+ label: "OpenAI",logoId: "openai-codex",- label: "ChatGPT",- plans: "ChatGPT Plus · Pro (Codex)",- statusUrl: "/api/codex/status",- loginUrl: "/api/codex/login",- isReady: (s) => Boolean(s.connected),+ keyFamily: "openai",+ subscription: {+ statusUrl: "/api/codex/status",+ loginUrl: "/api/codex/login",+ plans: "ChatGPT Plus · Pro",+ isReady: (s) => Boolean(s.connected),+ },},{- id: "antigravity",- logoId: "antigravity",- label: "Google",- plans: "Google AI Pro · Ultra (Antigravity)",- statusUrl: "/api/antigravity/status",- loginUrl: "/api/antigravity/login",- isReady: (s) => Boolean(s.connected && s.mode !== "api_key"),+ id: "google",+ label: "Google Gemini",+ logoId: "gemini",+ keyFamily: "gemini",+ subscription: {+ statusUrl: "/api/antigravity/status",+ loginUrl: "/api/antigravity/login",+ plans: "Google AI Pro · Ultra",+ isReady: (s) => Boolean(s.connected && s.mode !== "api_key"),+ },},{id: "grok",- logoId: "grok-build",- label: "Grok",- plans: "SuperGrok · X Premium+",- statusUrl: "/api/grok-build/status",- loginUrl: "/api/grok-build/login",- isReady: (s) => Boolean(s.connected && s.mode === "subscription"),+ label: "xAI Grok",+ logoId: "grok",+ keyFamily: "xai",+ subscription: {+ statusUrl: "/api/grok-build/status",+ loginUrl: "/api/grok-build/login",+ plans: "SuperGrok · X Premium+",+ isReady: (s) => Boolean(s.connected && s.mode === "subscription"),+ },},];/** How often a row re-reads its login while the browser sign-in runs. */const LOGIN_POLL_MS = 2500;-/** Give up waiting after this long; the row offers Connect again. */+/** Give up waiting after this long; the row offers Sign in again. */const LOGIN_POLL_MAX_MS = 180_000;async function readStatus(url: string): Promise<CliStatus | null> {@@ -89,19 +112,25 @@ async function readStatus(url: string): Promise<CliStatus | null> {if (!res.ok) return null;return (await res.json()) as CliStatus;} catch {- // A warming backend reads as "not known yet"; the row shows Connect.+ // A warming backend reads as "not known yet"; the row offers Sign in.return null;}}-type RowPhase = "checking" | "ready" | "idle" | "starting" | "waiting";+type LoginPhase = "checking" | "ready" | "idle" | "starting" | "waiting";-/** Names of the subscriptions signed in right now — read by the setup's other steps. */-export type ConnectedChange = (id: string, ready: boolean) => void;+interface SubscriptionState {+ phase: LoginPhase;+ status: CliStatus | null;+ error: string | null;+ installCommand: string | null;+ connect: () => Promise<void>;+ checkAgain: () => Promise<void>;+}-function SubscriptionRow({ spec, onReady }: { spec: SubscriptionSpec; onReady: ConnectedChange }) {- const t = useT();- const [phase, setPhase] = useState<RowPhase>("checking");+/** One subscription's login: read once, then poll only while a sign-in runs. */+function useSubscription(spec: SubscriptionSpec): SubscriptionState {+ const [phase, setPhase] = useState<LoginPhase>("checking");const [status, setStatus] = useState<CliStatus | null>(null);const [error, setError] = useState<string | null>(null);const [installCommand, setInstallCommand] = useState<string | null>(null);@@ -111,11 +140,9 @@ function SubscriptionRow({ spec, onReady }: { spec: SubscriptionSpec; onReady: C(next: CliStatus | null) => {if (!alive.current) return false;setStatus(next);- const ready = Boolean(next && spec.isReady(next));- onReady(spec.id, ready);- return ready;+ return Boolean(next && spec.isReady(next));},- [spec, onReady],+ [spec],);useEffect(() => {@@ -129,7 +156,7 @@ function SubscriptionRow({ spec, onReady }: { spec: SubscriptionSpec; onReady: C};}, [spec.statusUrl, apply]);- async function connect() {+ const connect = useCallback(async () => {setError(null);setPhase("starting");try {@@ -162,46 +189,121 @@ function SubscriptionRow({ spec, onReady }: { spec: SubscriptionSpec; onReady: C}}if (alive.current) setPhase("idle");- }+ }, [spec, apply]);- async function checkAgain() {+ const checkAgain = useCallback(async () => {setPhase("checking");const fresh = await readStatus(spec.statusUrl);const ready = apply(fresh);if (!alive.current) return;if (ready || fresh?.installed) setInstallCommand(null);setPhase(ready ? "ready" : "idle");- }+ }, [spec.statusUrl, apply]);++ return { phase, status, error, installCommand, connect, checkAgain };+}- const ready = phase === "ready";- const detail = ready- ? status?.user_email- ? fill(t("first_run.connect.signed_in_as"), { account: status.user_email })- : t("first_run.connect.signed_in")- : phase === "waiting"+/** The brand mark without a tile, beside the row's name. */+function Mark({ providerId, label }: { providerId: string; label: string }) {+ return <ProviderLogo providerId={providerId} label={label} className="h-5 w-5 rounded-none bg-transparent" />;+}++function ReadyMark() {+ const t = useT();+ return (+ <span className="inline-flex items-center gap-1.5 text-xs font-medium text-success">+ <Check aria-hidden className="h-3.5 w-3.5" />+ {t("first_run.connect.ready")}+ </span>+ );+}++/** The key field for one brain key card, opened inside its row. */+function KeyPanel({ provider, onChanged }: { provider: ProviderDescriptor; onChanged: () => void }) {+ const slot = primarySlot(provider);+ if (!slot) return null;+ return (+ <div className="border-t border-border px-4 pb-4 pt-3" data-testid={`setup-key-panel-${provider.id}`}>+ <ApiKeyForm+ secretKey={slot}+ dashboardUrl={provider.dashboard_url}+ configured={slotConfigured(provider)}+ effectiveConfigured={slotEffective(provider)}+ credentialHelp={provider.credential_help}+ onChanged={onChanged}+ />+ </div>+ );+}++function KeyToggle({ open, onClick, testId }: { open: boolean; onClick: () => void; testId: string }) {+ const t = useT();+ return (+ <Button size="sm" variant="ghost" onClick={onClick} aria-expanded={open} data-testid={testId} className="text-muted-foreground">+ {t("first_run.connect.api_key")}+ <ChevronRight aria-hidden className={cn("transition-transform", open && "rotate-90")} />+ </Button>+ );+}++/** A provider with both ways in: a subscription sign-in and an API key. */+function ProviderRow({+ spec,+ keyProvider,+ onReady,+ onKeyChanged,+}: {+ spec: ProviderRowSpec;+ keyProvider: ProviderDescriptor | undefined;+ onReady: (id: string, ready: boolean) => void;+ onKeyChanged: () => void;+}) {+ const t = useT();+ const sub = useSubscription(spec.subscription);+ const [keyOpen, setKeyOpen] = useState(false);+ const signedIn = sub.phase === "ready";+ const keySaved = Boolean(keyProvider && slotEffective(keyProvider));++ useEffect(() => {+ onReady(spec.id, signedIn);+ }, [spec.id, signedIn, onReady]);++ const parts: string[] = [];+ if (signedIn) {+ parts.push(+ sub.status?.user_email+ ? fill(t("first_run.connect.signed_in_as"), { account: sub.status.user_email })+ : t("first_run.connect.signed_in"),+ );+ }+ if (keySaved) parts.push(t("first_run.connect.key_saved"));+ const detail =+ sub.phase === "waiting"? t("first_run.connect.finish_in_browser")- : status && status.installed === false- ? t("first_run.connect.not_installed")- : spec.plans;+ : parts.length > 0+ ? parts.join(" · ")+ : keyProvider+ ? fill(t("first_run.connect.plans_or_key"), { plans: spec.subscription.plans })+ : spec.subscription.plans;return (- <div className="rounded-lg border border-border bg-popover px-4 py-3" data-testid={`setup-sub-${spec.id}`} data-state={phase}>- <div className="flex items-center gap-3">- <ProviderLogo providerId={spec.logoId} label={spec.label} />+ <div className="rounded-lg border border-border bg-popover" data-testid={`setup-sub-${spec.id}`} data-state={sub.phase}>+ <div className="flex flex-wrap items-center gap-3 px-4 py-3.5">+ <Mark providerId={spec.logoId} label={spec.label} /><div className="min-w-0 flex-1"><p className="text-sm font-medium text-foreground">{spec.label}</p><p className="mt-0.5 truncate text-xs text-muted-foreground">{detail}</p></div>- <div className="shrink-0">- {ready ? (- <span className="inline-flex items-center gap-1.5 text-xs font-medium text-success">- <Check aria-hidden className="h-3.5 w-3.5" />- {t("first_run.connect.ready")}- </span>- ) : phase === "checking" ? (- <span className="text-xs text-muted-foreground">{t("first_run.connect.checking")}</span>- ) : phase === "waiting" ? (- <span className="inline-flex items-center gap-1.5 text-xs text-muted-foreground">+ <div className="flex shrink-0 items-center gap-1.5">+ {keyProvider && (+ <KeyToggle open={keyOpen} onClick={() => setKeyOpen((o) => !o)} testId={`setup-sub-${spec.id}-key`} />+ )}+ {signedIn ? (+ <ReadyMark />+ ) : sub.phase === "checking" ? (+ <span className="px-2 text-xs text-muted-foreground">{t("first_run.connect.checking")}</span>+ ) : sub.phase === "waiting" ? (+ <span className="inline-flex items-center gap-1.5 px-2 text-xs text-muted-foreground"><Loader2 aria-hidden className="h-3.5 w-3.5 animate-spin" />{t("first_run.connect.waiting")}</span>@@ -209,26 +311,52 @@ function SubscriptionRow({ spec, onReady }: { spec: SubscriptionSpec; onReady: C<Buttonsize="sm"variant="outline"- onClick={() => void connect()}- disabled={phase === "starting"}+ onClick={() => void sub.connect()}+ disabled={sub.phase === "starting"}data-testid={`setup-sub-${spec.id}-connect`}>- {phase === "starting" && <Loader2 aria-hidden className="animate-spin" />}- {t("first_run.connect.connect")}+ {sub.phase === "starting" && <Loader2 aria-hidden className="animate-spin" />}+ {t("first_run.connect.sign_in")}</Button>)}</div></div>- {installCommand && !ready && (- <div className="ml-12 mt-3 space-y-2" data-testid={`setup-sub-${spec.id}-install`}>+ {sub.installCommand && !signedIn && (+ <div className="space-y-2 px-4 pb-3.5 pl-12" data-testid={`setup-sub-${spec.id}-install`}><p className="text-xs text-muted-foreground">{t("first_run.connect.install_first")}</p>- <CommandBlock command={installCommand} />- <Button size="sm" variant="ghost" onClick={() => void checkAgain()}>+ <CommandBlock command={sub.installCommand} />+ <Button size="sm" variant="ghost" onClick={() => void sub.checkAgain()}>{t("first_run.connect.check_again")}</Button></div>)}- {error && !ready && <p className="ml-12 mt-2 text-xs text-destructive">{error}</p>}+ {sub.error && !signedIn && <p className="px-4 pb-3 pl-12 text-xs text-destructive">{sub.error}</p>}+ {keyOpen && keyProvider && <KeyPanel provider={keyProvider} onChanged={onKeyChanged} />}+ </div>+ );+}++/** A provider that only takes an API key. */+function KeyOnlyRow({ provider, onKeyChanged }: { provider: ProviderDescriptor; onKeyChanged: () => void }) {+ const t = useT();+ const [open, setOpen] = useState(false);+ const saved = slotEffective(provider);+ return (+ <div className="rounded-lg border border-border bg-popover" data-testid={`setup-key-row-${provider.id}`}>+ <div className="flex items-center gap-3 px-4 py-3.5">+ <Mark providerId={provider.id} label={provider.label} />+ <div className="min-w-0 flex-1">+ <p className="text-sm font-medium text-foreground">{provider.label}</p>+ <p className="mt-0.5 truncate text-xs text-muted-foreground">+ {saved ? t("first_run.connect.key_saved") : t("first_run.connect.key_only")}+ </p>+ </div>+ <div className="flex shrink-0 items-center gap-1.5">+ <KeyToggle open={open} onClick={() => setOpen((o) => !o)} testId={`setup-key-row-${provider.id}-key`} />+ {saved && <ReadyMark />}+ </div>+ </div>+ {open && <KeyPanel provider={provider} onChanged={onKeyChanged} />}</div>);}@@ -311,7 +439,7 @@ export function useKeyActivation(providers: ProviderDescriptor[]): KeyActivationconst startableNow = startableProviders(providers);const liveVoice = plans.some((p) => p.mode === "realtime" && planKeysComplete(p, startableNow));const localBrain = providers.some((p) => p.tier === "brain" && p.active && (p.secret_keys?.length ?? 0) === 0);- const hasKey = withKey.length > 0 || localBrain;+ const hasKey = startableNow.some(slotEffective) || localBrain;useEffect(() => {if (!savedSlot || connecting || connected) return;@@ -351,152 +479,79 @@ export function useKeyActivation(providers: ProviderDescriptor[]): KeyActivationreturn { hasKey, connecting, connected, partial, liveVoice };}-function ApiKeyRow({ activation }: { activation: KeyActivation }) {- const t = useT();- const { providers, refetch } = useProviders();- const startable = useMemo(() => startableProviders(providers), [providers]);- const [open, setOpen] = useState(false);- const [picked, setPicked] = useState<string | null>(null);- const current = startable.find((p) => p.id === picked) ?? startable.find(slotEffective) ?? startable[0];- const keyed = startable.find(slotEffective);- const slot = current ? primarySlot(current) : null;- const { hasKey, connecting, connected, partial, liveVoice } = activation;-- const summary = connecting- ? t("first_run.connect.key_connecting")- : connected- ? fill(t("first_run.connect.key_connected"), { provider: connected })- : keyed- ? fill(t("first_run.connect.key_present"), { provider: keyed.label })- : t("first_run.connect.key_hint");-- return (- <div className="rounded-lg border border-border bg-popover" data-testid="setup-key-row">- <button- type="button"- onClick={() => setOpen((o) => !o)}- aria-expanded={open}- data-testid="setup-key-toggle"- className="flex w-full items-center gap-3 rounded-lg px-4 py-3 text-left transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"- >- <span className="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-secondary">- <KeyRound aria-hidden className="h-4 w-4 text-muted-foreground" />- </span>- <span className="min-w-0 flex-1">- <span className="block text-sm font-medium text-foreground">{t("first_run.connect.key_title")}</span>- <span className="mt-0.5 block truncate text-xs text-muted-foreground" data-testid="setup-key-summary">- {summary}- </span>- </span>- {hasKey && !connecting ? (- <span className="inline-flex shrink-0 items-center gap-1.5 text-xs font-medium text-success">- <Check aria-hidden className="h-3.5 w-3.5" />- {t("first_run.connect.ready")}- </span>- ) : connecting ? (- <Loader2 aria-hidden className="h-4 w-4 shrink-0 animate-spin text-muted-foreground" />- ) : null}- <ChevronRight- aria-hidden- className={cn("h-4 w-4 shrink-0 text-muted-foreground transition-transform", open && "rotate-90")}- />- </button>- {open && (- <div className="space-y-3 px-4 pb-4" data-testid="setup-key-panel">- {startable.length > 0 ? (- <div className="flex flex-wrap gap-1.5" role="radiogroup" aria-label={t("first_run.connect.key_provider")}>- {startable.map((p) => {- const on = p.id === current?.id;- return (- <button- key={p.id}- type="button"- role="radio"- aria-checked={on}- onClick={() => setPicked(p.id)}- data-testid={`setup-key-provider-${p.id}`}- className={cn(- "inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",- on- ? "border-accent bg-accent-soft font-medium text-foreground"- : "border-border text-muted-foreground hover:bg-secondary hover:text-foreground",- )}- >- <ProviderLogo providerId={p.id} label={p.label} size="sm" />- {p.label}- {slotEffective(p) && <Check aria-hidden className="h-3 w-3 text-success" />}- </button>- );- })}- </div>- ) : (- <p className="text-xs text-muted-foreground">{t("first_run.connect.key_none")}</p>- )}- {current && slot && (- <ApiKeyForm- key={current.id}- secretKey={slot}- dashboardUrl={current.dashboard_url}- configured={slotConfigured(current)}- effectiveConfigured={slotEffective(current)}- credentialHelp={current.credential_help}- onChanged={() => void refetch()}- />- )}- {partial && (- <p className="text-xs text-warning">{fill(t("first_run.connect.key_partial"), { parts: partial })}</p>- )}- {hasKey && !connecting && (- <p className="text-xs text-muted-foreground" data-testid="setup-key-live">- {liveVoice ? t("first_run.connect.live_ready") : t("first_run.connect.live_missing")}- </p>- )}- <p className="flex items-start gap-1.5 text-xs leading-relaxed text-muted-foreground">- <Lock aria-hidden className="mt-0.5 h-3 w-3 shrink-0" />- {t("first_run.connect.key_security")}- </p>- </div>- )}- </div>- );-}-/*** The step's body. `onConnectedChange` reports whether anything is connected* (a subscription or a key), so the window can say what Continue leaves out.*/export function ConnectStep({ onConnectedChange }: { onConnectedChange: (any: boolean) => void }) {const t = useT();- const { providers } = useProviders();+ const { providers, refetch } = useProviders();const activation = useKeyActivation(providers);+ const startable = useMemo(() => startableProviders(providers), [providers]);const [ready, setReady] = useState<Record<string, boolean>>({});- const onReady = useCallback<ConnectedChange>((id, ok) => {+ const [moreOpen, setMoreOpen] = useState(false);+ const onReady = useCallback((id: string, ok: boolean) => {setReady((prev) => (prev[id] === ok ? prev : { ...prev, [id]: ok }));}, []);- const anySubscription = Object.values(ready).some(Boolean);- const anything = anySubscription || activation.hasKey;+ const onKeyChanged = useCallback(() => void refetch(), [refetch]);+ const anything = Object.values(ready).some(Boolean) || activation.hasKey;useEffect(() => {onConnectedChange(anything);}, [anything, onConnectedChange]);+ const rowFamilies = new Set(PROVIDER_ROWS.map((r) => r.keyFamily));+ const keyFor = (family: string) => startable.find((p) => providerFamily(p.id) === family);+ const others = startable.filter((p) => !rowFamilies.has(providerFamily(p.id) ?? ""));+ const { connecting, connected, partial, liveVoice, hasKey } = activation;+return (- <div className="space-y-5">- <section className="space-y-1.5" aria-labelledby="setup-subs-label">- <h2 id="setup-subs-label" className="mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground">- {t("first_run.connect.subscriptions")}- </h2>- {SUBSCRIPTIONS.map((spec) => (- <SubscriptionRow key={spec.id} spec={spec} onReady={onReady} />- ))}- <p className="pt-1 text-xs leading-relaxed text-muted-foreground">{t("first_run.connect.subscriptions_why")}</p>- </section>- <section className="space-y-1.5" aria-labelledby="setup-key-label">- <h2 id="setup-key-label" className="mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground">- {t("first_run.connect.or_key")}- </h2>- <ApiKeyRow activation={activation} />- </section>+ <div className="space-y-1.5">+ {PROVIDER_ROWS.map((spec) => (+ <ProviderRow+ key={spec.id}+ spec={spec}+ keyProvider={keyFor(spec.keyFamily)}+ onReady={onReady}+ onKeyChanged={onKeyChanged}+ />+ ))}+ {others.length > 0 && (+ <div className="pt-1">+ <button+ type="button"+ onClick={() => setMoreOpen((o) => !o)}+ aria-expanded={moreOpen}+ data-testid="setup-more-providers"+ className="group flex items-center gap-1 rounded text-sm text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ >+ <ChevronRight aria-hidden className={cn("h-3.5 w-3.5 transition-transform", moreOpen && "rotate-90")} />+ {t("first_run.connect.more")}+ </button>+ {moreOpen && (+ <div className="mt-2 space-y-1.5">+ {others.map((p) => (+ <KeyOnlyRow key={p.id} provider={p} onKeyChanged={onKeyChanged} />+ ))}+ </div>+ )}+ </div>+ )}+ <div className="space-y-1.5 pt-3 text-xs leading-relaxed text-muted-foreground" data-testid="setup-key-status">+ {connecting ? (+ <p>{t("first_run.connect.key_connecting")}</p>+ ) : connected ? (+ <p>{fill(t("first_run.connect.key_connected"), { provider: connected })}</p>+ ) : null}+ {partial && <p className="text-warning">{fill(t("first_run.connect.key_partial"), { parts: partial })}</p>}+ {hasKey && !connecting && (+ <p data-testid="setup-key-live">{liveVoice ? t("first_run.connect.live_ready") : t("first_run.connect.live_missing")}</p>+ )}+ <p className="flex items-start gap-1.5">+ <Lock aria-hidden className="mt-0.5 h-3 w-3 shrink-0" />+ {t("first_run.connect.key_security")}+ </p>+ </div></div>);}diff --git a/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.test.tsx b/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.test.tsxindex 4f03488dfb..859ea70365 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.test.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.test.tsx@@ -47,6 +47,7 @@ function stubFetch() {return reply({ ok: true, phrase: sent.phrase, engine: "auto", resolved_engine: "auto", degraded: false });}if (url === "/api/settings/wake-word") return reply(wakeWord);+ if (url === "/api/settings/keybinds") return reply({ keybinds: { call: "ctrl+alt+j" }, defaults: {}, suggestions: [] });if (url === "/api/settings/autostart" && method === "PUT") return reply({ ok: true, enabled: true, supported: true });if (url === "/api/settings/autostart") return reply({ enabled: false, supported: true });if (url.endsWith("/status") && url in cliStatus) return reply(cliStatus[url]);@@ -120,7 +121,6 @@ it("asks for a name, saves it as the wake word and moves on to connecting", asynconst go = screen.getByTestId("onboarding-primary") as HTMLButtonElement;expect(go.disabled).toBe(true);fireEvent.change(input, { target: { value: "Nova" } });- expect(screen.getByTestId("setup-name-preview").textContent).toContain("Hey Nova");await act(async () => {fireEvent.click(go);});@@ -141,11 +141,11 @@ it("keeps a name that did not change without saving it again", async () => {expect(calls.some((c) => c.url === "/api/settings/wake-word" && c.method === "PUT")).toBe(false);});-it("lists the subscriptions, marks a signed-in one as ready and records a skipped step", async () => {+it("lists one row per provider, marks a signed-in one as ready and records a skipped step", async () => {cliStatus["/api/claude/status"] = { installed: true, connected: true, mode: "subscription", user_email: "[email protected]" };const onb = fakeOnb({ current_step: "connect" });render(<SetupTour onb={onb} preview={false} onFinished={vi.fn()} />);- for (const id of ["claude", "codex", "antigravity", "grok"]) await screen.findByTestId(`setup-sub-${id}`);+ for (const id of ["claude", "openai", "google", "grok"]) await screen.findByTestId(`setup-sub-${id}`);await waitFor(() => expect(screen.getByTestId("setup-sub-claude").dataset.state).toBe("ready"));expect(screen.getByTestId("setup-sub-claude").textContent).toContain("[email protected]");// Something is connected: Continue moves on without a skip.@@ -174,20 +174,21 @@ it("shows the install command when a subscription's app is missing", async () =>body: { detail: { message: "Codex CLI is not installed", install_command: "npm i -g @openai/codex" } },};render(<SetupTour onb={fakeOnb({ current_step: "connect" })} preview={false} onFinished={vi.fn()} />);- const connect = await screen.findByTestId("setup-sub-codex-connect");+ const connect = await screen.findByTestId("setup-sub-openai-connect");await act(async () => {fireEvent.click(connect);});- const install = await screen.findByTestId("setup-sub-codex-install");+ const install = await screen.findByTestId("setup-sub-openai-install");expect(install.textContent).toContain("npm i -g @openai/codex");expect(calls.some((c) => c.url === "/api/codex/login" && c.method === "POST")).toBe(true);});-it("offers an API key next to the subscriptions", async () => {+it("takes an API key right in the provider's row", async () => {render(<SetupTour onb={fakeOnb({ current_step: "connect" })} preview={false} onFinished={vi.fn()} />);- fireEvent.click(await screen.findByTestId("setup-key-toggle"));- await screen.findByTestId("setup-key-panel");- await screen.findByTestId("setup-key-provider-openai");+ fireEvent.click(await screen.findByTestId("setup-sub-openai-key"));+ await screen.findByTestId("setup-key-panel-openai");+ // A row whose family has no key card offers only the sign-in.+ expect(screen.queryByTestId("setup-sub-claude-key")).toBeNull();});it("ends the window on the voice step and walks the app, then finishes", async () => {@@ -197,6 +198,7 @@ it("ends the window on the voice step and walks the app, then finishes", async (render(<SetupTour onb={onb} preview={false} onFinished={onFinished} />);await waitFor(() => expect(screen.getByTestId("setup-voice-wake").textContent).toContain("Hey Nova"));await screen.findByTestId("onboarding-autostart");+ expect(screen.getByTestId("setup-voice-keys").textContent).toBe("CtrlAltJ");await act(async () => {fireEvent.click(screen.getByTestId("onboarding-start"));});@@ -230,13 +232,6 @@ it("goes back to a finished step from its pill", async () => {await waitFor(() => expect(step()).toBe("name"));});-it("offers to skip the whole setup on the first step", async () => {- const onSkipAll = vi.fn();- render(<SetupTour onb={fakeOnb()} preview={false} onFinished={vi.fn()} onSkipAll={onSkipAll} />);- fireEvent.click(await screen.findByTestId("setup-skip-all"));- expect(onSkipAll).toHaveBeenCalledTimes(1);-});-it("never writes the onboarding state in a replay", async () => {wakeWord = { phrase: "Nova", enabled: true, engine: "auto" };const onb = fakeOnb({ completed: true, current_step: "tour" });diff --git a/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.tsx b/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.tsxindex 6923f5afcf..969b2a499d 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupTour.tsx@@ -24,14 +24,11 @@ export function SetupTour({onb,preview,onFinished,- onSkipAll,startAt,}: {onb: Onb;preview: boolean;onFinished: () => void;- /** "Skip setup" on the first step: ends the whole first-run guide. */- onSkipAll?: () => void;startAt?: SetupStepId;}) {const ready = useLocaleChunk("onboarding");@@ -70,7 +67,6 @@ export function SetupTour({onStep={(target) => goTo(target, skipped.filter((id) => id !== stepId))}onSkip={skipTo}onFinish={() => goTo("tour", skipped)}- onSkipAll={onSkipAll}/>);}diff --git a/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupWizard.tsx b/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupWizard.tsxindex d2a823b143..7255f97d8b 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupWizard.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/setup/SetupWizard.tsx@@ -5,15 +5,15 @@* A row of numbered step pills sits under the header; finished steps can be* clicked to go back. Each step is a large title, one plain sentence and the* step's own rows, with the way forward at the bottom right. Nothing in the- * window blocks: every step can be left for later, and the whole setup can be- * skipped from the first step.+ * window blocks: every step past the name can be left for later.*/-import { ArrowLeft, ArrowRight, Check, Loader2, Mic, Power } from "lucide-react";+import { ArrowLeft, ArrowRight, Check, Loader2 } from "lucide-react";import { useCallback, useEffect, useId, useState, type ReactNode } from "react";import { createPortal } from "react-dom";import { Button } from "@/components/ui/button";import { Switch } from "@/components/ui/switch";import { useAutostart } from "@/hooks/useAutostart";+import { useKeybinds } from "@/hooks/useHotkey";import { useWakeWord } from "@/hooks/useWakeWord";import { fill, setUiLanguage, useT, useUiLanguage, type UiLanguage } from "@/i18n";import { deriveAssistantName } from "@/lib/deriveAssistantName";@@ -27,16 +27,12 @@ import { WIZARD_STEP_IDS, type WizardStepId } from "./setupSteps";const LANGS: UiLanguage[] = ["en", "de", "es"];-/** One-tap name ideas on the first step — any name works. */-export const NAME_IDEAS = ["Nova", "Atlas", "Luna", "Milo", "Echo"];-export function SetupWizard({step,preview,onStep,onSkip,onFinish,- onSkipAll,}: {step: WizardStepId;/** A replay from Settings: nothing restarts at the end. */@@ -47,8 +43,6 @@ export function SetupWizard({onSkip: (target: WizardStepId) => void;/** The last step's button: on to the walk through the app. */onFinish: () => void;- /** "Skip setup" on the first step: ends the whole first-run guide. */- onSkipAll?: () => void;}) {const t = useT();const titleId = useId();@@ -81,7 +75,7 @@ export function SetupWizard({<StepPills current={index} onPick={(i) => onStep(WIZARD_STEP_IDS[i])} /></header><div className="min-h-0 flex-1 overflow-y-auto border-t border-border bg-background/60 px-6 py-6">- {step === "name" && <NameStep onContinue={() => onStep("connect")} onSkipAll={onSkipAll} />}+ {step === "name" && <NameStep onContinue={() => onStep("connect")} />}{step === "connect" && (<ConnectStepFrameonBack={() => prev && onStep(prev)}@@ -218,7 +212,7 @@ function BackAction({ onClick }: { onClick: () => void }) {* "What would you like to call me?" The name is the wake word: saving it* renames the assistant everywhere (bylines, the voice, the sidebar).*/-function NameStep({ onContinue, onSkipAll }: { onContinue: () => void; onSkipAll?: () => void }) {+function NameStep({ onContinue }: { onContinue: () => void }) {const t = useT();const { config, saveWakeWord } = useWakeWord();const saved = deriveAssistantName(config?.phrase ?? "");@@ -267,46 +261,8 @@ function NameStep({ onContinue, onSkipAll }: { onContinue: () => void; onSkipAlldata-testid="setup-name-input"className="mt-5 h-12 w-full rounded-lg border border-border-strong bg-input px-4 text-lg text-foreground placeholder:text-foreground-faint focus-visible:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"/>- <div className="mt-3 flex flex-wrap items-center gap-1.5">- <span className="mr-1 text-xs text-muted-foreground">{t("first_run.name.ideas")}</span>- {NAME_IDEAS.map((idea) => (- <button- key={idea}- type="button"- onClick={() => setTyped(idea)}- className={cn(- "rounded-full border px-2.5 py-0.5 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",- name === idea- ? "border-accent bg-accent-soft text-foreground"- : "border-border text-muted-foreground hover:bg-secondary hover:text-foreground",- )}- >- {idea}- </button>- ))}- </div>- <p- className={cn(- "mt-5 flex items-center gap-2 rounded-lg border border-border bg-popover px-3.5 py-2.5 text-sm transition-opacity",- name ? "opacity-100" : "opacity-50",- )}- data-testid="setup-name-preview"- >- <Mic aria-hidden className="h-4 w-4 shrink-0 text-accent" />- <span className="text-muted-foreground">- {name ? fill(t("first_run.name.preview"), { phrase: `Hey ${name}` }) : t("first_run.name.preview_empty")}- </span>- </p>{error && <p className="mt-2 text-xs text-destructive">{error}</p>}- <StepFooter- left={- onSkipAll && (- <QuietAction onClick={onSkipAll} testId="setup-skip-all" className="text-sm">- {t("first_run.name.skip_all")}- </QuietAction>- )- }- >+ <StepFooter><Button type="submit" disabled={!name || saving} data-testid="onboarding-primary">{saving && <Loader2 aria-hidden className="animate-spin" />}{t("first_run.continue")}@@ -346,24 +302,20 @@ function ConnectStepFrame({ onBack, onContinue }: { onBack: () => void; onContin);}+/** One line of the voice step's list: a label, one plain sentence, a control. */function SettingRow({- icon,title,detail,control,testId,}: {- icon: ReactNode;title: string;detail: string;control: ReactNode;testId?: string;}) {return (- <div className="flex items-center gap-3 rounded-lg border border-border bg-popover px-4 py-3" data-testid={testId}>- <span className="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-secondary text-muted-foreground">- {icon}- </span>+ <div className="flex items-center gap-4 px-4 py-3.5" data-testid={testId}><div className="min-w-0 flex-1"><p className="text-sm font-medium text-foreground">{title}</p><p className="mt-0.5 text-xs leading-relaxed text-muted-foreground">{detail}</p>@@ -373,6 +325,23 @@ function SettingRow({);}+/** A key combination as keycaps: "ctrl+alt+j" → Ctrl + Alt + J. */+function Keycaps({ combo }: { combo: string }) {+ const keys = combo.split("+").map((k) => k.trim()).filter(Boolean);+ return (+ <span className="inline-flex items-center gap-1" data-testid="setup-voice-keys">+ {keys.map((key, i) => (+ <kbd+ key={`${key}-${i}`}+ className="min-w-6 rounded-md border border-border-strong bg-secondary px-1.5 py-0.5 text-center font-mono text-xs text-foreground shadow-[inset_0_-1px_0_hsl(var(--border-strong))]"+ >+ {key.length <= 2 ? key.toUpperCase() : key.charAt(0).toUpperCase() + key.slice(1).replace(/_/g, " ")}+ </kbd>+ ))}+ </span>+ );+}+/*** How the user talks to the assistant: the wake word heard all the time (or* the Call shortcut), and the app starting at login so it is there to hear.@@ -381,6 +350,8 @@ function VoiceStep({ preview, onBack, onFinish }: { preview: boolean; onBack: ()const t = useT();const { config, setWakeActivation } = useWakeWord();const autostart = useAutostart();+ const { config: keybinds } = useKeybinds();+ const callCombo = keybinds?.keybinds?.call?.trim() ?? "";const assistantName = useEventStore((s) => s.assistantName);const [listening, setListening] = useState<boolean | null>(null);const [wakeNote, setWakeNote] = useState<string | null>(null);@@ -419,11 +390,10 @@ function VoiceStep({ preview, onBack, onFinish }: { preview: boolean; onBack: ()return (<><StepHead title={t("first_run.voice.title")} lede={t("first_run.voice.lede")} />- <div className="mt-5 space-y-1.5">+ <div className="mt-5 divide-y divide-border overflow-hidden rounded-lg border border-border bg-popover"><SettingRowtestId="setup-voice-wake"- icon={<Mic aria-hidden className="h-4 w-4" />}- title={phrase ? `Hey ${name}` : t("first_run.voice.no_word")}+ title={phrase ? fill(t("first_run.voice.wake_title"), { phrase: `Hey ${name}` }) : t("first_run.voice.no_word")}detail={on ? t("first_run.voice.wake_on") : t("first_run.voice.wake_off")}control={<Switch@@ -435,11 +405,17 @@ function VoiceStep({ preview, onBack, onFinish }: { preview: boolean; onBack: ()/>}/>- {wakeNote && <p className="px-1 text-xs text-muted-foreground">{wakeNote}</p>}+ {callCombo && (+ <SettingRow+ testId="setup-voice-call"+ title={t("first_run.voice.call_title")}+ detail={t("first_run.voice.call_detail")}+ control={<Keycaps combo={callCombo} />}+ />+ )}{autostart.config?.supported && (<SettingRowtestId="setup-voice-login"- icon={<Power aria-hidden className="h-4 w-4" />}title={t("first_run.voice.login_title")}detail={t("first_run.voice.login_detail")}control={@@ -453,6 +429,7 @@ function VoiceStep({ preview, onBack, onFinish }: { preview: boolean; onBack: ()/>)}</div>+ {wakeNote && <p className="mt-2 px-1 text-xs text-muted-foreground">{wakeNote}</p>}<p className="mt-4 text-xs leading-relaxed text-muted-foreground">{preview ? t("first_run.voice.preview_note") : t("first_run.voice.restart_note")}</p>diff --git a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.json b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.jsonindex cb1c482700..83a4932720 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.json@@ -13,41 +13,33 @@"title": "Hey! Wie möchtest du mich nennen?","lede": "Such dir einen Namen aus. Er ist auch mein Weckwort: Sag ihn laut, und ich höre zu. Du kannst ihn jederzeit in den Einstellungen ändern.","label": "Name des Assistenten",- "placeholder": "Namen eingeben…",- "ideas": "Ideen:",- "preview": "Du weckst mich mit „{phrase}“.",- "preview_empty": "Gib einen Namen ein, dann siehst du, wie du mich weckst.",- "skip_all": "Einrichtung überspringen, ich kenne mich aus"+ "placeholder": "Namen eingeben…"},"connect": {"pill": "Verbinden","title": "Verbinde deine KI",- "lede": "Melde dich mit einem Abo an, das du schon bezahlst – dann arbeiten deine Agents zum Festpreis. Oder füge einen API-Schlüssel hinzu: Ein Schlüssel reicht, damit {name} denken und sprechen kann.",- "subscriptions": "Abos",- "subscriptions_why": "Ein Abo ist ein fester Monatspreis. Dein Browser öffnet sich einmal zur Anmeldung, und nichts wird pro Nutzung abgerechnet.",- "or_key": "Oder ein API-Schlüssel",- "connect": "Verbinden",+ "lede": "Melde dich mit einem Abo an, das du schon bezahlst, oder füge einen API-Schlüssel ein. Eins davon reicht, damit {name} denken und sprechen kann.",+ "sign_in": "Anmelden",+ "api_key": "API-Schlüssel","ready": "Bereit","checking": "Wird geprüft…","waiting": "Warte…",- "signed_in": "Angemeldet.",- "signed_in_as": "Angemeldet als {account}.",+ "signed_in": "Angemeldet",+ "signed_in_as": "Angemeldet als {account}",+ "key_saved": "API-Schlüssel gespeichert",+ "plans_or_key": "{plans} oder ein API-Schlüssel",+ "key_only": "API-Schlüssel",+ "more": "Weitere Anbieter","finish_in_browser": "Schließ die Anmeldung in deinem Browser ab.",- "not_installed": "Das Programm dafür ist noch nicht installiert.","install_first": "Installiere es zuerst: Führe das in einem Terminal aus und prüfe dann erneut.","check_again": "Erneut prüfen","copy": "Befehl kopieren",- "key_title": "API-Schlüssel",- "key_hint": "Bezahlt pro Nutzung. Ein OpenAI- oder Google-Gemini-Schlüssel bringt dir zusätzlich Live-Sprache.",- "key_provider": "Anbieter",- "key_none": "Gerade ist kein Anbieter verfügbar, der einen Schlüssel annimmt.",- "key_present": "{provider}-Schlüssel gespeichert.","key_connecting": "Alles wird eingeschaltet…","key_connected": "Verbunden: {provider}.","key_partial": "Einige Teile wurden nicht umgestellt ({parts}). Du kannst das später auf der Seite API-Schlüssel beheben.","live_ready": "Live-Sprache ist an: Sprich, und {name} antwortet sofort.","live_missing": "Der Chat funktioniert. Live-Sprache braucht einen OpenAI- oder Gemini-Schlüssel; bis dahin spricht {name} auf die klassische Art, etwas langsamer.",- "key_security": "Schlüssel landen im Schlüsselbund deines Systems und gehen nur an den Anbieter, den du gewählt hast.",+ "key_security": "Abos kosten einen festen Monatspreis. Schlüssel landen im Schlüsselbund deines Systems und gehen nur an den Anbieter, den du gewählt hast.","nothing_yet": "Noch nichts verbunden. Ohne Abo oder Schlüssel bleiben Chat und Sprache aus. Du kannst später auf der Seite API-Schlüssel etwas verbinden.","later": "Erst mal überspringen"},@@ -55,6 +47,9 @@"pill": "Stimme","title": "So sprichst du mit {name}","lede": "Schreib im Chat oder sprich einfach: Sag dein Weckwort oder drück dein Anruf-Tastenkürzel.",+ "wake_title": "Weckwort: {phrase}",+ "call_title": "Anruf-Tastenkürzel",+ "call_detail": "Drück es irgendwo, um loszusprechen.","no_word": "Noch kein Weckwort","wake_on": "Hört immer auf dein Weckwort. Es wird direkt hier auf diesem Computer erkannt.","wake_off": "Aus: Drück dein Anruf-Tastenkürzel, um zu sprechen. Schalte es ein, damit dein Weckwort immer gehört wird.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.json b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.jsonindex fe5e51c55c..c3175a4c70 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.json@@ -13,41 +13,33 @@"title": "Hey! What would you like to call me?","lede": "Pick any name you like. It is also my wake word: say it out loud, and I'm listening. You can change it anytime in Settings.","label": "Assistant name",- "placeholder": "Type a name…",- "ideas": "Ideas:",- "preview": "You'll wake me with \"{phrase}\".",- "preview_empty": "Type a name, and you'll see how to wake me.",- "skip_all": "Skip setup, I know my way around"+ "placeholder": "Type a name…"},"connect": {"pill": "Connect","title": "Connect your AI",- "lede": "Sign in with a subscription you already pay for, so your agents work at a flat price. Or add an API key: one key is all {name} needs to think and talk.",- "subscriptions": "Subscriptions",- "subscriptions_why": "A subscription is a flat monthly price. Your browser opens once to sign in, and nothing is billed per use.",- "or_key": "Or an API key",- "connect": "Connect",+ "lede": "Sign in with a subscription you already pay for, or paste an API key. One of them is enough for {name} to think and talk.",+ "sign_in": "Sign in",+ "api_key": "API key","ready": "Ready","checking": "Checking…","waiting": "Waiting…",- "signed_in": "Signed in.",- "signed_in_as": "Signed in as {account}.",+ "signed_in": "Signed in",+ "signed_in_as": "Signed in as {account}",+ "key_saved": "API key saved",+ "plans_or_key": "{plans}, or an API key",+ "key_only": "API key",+ "more": "More providers","finish_in_browser": "Finish the sign-in in your browser.",- "not_installed": "Its app is not installed yet.","install_first": "Install it first: run this in a terminal, then check again.","check_again": "Check again","copy": "Copy command",- "key_title": "API key",- "key_hint": "Pay per use. An OpenAI or Google Gemini key also gives you live voice.",- "key_provider": "Provider",- "key_none": "No provider that takes a key is available right now.",- "key_present": "{provider} key saved.","key_connecting": "Switching everything on…","key_connected": "Connected: {provider}.","key_partial": "Some parts did not switch ({parts}). You can fix them later on the API Keys page.","live_ready": "Live voice is on: talk, and {name} answers right away.","live_missing": "Chat works. Live voice needs an OpenAI or Gemini key; until then {name} speaks the classic way, a little slower.",- "key_security": "Keys go into your system's keychain and only ever to the provider you picked.",+ "key_security": "Subscriptions are billed at a flat monthly price. Keys go into your system's keychain and only ever to the provider you picked.","nothing_yet": "Nothing connected yet. Without a subscription or a key, chat and voice stay off. You can connect one later on the API Keys page.","later": "Skip for now"},@@ -55,6 +47,9 @@"pill": "Voice","title": "How you'll talk to {name}","lede": "Type in the chat, or just speak: say your wake word, or press your Call shortcut.",+ "wake_title": "Wake word: {phrase}",+ "call_title": "Call shortcut",+ "call_detail": "Press it anywhere to start talking.","no_word": "No wake word yet","wake_on": "Always listening for your wake word. It is recognised right here on this computer.","wake_off": "Off: press your Call shortcut to talk. Turn it on to have your wake word heard all the time.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.json b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.jsonindex e9a6974282..2060dc59e7 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.json@@ -13,41 +13,33 @@"title": "¡Hola! ¿Cómo quieres llamarme?","lede": "Elige el nombre que quieras. También es mi palabra de activación: dilo en voz alta y te escucho. Puedes cambiarlo cuando quieras en Ajustes.","label": "Nombre del asistente",- "placeholder": "Escribe un nombre…",- "ideas": "Ideas:",- "preview": "Me despiertas con «{phrase}».",- "preview_empty": "Escribe un nombre y verás cómo despertarme.",- "skip_all": "Saltar la configuración, ya conozco la app"+ "placeholder": "Escribe un nombre…"},"connect": {"pill": "Conectar","title": "Conecta tu IA",- "lede": "Inicia sesión con una suscripción que ya pagas, así tus agentes trabajan a precio fijo. O añade una clave de API: con una sola clave {name} ya puede pensar y hablar.",- "subscriptions": "Suscripciones",- "subscriptions_why": "Una suscripción es un precio mensual fijo. Tu navegador se abre una vez para iniciar sesión y no se cobra nada por uso.",- "or_key": "O una clave de API",- "connect": "Conectar",+ "lede": "Inicia sesión con una suscripción que ya pagas o pega una clave de API. Con una de las dos, {name} ya puede pensar y hablar.",+ "sign_in": "Iniciar sesión",+ "api_key": "Clave de API","ready": "Listo","checking": "Comprobando…","waiting": "Esperando…",- "signed_in": "Sesión iniciada.",- "signed_in_as": "Sesión iniciada como {account}.",+ "signed_in": "Sesión iniciada",+ "signed_in_as": "Sesión iniciada como {account}",+ "key_saved": "Clave de API guardada",+ "plans_or_key": "{plans} o una clave de API",+ "key_only": "Clave de API",+ "more": "Más proveedores","finish_in_browser": "Termina de iniciar sesión en tu navegador.",- "not_installed": "Su programa aún no está instalado.","install_first": "Instálalo primero: ejecuta esto en una terminal y vuelve a comprobar.","check_again": "Comprobar de nuevo","copy": "Copiar comando",- "key_title": "Clave de API",- "key_hint": "Pagas por uso. Una clave de OpenAI o Google Gemini también te da voz en vivo.",- "key_provider": "Proveedor",- "key_none": "Ahora mismo no hay ningún proveedor disponible que acepte una clave.",- "key_present": "Clave de {provider} guardada.","key_connecting": "Activando todo…","key_connected": "Conectado: {provider}.","key_partial": "Algunas partes no cambiaron ({parts}). Puedes arreglarlo más tarde en la página Claves de API.","live_ready": "La voz en vivo está activa: habla y {name} responde al instante.","live_missing": "El chat funciona. La voz en vivo necesita una clave de OpenAI o Gemini; hasta entonces {name} habla de la forma clásica, un poco más lento.",- "key_security": "Las claves se guardan en el llavero de tu sistema y solo van al proveedor que elegiste.",+ "key_security": "Las suscripciones tienen un precio mensual fijo. Las claves se guardan en el llavero de tu sistema y solo van al proveedor que elegiste.","nothing_yet": "Aún no hay nada conectado. Sin suscripción ni clave, el chat y la voz quedan apagados. Puedes conectar algo más tarde en la página Claves de API.","later": "Saltar por ahora"},@@ -55,6 +47,9 @@"pill": "Voz","title": "Así hablarás con {name}","lede": "Escribe en el chat o simplemente habla: di tu palabra de activación o pulsa tu atajo de llamada.",+ "wake_title": "Palabra de activación: {phrase}",+ "call_title": "Atajo de llamada",+ "call_detail": "Púlsalo en cualquier sitio para empezar a hablar.","no_word": "Aún no hay palabra de activación","wake_on": "Siempre atento a tu palabra de activación. Se reconoce aquí mismo, en este ordenador.","wake_off": "Apagado: pulsa tu atajo de llamada para hablar. Actívalo para que tu palabra de activación se oiga siempre.",