Watch
0
0
Fork
You've already forked hyperhive
0

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:
iris 2026-11-06 17:54:24 +01:00 • committed by mara
commit 8a2e5203ad

View file

@ -12,6 +12,8 @@ import { readApiError, type ProblemDetails } from "@hive/shared/api-error.js";
import { Panel } from "../ui/panel/Panel.js";
import { TextField } from "../ui/text-field/TextField.js";
import { Button } from "../ui/button/Button.js";
import { ExternalLink } from "../ui/external-link/ExternalLink.js";
import { Hint } from "../ui/hint/Hint.js";
import "./LinkMatrixAccountForm.css";
type SubmitState =
@ -67,13 +69,9 @@ export function LinkGithubAccountForm({
two minutes, and its <code>gh</code> and <code>git push</code> to
github.com then authenticate with it. Use a dedicated bot account and a
minimally scoped token, created at{" "}
<a
href="https://github.com/settings/tokens"
target="_blank"
rel="noopener noreferrer"
>
<ExternalLink href="https://github.com/settings/tokens">
github.com/settings/tokens
</a>
</ExternalLink>
; GitHub notifications also need the <code>notifications</code> scope.
</p>
<form class="link-matrix-account-form" onSubmit={submit}>
@ -94,9 +92,9 @@ export function LinkGithubAccountForm({
</Button>
</form>
{result.status === "done" && (
<p class="link-matrix-account-result-ok">
<Hint tone="ok" class="link-matrix-account-result-ok">
stored a github token for <strong>{agent}</strong>
</p>
</Hint>
)}
{result.status === "error" && (
<ApiErrorPanel