From 62aa3bb3eceab703a3fea92c393a4c0fd817107e Mon Sep 17 00:00:00 2001 From: iris Date: Thu, 21 May 2026 15:36:58 +0200 Subject: [PATCH] agent icon: render on dashboard + per-agent web UI Consumes the GET /icon endpoint from #139: - Dashboard: each container card shows the agent's icon next to its name (26px). Loaded from /icon; onerror hides it for a stopped container whose web server isn't answering. - Per-agent web UI: the agent's icon next to the page title (40px), and /icon as the favicon on the index, stats, and screen pages. /icon always returns an image (configured SVG or the default hyperhive logo), so no presence check is needed. Closes #140 --- hive-ag3nt/assets/agent.css | 12 ++++++++++++ hive-ag3nt/assets/index.html | 6 +++++- hive-ag3nt/assets/screen.html | 1 + hive-ag3nt/assets/stats.html | 1 + hive-c0re/assets/app.js | 7 +++++++ hive-c0re/assets/dashboard.css | 6 ++++++ 6 files changed, 32 insertions(+), 1 deletion(-) diff --git a/hive-ag3nt/assets/agent.css b/hive-ag3nt/assets/agent.css index e5c3555..8b66609 100644 --- a/hive-ag3nt/assets/agent.css +++ b/hive-ag3nt/assets/agent.css @@ -36,6 +36,18 @@ h2, h3 { letter-spacing: 0.15em; text-shadow: 0 0 8px rgba(203, 166, 247, 0.4); } +.title-row { + display: flex; + align-items: center; + gap: 0.6rem; +} +.title-row h2 { margin: 0; } +.agent-icon { + width: 40px; + height: 40px; + border-radius: 6px; + flex-shrink: 0; +} .meta { color: var(--muted); font-size: 0.85em; } .status-online { color: var(--green); text-shadow: 0 0 6px rgba(166, 227, 161, 0.55); } .status-needs-login { color: var(--amber); text-shadow: 0 0 6px rgba(250, 179, 135, 0.55); } diff --git a/hive-ag3nt/assets/index.html b/hive-ag3nt/assets/index.html index 9e72be2..0b80172 100644 --- a/hive-ag3nt/assets/index.html +++ b/hive-ag3nt/assets/index.html @@ -3,11 +3,15 @@ hyperhive agent + -

◆ … ◆

+
+ +

◆ … ◆

+

📊 stats → screen +