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(ui): let the Screen Context card run full width like its neighbours
Ruben Lütkef90df264bc9e
diff --git a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsx b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsxindex 25d018b5cd..0115d42f13 100644--- a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.test.tsx@@ -68,6 +68,34 @@ describe("ScreenContextGroup", () => {expect(buttons[0].getAttribute("role")).toBe("switch");});+ it("runs full width like every neighbouring settings card", async () => {+ vi.stubGlobal(+ "fetch",+ vi.fn(async (url: string) =>+ response(url.endsWith("/settings") ? SETTINGS : status(true)),+ ),+ );++ const { container } = render(<ScreenContextGroup />);+ await waitFor(() => expect(screen.getByText(/Ready on 2/)).toBeTruthy());++ // A leftover `max-w-5xl` from the multi-field card capped this one at half+ // the window and parked its switch mid-row next to full-width neighbours.+ // The settings column owns the width; the card must not cap it.+ const root = container.firstElementChild;+ expect(root).toBeTruthy();+ const capped = Array.from(container.querySelectorAll("*"))+ .concat(root ? [root] : [])+ .filter((element) =>+ Array.from(element.classList).some((name) => name.startsWith("max-w-")),+ );+ expect(capped).toHaveLength(0);+ // Same shell as RealtimeVoiceGroup, so the two read as one list.+ expect(root?.className).toBe(+ "mt-2 rounded-lg border border-border bg-card/60 p-4",+ );+ });+it("writes only the enabled flag when the switch is flipped", async () => {const fetchMock = vi.fn(async (url: string, init?: RequestInit) => {if (url.endsWith("/settings") && init?.method === "PUT") {diff --git a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsxindex 9ad7e6be06..0c826548a1 100644--- a/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/ScreenContextGroup.tsx@@ -97,8 +97,14 @@ export function ScreenContextGroup() {// "switched off" is not a problem to report, it is what the switch says.const showBlocker = Boolean(settings?.enabled && status && !status.available);+ // Layout is deliberately byte-for-byte the neighbouring RealtimeVoiceGroup+ // shell: same wrapper, same icon placement, same spacing. The card carried a+ // `max-w-5xl` from its multi-field days, which capped it at half the window+ // and parked its switch mid-row while every other card ran full width — a+ // mismatch that only became visible once the card got short. Do not+ // reintroduce a width cap here; the settings column owns the width.return (- <section className="mt-2 max-w-5xl rounded-lg border border-border bg-card/60 p-4">+ <div className="mt-2 rounded-lg border border-border bg-card/60 p-4"><div className="flex items-start gap-3"><Eye className="mt-0.5 h-4 w-4 shrink-0 text-primary" /><div className="min-w-0 flex-1">@@ -116,12 +122,12 @@ export function ScreenContextGroup() {/>)}</div>- <p className="mt-1 text-xs text-muted-foreground">+ <p className="mt-0.5 text-xs text-muted-foreground">{t("settings_view.screen_context.description")}</p>{settings?.enabled && status && (<p- className={`mt-2 text-[11px] ${+ className={`mt-1.5 text-[11px] ${status.available ? "text-emerald-400" : "text-amber-400"}`}aria-live="polite"@@ -137,6 +143,6 @@ export function ScreenContextGroup() {)}</div></div>- </section>+ </div>);}