Watch
0
0
Fork
You've already forked hyperhive
0

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:
iris 2026-11-06 19:09:18 +01:00
commit 5d5df29687

View file

@ -48,6 +48,7 @@ import {
import { CheckboxField } from "../ui/checkbox-field/CheckboxField.js";
import { FormField } from "../ui/form-field/FormField.js";
import { Hint } from "../ui/hint/Hint.js";
import { SectionHeading } from "../ui/section-heading/SectionHeading.js";
import { useSubmit } from "../ui/submit/useSubmit.js";
import { MultiselectFilterOptions } from "../ui/multiselect-filter/MultiselectFilter.js";
import {
@ -456,7 +457,9 @@ export function CreateAgentForm({
Optional: leave a box empty to set nothing, and the hive's or
the agent's own value applies.
</p>
<h3 class="create-agent-heading">resource caps</h3>
<SectionHeading class="create-agent-heading">
resource caps
</SectionHeading>
<LimitsFields
idPrefix="create-limits"
cpu={cpu}
@ -464,7 +467,9 @@ export function CreateAgentForm({
onCpu={setCpu}
onMemory={setMemory}
/>
<h3 class="create-agent-heading">inference</h3>
<SectionHeading class="create-agent-heading">
inference
</SectionHeading>
<InferenceFields
idPrefix="create-inference"
draft={inference}
@ -496,7 +501,9 @@ export function CreateAgentForm({
today's literal behaviour: mara's call on this copy was to
read as finished, not as a running commentary on partial
implementation. */}
<h3 class="create-agent-heading">what this creates</h3>
<SectionHeading class="create-agent-heading">
what this creates
</SectionHeading>
<p>
Creating queues everything a new agent needs: a swarm-level
identity, a config repo on the forge with the operator added as