diff --git a/hbd/server/templates/plugins.html b/hbd/server/templates/plugins.html index 5171553..b7eb804 100644 --- a/hbd/server/templates/plugins.html +++ b/hbd/server/templates/plugins.html @@ -1336,14 +1336,29 @@ if (card) { card.classList.remove('collapsed'); fetchHostGlance(hostname); + fetchHostInfo(hostname).then(data => { + infoCache[hostname] = data; + renderInfoSection(hostname, data); + }).catch(() => { + const el = document.getElementById(`info-${hostname}`); + if (el) el.innerHTML = '
Could not load host info.
'; + }); setTimeout(() => card.scrollIntoView({ behavior: 'smooth', block: 'start' }), 150); return; } } const first = document.querySelector('.host-card'); if (first) { + const hostname = first.dataset.hostname; first.classList.remove('collapsed'); - fetchHostGlance(first.dataset.hostname); + fetchHostGlance(hostname); + fetchHostInfo(hostname).then(data => { + infoCache[hostname] = data; + renderInfoSection(hostname, data); + }).catch(() => { + const el = document.getElementById(`info-${hostname}`); + if (el) el.innerHTML = '
Could not load host info.
'; + }); } }); // ── Host action helpers ──────────────────────────────────────