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
fix(onboarding): show subscriptions alongside agent API keys
rubenluetke10-beep4bafe14ac95b
diff --git a/jarvis/ui/web/frontend/src/components/onboarding/AgentAccessList.tsx b/jarvis/ui/web/frontend/src/components/onboarding/AgentAccessList.tsxindex 0085baf78b..3337fa9d6a 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/AgentAccessList.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/AgentAccessList.tsx@@ -1,5 +1,5 @@import { useState } from "react";-import { ChevronDown, KeyRound } from "lucide-react";+import { KeyRound } from "lucide-react";import { ApiKeyForm } from "@/components/ApiKeyForm";import { Button, FOCUS_RING } from "@/components/agentic/controls";import { JarvisAgentSection } from "@/components/JarvisAgentSection";@@ -31,7 +31,6 @@ export function AgentAccessList({}) {const t = useT();const [selectedId, setSelectedId] = useState<string | null>(null);- const [subscriptionsOpen, setSubscriptionsOpen] = useState(false);const [switching, setSwitching] = useState(false);const [error, setError] = useState<string | null>(null);const keyRows = (rows ?? []).filter((row) =>@@ -56,7 +55,11 @@ export function AgentAccessList({}return (- <div className="space-y-4" data-testid="onboarding-agent-access">+ <div className="space-y-6" data-testid="onboarding-agent-access">+ <div data-testid="onboarding-agent-subscriptions">+ <JarvisAgentSection hideHeader subscriptionsOnly />+ </div>+ <div className="space-y-4 border-t border-border pt-5"><div><p className="flex items-center gap-2 text-sm font-semibold text-foreground"><KeyRound className="h-4 w-4 text-primary" />@@ -115,21 +118,6 @@ export function AgentAccessList({</div>)}{error && <StatusLine tone="error">{error}</StatusLine>}- <div className="border-t border-border pt-3">- <button- type="button"- aria-expanded={subscriptionsOpen}- onClick={() => setSubscriptionsOpen((open) => !open)}- className={cn("flex w-full items-center justify-between gap-3 text-left text-sm text-muted-foreground hover:text-foreground", FOCUS_RING)}- >- {t("onboarding.api_keys.agents_subscription_title")}- <ChevronDown className={cn("h-4 w-4 transition-transform", subscriptionsOpen && "rotate-180")} />- </button>- {subscriptionsOpen && (- <div className="mt-4" data-testid="onboarding-agent-subscriptions">- <JarvisAgentSection hideHeader subscriptionsOnly />- </div>- )}</div></div>);diff --git a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsxindex c41909132b..0f49dc2d91 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx@@ -319,7 +319,7 @@ it("with Ollama running but empty, explains the missing model and shows no activexpect(screen.queryByRole("button", { name: "onboarding.api_keys.local_use_button" })).toBeNull();});-it("shows Jarvis Agent API-key choices immediately and keeps subscription access available", async () => {+it("shows subscription and API-key choices together for Jarvis Agents", async () => {plansState.fail = false;plansState.plans = [GEMINI_PLAN];providersState.providers = [@@ -330,6 +330,8 @@ it("shows Jarvis Agent API-key choices immediately and keeps subscription accessawait screen.findByTestId("onboarding-plan-gemini-live");await waitFor(() => expect(p.setGap).toHaveBeenLastCalledWith("onboarding.api_keys.gap_agents"));expect((screen.getByTestId("onboarding-primary") as HTMLButtonElement).disabled).toBe(true);+ expect(screen.getByTestId("onboarding-agent-subscriptions")).toBeDefined();+ expect(screen.getByTestId("agent-connection-options")).toBeDefined();expect(screen.getByTestId("onboarding-agent-key-gemini")).toBeDefined();expect(screen.getByTestId("onboarding-agent-key-openai")).toBeDefined();expect(screen.getByTestId("form-agent_gemini_key")).toBeDefined();@@ -337,8 +339,6 @@ it("shows Jarvis Agent API-key choices immediately and keeps subscription accessexpect(screen.getByTestId("form-agent_openai_key")).toBeDefined();fireEvent.click(screen.getByTestId("form-agent_openai_key").querySelector("button")!);await waitFor(() => expect(providersState.switchSubagentProvider).toHaveBeenCalledWith("openai"));- fireEvent.click(screen.getByRole("button", { name: "onboarding.api_keys.agents_subscription_title" }));- expect(screen.getByTestId("agent-connection-options")).toBeDefined();cleanup();stubFetch(null, true);diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex dd8cd943a8..4d6161abba 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -2964,17 +2964,16 @@"voice_key_hint": "Ein Key für Live-Gespräche. OpenAI ist empfohlen; Gemini Live funktioniert ebenfalls.","agents_label": "02 · Jarvis-Agenten","agents_title": "Jarvis-Agenten verbinden",- "agents_hint": "Wähle unten einen API-Key-Anbieter oder verbinde ein unterstütztes Abo für Hintergrundaufgaben.",+ "agents_hint": "Verbinde ein Abo oder nutze einen API-Key für Hintergrundaufgaben.","agents_ready": "Jarvis-Agenten verbunden","agents_missing": "Für Jarvis-Agenten fehlt noch ein API-Key oder Abo","agents_api_title": "API-Keys",- "agents_api_hint": "Wähle einen Anbieter. Das passende Key-Feld öffnet sich direkt unter der Liste.",+ "agents_api_hint": "Du möchtest einen API-Key nutzen? Wähle einen Anbieter; das Key-Feld öffnet sich darunter.","agents_loading": "Agenten-Anbieter werden geladen…","agents_unavailable": "Agenten-Anbieter sind gerade nicht verfügbar.","agents_active": "Aktiv","agents_use_key": "Für Jarvis-Agenten nutzen",- "agents_subscription_title": "Stattdessen ein Abo verbinden",- "agents_subscriptions_label": "Abos",+ "agents_subscriptions_label": "Abonnements","agents_subscriptions_hint": "Mit einem bestehenden Abo anmelden","gap_agents": "Live-Sprache ist eingerichtet, aber Jarvis-Agenten brauchen noch einen API-Key oder ein Abo.","providers_label": "Anbieter",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex d902d3c954..ca8e6d94cb 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -2997,16 +2997,15 @@"voice_key_hint": "One key for live conversation. OpenAI is recommended; Gemini Live works too.","agents_label": "02 · Jarvis Agents","agents_title": "Connect Jarvis Agents",- "agents_hint": "Choose an API key below or connect a supported subscription for background work.",+ "agents_hint": "Connect a subscription or use an API key for background work.","agents_ready": "Jarvis Agents connected","agents_missing": "Jarvis Agents still need an API key or subscription","agents_api_title": "API keys",- "agents_api_hint": "Choose a provider. Its key field opens directly below the list.",+ "agents_api_hint": "Prefer an API key? Choose a provider; its key field opens below.","agents_loading": "Loading agent providers…","agents_unavailable": "Agent providers are unavailable right now.","agents_active": "Active","agents_use_key": "Use for Jarvis Agents",- "agents_subscription_title": "Use a subscription instead","agents_subscriptions_label": "Subscriptions","agents_subscriptions_hint": "Sign in with an existing plan","gap_agents": "Live voice is set up, but Jarvis Agents still need an API key or subscription.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex b392980074..6fb1fd8b1e 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -3010,16 +3010,15 @@"voice_key_hint": "Una clave para hablar en directo. Se recomienda OpenAI; Gemini Live también funciona.","agents_label": "02 · Agentes de Jarvis","agents_title": "Conecta los agentes de Jarvis",- "agents_hint": "Elige un proveedor de claves API o conecta una suscripción compatible para tareas en segundo plano.",+ "agents_hint": "Conecta una suscripción o usa una clave API para tareas en segundo plano.","agents_ready": "Agentes de Jarvis conectados","agents_missing": "Los agentes de Jarvis aún necesitan una clave API o suscripción","agents_api_title": "Claves API",- "agents_api_hint": "Elige un proveedor. Su campo de clave se abre debajo de la lista.",+ "agents_api_hint": "¿Prefieres una clave API? Elige un proveedor; su campo se abre debajo.","agents_loading": "Cargando proveedores de agentes…","agents_unavailable": "Los proveedores de agentes no están disponibles ahora.","agents_active": "Activo","agents_use_key": "Usar para agentes de Jarvis",- "agents_subscription_title": "Usar una suscripción en su lugar","agents_subscriptions_label": "Suscripciones","agents_subscriptions_hint": "Inicia sesión con un plan existente","gap_agents": "La voz en directo está configurada, pero los agentes de Jarvis aún necesitan una clave API o suscripción.",