Skip to content

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.

feat(society): a figure clicked on the island opens its model card

rubenluetke10-beepee656e72453e
diff --git a/jarvis/ui/web/frontend/src/views/JarvisAgentsView.tsx b/jarvis/ui/web/frontend/src/views/JarvisAgentsView.tsx
index 4c6d834416..b90e2c97ff 100644
--- a/jarvis/ui/web/frontend/src/views/JarvisAgentsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/JarvisAgentsView.tsx
@@ -102,7 +102,15 @@ function WorldLoading() {
return <div className="h-full w-full animate-pulse bg-secondary" aria-hidden />;
}
-export function JarvisAgentsView() {
+export interface JarvisAgentsViewProps {
+ /**
+ * A figure on the island was clicked (or the selection cleared). The
+ * society view hooks its model card in here; standalone, nothing listens.
+ */
+ onSelectAgent?: (agentId: string | null) => void;
+}
+
+export function JarvisAgentsView({ onSelectAgent }: JarvisAgentsViewProps = {}) {
const { health } = useSectionHealth();
const subAgents = useSubAgentStore((s) => s.subAgents);
const sweepExpired = useSubAgentStore((s) => s.sweepExpired);
@@ -247,7 +255,11 @@ export function JarvisAgentsView() {
return (
<div className="h-full min-h-0">
<Suspense fallback={<WorldLoading />}>
- <WorldStage topRight={modeSwitch} onOpenLedger={() => switchMode("ledger")} />
+ <WorldStage
+ topRight={modeSwitch}
+ onOpenLedger={() => switchMode("ledger")}
+ onSelectAgent={onSelectAgent}
+ />
</Suspense>
</div>
);
diff --git a/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx b/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx
index 10a35932b1..b7ecdba9fa 100644
--- a/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx
+++ b/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx
@@ -2,7 +2,8 @@
* The Agents section as the society (MASTERPLAN §4.1): left, the app's own
* sidebar (unchanged, outside this view); centre, the stage; right, the fixed
* agents rail. A thin strip above the stage carries the counts. Clicking a
- * row in the rail opens the model card above the stage; "+" opens the creator.
+ * row in the rail — or a figure on the island — opens the model card above
+ * the stage; "+" opens the creator.
*
* The stage is the existing Jarvis-Agents board until the island (M3, built in
* a parallel session under components/society/world/) mounts here — the
@@ -40,6 +41,13 @@ export function SocietyView() {
setOpenAgentId(agentId);
}, []);
+ // A figure clicked on the island opens its card, like a row in the rail
+ // (maintainer, 2026-09-02). Clearing the island's selection (a click on
+ // the ground) leaves the card alone — it has its own close.
+ const onIslandSelect = useCallback((agentId: string | null) => {
+ if (agentId) setOpenAgentId(agentId);
+ }, []);
+
return (
<div className="flex h-full min-h-0 w-full" data-testid="society-view">
<div className="flex min-h-0 min-w-0 flex-1 flex-col">
@@ -52,7 +60,7 @@ export function SocietyView() {
</div>
<div className="relative min-h-0 flex-1">
<Suspense fallback={null}>
- <JarvisAgentsBoard />
+ <JarvisAgentsBoard onSelectAgent={onIslandSelect} />
</Suspense>
</div>
</div>