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
refactor(society): drop the Communications station shortcut from the Agents view
rubenluetke10-beepacc0f9a4d2ba
diff --git a/jarvis/ui/web/frontend/src/views/society/SocietyView.test.tsx b/jarvis/ui/web/frontend/src/views/society/SocietyView.test.tsxindex 6d1d8305c2..a43fc0f926 100644--- a/jarvis/ui/web/frontend/src/views/society/SocietyView.test.tsx+++ b/jarvis/ui/web/frontend/src/views/society/SocietyView.test.tsx@@ -134,24 +134,10 @@ it("requests fullscreen for Map and leaves it on Escape", async () => {expect(screen.queryByTestId("map")).toBeNull();});-it("keeps Mars station controls reachable without mounting a renderer", async () => {- window.history.replaceState(null, "", "?view=agents&world=mars");- render(<SocietyView />);- fireEvent.click(screen.getByRole("button", { name: "society.mars.station_title" }));- expect(await screen.findByRole("complementary", { name: "Mars station" })).toBeTruthy();- expect(screen.queryByTestId("map")).toBeNull();- expect(screen.getByTestId("workspace")).toBeTruthy();- fireEvent.click(screen.getByText("Close station"));- expect(screen.queryByRole("complementary", { name: "Mars station" })).toBeNull();-});--it("exposes the Mars station in dev without an opt-in URL", async () => {- app.instance = { name: "dev", isDev: true };+it("shows no station shortcut in Agents mode", () => {window.history.replaceState(null, "", "?view=agents");render(<SocietyView />);- fireEvent.click(screen.getByRole("button", { name: "society.mars.station_title" }));- expect(await screen.findByRole("complementary", { name: "Mars station" })).toBeTruthy();- expect(screen.queryByTestId("map")).toBeNull();+ expect(screen.queryByRole("button", { name: "society.mars.station_title" })).toBeNull();});it("does not discard a Mars form when Escape belongs to its input", async () => {diff --git a/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx b/jarvis/ui/web/frontend/src/views/society/SocietyView.tsxindex 350b6cb965..8b080085a9 100644--- a/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx+++ b/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx@@ -24,7 +24,6 @@ const JarvisAgentsBoard = lazy(() =>import("@/views/JarvisAgentsView").then((m) => ({ default: m.JarvisAgentsView })),);-const MarsStationPanel = lazy(() => import("@/components/society/mars/MarsStationPanel").then((m) => ({ default: m.MarsStationPanel })));function isProtectedMarsInteraction(target: EventTarget | null): boolean {return target instanceof Element && Boolean(target.closest("[data-mars-ui], [data-mars-mode=\'player\'], [data-mars-mode=\'follow\']"));@@ -36,7 +35,6 @@ export function SocietyView() {const t = useT();useLocaleChunk("society");const [mode, setMode] = useState<"agents" | "world">("agents");- const [marsStationOpen, setMarsStationOpen] = useState(false);const roster = useSocietyRoster();const agents = useMemo(() => roster.data?.agents ?? [], [roster.data]);const sample = roster.data?.sample ?? true;@@ -176,7 +174,7 @@ export function SocietyView() {modes — one switch, always centered, always a way back. */}{createPortal(<div className="pointer-events-none fixed inset-x-0 top-0 z-[140] flex h-8 items-center justify-center" data-testid="mode-switch">- <div className="pointer-events-auto flex items-center gap-2">{modeSwitch}{mode === "agents" && <button type="button" onClick={() => setMarsStationOpen(true)} className="rounded border border-border bg-background px-2 py-1 text-xs text-foreground">{t("society.mars.station_title")}</button>}</div>+ <div className="pointer-events-auto flex items-center gap-2">{modeSwitch}</div></div>,document.body,)}@@ -223,7 +221,6 @@ export function SocietyView() {setCreating(true);}}/>- {mode === "agents" && marsStationOpen && <div className="absolute right-4 top-14 z-40 max-h-[calc(100%-4rem)] w-[min(26rem,calc(100%-2rem))] overflow-auto" data-mars-ui><Suspense fallback={null}><MarsStationPanel onClose={() => setMarsStationOpen(false)} onOpenAgent={(id) => { selectAgent(id); setMarsStationOpen(false); }} /></Suspense></div>}<CreateAgentDialog open={creating} onClose={() => setCreating(false)} onCreated={onCreated} /></div>);