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.

fix(verse): keep coding floor agent labels expanded

rubenluetke10-beepaac6683f5a0c
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
index 12e1dc347b..0c5af6f5c2 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
@@ -108,10 +108,10 @@ function Nameplate({ agent, activity, selected, onSelect, height = OFFICE_FIGURE
);
return (
<group ref={anchor} position={[0, height, 0]}>
- {/* An opened plate draws above its neighbours' plates and bubbles, which sit shoulder to shoulder at a desk row. */}
+ {/* Hover/focus raises a plate above its neighbours; coding titles stay expanded independently. */}
<Html center zIndexRange={open ? [40, 30] : [20, 0]}>
<button ref={plate} type="button" data-office-ui className="office-plate" data-state={agent.state} data-selected={selected || undefined}
- data-pane={pane || undefined} data-open={open || undefined}
+ data-pane={pane || undefined} data-open={pane || open || undefined}
onClick={(event) => { event.stopPropagation(); onSelect(agent.agentId); }}
onPointerEnter={() => setOpen(true)} onPointerLeave={() => setOpen(false)}
onFocus={() => setOpen(true)} onBlur={() => setOpen(false)}
@@ -121,7 +121,7 @@ function Nameplate({ agent, activity, selected, onSelect, height = OFFICE_FIGURE
{agent.tier === "lead" ? "★" : (pane ? agent.provider : agent.name).slice(0, 1).toUpperCase()}
</span>
)}
- {pane ? <PanePlateText agent={agent} open={open} state={state} /> : (
+ {pane ? <PanePlateText agent={agent} state={state} /> : (
<>
<span className="office-plate-name" title={agent.name}>{agent.name}</span>
{state}
@@ -150,14 +150,13 @@ function PaneLogo({ url, ground }: { url: string; ground: "ink" | "dark" | "any"
}
/**
- * A coding pane's plate: its title on two lines (subject, then result and run
- * state), so the words that tell four "Office …" panes apart are never the ones
- * clipped. Hovered or focused, it opens to the whole title, the call-sign that
- * finds the pane in the IDE, and the opening of what it was last asked.
+ * A coding pane's plate always shows its whole title (subject, then result and
+ * run state), the call-sign that finds the pane in the IDE, and the opening of
+ * what it was last asked. Only the prompt preview is clamped, never the title.
*/
-function PanePlateText({ agent, open, state }: { agent: SocietyAgent; open: boolean; state: ReactNode }) {
+function PanePlateText({ agent, state }: { agent: SocietyAgent; state: ReactNode }) {
const { subject, result } = plateTitle(agent.name);
- const asked = open ? promptOpening(agent.description) : "";
+ const asked = promptOpening(agent.description);
return (
<span className="office-plate-text">
<span className="office-plate-name">{subject}</span>
@@ -165,7 +164,7 @@ function PanePlateText({ agent, open, state }: { agent: SocietyAgent; open: bool
{result ? <span className="office-plate-result">{result}</span> : null}
{state}
</span>
- {open ? <span className="office-plate-sign">{agent.title}</span> : null}
+ <span className="office-plate-sign">{agent.title}</span>
{asked && asked !== agent.name ? <span className="office-plate-asked">“{asked}”</span> : null}
</span>
);
diff --git a/jarvis/ui/web/frontend/src/components/society/office/office.css b/jarvis/ui/web/frontend/src/components/society/office/office.css
index 5ce0e0ce7f..79684c4314 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/office.css
+++ b/jarvis/ui/web/frontend/src/components/society/office/office.css
@@ -36,7 +36,7 @@
.office-plate[data-state="working"] .office-plate-state i { background:#4ade80; box-shadow:0 0 6px #4ade80; }
.office-plate[data-state="waiting"] .office-plate-state i { background:#fbbf24; }
.office-plate:focus-visible { outline:2px solid #93c5fd; outline-offset:2px; }
-/* A coding pane's plate: subject on top, result + run state below; hovered, the whole title and its last ask. */
+/* Coding plates keep the expanded title, call-sign and last ask visible without hover. */
.office-plate[data-pane] { align-items:flex-start; gap:6px; padding:4px 10px 4px 4px; border-radius:12px; text-align:left; }
.office-plate[data-pane] .office-plate-badge { flex:none; margin-top:1px; }
/* The coding CLI's mark: ink marks masked in the plate's white, colour lockups on a dark tile. */
@@ -49,13 +49,13 @@
.office-plate-line { display:inline-flex; align-items:center; gap:6px; max-width:17em; }
.office-plate-result { min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:600; color:#e2e8f0; }
.office-plate-line .office-plate-state { flex:none; }
-.office-plate-sign { font-size:10px; font-weight:600; color:#94a3b8; }
-.office-plate-asked { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; max-width:20em; margin-top:2px; font-size:11px; font-style:italic; font-weight:500; color:#cbd5e1; white-space:normal; }
+.office-plate-sign { font-size:10px; font-weight:600; color:#94a3b8; white-space:normal; overflow-wrap:anywhere; }
+.office-plate-asked { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; max-width:20em; margin-top:2px; font-size:11px; font-style:italic; font-weight:500; color:#cbd5e1; white-space:normal; overflow-wrap:anywhere; }
/* max-content: the Html anchor has no width, so an opened plate would otherwise wrap after every word. */
-.office-plate[data-pane][data-open] { width:max-content; max-width:22em; background:rgb(24 26 32 / .96); }
+.office-plate[data-pane][data-open] { width:max-content; max-width:min(22em, calc(100vw - 32px)); background:rgb(24 26 32 / .96); }
.office-plate[data-pane][data-open] .office-plate-name,
-.office-plate[data-pane][data-open] .office-plate-result { max-width:20em; white-space:normal; overflow:visible; }
-.office-plate[data-pane][data-open] .office-plate-line { max-width:none; }
+.office-plate[data-pane][data-open] .office-plate-result { max-width:min(20em, 100%); white-space:normal; overflow:visible; overflow-wrap:anywhere; text-overflow:clip; }
+.office-plate[data-pane][data-open] .office-plate-line { max-width:100%; flex-wrap:wrap; }
/* Checkpoint label pills: same dark in-world pill as .office-plate, with a gold hexagon badge. */
.office-checkpoint { transform-origin:center center; display:inline-flex; align-items:center; gap:6px; padding:3px 11px 3px 3px; border:1px solid rgb(245 184 61 / .55); border-radius:999px; background:rgb(24 26 32 / .86); color:#fff7ec; cursor:pointer; font-family:inherit; font-size:12px; font-weight:700; white-space:nowrap; user-select:none; box-shadow:0 2px 8px rgb(0 0 0 / .35); transition:background .15s, border-color .15s, box-shadow .15s; }
.office-checkpoint:hover { background:rgb(36 39 48 / .95); border-color:#f5b83d; }