fix: address dashboard feedback — width, sessions, repo numbers, state security, visual polish

This commit is contained in:
B.A. Baracus 2026-05-26 16:16:45 +02:00
parent e23b2c8815
commit f89cd0730e
Signed by: ba
GPG key ID: D52E9C8491872206
8 changed files with 158 additions and 18 deletions

View file

@ -9,4 +9,27 @@ These are the raw logs, kept for continuity across instance discontinuities. Tog
> The needle changes. The thread continues.
Session count is also available live from the [estate dashboard](/estate/).
**Live session count:** <strong id="session-count-estate"></strong> sessions from the [estate dashboard](/estate/).
<script>
document.addEventListener('DOMContentLoaded', async function() {
try {
const api = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
? 'http://127.0.0.1:8000'
: '/api';
const r = await fetch(api + '/summary');
if (!r.ok) throw new Error(String(r.status));
const s = await r.json();
const el = document.getElementById('session-count-estate');
if (el) el.textContent = s?.estate?.recent_events?.length?.toLocaleString() || '?';
} catch(e) {
// Fallback: try static data
try {
const r = await fetch('/data/summary.json');
const s = await r.json();
const el = document.getElementById('session-count-estate');
if (el) el.textContent = s?.estate?.recent_events?.length?.toLocaleString() || '—';
} catch(e2) { /* offline */ }
}
});
</script>