diff --git a/frontend/packages/dashboard/src/common.js b/frontend/packages/dashboard/src/common.js index 7637d161..6d34c7a7 100644 --- a/frontend/packages/dashboard/src/common.js +++ b/frontend/packages/dashboard/src/common.js @@ -6,7 +6,6 @@ import { linkify as termLinkify } from '@hive/shared/terminal.js'; import { el } from '@hive/shared/dom.js'; import '@hive/shared/side-panel.js'; // registers — side-effect import -import '@hive/shared/hive-warn.js'; // registers — side-effect import import DOMPurify from 'dompurify'; // ─── helpers ──────────────────────────────────────────────────────────── diff --git a/frontend/packages/dashboard/src/core.js b/frontend/packages/dashboard/src/core.js index 457f2236..3f056d6c 100644 --- a/frontend/packages/dashboard/src/core.js +++ b/frontend/packages/dashboard/src/core.js @@ -50,7 +50,7 @@ function renderTombstones(s) { // Wording is deliberately about what the list *is* rather than what it // isn't: nothing records a destroy, so "container absent" is the only thing // the backend can actually tell. - const warn = el('hive-warn', { level: 'warning' }); + const warn = el('p', { class: 'tombstone-warn' }); warn.append( el('strong', {}, 'shows every agent whose container is absent'), ' — not only destroyed ones. An agent part-way through being spawned ' + diff --git a/frontend/packages/dashboard/src/credentials.css b/frontend/packages/dashboard/src/credentials.css index becd1d94..fc1a9f13 100644 --- a/frontend/packages/dashboard/src/credentials.css +++ b/frontend/packages/dashboard/src/credentials.css @@ -27,6 +27,15 @@ body.cred-shell { .cred-pane[hidden] { display: none; } +.cred-warning { + border: 1px solid var(--amber); + border-radius: 4px; + padding: 0.7rem 0.9rem; + margin: 0.6rem 0 1.1rem; + font-size: 0.9rem; + background: color-mix(in srgb, var(--amber) 10%, transparent); +} + .gh-status { margin: 0.5rem 0 1.2rem; } .gh-status-line { display: flex; diff --git a/frontend/packages/dashboard/src/credentials.html b/frontend/packages/dashboard/src/credentials.html index d4d14f26..c30ac25a 100644 --- a/frontend/packages/dashboard/src/credentials.html +++ b/frontend/packages/dashboard/src/credentials.html @@ -90,7 +90,7 @@ Security-warning banner + a link to generate a PAT. -->