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(office): Mission Control is a screen on a stand with a calmer panel

rubenluetke10-beep52fe575face9
diff --git a/jarvis/ui/web/frontend/src/components/society/office/MissionConsole.tsx b/jarvis/ui/web/frontend/src/components/society/office/MissionConsole.tsx
index 327c58f636..3960e550e5 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/MissionConsole.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/MissionConsole.tsx
@@ -1,265 +1,151 @@
/**
- * Mission Control's holo deck on the coding floor, in the style of a
- * superhero's workshop: a round glass command table on a lit pedestal, a HUD
- * glowing in its top, a light column feeding a turning wireframe globe with
- * orbit rings, floating data panels all the way round and drifting sparks.
+ * Mission Control on the coding floor: one slim display on a floor stand, in
+ * the office's contemporary kit (black steel, a thin bezel, a low base plate).
+ * Its screen is a live board of the floor — how many coding agents there are
+ * and how many work, wait or idle — and invites starting a new one.
*
- * Built in local space centred on the origin and kept inside the
- * `missionConsole` box (FURNITURE_SIZE). The deck is round, so it is not a
- * solid box: navigation walks around `missionDeckObstacles` instead, strips
- * inside the table's circle — nobody bumps into air beside it. A click
- * anywhere on the deck opens Mission Control.
+ * Built in local space centred on the origin, front facing +z, and kept
+ * inside the `missionConsole` footprint. A click anywhere on it opens Mission
+ * Control.
*/
import { useEffect, useMemo, useRef } from "react";
-import { useFrame, type ThreeEvent } from "@react-three/fiber";
-import { useReducedMotion } from "framer-motion";
-import {
- AdditiveBlending, BufferGeometry, CircleGeometry, CylinderGeometry, DoubleSide, Float32BufferAttribute,
- IcosahedronGeometry, MeshBasicMaterial, MeshStandardMaterial, PlaneGeometry, PointsMaterial, RingGeometry,
- SphereGeometry, TorusGeometry, type Group, type Texture,
-} from "three";
-import { cachedCanvasTexture } from "./canvasMaterials";
-import { MISSION_DECK_RADIUS, MISSION_TABLE_RADIUS, type Furniture, type FurnitureKind } from "./officeLayout";
+import type { ThreeEvent } from "@react-three/fiber";
+import { CanvasTexture, MeshBasicMaterial, SRGBColorSpace } from "three";
+import { useT } from "@/i18n";
+import { useWorkspacePanesStore } from "@/store/workspacePanes";
+import { Box, MAT, Rounded } from "./OfficeFurniture";
+import { paneOccupants } from "./codingFloor";
+import type { Furniture, FurnitureKind } from "./officeLayout";
import { useOfficeStore } from "./officeStore";
-const CYAN = "#38e1ff";
-const ICE = "#b8f3ff";
-const AMBER = "#ffb347";
-
-// ---------------------------------------------------------------------------
-// Canvas faces: the HUD in the table top and the floating panels.
-// ---------------------------------------------------------------------------
-
-function glow(ctx: CanvasRenderingContext2D, colour: string, blur = 10): void {
- ctx.strokeStyle = colour;
- ctx.fillStyle = colour;
- ctx.shadowColor = colour;
- ctx.shadowBlur = blur;
-}
+/** The display: a 55-inch-ish landscape panel, its centre height and backward tilt. */
+const SCREEN_W = 1.3, SCREEN_H = 0.76, SCREEN_Y = 1.36, TILT = -0.07;
+const CANVAS_W = 1024, CANVAS_H = Math.round((CANVAS_W * SCREEN_H) / SCREEN_W);
+
+export interface FloorCounts { total: number; working: number; waiting: number; idle: number }
+
+/** What the screen shows, in the viewer's language. */
+export interface ScreenLabels { title: string; agents: string; working: string; waiting: string; idle: string; start: string }
+
+const INK = "#f4f6f8", MUTED = "#8b929c", LINE = "rgba(255,255,255,0.08)";
+const DOT = { working: "#4ade80", waiting: "#fbbf24", idle: "#8b929c" } as const;
+const FONT = "Inter, system-ui, -apple-system, 'Segoe UI', sans-serif";
+
+/** Draw the live board. Pure drawing: the same counts always give the same picture. */
+export function drawMissionScreen(ctx: CanvasRenderingContext2D, w: number, h: number, counts: FloorCounts, labels: ScreenLabels): void {
+ const bg = ctx.createLinearGradient(0, 0, 0, h);
+ bg.addColorStop(0, "#15181d");
+ bg.addColorStop(1, "#0b0d10");
+ ctx.fillStyle = bg;
+ ctx.fillRect(0, 0, w, h);
+ const pad = 56;
+ ctx.textBaseline = "alphabetic";
+ ctx.textAlign = "left";
+
+ // Header: the name, and a quiet live dot.
+ ctx.fillStyle = MUTED;
+ ctx.font = `600 30px ${FONT}`;
+ ctx.fillText(labels.title, pad, pad + 26);
+ ctx.fillStyle = DOT.working;
+ ctx.beginPath(); ctx.arc(w - pad - 8, pad + 16, 8, 0, Math.PI * 2); ctx.fill();
+
+ // The one big number.
+ ctx.fillStyle = INK;
+ ctx.font = `700 200px ${FONT}`;
+ ctx.fillText(String(counts.total), pad - 8, pad + 250);
+ ctx.fillStyle = MUTED;
+ ctx.font = `500 32px ${FONT}`;
+ ctx.fillText(labels.agents, pad, pad + 300);
+
+ // Three state rows on the right, divided by hairlines.
+ const x0 = w * 0.55, rowH = 78;
+ const rows: [string, number, string][] = [
+ [labels.working, counts.working, DOT.working], [labels.waiting, counts.waiting, DOT.waiting], [labels.idle, counts.idle, DOT.idle],
+ ];
+ rows.forEach(([label, n, colour], i) => {
+ const y = pad + 90 + i * rowH;
+ ctx.fillStyle = LINE;
+ ctx.fillRect(x0, y - 50, w - pad - x0, 2);
+ ctx.fillStyle = colour;
+ ctx.beginPath(); ctx.arc(x0 + 10, y - 12, 9, 0, Math.PI * 2); ctx.fill();
+ ctx.fillStyle = INK;
+ ctx.font = `500 32px ${FONT}`;
+ ctx.fillText(label, x0 + 36, y);
+ ctx.textAlign = "right";
+ ctx.font = `700 40px ${FONT}`;
+ ctx.fillText(String(n), w - pad, y + 2);
+ ctx.textAlign = "left";
+ });
-/** The round HUD in the table top: range rings, ticks, sweep arcs and blips. */
-function drawTableHud(ctx: CanvasRenderingContext2D, w: number, h: number): void {
- const c = w / 2;
- ctx.clearRect(0, 0, w, h);
- glow(ctx, CYAN, 8);
- ctx.lineWidth = 2;
- for (const r of [0.96, 0.78, 0.6, 0.42, 0.24]) { ctx.beginPath(); ctx.arc(c, c, c * r, 0, Math.PI * 2); ctx.stroke(); }
- // Tick ring on the rim.
- for (let i = 0; i < 120; i += 1) {
- const a = (i / 120) * Math.PI * 2, long = i % 10 === 0;
- const r0 = c * (long ? 0.86 : 0.9), r1 = c * 0.95;
- ctx.lineWidth = long ? 3 : 1.4;
- ctx.beginPath(); ctx.moveTo(c + Math.cos(a) * r0, c + Math.sin(a) * r0); ctx.lineTo(c + Math.cos(a) * r1, c + Math.sin(a) * r1); ctx.stroke();
- }
- // Thick arc segments, like gauges.
- ctx.lineWidth = 9;
- for (const [from, to, r] of [[0.1, 0.9, 0.69], [2.2, 3.4, 0.69], [4.1, 5.6, 0.51], [1.2, 1.9, 0.33]] as const) {
- ctx.beginPath(); ctx.arc(c, c, c * r, from, to); ctx.stroke();
- }
- // Crosshair and diagonals.
- ctx.lineWidth = 1.2;
- ctx.globalAlpha = 0.55;
- for (let i = 0; i < 4; i += 1) {
- const a = (i / 4) * Math.PI;
- ctx.beginPath(); ctx.moveTo(c + Math.cos(a) * c * 0.2, c + Math.sin(a) * c * 0.2); ctx.lineTo(c + Math.cos(a) * c * 0.96, c + Math.sin(a) * c * 0.96); ctx.stroke();
- ctx.beginPath(); ctx.moveTo(c - Math.cos(a) * c * 0.2, c - Math.sin(a) * c * 0.2); ctx.lineTo(c - Math.cos(a) * c * 0.96, c - Math.sin(a) * c * 0.96); ctx.stroke();
- }
- ctx.globalAlpha = 1;
- // Blips, a few in amber.
- for (let i = 0; i < 14; i += 1) {
- const a = i * 2.39, r = c * (0.3 + ((i * 37) % 60) / 100);
- glow(ctx, i % 4 === 0 ? AMBER : ICE, 14);
- ctx.beginPath(); ctx.arc(c + Math.cos(a) * r, c + Math.sin(a) * r, i % 4 === 0 ? 7 : 4, 0, Math.PI * 2); ctx.fill();
- }
+ // The call to action along the bottom: a white button with a plus.
+ const bw = 330, bh = 76, bx = pad, by = h - pad - bh;
+ ctx.fillStyle = INK;
+ ctx.beginPath(); ctx.roundRect(bx, by, bw, bh, 18); ctx.fill();
+ ctx.strokeStyle = "#0b0d10";
+ ctx.lineWidth = 5;
+ ctx.lineCap = "round";
+ const px = bx + 44, py = by + bh / 2;
+ ctx.beginPath(); ctx.moveTo(px - 13, py); ctx.lineTo(px + 13, py); ctx.moveTo(px, py - 13); ctx.lineTo(px, py + 13); ctx.stroke();
+ ctx.fillStyle = "#0b0d10";
+ ctx.font = `600 32px ${FONT}`;
+ ctx.fillText(labels.start, bx + 80, py + 11);
}
-type PanelKind = "bars" | "wave" | "gauge" | "list" | "grid";
-
-/** One floating panel: a framed readout in cyan on glass. */
-function drawPanel(kind: PanelKind): (ctx: CanvasRenderingContext2D, w: number, h: number) => void {
- return (ctx, w, h) => {
- ctx.clearRect(0, 0, w, h);
- ctx.fillStyle = "rgba(40, 190, 255, 0.22)";
- ctx.fillRect(0, 0, w, h);
- glow(ctx, CYAN, 8);
- ctx.lineWidth = 3;
- // Corner brackets instead of a full frame.
- const k = 34;
- for (const [x, y, dx, dy] of [[6, 6, 1, 1], [w - 6, 6, -1, 1], [6, h - 6, 1, -1], [w - 6, h - 6, -1, -1]] as const) {
- ctx.beginPath(); ctx.moveTo(x, y + dy * k); ctx.lineTo(x, y); ctx.lineTo(x + dx * k, y); ctx.stroke();
- }
- ctx.lineWidth = 2;
- ctx.fillRect(22, 22, w * 0.4, 7);
- ctx.globalAlpha = 0.6;
- ctx.fillRect(22, 36, w * 0.22, 4);
- ctx.globalAlpha = 1;
- const top = 58, bottom = h - 24, left = 24, right = w - 24;
- if (kind === "bars") {
- for (let i = 0; i < 12; i += 1) {
- const bh = (bottom - top) * (0.25 + (((i * 53) % 70) / 100));
- glow(ctx, i === 8 ? AMBER : CYAN, 8);
- ctx.fillRect(left + i * ((right - left) / 12) + 3, bottom - bh, (right - left) / 12 - 8, bh);
- }
- } else if (kind === "wave") {
- for (const [amp, phase, colour] of [[0.3, 0, CYAN], [0.18, 1.7, ICE], [0.1, 3.1, AMBER]] as const) {
- glow(ctx, colour, 8);
- ctx.beginPath();
- for (let x = left; x <= right; x += 4) {
- const y = (top + bottom) / 2 + Math.sin(x * 0.045 + phase) * (bottom - top) * amp + Math.sin(x * 0.13 + phase) * 6;
- if (x === left) ctx.moveTo(x, y); else ctx.lineTo(x, y);
- }
- ctx.stroke();
- }
- } else if (kind === "gauge") {
- const cx = w / 2, cy = (top + bottom) / 2 + 8, r = (bottom - top) / 2;
- ctx.lineWidth = 12;
- ctx.globalAlpha = 0.25;
- ctx.beginPath(); ctx.arc(cx, cy, r, Math.PI * 0.8, Math.PI * 2.2); ctx.stroke();
- ctx.globalAlpha = 1;
- ctx.beginPath(); ctx.arc(cx, cy, r, Math.PI * 0.8, Math.PI * 1.85); ctx.stroke();
- ctx.lineWidth = 3;
- ctx.beginPath(); ctx.arc(cx, cy, r * 0.62, 0, Math.PI * 2); ctx.stroke();
- glow(ctx, AMBER, 12);
- ctx.beginPath(); ctx.arc(cx, cy, 8, 0, Math.PI * 2); ctx.fill();
- } else if (kind === "list") {
- for (let i = 0; i < 7; i += 1) {
- const y = top + i * ((bottom - top) / 7);
- glow(ctx, i === 2 ? AMBER : CYAN, 6);
- ctx.fillRect(left, y, 10, 10);
- ctx.globalAlpha = 0.85;
- ctx.fillRect(left + 22, y + 2, (right - left - 40) * (0.35 + ((i * 29) % 55) / 100), 6);
- ctx.globalAlpha = 1;
- }
- } else {
- ctx.lineWidth = 1;
- ctx.globalAlpha = 0.5;
- for (let x = left; x <= right; x += 24) { ctx.beginPath(); ctx.moveTo(x, top); ctx.lineTo(x, bottom); ctx.stroke(); }
- for (let y = top; y <= bottom; y += 24) { ctx.beginPath(); ctx.moveTo(left, y); ctx.lineTo(right, y); ctx.stroke(); }
- ctx.globalAlpha = 1;
- ctx.lineWidth = 3;
- ctx.beginPath();
- [[0.1, 0.8], [0.3, 0.55], [0.45, 0.62], [0.62, 0.3], [0.8, 0.38], [0.92, 0.15]].forEach(([fx, fy], i) => {
- const x = left + (right - left) * fx, y = top + (bottom - top) * fy;
- if (i === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y);
- });
- ctx.stroke();
+/** The floor's live counts, from the same shared pane poll the figures ride. */
+function useFloorCounts(): FloorCounts {
+ const panes = useWorkspacePanesStore((s) => s.panes);
+ return useMemo(() => {
+ const counts: FloorCounts = { total: 0, working: 0, waiting: 0, idle: 0 };
+ for (const { agent } of paneOccupants(panes)) {
+ counts.total += 1;
+ if (agent.state === "working") counts.working += 1;
+ else if (agent.state === "waiting") counts.waiting += 1;
+ else counts.idle += 1;
}
- };
-}
-
-function holoMaterial(map: Texture | null, opacity = 0.9): MeshBasicMaterial {
- return new MeshBasicMaterial({
- map, color: map ? "#ffffff" : CYAN, transparent: true, opacity, side: DoubleSide,
- depthWrite: false, blending: AdditiveBlending, toneMapped: false,
- });
-}
-
-// ---------------------------------------------------------------------------
-// Shared geometry and materials.
-// ---------------------------------------------------------------------------
-
-const DECK_R = MISSION_DECK_RADIUS;
-const TABLE_R = MISSION_TABLE_RADIUS;
-const TABLE_Y = 0.92;
-const GLOBE_Y = 2.05;
-
-const MM = {
- deck: new MeshStandardMaterial({ color: "#243044", roughness: 0.4, metalness: 0.55 }),
- pedestal: new MeshStandardMaterial({ color: "#2a3549", roughness: 0.35, metalness: 0.6 }),
- glass: new MeshStandardMaterial({ color: "#07101d", roughness: 0.12, metalness: 0.5, transparent: true, opacity: 0.88 }),
- line: new MeshBasicMaterial({ color: CYAN, toneMapped: false }),
- lineSoft: new MeshBasicMaterial({ color: CYAN, transparent: true, opacity: 0.45, toneMapped: false, depthWrite: false }),
- column: new MeshBasicMaterial({ color: CYAN, transparent: true, opacity: 0.05, side: DoubleSide, depthWrite: false, blending: AdditiveBlending, toneMapped: false }),
- globe: new MeshBasicMaterial({ color: CYAN, wireframe: true, transparent: true, opacity: 0.32, depthWrite: false, blending: AdditiveBlending, toneMapped: false }),
- core: new MeshBasicMaterial({ color: "#0e6f8f", transparent: true, opacity: 0.12, depthWrite: false, blending: AdditiveBlending, toneMapped: false }),
- orbit: new MeshBasicMaterial({ color: CYAN, transparent: true, opacity: 0.65, blending: AdditiveBlending, toneMapped: false }),
- moon: new MeshBasicMaterial({ color: AMBER, toneMapped: false }),
- sparks: new PointsMaterial({ color: CYAN, size: 0.03, transparent: true, opacity: 0.55, depthWrite: false, blending: AdditiveBlending, toneMapped: false }),
-};
-
-const GEO = {
- deck: new CylinderGeometry(DECK_R, DECK_R + 0.04, 0.1, 64),
- deckEdge: new TorusGeometry(DECK_R + 0.01, 0.018, 8, 96),
- deckRing: new RingGeometry(TABLE_R + 0.12, TABLE_R + 0.15, 96),
- pedestal: new CylinderGeometry(0.72, 0.95, TABLE_Y - 0.1, 48),
- band: new TorusGeometry(0.8, 0.012, 6, 64),
- table: new CylinderGeometry(TABLE_R, TABLE_R - 0.05, 0.06, 72),
- tableRim: new TorusGeometry(TABLE_R, 0.022, 8, 96),
- hud: new CircleGeometry(TABLE_R - 0.06, 72),
- column: new CylinderGeometry(0.62, 0.36, GLOBE_Y - TABLE_Y - 0.35, 40, 1, true),
- globe: new IcosahedronGeometry(0.55, 3),
- core: new SphereGeometry(0.46, 24, 16),
- orbitA: new TorusGeometry(0.78, 0.009, 6, 96),
- orbitB: new TorusGeometry(0.9, 0.007, 6, 96),
- orbitC: new TorusGeometry(1.0, 0.006, 6, 96),
- moon: new SphereGeometry(0.045, 12, 8),
- panel: new PlaneGeometry(0.9, 0.54),
-};
-
-/** Sparks drifting up through the deck, seeded so every load looks the same. */
-function sparkGeometry(): BufferGeometry {
- const positions: number[] = [];
- let seed = 7;
- const rand = () => { seed = (seed * 16807) % 2147483647; return seed / 2147483647; };
- for (let i = 0; i < 120; i += 1) {
- // Kept out of the globe's middle so the sparks never pile up into a white blob.
- const a = rand() * Math.PI * 2, r = 0.7 + rand() * (TABLE_R - 0.8);
- positions.push(Math.cos(a) * r, TABLE_Y + 0.05 + rand() * 2.0, Math.sin(a) * r);
- }
- const geometry = new BufferGeometry();
- geometry.setAttribute("position", new Float32BufferAttribute(positions, 3));
- return geometry;
+ return counts;
+ }, [panes]);
}
-const PANELS: { kind: PanelKind; angle: number; y: number }[] = [
- { kind: "bars", angle: 0, y: 1.5 },
- { kind: "wave", angle: (Math.PI * 2) / 6, y: 1.62 },
- { kind: "gauge", angle: (Math.PI * 4) / 6, y: 1.45 },
- { kind: "list", angle: Math.PI, y: 1.58 },
- { kind: "grid", angle: (Math.PI * 8) / 6, y: 1.48 },
- { kind: "wave", angle: (Math.PI * 10) / 6, y: 1.6 },
-];
-const PANEL_RADIUS = 1.3;
-
-// ---------------------------------------------------------------------------
-// The deck.
-// ---------------------------------------------------------------------------
-
-function useHoloMaterials() {
- return useMemo(() => ({
- hud: holoMaterial(cachedCanvasTexture("mission:hud", 512, 512, drawTableHud), 0.95),
- panels: PANELS.map((p, i) => holoMaterial(cachedCanvasTexture(`mission:panel:${p.kind}:${i % 2}`, 384, 232, drawPanel(p.kind)), 0.85)),
- }), []);
+function useScreenMaterial(counts: FloorCounts, labels: ScreenLabels): MeshBasicMaterial {
+ const canvas = useMemo(() => (typeof document !== "undefined" ? document.createElement("canvas") : null), []);
+ const material = useMemo(() => {
+ if (!canvas) return new MeshBasicMaterial({ color: "#0b0d10" });
+ canvas.width = CANVAS_W;
+ canvas.height = CANVAS_H;
+ const texture = new CanvasTexture(canvas);
+ texture.colorSpace = SRGBColorSpace;
+ texture.anisotropy = 8;
+ return new MeshBasicMaterial({ map: texture, toneMapped: false });
+ }, [canvas]);
+ const key = JSON.stringify([counts, labels]);
+ useEffect(() => {
+ let ctx: CanvasRenderingContext2D | null = null;
+ try { ctx = canvas?.getContext("2d") ?? null; } catch {
+ // jsdom without the canvas package: the plain dark screen is the right fallback.
+ ctx = null;
+ }
+ if (!ctx || !material.map) return;
+ drawMissionScreen(ctx, CANVAS_W, CANVAS_H, counts, labels);
+ material.map.needsUpdate = true;
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [key, canvas, material]);
+ useEffect(() => () => { material.map?.dispose(); material.dispose(); }, [material]);
+ return material;
}
-export function MissionConsole() {
- const reduced = useReducedMotion() ?? false;
- const holo = useHoloMaterials();
- const sparks = useMemo(sparkGeometry, []);
- useEffect(() => () => sparks.dispose(), [sparks]);
- const globe = useRef<Group>(null);
- const orbits = useRef<Group>(null);
- const panels = useRef<Group>(null);
- const drift = useRef<Group>(null);
+export function MissionScreen() {
+ const t = useT();
+ const counts = useFloorCounts();
+ const labels: ScreenLabels = {
+ title: t("society.office.cp_mission"),
+ agents: t("society.office.mission_screen_agents"),
+ working: t("society.office.state_working"),
+ waiting: t("society.office.state_waiting"),
+ idle: t("society.office.state_idle"),
+ start: t("society.office.mission_screen_start"),
+ };
+ const screen = useScreenMaterial(counts, labels);
const hovered = useRef(false);
-
- useFrame(({ clock }, delta) => {
- if (reduced) return;
- const t = clock.elapsedTime;
- if (globe.current) globe.current.rotation.y += delta * 0.3;
- if (orbits.current) {
- const [a, b, c] = orbits.current.children;
- if (a) a.rotation.z += delta * 0.6;
- if (b) b.rotation.z -= delta * 0.4;
- if (c) c.rotation.z += delta * 0.25;
- }
- if (panels.current) {
- panels.current.rotation.y += delta * 0.05;
- panels.current.children.forEach((panel, i) => { panel.position.y = PANELS[i].y + Math.sin(t * 1.1 + i) * 0.04; });
- }
- if (drift.current) drift.current.rotation.y -= delta * 0.08;
- });
-
useEffect(() => () => { if (hovered.current) document.body.style.cursor = ""; }, []);
const open = (event: ThreeEvent<MouseEvent>) => {
event.stopPropagation();
@@ -269,54 +155,17 @@ export function MissionConsole() {
const out = () => { hovered.current = false; document.body.style.cursor = ""; };
return (
- <group name="mission-deck" onClick={open} onPointerOver={over} onPointerOut={out}>
- {/* Deck: a dark round platform with a glowing edge and a ring round the table. */}
- <mesh geometry={GEO.deck} material={MM.deck} position={[0, 0.05, 0]} receiveShadow />
- <mesh geometry={GEO.deckEdge} material={MM.line} position={[0, 0.1, 0]} rotation={[Math.PI / 2, 0, 0]} />
- <mesh geometry={GEO.deckRing} material={MM.lineSoft} position={[0, 0.103, 0]} rotation={[-Math.PI / 2, 0, 0]} />
-
- {/* Pedestal with light bands, glass table top, its rim and the HUD inside it. */}
- <mesh geometry={GEO.pedestal} material={MM.pedestal} position={[0, 0.1 + (TABLE_Y - 0.1) / 2, 0]} castShadow />
- {[0.3, 0.5, 0.7].map((y) => <mesh key={y} geometry={GEO.band} material={MM.line} position={[0, y, 0]} rotation={[Math.PI / 2, 0, 0]} scale={1 - y * 0.12} />)}
- <mesh geometry={GEO.table} material={MM.glass} position={[0, TABLE_Y, 0]} castShadow receiveShadow />
- <mesh geometry={GEO.tableRim} material={MM.line} position={[0, TABLE_Y + 0.03, 0]} rotation={[Math.PI / 2, 0, 0]} />
- <mesh geometry={GEO.hud} material={holo.hud} position={[0, TABLE_Y + 0.034, 0]} rotation={[-Math.PI / 2, 0, 0]} />
-
- {/* Light column rising from the table into the globe. */}
- <mesh geometry={GEO.column} material={MM.column} position={[0, TABLE_Y + 0.03 + (GLOBE_Y - TABLE_Y - 0.35) / 2, 0]} />
-
- {/* Wireframe globe with a soft core, and three tilted orbit rings with moons. */}
- <group position={[0, GLOBE_Y, 0]}>
- <group ref={globe}>
- <mesh geometry={GEO.globe} material={MM.globe} />
- </group>
- <mesh geometry={GEO.core} material={MM.core} />
- <group ref={orbits}>
- <group rotation={[Math.PI / 2.4, 0.3, 0]}>
- <mesh geometry={GEO.orbitA} material={MM.orbit} />
- <mesh geometry={GEO.moon} material={MM.moon} position={[0.78, 0, 0]} />
- </group>
- <group rotation={[Math.PI / 1.8, -0.5, 0]}>
- <mesh geometry={GEO.orbitB} material={MM.orbit} />
- <mesh geometry={GEO.moon} material={MM.moon} position={[0, 0.9, 0]} />
- </group>
- <group rotation={[Math.PI / 2, 0, 0.9]}>
- <mesh geometry={GEO.orbitC} material={MM.orbit} />
- </group>
- </group>
- </group>
-
- {/* Floating readouts all the way round, facing outwards, drifting slowly. */}
- <group ref={panels}>
- {PANELS.map((p, i) => (
- <group key={i} position={[Math.sin(p.angle) * PANEL_RADIUS, p.y, Math.cos(p.angle) * PANEL_RADIUS]} rotation={[0, p.angle, 0]}>
- <mesh geometry={GEO.panel} material={holo.panels[i]} rotation={[-0.45, 0, 0]} />
- </group>
- ))}
- </group>
-
- <group ref={drift}>
- <points geometry={sparks} material={MM.sparks} />
+ <group name="mission-screen" onClick={open} onPointerOver={over} onPointerOut={out}>
+ {/* Low base plate and a slim column, set back so the screen overhangs it a little. */}
+ <Rounded size={[0.64, 0.035, 0.42]} radius={0.015} position={[0, 0.018, -0.02]} material={MAT.steel} />
+ <Box size={[0.07, SCREEN_Y - 0.03, 0.05]} position={[0, (SCREEN_Y + 0.03) / 2, -0.09]} material={MAT.steel} />
+ {/* The display: rear housing, thin bezel, the live screen flush in front. */}
+ <group position={[0, SCREEN_Y, -0.04]} rotation={[TILT, 0, 0]}>
+ <Rounded size={[0.42, 0.3, 0.05]} radius={0.015} position={[0, 0, -0.045]} material={MAT.steel} />
+ <Rounded size={[SCREEN_W + 0.03, SCREEN_H + 0.03, 0.035]} radius={0.012} position={[0, 0, 0]} material={MAT.monitor} />
+ <mesh position={[0, 0, 0.0185]} material={screen}>
+ <planeGeometry args={[SCREEN_W, SCREEN_H]} />
+ </mesh>
</group>
</group>
);
@@ -324,5 +173,5 @@ export function MissionConsole() {
/** Mission Control's renderers; merged into OfficeProps' exhaustive table. */
export const MISSION_RENDERERS = {
- missionConsole: () => <MissionConsole />,
+ missionConsole: () => <MissionScreen />,
} satisfies Partial<Record<FurnitureKind, (props: { item: Furniture }) => JSX.Element>>;
diff --git a/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx b/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx
index af50456115..73c116c1f4 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/MissionControlPanel.tsx
@@ -1,16 +1,16 @@
/**
- * Mission Control, the coding floor's centre hub: start new coding agents and
- * brief several of them at once.
+ * Mission Control, the screen in the middle of the coding floor: start new
+ * coding agents, and message several running ones at once.
*
- * "New agents" opens panes through the IDE's own `POST /terminals` (workspace,
- * CLI, how many) and, when a first task is given, waits for each pane to come
- * up and hands it the task through `/terminals/{name}/prompt` — the path voice
- * and the grid use, so every prompt is recorded and receipted the same way.
- * "Brief the floor" sends one message to every picked session. The office adds
- * no backend contract of its own.
+ * "Start an agent" opens panes through the IDE's own `POST /terminals`
+ * (workspace, CLI, how many) and, when a task is given, waits for each pane to
+ * come up and hands it the task through `/terminals/{name}/prompt` — the path
+ * voice and the grid use, so every prompt is recorded and receipted the same
+ * way. "Message several agents" sends one message to every picked session.
+ * The office adds no backend contract of its own.
*/
-import { useCallback, useEffect, useId, useMemo, useState, type KeyboardEvent } from "react";
-import { Radio, Rocket } from "lucide-react";
+import { useCallback, useEffect, useMemo, useState, type KeyboardEvent } from "react";
+import { Minus, Plus } from "lucide-react";
import { useT } from "@/i18n";
import {
fetchIdeAgents, fetchIdeState, fetchWorkspacePanes, interruptTerminal, openTerminal, promptTerminal,
@@ -18,6 +18,7 @@ import {
} from "@/lib/agenticIdeApi";
import { useEventStore } from "@/store/events";
import { useWorkspacePanesStore } from "@/store/workspacePanes";
+import { AgentMark } from "@/components/agentic/AgentMark";
import { paneOccupants, type PaneOccupant } from "./codingFloor";
import "./missionControl.css";
@@ -28,20 +29,17 @@ const START_TIMEOUT_MS = 30_000;
const START_POLL_MS = 600;
const START_JITTER_MS = 300;
-type Tab = "new" | "fleet";
-const TABS: readonly Tab[] = ["new", "fleet"];
-
-type LaunchLine = { name: string; tone: "busy" | "ok" | "warn" | "error"; text: string };
+type LaunchLine = { tone: "busy" | "ok" | "warn" | "error"; text: string };
/** Coding CLIs a new agent can run: installed, and not a plain shell. Pure. */
export function launchableAgents(agents: readonly AgentStatus[]): AgentStatus[] {
return agents.filter((a) => a.installed && (a.kind ?? "cli") !== "shell");
}
-/** Which sessions a fleet filter picks. Pure. */
-export function pickFleet(occupants: readonly PaneOccupant[], filter: "all" | "working" | "waiting" | "idle" | "none"): Set<string> {
- if (filter === "none") return new Set();
- return new Set(occupants.filter((o) => filter === "all" || o.agent.state === filter).map((o) => o.agent.agentId));
+/** Every session on the floor, or none: the one bulk pick the list offers. Pure. */
+export function pickAll(occupants: readonly PaneOccupant[], picked: ReadonlySet<string>): Set<string> {
+ const everyone = occupants.every((o) => picked.has(o.agent.agentId));
+ return everyone ? new Set() : new Set(occupants.map((o) => o.agent.agentId));
}
/** Wait until the pane `name` of `workspaceId` is live; false when it failed or the clock ran out. */
@@ -66,7 +64,7 @@ function errorText(err: unknown): string {
return err instanceof Error ? err.message : String(err);
}
-function NewAgentsTab() {
+function StartAgent() {
const t = useT();
const [workspaces, setWorkspaces] = useState<WorkspaceCard[] | null>(null);
const [agents, setAgents] = useState<AgentStatus[] | null>(null);
@@ -103,99 +101,105 @@ function NewAgentsTab() {
setLines([]);
const brief = task.trim();
for (let i = 0; i < count; i += 1) {
- setLine(i, { name: "", tone: "busy", text: t("society.office.mission_opening") });
+ setLine(i, { tone: "busy", text: t("society.office.mission_opening") });
let name = "";
try {
name = (await openTerminal({ workspace_id: workspaceId, agent: agentName })).name;
} catch (err) {
- setLine(i, { name: "", tone: "error", text: t("society.office.mission_failed").replace("{0}", errorText(err)) });
+ setLine(i, { tone: "error", text: t("society.office.mission_failed").replace("{0}", errorText(err)) });
break;
}
void useWorkspacePanesStore.getState().load();
- if (!brief) { setLine(i, { name, tone: "ok", text: t("society.office.mission_done_open").replace("{0}", name) }); continue; }
- setLine(i, { name, tone: "busy", text: t("society.office.mission_waiting").replace("{0}", name) });
+ if (!brief) { setLine(i, { tone: "ok", text: t("society.office.mission_done_open").replace("{0}", name) }); continue; }
+ setLine(i, { tone: "busy", text: t("society.office.mission_waiting").replace("{0}", name) });
if (!(await waitLive(workspaceId, name))) {
- setLine(i, { name, tone: "warn", text: t("society.office.mission_not_started").replace("{0}", name) });
+ setLine(i, { tone: "warn", text: t("society.office.mission_not_started").replace("{0}", name) });
continue;
}
- setLine(i, { name, tone: "busy", text: t("society.office.mission_briefing").replace("{0}", name) });
+ setLine(i, { tone: "busy", text: t("society.office.mission_briefing").replace("{0}", name) });
try {
const result = await promptTerminal(name, brief, { compose: sharpen, workspaceId });
setLine(i, result.submitted === true
- ? { name, tone: "ok", text: t("society.office.mission_done_briefed").replace("{0}", name) }
- : { name, tone: "warn", text: result.detail || t("society.office.cmd_unconfirmed") });
+ ? { tone: "ok", text: t("society.office.mission_done_briefed").replace("{0}", name) }
+ : { tone: "warn", text: result.detail || t("society.office.cmd_unconfirmed") });
} catch (err) {
- setLine(i, { name, tone: "error", text: errorText(err) });
+ setLine(i, { tone: "error", text: errorText(err) });
}
}
+ if (brief) setTask("");
void useWorkspacePanesStore.getState().load();
setRunning(false);
};
- if (loadError) return <p className="office-hint" role="alert">{loadError}</p>;
- if (!workspaces || !agents) return <p className="office-hint" role="status">{t("society.office.mission_loading")}</p>;
+ if (loadError) return <p className="office-mc-note" role="alert">{loadError}</p>;
+ if (!workspaces || !agents) return <p className="office-mc-note" role="status">{t("society.office.mission_loading")}</p>;
if (workspaces.length === 0) {
return (
- <>
+ <div className="office-mc-empty">
<p>{t("society.office.mission_no_workspace")}</p>
- <button type="button" className="office-action office-action-primary"
- onClick={() => useEventStore.getState().setActiveSection("agentic-ide")}>{t("society.office.open_ide")}</button>
- </>
+ <button type="button" className="office-mc-primary" onClick={() => useEventStore.getState().setActiveSection("agentic-ide")}>
+ {t("society.office.open_ide")}
+ </button>
+ </div>
);
}
return (
- <div className="office-mc-form">
- <p className="office-mc-intro">{t("society.office.mission_intro")}</p>
- <label className="office-mc-field">
- <span>{t("society.office.mission_workspace")}</span>
- <select value={workspaceId} onChange={(e) => setWorkspaceId(e.target.value)} disabled={running}>
- {workspaces.map((w) => <option key={w.id} value={w.id}>{w.name}{w.branch ? ` · ${w.branch}` : ""}</option>)}
- </select>
- </label>
- <fieldset className="office-mc-field" disabled={running}>
- <legend>{t("society.office.mission_agent")}</legend>
- {agents.length === 0 ? <p className="office-hint">{t("society.office.mission_no_agents")}</p> : (
- <div className="office-mc-chips">
- {agents.map((a) => (
- <button key={a.name} type="button" aria-pressed={agentName === a.name} title={a.description || a.display_name}
- onClick={() => setAgentName(a.name)}>{a.display_name}</button>
- ))}
- </div>
- )}
- </fieldset>
- <fieldset className="office-mc-field" disabled={running}>
- <legend>{t("society.office.mission_count")}</legend>
- <div className="office-mc-chips">
- {Array.from({ length: MAX_LAUNCH }, (_, i) => i + 1).map((n) => (
- <button key={n} type="button" aria-pressed={count === n} onClick={() => setCount(n)}>{n}</button>
+ <div className="office-mc-block">
+ {agents.length === 0 ? <p className="office-mc-note">{t("society.office.mission_no_agents")}</p> : (
+ <div className="office-mc-agents" role="radiogroup" aria-label={t("society.office.mission_agent")}>
+ {agents.map((a) => (
+ <button key={a.name} type="button" role="radio" aria-checked={agentName === a.name} disabled={running}
+ title={a.description || a.display_name} onClick={() => setAgentName(a.name)}>
+ <AgentMark agent={a.name} label={a.display_name} logoUrl={a.logo_url || undefined} size="sm" />
+ <span>{a.display_name}</span>
+ </button>
))}
</div>
- </fieldset>
- <label className="office-mc-field">
- <span>{t("society.office.mission_task")}</span>
- <textarea rows={3} value={task} maxLength={8000} disabled={running} placeholder={t("society.office.mission_task_placeholder")}
- onChange={(e) => setTask(e.target.value)}
- onKeyDown={(e) => { if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) { e.preventDefault(); void launch(); } }} />
- </label>
- <label className="office-cmd-check">
- <input type="checkbox" checked={sharpen} disabled={running || !task.trim()} onChange={(e) => setSharpen(e.target.checked)} />
- <span>{t("society.office.cmd_sharpen")}</span>
- </label>
- <button type="button" className="office-action office-action-primary office-mc-go" disabled={running || !workspaceId || !agentName}
- onClick={() => void launch()}>
- <Rocket aria-hidden />
- {count === 1 ? t("society.office.mission_start_one") : t("society.office.mission_start_many").replace("{0}", String(count))}
- </button>
+ )}
+
+ {workspaces.length > 1 && (
+ <label className="office-mc-row">
+ <span>{t("society.office.mission_workspace")}</span>
+ <select value={workspaceId} onChange={(e) => setWorkspaceId(e.target.value)} disabled={running}>
+ {workspaces.map((w) => <option key={w.id} value={w.id}>{w.name}{w.branch ? ` · ${w.branch}` : ""}</option>)}
+ </select>
+ </label>
+ )}
+
+ <textarea className="office-mc-task" rows={3} value={task} maxLength={8000} disabled={running}
+ placeholder={t("society.office.mission_task_placeholder")} aria-label={t("society.office.mission_task")}
+ onChange={(e) => setTask(e.target.value)}
+ onKeyDown={(e) => { if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) { e.preventDefault(); void launch(); } }} />
+ {task.trim() && (
+ <label className="office-cmd-check">
+ <input type="checkbox" checked={sharpen} disabled={running} onChange={(e) => setSharpen(e.target.checked)} />
+ <span>{t("society.office.cmd_sharpen")}</span>
+ </label>
+ )}
+
+ <div className="office-mc-go">
+ <div className="office-mc-stepper" role="group" aria-label={t("society.office.mission_count")}>
+ <button type="button" disabled={running || count <= 1} onClick={() => setCount((n) => n - 1)}
+ aria-label={t("society.office.mission_fewer")}><Minus aria-hidden /></button>
+ <output aria-live="polite">{count}</output>
+ <button type="button" disabled={running || count >= MAX_LAUNCH} onClick={() => setCount((n) => n + 1)}
+ aria-label={t("society.office.mission_more")}><Plus aria-hidden /></button>
+ </div>
+ <button type="button" className="office-mc-primary" disabled={running || !workspaceId || !agentName} onClick={() => void launch()}>
+ {count === 1 ? t("society.office.mission_start_one") : t("society.office.mission_start_many").replace("{0}", String(count))}
+ </button>
+ </div>
+
{lines.length > 0 && (
<ul className="office-mc-log" aria-live="polite">
- {lines.map((line, i) => <li key={i} data-tone={line.tone}>{line.text}</li>)}
+ {lines.map((line, i) => <li key={i} data-tone={line.tone}><i aria-hidden />{line.text}</li>)}
</ul>
)}
</div>
);
}
-function FleetTab() {
+function MessageSeveral() {
const t = useT();
const panes = useWorkspacePanesStore((s) => s.panes);
const occupants = useMemo(() => paneOccupants(panes), [panes]);
@@ -204,6 +208,7 @@ function FleetTab() {
const [sending, setSending] = useState(false);
const [result, setResult] = useState<{ tone: "ok" | "warn"; text: string } | null>(null);
const chosen = occupants.filter((o) => picked.has(o.agent.agentId));
+ const chosenWorking = chosen.filter((o) => o.dot === "working");
const toggle = (id: string) => setPicked((prev) => {
const next = new Set(prev);
@@ -216,7 +221,7 @@ function FleetTab() {
if (sending || chosen.length === 0 || (kind === "send" && !text)) return;
setSending(true);
setResult(null);
- const targets = kind === "stop" ? chosen.filter((o) => o.dot === "working") : chosen;
+ const targets = kind === "stop" ? chosenWorking : chosen;
const outcomes = await Promise.allSettled(targets.map(async (o) => {
if (kind === "stop") { await interruptTerminal(o.pane.name, o.pane.workspace_id); return true; }
if (o.pane.status !== "live" || !o.pane.accepts_prompts) throw new Error(t("society.office.cmd_not_running"));
@@ -231,71 +236,55 @@ function FleetTab() {
if (kind === "send" && missed.length === 0) setMessage("");
void useWorkspacePanesStore.getState().load();
setSending(false);
- }, [chosen, message, sending, t]);
+ }, [chosen, chosenWorking, message, sending, t]);
- if (occupants.length === 0) return <p>{t("society.office.fleet_empty")}</p>;
+ if (occupants.length === 0) return <p className="office-mc-note">{t("society.office.fleet_empty")}</p>;
+ const everyone = occupants.every((o) => picked.has(o.agent.agentId));
return (
- <div className="office-mc-form">
- <p className="office-mc-intro">{t("society.office.fleet_intro")}</p>
- <div className="office-mc-chips" role="group" aria-label={t("society.office.fleet_pick")}>
- {(["all", "working", "waiting", "idle", "none"] as const).map((filter) => (
- <button key={filter} type="button" onClick={() => setPicked(pickFleet(occupants, filter))}>{t(`society.office.fleet_pick_${filter}`)}</button>
- ))}
- </div>
+ <div className="office-mc-block">
<ul className="office-mc-fleet">
{occupants.map((o) => (
<li key={o.agent.agentId}>
<label>
<input type="checkbox" checked={picked.has(o.agent.agentId)} onChange={() => toggle(o.agent.agentId)} />
- <i className="office-dot" data-state={o.agent.state} data-dot={o.dot} aria-hidden />
<span className="office-mc-fleet-name" title={o.pane.recap || o.pane.last_prompt}>{o.agent.name}</span>
- <span className="office-mc-fleet-state">{t(`society.office.pane_state_${o.stateKey}`)} · {o.agent.providerLabel}</span>
+ <span className="office-mc-fleet-state"><i className="office-dot" data-state={o.agent.state} data-dot={o.dot} aria-hidden />{t(`society.office.pane_state_${o.stateKey}`)}</span>
</label>
</li>
))}
</ul>
- <textarea className="office-mc-message" rows={3} value={message} maxLength={8000} disabled={sending}
+ <button type="button" className="office-mc-link" onClick={() => setPicked(pickAll(occupants, picked))}>
+ {t(everyone ? "society.office.fleet_select_none" : "society.office.fleet_select_all")}
+ </button>
+ <textarea className="office-mc-task" rows={2} value={message} maxLength={8000} disabled={sending}
placeholder={t("society.office.fleet_placeholder")} aria-label={t("society.office.fleet_placeholder")}
onChange={(e) => setMessage(e.target.value)}
onKeyDown={(e: KeyboardEvent<HTMLTextAreaElement>) => { if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) { e.preventDefault(); void broadcast("send"); } }} />
- <div className="office-actions">
- <button type="button" className="office-action office-action-primary" disabled={sending || chosen.length === 0 || !message.trim()}
- onClick={() => void broadcast("send")}>
- <Radio aria-hidden />{t("society.office.fleet_send").replace("{0}", String(chosen.length))}
+ <div className="office-mc-go">
+ <button type="button" className="office-mc-secondary" disabled={sending || chosenWorking.length === 0} onClick={() => void broadcast("stop")}>
+ {t("society.office.fleet_stop").replace("{0}", String(chosenWorking.length))}
</button>
- <button type="button" className="office-action" disabled={sending || !chosen.some((o) => o.dot === "working")}
- onClick={() => void broadcast("stop")}>
- {t("society.office.fleet_stop").replace("{0}", String(chosen.filter((o) => o.dot === "working").length))}
+ <button type="button" className="office-mc-primary" disabled={sending || chosen.length === 0 || !message.trim()} onClick={() => void broadcast("send")}>
+ {t("society.office.fleet_send").replace("{0}", String(chosen.length))}
</button>
</div>
- {result && <p className="office-hint office-mc-result" role="status" data-tone={result.tone}>{result.text}</p>}
+ {result && <p className="office-mc-note" role="status" data-tone={result.tone}>{result.text}</p>}
</div>
);
}
export function MissionControlPanel() {
const t = useT();
- const baseId = useId();
- const [tab, setTab] = useState<Tab>("new");
return (
<div className="office-mc">
- <div className="office-mc-tabs" role="tablist" aria-label={t("society.office.cp_mission")}>
- {TABS.map((id) => (
- <button key={id} type="button" role="tab" id={`${baseId}-${id}`} aria-selected={tab === id} aria-controls={`${baseId}-${id}-panel`}
- tabIndex={tab === id ? 0 : -1} onClick={() => setTab(id)}
- onKeyDown={(e) => {
- if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
- e.preventDefault();
- e.stopPropagation();
- setTab(tab === "new" ? "fleet" : "new");
- }}>
- {t(`society.office.mission_tab_${id}`)}
- </button>
- ))}
- </div>
- <div role="tabpanel" id={`${baseId}-${tab}-panel`} aria-labelledby={`${baseId}-${tab}`}>
- {tab === "new" ? <NewAgentsTab /> : <FleetTab />}
- </div>
+ <section aria-labelledby="office-mc-start">
+ <h3 id="office-mc-start" className="office-mc-heading">{t("society.office.mission_new_title")}</h3>
+ <StartAgent />
+ </section>
+ <details className="office-mc-more">
+ <summary className="office-mc-heading">{t("society.office.fleet_title")}</summary>
+ <MessageSeveral />
+ </details>
</div>
);
}
diff --git a/jarvis/ui/web/frontend/src/components/society/office/missionControl.css b/jarvis/ui/web/frontend/src/components/society/office/missionControl.css
index 4758fcfb63..92ba4ec50b 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/missionControl.css
+++ b/jarvis/ui/web/frontend/src/components/society/office/missionControl.css
@@ -26,32 +26,69 @@
.office-cmd-tools button[data-danger]:hover:not(:disabled), .office-cmd-tools button[data-danger][aria-pressed="true"] { color:hsl(var(--destructive)); background:hsl(var(--destructive) / .1); }
/* ---- Mission Control -------------------------------------------------- */
-.office-mc { display:flex; flex-direction:column; gap:10px; }
-.office-mc-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:3px; border-radius:10px; background:hsl(var(--secondary)); }
-.office-mc-tabs button { padding:6px 8px; border:0; border-radius:8px; background:none; color:hsl(var(--muted-foreground)); font-size:12px; font-weight:600; cursor:pointer; }
-.office-mc-tabs button[aria-selected="true"] { background:hsl(var(--background)); color:hsl(var(--foreground)); box-shadow:0 1px 3px rgb(0 0 0 / .12); }
-.office-mc-form { display:flex; flex-direction:column; gap:10px; }
-.office-mc-intro { margin:0; font-size:12px; line-height:1.45; color:hsl(var(--muted-foreground)); }
-.office-mc-field { display:flex; flex-direction:column; gap:5px; margin:0; padding:0; border:0; min-width:0; }
-.office-mc-field > span, .office-mc-field > legend { padding:0; font-size:11px; font-weight:700; color:hsl(var(--muted-foreground)); text-transform:uppercase; letter-spacing:.04em; }
-.office-mc-field select, .office-mc-field textarea, .office-mc-message { width:100%; padding:7px 9px; border:1px solid hsl(var(--border)); border-radius:9px; background:hsl(var(--background)); color:hsl(var(--foreground)); font:inherit; font-size:12px; }
-.office-mc-field textarea, .office-mc-message { resize:vertical; min-height:60px; }
-.office-mc-field select:focus-visible, .office-mc-field textarea:focus-visible, .office-mc-message:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:1px; }
-.office-mc-chips { display:flex; flex-wrap:wrap; gap:5px; }
-.office-mc-go { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
-.office-mc-go svg, .office-mc .office-action svg { width:15px; height:15px; }
-.office-mc .office-action { display:inline-flex; align-items:center; gap:6px; }
-.office-mc-log { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; font-size:12px; }
-.office-mc-log li { padding:5px 8px; border-radius:8px; background:hsl(var(--secondary)); color:hsl(var(--foreground)); }
-.office-mc-log li[data-tone="busy"] { color:hsl(var(--muted-foreground)); font-style:italic; }
-.office-mc-log li[data-tone="ok"] { background:hsl(var(--success) / .14); }
-.office-mc-log li[data-tone="warn"] { background:hsl(var(--warning) / .16); }
-.office-mc-log li[data-tone="error"] { background:hsl(var(--destructive) / .12); color:hsl(var(--destructive)); }
-.office-mc-fleet { list-style:none; margin:0; padding:0; max-height:200px; overflow:auto; display:flex; flex-direction:column; gap:2px; }
-.office-mc-fleet label { display:flex; align-items:center; gap:7px; padding:4px 6px; border-radius:8px; cursor:pointer; font-size:12px; min-width:0; }
-.office-mc-fleet label:hover { background:hsl(var(--secondary)); }
-.office-mc-fleet input { accent-color:hsl(var(--primary)); flex:none; }
-.office-mc-fleet-name { font-weight:600; flex:none; max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
-.office-mc-fleet-state { flex:1; min-width:0; color:hsl(var(--muted-foreground)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
-.office-mc-result[data-tone="ok"] { color:hsl(var(--success)); }
-.office-mc-result[data-tone="warn"] { color:hsl(var(--foreground)); }
+/* Quiet and typographic: sentence-case headings, hairline dividers, one filled
+ button per block. No tabs, no pills, no icons for decoration. */
+.office-mc { display:flex; flex-direction:column; gap:14px; max-width:520px; }
+.office-mc-heading { margin:0 0 10px; font-size:13px; font-weight:600; color:hsl(var(--foreground)); letter-spacing:0; }
+.office-mc-more { border-top:1px solid hsl(var(--border)); padding-top:12px; }
+.office-mc-more > summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; margin:0; }
+.office-mc-more > summary::-webkit-details-marker { display:none; }
+.office-mc-more > summary::after { content:""; width:7px; height:7px; border-right:1.5px solid hsl(var(--muted-foreground)); border-bottom:1.5px solid hsl(var(--muted-foreground)); transform:rotate(45deg); transition:transform .15s; margin-right:3px; }
+.office-mc-more[open] > summary { margin-bottom:10px; }
+.office-mc-more[open] > summary::after { transform:rotate(-135deg); }
+.office-mc-block { display:flex; flex-direction:column; gap:10px; }
+.office-mc-note { margin:0; font-size:12px; line-height:1.45; color:hsl(var(--muted-foreground)); }
+.office-mc-note[data-tone="ok"] { color:hsl(var(--success)); }
+.office-mc-empty { display:flex; flex-direction:column; gap:10px; font-size:12px; color:hsl(var(--muted-foreground)); }
+.office-mc-empty p { margin:0; }
+
+/* Agent picker: a two-column list of real marks, the chosen one outlined. */
+.office-mc-agents { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; }
+.office-mc-agents button { display:flex; align-items:center; gap:8px; min-width:0; padding:6px 8px; border:1px solid hsl(var(--border)); border-radius:10px; background:hsl(var(--background)); color:hsl(var(--foreground)); font:inherit; font-size:12px; font-weight:500; text-align:left; cursor:pointer; transition:border-color .12s, background .12s; }
+.office-mc-agents button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
+.office-mc-agents button:hover:not(:disabled) { background:hsl(var(--secondary)); }
+.office-mc-agents button[aria-checked="true"] { border-color:hsl(var(--foreground)); box-shadow:inset 0 0 0 1px hsl(var(--foreground)); }
+.office-mc-agents button:disabled { opacity:.5; cursor:not-allowed; }
+
+.office-mc-row { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; color:hsl(var(--muted-foreground)); }
+.office-mc-row select { flex:0 1 60%; min-width:0; padding:6px 8px; border:1px solid hsl(var(--border)); border-radius:8px; background:hsl(var(--background)); color:hsl(var(--foreground)); font:inherit; font-size:12px; }
+.office-mc-task { width:100%; min-height:44px; resize:vertical; padding:9px 10px; border:1px solid hsl(var(--border)); border-radius:10px; background:hsl(var(--background)); color:hsl(var(--foreground)); font:inherit; font-size:13px; line-height:1.4; }
+.office-mc-task::placeholder { color:hsl(var(--muted-foreground)); }
+
+.office-mc-go { display:flex; align-items:center; gap:8px; }
+.office-mc-stepper { display:inline-flex; align-items:center; border:1px solid hsl(var(--border)); border-radius:10px; overflow:hidden; flex:none; }
+.office-mc-stepper button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:34px; border:0; background:none; color:hsl(var(--foreground)); cursor:pointer; }
+.office-mc-stepper button svg { width:14px; height:14px; }
+.office-mc-stepper button:hover:not(:disabled) { background:hsl(var(--secondary)); }
+.office-mc-stepper button:disabled { opacity:.35; cursor:not-allowed; }
+.office-mc-stepper output { min-width:22px; text-align:center; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
+.office-mc-primary, .office-mc-secondary { flex:1; height:36px; padding:0 14px; border-radius:10px; font:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:opacity .12s, background .12s; }
+.office-mc-primary { border:0; background:hsl(var(--foreground)); color:hsl(var(--background)); text-shadow:none; }
+.office-mc-primary:hover:not(:disabled) { opacity:.88; }
+.office-mc-secondary { border:1px solid hsl(var(--border)); background:hsl(var(--background)); color:hsl(var(--foreground)); flex:0 1 auto; }
+.office-mc-secondary:hover:not(:disabled) { background:hsl(var(--secondary)); }
+.office-mc-primary:disabled, .office-mc-secondary:disabled { opacity:.4; cursor:not-allowed; }
+.office-mc-link { align-self:flex-start; padding:0; border:0; background:none; color:hsl(var(--muted-foreground)); font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
+.office-mc-link:hover { color:hsl(var(--foreground)); }
+.office-mc button:focus-visible, .office-mc select:focus-visible, .office-mc textarea:focus-visible, .office-mc summary:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }
+
+/* Launch progress: one quiet line per agent with a status dot. */
+.office-mc-log { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:5px; font-size:12px; color:hsl(var(--foreground)); }
+.office-mc-log li { display:flex; align-items:baseline; gap:8px; line-height:1.4; }
+.office-mc-log li i { flex:none; width:7px; height:7px; border-radius:50%; background:hsl(var(--muted-foreground)); transform:translateY(-1px); }
+.office-mc-log li[data-tone="busy"] { color:hsl(var(--muted-foreground)); }
+.office-mc-log li[data-tone="busy"] i { animation:office-mc-pulse 1.2s ease-in-out infinite; }
+.office-mc-log li[data-tone="ok"] i { background:hsl(var(--success)); }
+.office-mc-log li[data-tone="warn"] i { background:hsl(var(--warning)); }
+.office-mc-log li[data-tone="error"] { color:hsl(var(--destructive)); }
+.office-mc-log li[data-tone="error"] i { background:hsl(var(--destructive)); }
+@keyframes office-mc-pulse { 50% { opacity:.3; } }
+@media (prefers-reduced-motion:reduce) { .office-mc-log li i { animation:none !important; } }
+
+/* Message several: a plain checklist. */
+.office-mc-fleet { list-style:none; margin:0; padding:0; max-height:180px; overflow:auto; display:flex; flex-direction:column; }
+.office-mc-fleet label { display:flex; align-items:center; gap:9px; padding:6px 2px; border-bottom:1px solid hsl(var(--border) / .6); cursor:pointer; font-size:12px; min-width:0; }
+.office-mc-fleet li:last-child label { border-bottom:0; }
+.office-mc-fleet input { accent-color:hsl(var(--foreground)); flex:none; }
+.office-mc-fleet-name { flex:1; min-width:0; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
+.office-mc-fleet-state { display:inline-flex; align-items:center; gap:6px; flex:none; color:hsl(var(--muted-foreground)); }
diff --git a/jarvis/ui/web/frontend/src/components/society/office/missionControl.test.ts b/jarvis/ui/web/frontend/src/components/society/office/missionControl.test.ts
index 5626315ada..1387d2030b 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/missionControl.test.ts
+++ b/jarvis/ui/web/frontend/src/components/society/office/missionControl.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import type { AgentStatus } from "@/lib/agenticIdeApi";
import type { PaneOccupant } from "./codingFloor";
-import { launchableAgents, pickFleet } from "./MissionControlPanel";
+import { launchableAgents, pickAll } from "./MissionControlPanel";
import { QUICK_ORDERS, screenTail } from "./PaneCommandPanel";
const cli = (name: string, extra: Partial<AgentStatus> = {}): AgentStatus => ({
@@ -29,11 +29,9 @@ describe("mission control", () => {
expect(launchableAgents(list).map((a) => a.name)).toEqual(["claude", "gemini"]);
});
- it("picks the fleet by run state", () => {
- const floor = [occupant("a", "working"), occupant("b", "waiting"), occupant("c", "idle"), occupant("d", "working")];
- expect([...pickFleet(floor, "all")]).toEqual(["a", "b", "c", "d"]);
- expect([...pickFleet(floor, "working")]).toEqual(["a", "d"]);
- expect([...pickFleet(floor, "waiting")]).toEqual(["b"]);
- expect([...pickFleet(floor, "none")]).toEqual([]);
+ it("selects everyone on the floor, and clears again once everyone is picked", () => {
+ const floor = [occupant("a", "working"), occupant("b", "waiting"), occupant("c", "idle")];
+ expect([...pickAll(floor, new Set(["b"]))]).toEqual(["a", "b", "c"]);
+ expect([...pickAll(floor, new Set(["a", "b", "c"]))]).toEqual([]);
});
});
diff --git a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts
index 8b1ad57e57..e59b16b722 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts
+++ b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import {
allDesks, archPosts, buildOfficeLayout, countStates, departmentKey, FURNITURE_SIZE, footprint, groupDepartments,
- MAX_DEPARTMENTS, MIN_DEPARTMENTS, MISSION_DECK_RADIUS, MISSION_REACH, missionDeckObstacles, type OfficeAgentInput,
+ MAX_DEPARTMENTS, MIN_DEPARTMENTS, MISSION_REACH, type OfficeAgentInput,
} from "./officeLayout";
import { buildNavGrid, isWalkable } from "./officeNav";
import { cameraHome, fitDistance, focusBounds } from "./officeCamera";
@@ -74,7 +74,9 @@ describe("office layout", () => {
const layout = buildOfficeLayout(Array.from({ length: 12 }, (_, i) => agent(`a${i}`, i % 2 ? "Codex" : "Gemini")), { variant });
const solid = layout.furniture.filter((f) => FURNITURE_SIZE[f.kind].solid).map(footprint);
for (const cp of layout.checkpoints) {
- const inside = solid.some((o) => cp.x >= o.minX && cp.x <= o.maxX && cp.z >= o.minZ && cp.z <= o.maxZ);
+ // A ring centred on a solid prop (Mission Control's screen) walks to its approach point instead.
+ const at = cp.approach ?? cp;
+ const inside = solid.some((o) => at.x >= o.minX && at.x <= o.maxX && at.z >= o.minZ && at.z <= o.maxZ);
expect(inside, cp.id).toBe(false);
}
});
@@ -147,29 +149,21 @@ describe("office layout", () => {
expect(buildOfficeLayout([agent("a1", "codex")]).furniture.some((f) => f.kind === "missionConsole")).toBe(false);
});
- it("makes the holo deck usable from every side, with a round collision and no invisible walls", () => {
+ it("makes Mission Control's screen usable from every side, with no invisible walls", () => {
const layout = buildOfficeLayout([agent("p1", "Personal Jarvis")], { variant: "coding" });
const hub = layout.furniture.find((f) => f.kind === "missionConsole")!;
const stop = layout.checkpoints.find((c) => c.id === "mission")!;
- // The interaction ring is centred on the deck and reaches past its edge.
+ // The interaction ring is centred on the screen.
expect([stop.x, stop.z]).toEqual([hub.x, hub.z]);
- expect(stop.radius).toBe(MISSION_DECK_RADIUS + MISSION_REACH);
- // Collision never reaches beyond the lit deck (only the table is solid).
- for (const r of missionDeckObstacles(hub)) {
- for (const [x, z] of [[r.minX, r.minZ], [r.maxX, r.minZ], [r.minX, r.maxZ], [r.maxX, r.maxZ]]) {
- expect(Math.hypot(x - hub.x, z - hub.z)).toBeLessThan(MISSION_DECK_RADIUS);
- }
- }
- expect(FURNITURE_SIZE.missionConsole.solid).toBe(false);
- // Standing on the deck's edge works all the way round, and each of those spots is inside the ring.
+ expect(stop.radius).toBe(MISSION_REACH);
+ // Only the screen's own box is solid; standing right round it works, inside the ring, on every side.
const grid = buildNavGrid(layout);
for (let i = 0; i < 16; i += 1) {
const a = (i / 16) * Math.PI * 2;
- const p = { x: hub.x + Math.cos(a) * (MISSION_DECK_RADIUS + 0.2), z: hub.z + Math.sin(a) * (MISSION_DECK_RADIUS + 0.2) };
+ const p = { x: hub.x + Math.cos(a) * 1.25, z: hub.z + Math.sin(a) * 1.25 };
expect(isWalkable(grid, p)).toBe(true);
expect(Math.hypot(p.x - stop.x, p.z - stop.z)).toBeLessThanOrEqual(stop.radius);
}
- // The table itself is solid; "walk there" goes to a free spot on the deck's edge.
expect(isWalkable(grid, { x: hub.x, z: hub.z })).toBe(false);
expect(isWalkable(grid, stop.approach!)).toBe(true);
});
diff --git a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts
index 08e08ddd75..761dadda50 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts
+++ b/jarvis/ui/web/frontend/src/components/society/office/officeLayout.ts
@@ -16,9 +16,9 @@
* holds a quiet focus zone · the team room · a server room instead of the lead
* office and the wardrobe. It has no lead desks and only the elevator and
* break-room checkpoints — nothing there creates or dresses society agents.
- * Its centre aisle is wider and holds Mission Control: a round console hub
- * between the two department columns where new coding agents are started and
- * the whole fleet can be briefed.
+ * Its centre aisle is wider and holds Mission Control: a screen on a floor
+ * stand between the two department columns, where new coding agents are
+ * started and several can be briefed at once.
*/
import type { AgentRunState, AgentTier } from "../data";
@@ -86,11 +86,11 @@ export interface Checkpoint extends Point {
id: CheckpointKind; room: RoomKind | "floor";
/** Walk-in radius in metres. */
radius: number;
- /** Height of the floating token; absent = the standard height. Raised over tall props such as the holo deck. */
+ /** Height of the floating token; absent = the standard height. Raised over tall props such as Mission Control's screen. */
tokenY?: number;
/**
* Where "walk there" goes when the checkpoint's centre is inside something
- * solid (the holo deck's ring is centred on its table); absent = the centre.
+ * solid (Mission Control's ring is centred on its screen); absent = the centre.
*/
approach?: Point;
}
@@ -139,8 +139,8 @@ export const FURNITURE_SIZE: Record<FurnitureKind, { w: number; d: number; h: nu
floorLamp: { w: 0.46, d: 0.46, h: 1.8, solid: true },
dogBed: { w: 0.9, d: 0.72, h: 0.45, solid: true },
treatJar: { w: 0.5, d: 0.5, h: 1.2, solid: true },
- // Round, so not a solid box: navigation walks around missionDeckObstacles instead.
- missionConsole: { w: 3.9, d: 3.9, h: 3.1, solid: false },
+ // Mission Control: a display on a floor stand; the box is the screen's width and the base plate's depth.
+ missionConsole: { w: 1.4, d: 0.5, h: 1.8, solid: true },
};
export interface Furniture extends Point {
@@ -200,31 +200,9 @@ const DEPT_HEADER_Z = 1.8;
const DEPT_FOOTER_Z = 0.8;
const AISLE = 3.2;
/** The coding floor's centre aisle: wide enough for Mission Control with a walkway on both sides. */
-export const MISSION_AISLE = 8;
-/** Mission Control's round deck and the command table standing on it (metres, from the deck centre). */
-export const MISSION_DECK_RADIUS = 1.9;
-export const MISSION_TABLE_RADIUS = 1.6;
-/** How far beyond the deck's edge the person can still use it. */
-export const MISSION_REACH = 1.2;
-
-/**
- * What a walker bumps into at Mission Control: thin horizontal strips that
- * trace the command table's circle (each as wide as the circle at its middle),
- * so the collision is round like the table. The low deck platform around it
- * stays walkable; nothing blocks the air beside the table.
- */
-export function missionDeckObstacles(centre: Point, strips = 24): Rect[] {
- const r = MISSION_TABLE_RADIUS;
- const step = (2 * r) / strips;
- const out: Rect[] = [];
- for (let i = 0; i < strips; i += 1) {
- const z0 = -r + step * i;
- const mid = z0 + step / 2;
- const half = Math.sqrt(r * r - mid * mid);
- out.push({ minX: centre.x - half, maxX: centre.x + half, minZ: centre.z + z0, maxZ: centre.z + z0 + step });
- }
- return out;
-}
+export const MISSION_AISLE = 5.6;
+/** How far round Mission Control's screen the person can use it, from its centre (metres). */
+export const MISSION_REACH = 1.5;
const EDGE = 1.6;
/**
* How far a figure's centre stays from the slab edge. The railing stands 0.2 m
@@ -548,7 +526,7 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:
{ id: "break-shelf", kind: "bookshelf", x: bx0 + 2.2, z: bz0 + 0.3, rotationY: 0, room: "break" },
{ id: "break-plant", kind: "plant", x: bx0 + 0.6, z: bottomZ - 0.6, rotationY: 0, room: "break" },
...(coding ? [
- // Mission Control: the round holo deck, midway down the centre aisle.
+ // Mission Control: a screen on a stand, midway down the centre aisle, facing the camera.
{ id: "mission-console", kind: "missionConsole", x: 0, z: missionZ, rotationY: 0, room: "floor" },
] satisfies Furniture[] : []),
];
@@ -611,9 +589,9 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:
// The elevator's doors face east into the lobby; its checkpoint is the floor in front of them.
const elevatorStop: Checkpoint = { id: "elevator", room: "reception", x: elevator.x + 0.95, z: elevator.z, radius: 1.0 };
const breakStop: Checkpoint = { id: "break", room: "break", x: bx0 + 5.6, z: bz0 + 2.6, radius: 1.8 };
- // Mission Control's stop is the whole deck: a ring round it, usable from every side.
- const missionStop: Checkpoint = { id: "mission", room: "floor", x: 0, z: missionZ, radius: MISSION_DECK_RADIUS + MISSION_REACH, tokenY: 3.5,
- approach: { x: 0, z: missionZ + MISSION_DECK_RADIUS + 0.3 } };
+ // Mission Control's stop is a ring round the screen, usable from every side; "walk there" ends in front of it.
+ const missionStop: Checkpoint = { id: "mission", room: "floor", x: 0, z: missionZ, radius: MISSION_REACH, tokenY: 2.95,
+ approach: { x: 0, z: missionZ + 0.9 } };
const checkpoints: Checkpoint[] = coding ? [missionStop, elevatorStop, breakStop] : [
{ id: "create", room: "reception", x: reception.x, z: reception.z + 1.7, radius: 1.2 },
{ id: "manage", room: "reception", x: kiosk.x, z: kiosk.z + 1.4, radius: 1.1 },
@@ -633,7 +611,6 @@ export function buildOfficeLayout(agents: readonly OfficeAgentInput[], options:
// Department sign walls along each department's north edge.
...departments.map((d) => ({ minX: d.minX + 0.2, maxX: d.maxX - 0.2, minZ: d.minZ + 0.02, maxZ: d.minZ + 0.2 })),
...furniture.filter((f) => FURNITURE_SIZE[f.kind].solid).map(footprint),
- ...(coding ? missionDeckObstacles({ x: 0, z: missionZ }) : []),
// The posts of an open room's name arch are solid too; nobody walks through them.
...rooms.filter((r) => !r.walled).flatMap(archPosts).map((p) => ({
minX: p.x - ARCH.post / 2, maxX: p.x + ARCH.post / 2, minZ: p.z - ARCH.post / 2, maxZ: p.z + ARCH.post / 2,
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json
index c6140369fc..17b6e60910 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json
@@ -894,7 +894,7 @@
"pane_unasked": "Noch nichts gefragt.",
"pane_open": "Session öffnen",
"cp_mission": "Mission Control",
- "cp_mission_hint": "Neue Coding-Agents starten und die ganze Etage briefen",
+ "cp_mission_hint": "Neue Coding-Agents starten oder mehreren gleichzeitig schreiben",
"tool_open": "Öffnen",
"tool_stop": "Stopp",
"tool_fork": "Kopie",
@@ -930,16 +930,21 @@
"cmd_fork": "Eine Kopie dieser Session starten",
"cmd_close": "Diese Session schließen",
"cmd_close_confirm": "Nochmal klicken, um die Session zu schließen",
- "mission_tab_new": "Neue Agents",
- "mission_tab_fleet": "Etage briefen",
- "mission_intro": "Wähle einen Workspace und einen Coding-Agent. Er bekommt einen freien Schreibtisch und legt mit einem ersten Auftrag sofort los.",
"mission_workspace": "Workspace",
"mission_no_workspace": "Kein Workspace ist offen. Öffne zuerst ein Projekt in der IDE.",
"mission_agent": "Coding-Agent",
"mission_no_agents": "Noch kein Coding-Agent installiert.",
"mission_count": "Wie viele",
"mission_task": "Erster Auftrag (optional)",
- "mission_task_placeholder": "z. B. Finde und behebe die fehlschlagenden Tests",
+ "mission_task_placeholder": "Woran soll er arbeiten? Leer lassen, um ihn nur zu öffnen.",
+ "mission_screen_agents": "Coding-Agents auf dieser Etage",
+ "mission_screen_start": "Neuer Agent",
+ "mission_new_title": "Agent starten",
+ "mission_fewer": "Ein Agent weniger",
+ "mission_more": "Ein Agent mehr",
+ "fleet_title": "Mehreren Agents schreiben",
+ "fleet_select_all": "Alle auswählen",
+ "fleet_select_none": "Auswahl aufheben",
"mission_start_one": "Agent starten",
"mission_start_many": "{0} Agents starten",
"mission_opening": "Neue Session wird geöffnet…",
@@ -950,14 +955,7 @@
"mission_not_started": "{0} ist offen, aber noch nicht gestartet. Öffne seinen Workspace in der IDE und brief ihn dann.",
"mission_failed": "Agent konnte nicht geöffnet werden: {0}",
"mission_loading": "Wird geladen…",
- "fleet_intro": "Schick eine Nachricht an mehrere Coding-Agents gleichzeitig.",
- "fleet_pick": "Sessions auswählen",
- "fleet_pick_all": "Alle",
- "fleet_pick_working": "Arbeiten",
- "fleet_pick_waiting": "Warten",
- "fleet_pick_idle": "Frei",
- "fleet_pick_none": "Keine",
- "fleet_empty": "Noch kein Coding-Agent auf der Etage. Starte einen unter „Neue Agents“.",
+ "fleet_empty": "Noch kein Coding-Agent auf der Etage.",
"fleet_placeholder": "Nachricht an die ausgewählten Agents",
"fleet_send": "An {0} senden",
"fleet_stop": "{0} stoppen",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json
index 42a36da53a..f5bab56291 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json
@@ -894,7 +894,7 @@
"pane_unasked": "Nothing asked yet.",
"pane_open": "Open session",
"cp_mission": "Mission Control",
- "cp_mission_hint": "Start new coding agents and brief the whole floor",
+ "cp_mission_hint": "Start new coding agents or message several at once",
"tool_open": "Open",
"tool_stop": "Stop",
"tool_fork": "Copy",
@@ -930,16 +930,21 @@
"cmd_fork": "Start a copy of this session",
"cmd_close": "Close this session",
"cmd_close_confirm": "Click again to close the session",
- "mission_tab_new": "New agents",
- "mission_tab_fleet": "Brief the floor",
- "mission_intro": "Pick a workspace and a coding agent. It takes a free desk and, with a first task, starts on it right away.",
"mission_workspace": "Workspace",
"mission_no_workspace": "No workspace is open. Open a project in the IDE first.",
"mission_agent": "Coding agent",
"mission_no_agents": "No coding agent is installed yet.",
"mission_count": "How many",
"mission_task": "First task (optional)",
- "mission_task_placeholder": "e.g. Find and fix the failing tests",
+ "mission_task_placeholder": "What should it work on? Leave empty to just open it.",
+ "mission_screen_agents": "coding agents on this floor",
+ "mission_screen_start": "New agent",
+ "mission_new_title": "Start an agent",
+ "mission_fewer": "One agent fewer",
+ "mission_more": "One agent more",
+ "fleet_title": "Message several agents",
+ "fleet_select_all": "Select all",
+ "fleet_select_none": "Clear selection",
"mission_start_one": "Start agent",
"mission_start_many": "Start {0} agents",
"mission_opening": "Opening a new session…",
@@ -950,14 +955,7 @@
"mission_not_started": "{0} is open but has not started yet. Open its workspace in the IDE, then brief it.",
"mission_failed": "Could not open an agent: {0}",
"mission_loading": "Loading…",
- "fleet_intro": "Send one message to several coding agents at once.",
- "fleet_pick": "Pick sessions",
- "fleet_pick_all": "All",
- "fleet_pick_working": "Working",
- "fleet_pick_waiting": "Waiting",
- "fleet_pick_idle": "Free",
- "fleet_pick_none": "None",
- "fleet_empty": "No coding agent is on the floor yet. Start one under “New agents”.",
+ "fleet_empty": "No coding agent is on the floor yet.",
"fleet_placeholder": "Message for the picked agents",
"fleet_send": "Send to {0}",
"fleet_stop": "Stop {0}",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json
index d6730dfb06..f87a09513f 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json
@@ -894,7 +894,7 @@
"pane_unasked": "Todavía no se le ha pedido nada.",
"pane_open": "Abrir sesión",
"cp_mission": "Mission Control",
- "cp_mission_hint": "Inicia nuevos agentes de código e informa a toda la planta",
+ "cp_mission_hint": "Inicia nuevos agentes de código o escribe a varios a la vez",
"tool_open": "Abrir",
"tool_stop": "Parar",
"tool_fork": "Copia",
@@ -930,16 +930,21 @@
"cmd_fork": "Iniciar una copia de esta sesión",
"cmd_close": "Cerrar esta sesión",
"cmd_close_confirm": "Haz clic otra vez para cerrar la sesión",
- "mission_tab_new": "Nuevos agentes",
- "mission_tab_fleet": "Informar a la planta",
- "mission_intro": "Elige un espacio de trabajo y un agente de código. Ocupa un escritorio libre y, con una primera tarea, empieza enseguida.",
"mission_workspace": "Espacio de trabajo",
"mission_no_workspace": "No hay ningún espacio de trabajo abierto. Abre primero un proyecto en el IDE.",
"mission_agent": "Agente de código",
"mission_no_agents": "Aún no hay ningún agente de código instalado.",
"mission_count": "Cuántos",
"mission_task": "Primera tarea (opcional)",
- "mission_task_placeholder": "p. ej. Encuentra y corrige los tests que fallan",
+ "mission_task_placeholder": "¿En qué debe trabajar? Déjalo vacío para solo abrirlo.",
+ "mission_screen_agents": "agentes de código en esta planta",
+ "mission_screen_start": "Nuevo agente",
+ "mission_new_title": "Iniciar un agente",
+ "mission_fewer": "Un agente menos",
+ "mission_more": "Un agente más",
+ "fleet_title": "Escribir a varios agentes",
+ "fleet_select_all": "Seleccionar todos",
+ "fleet_select_none": "Quitar selección",
"mission_start_one": "Iniciar agente",
"mission_start_many": "Iniciar {0} agentes",
"mission_opening": "Abriendo una sesión nueva…",
@@ -950,14 +955,7 @@
"mission_not_started": "{0} está abierto pero aún no ha arrancado. Abre su espacio de trabajo en el IDE y luego infórmale.",
"mission_failed": "No se pudo abrir un agente: {0}",
"mission_loading": "Cargando…",
- "fleet_intro": "Envía un mensaje a varios agentes de código a la vez.",
- "fleet_pick": "Elegir sesiones",
- "fleet_pick_all": "Todos",
- "fleet_pick_working": "Trabajando",
- "fleet_pick_waiting": "Esperando",
- "fleet_pick_idle": "Libres",
- "fleet_pick_none": "Ninguno",
- "fleet_empty": "Todavía no hay agentes de código en la planta. Inicia uno en «Nuevos agentes».",
+ "fleet_empty": "Todavía no hay agentes de código en la planta.",
"fleet_placeholder": "Mensaje para los agentes elegidos",
"fleet_send": "Enviar a {0}",
"fleet_stop": "Detener {0}",