swarm-ui: shared Hint, ActionRow, Toolbar, EmptyState, ExternalLink and ExpandableCard replace per-page copies
Hint, ActionRow, Toolbar, EmptyState and ExternalLink replace the muted text, button row, refresh bar, empty line and _blank anchor that each page restyled under its own class. ExpandableCard (with a loading twin) holds the builds and recent-runs cards, which had identical head and body CSS. The create form's raw checkbox becomes CheckboxField. The components page shows each new piece.
This commit is contained in:
parent
b74b5e77e4
commit
8a2e5203ad
2 changed files with 689 additions and 427 deletions
|
|
@ -19,7 +19,6 @@
|
|||
}
|
||||
.ui-messages-count {
|
||||
margin-inline-start: auto;
|
||||
color: var(--muted);
|
||||
}
|
||||
.ui-messages-wrap.terminal-wrap {
|
||||
max-height: 70vh;
|
||||
|
|
@ -30,5 +29,4 @@
|
|||
}
|
||||
.ui-messages-note {
|
||||
margin: 0.75em 0 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import { Row } from "@hive/shared/term-row.js";
|
|||
import { BroadcastComposer } from "../broadcast/BroadcastComposer.js";
|
||||
import { SchedulesCard } from "../schedules/SchedulesPage.js";
|
||||
import { Disclosure } from "../../ui/disclosure/Disclosure.js";
|
||||
import { Hint } from "../../ui/hint/Hint.js";
|
||||
import { Panel } from "../../ui/panel/Panel.js";
|
||||
import { SelectField } from "../../ui/select-field/SelectField.js";
|
||||
import { TextField } from "../../ui/text-field/TextField.js";
|
||||
|
|
@ -136,11 +137,11 @@ export function MessagesPage() {
|
|||
placeholder="sender or recipient"
|
||||
onInput={setQuery}
|
||||
/>
|
||||
<span class="ui-messages-count">
|
||||
<Hint as="span" class="ui-messages-count">
|
||||
{query.trim() === ""
|
||||
? `${messages.length} messages`
|
||||
: `${shown.length} of ${messages.length} messages`}
|
||||
</span>
|
||||
</Hint>
|
||||
</div>
|
||||
<div class="terminal-wrap ui-messages-wrap">
|
||||
<div class="live terminal" ref={logRef} onScroll={handleScroll}>
|
||||
|
|
@ -159,11 +160,11 @@ export function MessagesPage() {
|
|||
)}
|
||||
</div>
|
||||
</div>
|
||||
<p class="ui-messages-note">
|
||||
<Hint class="ui-messages-note">
|
||||
Shows what the agents sent each other. A message an agent drained with
|
||||
an in-turn <code>recv</code> is missing. The history is at most 100
|
||||
recent messages per agent.
|
||||
</p>
|
||||
</Hint>
|
||||
</Panel>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue