swarm-ui: shared code leaves page folders; SectionHeading and Preformatted replace per-page copies
durationLabel moves to util.ts, termPaths to agent/terminal/term-paths.ts, StateBadges and tokenTotal to agent/state, and TryOutResult to pages/review-common, so the builds, runs and agent pages no longer import across page folders. SectionHeading is the body-size section heading the create form and the egress card each styled; Preformatted is the scrolling text block of the builds tail and the AGENTS.md view, which now share one chrome and are both keyboard-scrollable. The components page shows both.
This commit is contained in:
parent
4bd81d5b0f
commit
5d5df29687
2 changed files with 295 additions and 200 deletions
|
|
@ -25,6 +25,7 @@ import { Button } from "../../ui/button/Button.js";
|
|||
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 "../../agent/detail/AgentLimits.css";
|
||||
import "./SwarmPage.css";
|
||||
|
||||
|
|
@ -61,7 +62,7 @@ function DomainSection({
|
|||
const note = kind === "deny" ? behindNote(behind) : null;
|
||||
return (
|
||||
<section class="ui-swarm-egress-section">
|
||||
<h3 class="ui-swarm-egress-heading">{heading}</h3>
|
||||
<SectionHeading class="ui-swarm-egress-heading">{heading}</SectionHeading>
|
||||
<Hint class="ui-swarm-egress-help">{help}</Hint>
|
||||
{errorPanel}
|
||||
{entries === null ? (
|
||||
|
|
|
|||
|
|
@ -36,8 +36,7 @@
|
|||
border-top: 1px dashed var(--border);
|
||||
}
|
||||
.ui-swarm-egress-heading {
|
||||
margin: 0 0 0.35em;
|
||||
font-size: 1em;
|
||||
margin-bottom: 0.35em;
|
||||
}
|
||||
.ui-swarm-egress-behind {
|
||||
margin: 0 0 0.75em;
|
||||
|
|
|
|||
Loading…
Reference in a new issue