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:
parent
a2f000bab4
commit
8f5b3a2fa8
1 changed files with 96 additions and 36 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue