From 21f6a5e4747f3101007a520b32a74157be8a394b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 2 Jun 2026 15:41:15 +0100 Subject: [PATCH] Publish Odin fullscreen dashboard intent --- src/odin-coordinator.cjs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/odin-coordinator.cjs b/src/odin-coordinator.cjs index 05736f6..4136a6f 100644 --- a/src/odin-coordinator.cjs +++ b/src/odin-coordinator.cjs @@ -382,6 +382,7 @@ function buildSurface({ observedAt, docker, adb, hosts, yggdrasilServices, verse title: "Odin All-Seer", observedAt, summary: `${verses.length} Verses / ${verses.reduce((sum, entry) => sum + entry.services.length, 0)} services / ${activeInterfaces.length} interfaces / ${activeObservationStreams.length} live streams`, + layout: fullscreenLayoutIntent("odin.allseer", -100), }, children: [ pane("Coordinator", [ @@ -1078,6 +1079,24 @@ function defaultLayoutFor(entry, interfaces) { }; } +function fullscreenLayoutIntent(tileId, priority = -100) { + return { + tileId: stableId(tileId || "fullscreen"), + visible: true, + priority, + x: 0, + y: 0, + w: 4, + h: 4, + minWidth: 96, + minHeight: 36, + preferredWidth: 192, + preferredHeight: 48, + density: "comfortable", + viewportMode: "fullscreen", + }; +} + function mergeLayoutIntent(existing, entry, interfaces) { const base = existing && typeof existing === "object" ? { ...existing } @@ -1125,8 +1144,7 @@ function applyClientCommand(command) { const current = layout.tiles[command.providerId] || defaultLayoutFor({ providerId: command.providerId }, []); const next = { ...current }; if (command.action === "focus") { - next.visible = true; - next.priority = -1; + Object.assign(next, fullscreenLayoutIntent(command.providerId, -100)); } else if (command.action === "resize") { next.w = clampNumber((next.w || 1) + Number(command.dw || 0), 1, 4); next.h = clampNumber((next.h || 1) + Number(command.dh || 0), 1, 4);