Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: the broadcast roster and the egress lists show placeholders while they load

The broadcast grid showed nothing while the agents loaded, and the egress
card a 'loading the … domains' line. They now show grey placeholders in the
shape of what is coming: six agent chips with the real chip's height (160 px,
measured), and three domain rows with their remove buttons.
This commit is contained in:
iris 2026-11-06 19:49:47 +01:00 • committed by mara
commit 8847e6390b

View file

@ -26,6 +26,7 @@ import { LazyDisclosure } from "../../ui/disclosure/LazyDisclosure.js";
import { Dialog } from "../../ui/dialog/Dialog.js";
import { Hint } from "../../ui/hint/Hint.js";
import { SectionHeading } from "../../ui/section-heading/SectionHeading.js";
import { Skeleton, SkeletonRegion } from "../../ui/skeleton/Skeleton.js";
import "../../agent/detail/AgentLimits.css";
import "./SwarmPage.css";
@ -67,9 +68,18 @@ function DomainSection({
{errorPanel}
{entries === null ? (
errorPanel === null ? (
<Hint as="span" role="status">
loading the {kind === "deny" ? "denied" : "allowed"} domains…
</Hint>
<SkeletonRegion
label={`the ${kind === "deny" ? "denied" : "allowed"} domains`}
>
<ul class="ui-swarm-egress-list" aria-hidden="true">
{[0, 1, 2].map((i) => (
<li key={i}>
<Skeleton width="10em" />
<Skeleton width="5em" height="2.75em" />
</li>
))}
</ul>
</SkeletonRegion>
) : null
) : (
<>