Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: the jobs and builds cards are folded by default

Both cards on the jobs tab start shut and read nothing until opened; a link
with ?run= opens the builds card. The fold-and-build-on-first-open part of the
hives card is now one LazyDisclosure, which the hives card uses too. Docs
follow.
This commit is contained in:
iris 2026-10-26 20:09:17 +01:00
commit 8f5b3a2fa8

View file

@ -1,7 +1,7 @@
// A folded card fetches nothing until first opened. Run by `npm test`.
import assert from "node:assert/strict";
import { test } from "node:test";
import { builtAfterToggle } from "../src/pages/agents/lazy-open.ts";
import { builtAfterToggle } from "../src/ui/disclosure/lazy-open.ts";
test("a card nobody opened is not built", () => {
assert.equal(builtAfterToggle(false, false), false);