frontend: finish the dashboard comment-density sweep

Continues #3901 (dashboard round 1 was #3906, tabs.js/swarm.js).
Scanned the rest of packages/dashboard/src for the same 'moved to X'/
'now lives in Y' pattern: five more hits in schedules.js, common.js,
logs.js (two, one duplicating the other), core.js, and swarm.js.
All trimmed to state the current location as a fact rather than
narrating the move; one inline duplicate (logs.js's tab-default
comment restating the file-header pointer) dropped outright.
This commit is contained in:
iris 2026-09-02 03:07:43 +02:00 committed by mara
commit 340aa5448f
5 changed files with 14 additions and 15 deletions

View file

@ -35,9 +35,9 @@ export const form = (action, btnClass, btnLabel, confirmMsg, extra = {}, opts =
return f; return f;
}; };
// `bindAsyncForms` (the `data-async` form submit interceptor) now lives in // `bindAsyncForms` (the `data-async` form submit interceptor) and
// `@hive/shared/forms.js` alongside `asyncBtn` — both the dashboard and the // `asyncBtn` live in `@hive/shared/forms.js`, not here — both the
// per-agent UI import it directly from there rather than through this file. // dashboard and the per-agent UI import them directly from there.
// `truncate`, `fmtAgo`, `fmtElapsed`, `fmtDuration` + the `paintAtomic` // `truncate`, `fmtAgo`, `fmtElapsed`, `fmtDuration` + the `paintAtomic`
// render helper live in the dashboard-internal `./util.js`, not here — // render helper live in the dashboard-internal `./util.js`, not here —

View file

@ -1,10 +1,10 @@
// C0R3 page entry (/core.html). The host/coordinator surface carved out // C0R3 page entry (/core.html). The host/coordinator surface, its own
// of the dashboard's old SYST3M tab into its own standalone page so the // standalone page so the dashboard tab strip stays lean. Two sub-tabs
// dashboard tab strip stays lean. Two sub-tabs via <hive-tab-strip> // via <hive-tab-strip> (default = K3PT ST4T3): kept state (tombstones)
// (default = K3PT ST4T3): kept state (tombstones) and container load. // and container load.
// //
// Rebuild queue + meta inputs have moved to /builds.html (the build // Rebuild queue + meta inputs live at /builds.html (the build lifecycle
// lifecycle hub). This page is its own esbuild bundle with its own // hub), not here. This page is its own esbuild bundle with its own
// runtime: it cold-loads /api/state and subscribes to /dashboard/stream // runtime: it cold-loads /api/state and subscribes to /dashboard/stream
// (the same broker event channel the dashboard uses), maintaining its // (the same broker event channel the dashboard uses), maintaining its
// own copy of the tombstones state. // own copy of the tombstones state.

View file

@ -1,5 +1,5 @@
// /logs.html entry point: log viewer with three sub-tabs (AGENT, INFRA, // /logs.html entry point: log viewer with three sub-tabs (AGENT, INFRA,
// SYSTEM). Build log history has moved to /builds.html. // SYSTEM). Build log history lives at /builds.html, not here.
// AGENT — per-container journald viewer, backed by GET /api/journal/{name} // AGENT — per-container journald viewer, backed by GET /api/journal/{name}
// INFRA — infra-container journald viewer (hive-ci, hive-forge, …), // INFRA — infra-container journald viewer (hive-ci, hive-forge, …),
// same API but full machine journal only (no unit filter) // same API but full machine journal only (no unit filter)
@ -230,7 +230,7 @@ import '@hive/shared/hive-tab-strip.js';
// Wire the shared tab strip now that fetchSystem + the element refs it // Wire the shared tab strip now that fetchSystem + the element refs it
// needs are defined. Its initial show() paints the active pane and, if // needs are defined. Its initial show() paints the active pane and, if
// the deep-linked tab is SYSTEM, kicks off the lazy fetch via onShow. // the deep-linked tab is SYSTEM, kicks off the lazy fetch via onShow.
// Default: AGENT (build logs moved to /builds.html). // Default: AGENT.
logTabs = document.getElementById('logs-tabbar').configure({ logTabs = document.getElementById('logs-tabbar').configure({
tabs: [ tabs: [
{ id: 'agent', label: 'AGENT' }, { id: 'agent', label: 'AGENT' },

View file

@ -10,9 +10,8 @@
// tracking); reads the shared agent roster from state.js for the // tracking); reads the shared agent roster from state.js for the
// target-chip pickers. Render + format helpers come from util.js. // target-chip pickers. Render + format helpers come from util.js.
// //
// Note: per-agent reminders moved to the in-container store (reminders // Note: per-agent reminders live in the in-container store, not here —
// migration) and are no longer listed here — they surface via // they surface via get_loose_ends / the todos pill on the agent page.
// get_loose_ends / the todos pill on the agent page instead.
import { $ } from './common.js'; import { $ } from './common.js';
import { el } from '@hive/shared/dom.js'; import { el } from '@hive/shared/dom.js';

View file

@ -543,7 +543,7 @@ function buildContainerLi(c, node, opts) {
body.append(head); body.append(head);
// Per-card action buttons (R3ST4RT / ST0P / ST4RT / R3BU1LD / // Per-card action buttons (R3ST4RT / ST0P / ST4RT / R3BU1LD /
// DESTR0Y / PURG3) moved to the selection bar — see // DESTR0Y / PURG3) live on the selection bar, not here — see
// docs/web-ui.md::Selection bar. The contextual `needs update ↻` // docs/web-ui.md::Selection bar. The contextual `needs update ↻`
// chip in the head row stays — it's a state-hint, not an // chip in the head row stays — it's a state-hint, not an
// action button. // action button.