Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: a builds page for the swarm builder's runs, and the status links to it

/builds lists the builder's recent builds newest first, one card each with how
it ended, and opens a failed build's nix tail. /builds?run=<id> opens that
build's card and scrolls to it. The swarm-builder commit status now links
there instead of to the raw JSON record.
This commit is contained in:
iris 2026-10-18 00:38:21 +02:00 • committed by mara
commit 0e77d61a9f

View file

@ -0,0 +1,56 @@
/* The build list: one card per build, the head row a button that opens it. */
.ui-builds-list {
display: flex;
flex-direction: column;
gap: 0.75em;
margin-top: 1em;
}
.ui-builds-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5em 0.75em;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.ui-builds-head:focus-visible {
outline: 2px solid var(--purple);
outline-offset: 2px;
}
.ui-builds-title {
display: inline-flex;
align-items: baseline;
gap: 0.5em;
}
.ui-builds-meta {
color: var(--muted);
margin: 0;
}
.ui-builds-body {
display: flex;
flex-direction: column;
gap: 0.4em;
margin-top: 0.6em;
}
.ui-builds-text {
margin: 0;
overflow-wrap: anywhere;
}
/* What nix printed: kept as printed, scrolls sideways rather than wrapping. */
.ui-builds-tail {
margin: 0;
padding: 0.6em 0.75em;
max-height: 24em;
overflow: auto;
border-radius: 0.4em;
background: color-mix(in srgb, var(--crust) 60%, transparent);
font-size: 0.85em;
}
.ui-builds-empty {
color: var(--muted);
}