From 9169e9db09e23567c2ae28750e0a86cce9e460b9 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 6 Nov 2026 23:03:10 +1100 Subject: [PATCH] fix(ui): hand-rolled cards, headings, captions and empties use components/ui (#1759) Captions move from text-xs to the text-caption type-scale token across the workflow/bind/schedule editors and curator card. The task page title uses PageHeader's h1 classes. Hand-rolled boxes become Card (token reveal, recovery code, pending extension update) or CodeView (install progress); the startup-settings key/value table becomes MetadataList; the harness empty row becomes TableEmpty; 'No tokens/dispatches/inputs/ removed' states become Empty; the step-editor problem line becomes a destructive Alert. The risky-row danger tint in ToolsPage and SystemReposPage now uses SettingRow tone="danger" instead of a hand-written before: overlay (DANGER_ROW deleted). --- ui/src/accounts/AccountPage.vue | 3 ++- ui/src/accounts/PersonalTokensCard.vue | 12 +++++++----- ui/src/bindings/DispatchLinks.vue | 3 ++- ui/src/chat/ChatChooseCard.vue | 2 +- ui/src/curators/CuratorCard.vue | 2 +- ui/src/harness/HarnessPage.vue | 5 ++--- ui/src/settings/ExtensionsPage.vue | 9 +++++---- ui/src/settings/SystemReposPage.vue | 17 ++++++++--------- ui/src/settings/SystemStatusPage.vue | 16 ++++++---------- ui/src/settings/ToolsPage.vue | 16 +++++++--------- ui/src/settings/VersionsCard.vue | 8 ++------ ui/src/tasks/TaskHeader.vue | 2 +- ui/src/workflows/BindEvent.vue | 12 ++++++------ ui/src/workflows/ScheduleTrigger.vue | 9 +++++---- ui/src/workflows/SpecList.vue | 2 +- ui/src/workflows/StepEditor.vue | 18 +++++++++--------- ui/src/workflows/WorkflowHistory.vue | 3 ++- ui/src/workflows/WorkflowSettings.vue | 4 ++-- 18 files changed, 69 insertions(+), 74 deletions(-) diff --git a/ui/src/accounts/AccountPage.vue b/ui/src/accounts/AccountPage.vue index a4ca76991..f9becd3a2 100644 --- a/ui/src/accounts/AccountPage.vue +++ b/ui/src/accounts/AccountPage.vue @@ -5,6 +5,7 @@ import { computed, onMounted, ref } from "vue"; import PageHeader from "@/base/PageHeader.vue"; import PersonalTokensCard from "@/accounts/PersonalTokensCard.vue"; import { Button } from "@/components/ui/button"; +import { Card } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { SettingRow } from "@/components/ui/setting-row"; import { Section } from "@/components/ui/section"; @@ -34,7 +35,7 @@ const change=()=>run(async()=>{await api.changePassword(current.value,next.value
-

{{recovery}}

+

{{recovery}}

diff --git a/ui/src/accounts/PersonalTokensCard.vue b/ui/src/accounts/PersonalTokensCard.vue index 5e3435868..879f6bdd9 100644 --- a/ui/src/accounts/PersonalTokensCard.vue +++ b/ui/src/accounts/PersonalTokensCard.vue @@ -4,6 +4,8 @@ import { onMounted, ref } from "vue"; import { Copy, Plus, X } from "@lucide/vue"; import { Button } from "@/components/ui/button"; +import { Card } from "@/components/ui/card"; +import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { api } from "@/lib/api"; @@ -86,15 +88,15 @@ onMounted(load);

Personal tokens need a signed-in person.

-
-

Copy this token now. It cannot be shown again.

-
+ +

Copy this token now. It cannot be shown again.

+
-
-

No tokens yet.

+ + No tokens yet. {{ token.name || token.id.slice(0, 12) }} diff --git a/ui/src/bindings/DispatchLinks.vue b/ui/src/bindings/DispatchLinks.vue index 68f01aab5..257293f25 100644 --- a/ui/src/bindings/DispatchLinks.vue +++ b/ui/src/bindings/DispatchLinks.vue @@ -2,6 +2,7 @@ import { ref, watch } from "vue"; import { api } from "@/lib/api"; +import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty"; import { Timestamp } from "@/components/ui/timestamp"; /** @@ -79,5 +80,5 @@ const captureLink = (id: string) => ({ -

No dispatches yet.

+ No dispatches yet. diff --git a/ui/src/chat/ChatChooseCard.vue b/ui/src/chat/ChatChooseCard.vue index 9edfd2379..a8f7bc088 100644 --- a/ui/src/chat/ChatChooseCard.vue +++ b/ui/src/chat/ChatChooseCard.vue @@ -11,7 +11,7 @@ const options = computed(() => selectorData.value.models ?? []); -

+

diff --git a/ui/src/harness/HarnessPage.vue b/ui/src/harness/HarnessPage.vue index e2f1ae546..6d78a4ce1 100644 --- a/ui/src/harness/HarnessPage.vue +++ b/ui/src/harness/HarnessPage.vue @@ -34,6 +34,7 @@ import { Skeleton } from "@/components/ui/skeleton"; import { Table, TableBody, + TableEmpty, TableCell, TableHead, TableHeader, @@ -168,9 +169,7 @@ function scopes(binding: HarnessBinding): string { - - No credential bindings. - + No credential bindings. {{ binding.service }} diff --git a/ui/src/settings/ExtensionsPage.vue b/ui/src/settings/ExtensionsPage.vue index a9db3ee28..cc4878441 100644 --- a/ui/src/settings/ExtensionsPage.vue +++ b/ui/src/settings/ExtensionsPage.vue @@ -18,6 +18,7 @@ import { } from "@/components/ui/alert-dialog"; import { Button } from "@/components/ui/button"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible"; +import { Card } from "@/components/ui/card"; import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty"; import { Input } from "@/components/ui/input"; import { Badge } from "@/components/ui/badge"; @@ -115,13 +116,13 @@ const tones = {

{{ tones[stage(extension)].label }} -
-

Update awaiting approval. It adds:

-
    + +

    Update awaiting approval. It adds:

    +
    • {{ line }}
    -
+