debug: Add DOM structure verification to trace missing contentDiv
All checks were successful
Build and Push Docker Image / build (push) Successful in 40s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m1s
CI / Security audit (push) Successful in 1m24s
CI / Tests & coverage (push) Successful in 1m34s

This commit is contained in:
2026-05-19 22:35:05 +01:00
parent e5920b207f
commit abcb9bfded

View File

@@ -802,6 +802,7 @@ function closeStatusPanel() {
async function refreshStatusPanel() { async function refreshStatusPanel() {
const panel = document.getElementById('status-panel'); const panel = document.getElementById('status-panel');
const contentDiv = document.getElementById('status-content'); 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; if (!panel || panel.style.display === 'none') return;
console.log('[Status] Refreshing status panel...'); console.log('[Status] Refreshing status panel...');
try { try {
@@ -927,7 +928,11 @@ function renderStatusPanel(data, panel) {
html += `</tbody></table></div></div>`; html += `</tbody></table></div></div>`;
// Render into status-content div, not the whole panel (preserves webhooks section) // Render into status-content div, not the whole panel (preserves webhooks section)
const contentDiv = document.getElementById('status-content'); 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) { if (contentDiv) {
contentDiv.innerHTML = html; contentDiv.innerHTML = html;
console.log('[Status] HTML rendered, contentDiv innerHTML length:', contentDiv.innerHTML.length); console.log('[Status] HTML rendered, contentDiv innerHTML length:', contentDiv.innerHTML.length);