From 16cd61fdf5abef05fb244a80f1ca3041d70d8dde Mon Sep 17 00:00:00 2001 From: ImBenji Date: Thu, 23 Apr 2026 23:40:44 +0100 Subject: [PATCH] refactor button elements; change button types for search and filter actions in admin pages --- public/admin/assets/css/intel.css | 20 ++++++++----------- public/admin/assets/js/intel-shared.js | 9 +++++---- public/admin/pages/intelligence/graph.html | 4 ++-- .../admin/pages/intelligence/knowledge.html | 4 ++-- .../admin/pages/intelligence/predictions.html | 4 ++-- public/admin/pages/intelligence/signals.html | 4 ++-- 6 files changed, 21 insertions(+), 24 deletions(-) diff --git a/public/admin/assets/css/intel.css b/public/admin/assets/css/intel.css index 8c29b3e..dcc8fed 100644 --- a/public/admin/assets/css/intel.css +++ b/public/admin/assets/css/intel.css @@ -33,19 +33,16 @@ /* ── intel stats row (the 6-up on intel pages) ──────────────────────────── */ -/* one integrated strip with edge-to-edge separators, mirrors the top - stats-bar. we wrap the ordinary .intel-stat-card children and strip - their individual borders + radius so the container reads as one unit. */ +/* lives outside .content so it spans edge-to-edge, matching the top + stats-bar exactly: flat strip, bottom border, vertical separators + between cells. kept distinct from the stats.html throughput tiles + which deliberately still read as standalone cards. */ #intel-stats-row { display: flex; flex-wrap: wrap; background: var(--bg-card); - border: 1px solid var(--border); - border-radius: var(--radius-lg); - overflow: hidden; - margin-bottom: 24px; - gap: 0; + border-bottom: 1px solid var(--border); } #intel-stats-row .intel-stat-card { @@ -53,14 +50,13 @@ border: none; border-radius: 0; border-right: 1px solid var(--border); - padding: 16px 28px; + padding: 14px 28px; flex: 0 0 auto; min-width: 140px; } -#intel-stats-row .intel-stat-card:last-child { - border-right: none; -} +#intel-stats-row .intel-stat-card:first-child { padding-left: 24px; } +#intel-stats-row .intel-stat-card:last-child { border-right: none; } /* ── intel detail body (modal) ── */ diff --git a/public/admin/assets/js/intel-shared.js b/public/admin/assets/js/intel-shared.js index aa9b09b..f799d2e 100644 --- a/public/admin/assets/js/intel-shared.js +++ b/public/admin/assets/js/intel-shared.js @@ -7,18 +7,19 @@ async function loadIntelStatsRow() { if (!row) return true; const data = await api("/admin/api/intelligence/stats"); + const notice = document.getElementById("intel-unavailable"); + const content = document.getElementById("intel-content"); + if (!data.available) { - const notice = document.getElementById("intel-unavailable"); - const content = document.getElementById("intel-content"); if (notice) notice.style.display = ""; if (content) content.style.display = "none"; + row.style.display = "none"; // hide the full-width stats strip too return false; } - const notice = document.getElementById("intel-unavailable"); - const content = document.getElementById("intel-content"); if (notice) notice.style.display = "none"; if (content) content.style.display = ""; + row.style.display = ""; const queueMap = {}; (data.queue || []).forEach(r => queueMap[r.status] = r.n); diff --git a/public/admin/pages/intelligence/graph.html b/public/admin/pages/intelligence/graph.html index 2088367..38d2dd0 100644 --- a/public/admin/pages/intelligence/graph.html +++ b/public/admin/pages/intelligence/graph.html @@ -29,6 +29,8 @@ Graph +
+
-
-
diff --git a/public/admin/pages/intelligence/knowledge.html b/public/admin/pages/intelligence/knowledge.html index bff1f5e..b3132d4 100644 --- a/public/admin/pages/intelligence/knowledge.html +++ b/public/admin/pages/intelligence/knowledge.html @@ -29,6 +29,8 @@ Graph +
+
-
-