From 2ff988e3e604689145e2bfa80de5cc8920d080f1 Mon Sep 17 00:00:00 2001 From: Jer Miller Date: Sun, 22 Mar 2026 16:13:26 -0600 Subject: [PATCH] Hide dashboard cards and suppress live logs in health log deep-link view When navigating to a specific log file via ?log= param, hide the vitals, observe, and other dashboard cards so only the log viewer is shown. Also guard renderLogs() with a deepLinkMode flag to prevent incoming websocket events from overwriting the displayed log content. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/health/workspace.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/health/workspace.html b/apps/health/workspace.html index 213615d23..ea1f71654 100644 --- a/apps/health/workspace.html +++ b/apps/health/workspace.html @@ -1294,6 +1294,7 @@ } function renderLogs() { + if (state.deepLinkMode) return; const serviceFilter = elements.logServiceFilter.value; const streamFilter = elements.logStreamFilter.value; const viewport = elements.logsViewport; @@ -1549,6 +1550,11 @@ const logsTitle = logsCard.querySelector('.logs-title'); const logsControls = logsCard.querySelector('.logs-controls'); + // Hide dashboard cards and suppress live log rendering + const dashboard = document.querySelector('.health-dashboard'); + dashboard.querySelectorAll('.vitals-bar, .observe-card, .remotes-card, .activity-grids, .dream-card, .sync-card').forEach(el => el.style.display = 'none'); + state.deepLinkMode = true; + // Replace header with log file context logsTitle.textContent = 'LOG FILE'; logsControls.innerHTML = ''; -- 2.51.2