From abcb9bfded5d8eb02f6ce94ee3d97b1277be3b47 Mon Sep 17 00:00:00 2001 From: Gronod Date: Tue, 19 May 2026 22:35:05 +0100 Subject: [PATCH] debug: Add DOM structure verification to trace missing contentDiv --- public/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index 9c54829..dab1fe8 100644 --- a/public/app.js +++ b/public/app.js @@ -802,6 +802,7 @@ function closeStatusPanel() { async function refreshStatusPanel() { const panel = document.getElementById('status-panel'); const contentDiv = document.getElementById('status-content'); + console.log('[Status] panel found:', !!panel, 'contentDiv found:', !!contentDiv, 'panel display:', panel?.style?.display); if (!panel || panel.style.display === 'none') return; console.log('[Status] Refreshing status panel...'); try { @@ -927,7 +928,11 @@ function renderStatusPanel(data, panel) { html += ``; // Render into status-content div, not the whole panel (preserves webhooks section) const contentDiv = document.getElementById('status-content'); - console.log('[Status] contentDiv found:', !!contentDiv, 'HTML length:', html.length); + const panelCheck = document.getElementById('status-panel'); + console.log('[Status] contentDiv found:', !!contentDiv, 'panel children:', panelCheck?.children?.length, 'HTML length:', html.length); + if (panelCheck) { + console.log('[Status] panel innerHTML preview:', panelCheck.innerHTML.substring(0, 200)); + } if (contentDiv) { contentDiv.innerHTML = html; console.log('[Status] HTML rendered, contentDiv innerHTML length:', contentDiv.innerHTML.length);