Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: the refresh picker of a polling card sits in the card's header row

On the jobs, builds and hives cards the picker was alone on the first line of
the body. DisclosureAction puts a body's control in the header of the
disclosure it is in, beside the chevron and outside the toggle, so it costs no
row and pressing it does not fold the card.
This commit is contained in:
iris 2026-11-06 20:24:25 +01:00 • committed by mara
commit bf7345405f

View file

@ -16,7 +16,7 @@ import {
} from "../../ui/expandable-card/ExpandableCard.js";
import { Hint } from "../../ui/hint/Hint.js";
import { Preformatted } from "../../ui/preformatted/Preformatted.js";
import { Toolbar } from "../../ui/toolbar/Toolbar.js";
import { DisclosureAction } from "../../ui/disclosure/DisclosureAction.js";
import { LazyDisclosure } from "../../ui/disclosure/LazyDisclosure.js";
import {
RefreshIntervalPicker,
@ -134,14 +134,14 @@ function BuildsBody() {
return (
<>
<Toolbar>
<DisclosureAction>
<RefreshIntervalPicker
id="builds-refresh"
value={intervalMs}
onChange={setIntervalMs}
refreshing={refreshing}
/>
</Toolbar>
</DisclosureAction>
<p>
What the swarm builder built, newest first: agent config PR heads, and
the agents it builds from internal/meta before a deploy. How each ended,