| Filename | Latest commit message | Latest commit date |
|---|---|---|
mara, PR #3026 review: "drop queuedLabelFor - just show what the backend sends". `queuedLabelFor` translated the rebuild-queue entry's `kind` field through a curated English-phrase table ("meta_update" -> "meta-update queued", "graceful_stop" -> "stop queued", etc.) for the one fallback case where no transient exists for an agent. Removed the lookup entirely -- `queuedOpsByAgent()` now returns the raw `kind` string directly, and the render loop uses it as-is, the same opaque-string treatment a transient's own `kind` already got (never run through a lookup, per docs/web-ui/dashboard.md's existing "treat it as an opaque display string" note). The queued-vs-running visual distinction still comes entirely from the row's CSS classes (no ring/tint for queued, amber ring + tint for running) -- the text was never carrying that signal on its own, so nothing is lost by not reformatting it. Updated docs/web-ui/dashboard.md's Container-row section to match. npm run build clean, standalone verification re-run (17/17 checks, one updated for the new raw-string expectation). |
||
| .. | ||
| packages | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
hyperhive frontend
npm workspaces project for the hyperhive browser-facing assets:
packages/shared/— shared modules used by both surfaces (terminal pane, Catppuccin palette + body typography).packages/dashboard/— the hive-c0re dashboard SPA.packages/agent/— the per-container web UI (default agent page, stats, screen).
Build
npm install # one-off; uses the checked-in package-lock.json
npm run build # builds every workspace into packages/*/dist/
The Rust binaries serve packages/dashboard/dist/ and
packages/agent/dist/ via tower_http::ServeDir at runtime; the
build derivation is wired up in nix/modules/frontend.nix. Per-agent
additions are layered on top of the default agent dist via the
hyperhive.frontend.extraFiles option in agent.nix.
Why npm + esbuild
- Hermetic: dependencies vendored via the checked-in lockfile;
buildNpmPackagein nix uses it as the source-of-truth so the output is reproducible without network access at build time. - esbuild: vanilla-JS bundler, no framework runtime overhead.
Each workspace's
build.mjsis ~30 lines. - Single-PR migration: see issue #273 for the design proposal and the four-commit shape (npm scaffold → nix derivations → container plumbing → Rust cutover).