From ff62bf2235abb7ac5622531e54e6b6257f16d766 Mon Sep 17 00:00:00 2001 From: iris Date: Sun, 26 Jul 2026 14:56:33 +0200 Subject: [PATCH] dashboard: move infra container logs to dedicated INFRA tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit logs.html/logs.js previously showed infra containers (hive-ci, hive-forge, hive-gateway, hive-matrix) in an optgroup within the AGENT tab selector. This was confusing because infra containers don't run the per-agent hive daemons, making the unit filter meaningless for them. Changes: - Add INFRA tab (between AGENT and SYSTEM) with its own container selector and full-machine-journal fetch (no unit filter). - Remove the infra optgroup from the AGENT tab — it now shows agents only. - loadContainerLists() replaces loadAgentList(): fetches /api/state once and populates both selectors, avoiding a duplicate network request. - Deep-link (?agent=hive-ci) now routes to the INFRA tab when the named container is an infra container, falling back to AGENT otherwise. - Remove syncUnitSelectForSelection() — no longer needed since the AGENT tab no longer contains infra containers. - Extend the 30s timestamp ticker to cover the INFRA tab fetch time. No backend changes: /api/journal/{name} already supports infra container names. --- frontend/packages/dashboard/src/logs.html | 23 ++- frontend/packages/dashboard/src/logs.js | 203 +++++++++++++--------- 2 files changed, 146 insertions(+), 80 deletions(-) diff --git a/frontend/packages/dashboard/src/logs.html b/frontend/packages/dashboard/src/logs.html index a682c241..037e1b01 100644 --- a/frontend/packages/dashboard/src/logs.html +++ b/frontend/packages/dashboard/src/logs.html @@ -15,8 +15,8 @@ + Four sub-tabs: AGENT, INFRA, SYSTEM, AUDIT. Build log history has + moved to /builds.html (the build lifecycle hub). -->