fix(ui): trim view captions and empty-state copy in org, accounts, curators and skills

Drop captions that restated headings, cut the duplicate Policies card title,
use the Select component for account roles, let org agent actions wrap on
phone width, and use em-free placeholders.
This commit is contained in:
sam committed 2026-10-18 15:02:00 +11:00
1 parent 686da8be4d
commit bd83be3862
12 files changed
+16 -27

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ async function signInPasskey(){busy.value=true;error.value="";try{await usePassk
<div class="rounded-xl border border-border bg-card p-6 shadow-sm">
<p class="mb-2 text-xs font-medium tracking-widest text-muted-foreground">ARCHIE</p>
<h1 class="text-2xl font-medium">{{setup?(step===1?'Set up your organisation':'Create your admin account'):recovery?'Recover your account':'Sign in'}}</h1>
<p class="mt-2 text-sm text-muted-foreground">{{setup?(step===1?'Start with the organisation and workspace this installation will serve.':'This first account administers the installation. You can add people and configure OIDC after setup.'):'Use your account to open your workspace.'}}</p>
<p v-if="setup&&step===2" class="mt-2 text-sm text-muted-foreground">This account administers the installation.</p>
<form class="mt-6 space-y-4" @submit.prevent="submit">
<template v-if="setup&&step===1">
<label class="block space-y-1.5 text-sm" for="organisation">Organisation name<Input id="organisation" v-model="organisation" autocomplete="organization" required maxlength="200" /></label>
@@ -42,7 +42,7 @@ async function signInPasskey(){busy.value=true;error.value="";try{await usePassk
<label class="block space-y-1.5 text-sm" for="account-email">Email<Input id="account-email" v-model="email" type="email" autocomplete="username" :spellcheck="false" required /></label>
<label v-if="recovery" class="block space-y-1.5 text-sm" for="recovery-code">Recovery code<Input id="recovery-code" v-model="recoveryCode" autocomplete="off" required /></label>
<label class="block space-y-1.5 text-sm" for="account-password">{{recovery?"New password":"Password"}}<Input id="account-password" v-model="password" type="password" :autocomplete="setup||recovery?'new-password':'current-password'" :minlength="setup||recovery?15:undefined" maxlength="1024" required /></label>
<p v-if="setup" class="text-xs text-muted-foreground">At least 15 characters. You can add a passkey after creating your account.</p>
<p v-if="setup" class="text-xs text-muted-foreground">At least 15 characters.</p>
</template>
<p v-if="error" role="alert" class="text-sm text-danger">{{error}}</p>
<div class="flex gap-2"><Button v-if="setup&&step===2" type="button" variant="outline" :disabled="busy" @click="step=1">Back</Button><Button type="submit" class="flex-1" :disabled="busy">{{busy?'Please wait…':setup?(step===1?'Continue':'Create organisation and admin'):recovery?'Reset password':'Sign in'}}</Button></div>
+2 -3
View File
@@ -25,15 +25,14 @@ const change=()=>run(async()=>{await api.changePassword(current.value,next.value
<p v-if="error" role="alert" class="text-sm text-danger">{{error}} <a class="underline" href="/?reauth=1">Sign in again</a></p>
<section class="rounded-lg border border-border bg-card p-5">
<h2 class="font-medium">Passkeys</h2>
<p class="mt-1 text-sm text-muted-foreground">Sign in with your device or security key.</p>
<ul class="mt-4 divide-y divide-border"><li v-for="key in keys" :key="key.id" class="flex items-center gap-3 py-2 text-sm"><span class="min-w-0 flex-1 truncate">{{key.name}}</span><Button variant="ghost" size="sm" :disabled="busy" @click="remove(key.id)">Remove</Button></li></ul>
<form v-if="eligible" class="mt-3 flex flex-wrap gap-2" @submit.prevent="enroll"><Input v-model="keyName" aria-label="Passkey name" placeholder="Passkey name (optional)" maxlength="200" class="min-w-40 flex-1"/><Button type="submit" :disabled="busy">Add passkey</Button></form>
<p v-else class="mt-3 text-sm text-muted-foreground">Open Archie at its configured HTTPS domain, or localhost, in a browser that supports passkeys. The instance URL is managed in <RouterLink class="underline" to="/settings/authentication">Authentication settings</RouterLink>.</p>
<p v-else class="mt-3 text-sm text-muted-foreground">Passkeys need an HTTPS domain or localhost. Set the instance URL in <RouterLink class="underline" to="/settings/authentication">Authentication settings</RouterLink>.</p>
</section>
<PersonalTokensCard />
<section class="rounded-lg border border-border bg-card p-5 space-y-3">
<h2 class="font-medium">Recovery code</h2>
<p class="text-sm text-muted-foreground">Save this once-only code somewhere safe. It resets your password if you lose access. Generating a new code replaces the previous one.</p>
<p class="text-sm text-muted-foreground">Shown once. Use it to reset your password if you lose access. A new code replaces the old one.</p>
<Button :disabled="busy" @click="makeRecovery">Generate recovery code</Button>
<p v-if="recovery" class="break-all rounded border border-border p-3 font-mono text-sm" role="status">{{recovery}}</p>
</section>
+2 -2
View File
@@ -2,7 +2,7 @@
import { ref } from "vue";
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";
import { NativeSelect, NativeSelectOption } from "@/components/ui/native-select";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
import { api } from "@/lib/api";
const emit=defineEmits<{created:[]}>();
const name=ref("");const email=ref("");const password=ref("");const role=ref("viewer");const busy=ref(false);const error=ref("");
@@ -15,7 +15,7 @@ async function create(){busy.value=true;error.value="";try{await api.createAccou
<label for="new-account-name" class="block space-y-1 text-sm">Name<Input id="new-account-name" v-model="name" required maxlength="200" autocomplete="off" /></label>
<label for="new-account-email" class="block space-y-1 text-sm">Email<Input id="new-account-email" v-model="email" type="email" required autocomplete="off" :spellcheck="false" /></label>
<label for="new-account-password" class="block space-y-1 text-sm">Initial password<Input id="new-account-password" v-model="password" type="password" required minlength="15" maxlength="1024" autocomplete="new-password" /></label>
<label for="new-account-role" class="block space-y-1 text-sm">Role<NativeSelect id="new-account-role" v-model="role"><NativeSelectOption value="viewer">Viewer</NativeSelectOption><NativeSelectOption value="developer">Developer</NativeSelectOption><NativeSelectOption value="admin">Admin</NativeSelectOption></NativeSelect></label>
<div class="block space-y-1 text-sm"><label for="new-account-role">Role</label><Select v-model="role"><SelectTrigger id="new-account-role" class="w-full"><SelectValue /></SelectTrigger><SelectContent><SelectItem value="viewer">Viewer</SelectItem><SelectItem value="developer">Developer</SelectItem><SelectItem value="admin">Admin</SelectItem></SelectContent></Select></div>
<p v-if="error" role="alert" class="text-sm text-danger">{{error}} <a class="underline" href="/?reauth=1">Sign in again</a></p>
<Button type="submit" :disabled="busy">Create account</Button>
</form>
+4 -5
View File
@@ -22,10 +22,9 @@ import { useLiveResource } from "@/stores/session";
import CuratorCard, { type Curator } from "./CuratorCard.vue";
/**
* Curator observability (archie-core-1786637489932-6). Backed by GET
* /api/curators, which reads the daemon's live curator registry: which curators
* are registered, their point-in-time health, and their recent activity, with
* the reason each action happened.
* Backed by GET /api/curators, which reads the daemon's live curator registry:
* which curators are registered, their point-in-time health, and their recent
* activity, with the reason each action happened.
*/
interface Definition {
@@ -70,7 +69,7 @@ onMounted(load);
<div>
<PageHeader title="Curators"><HistoryLink :kinds="[KIND]" /><Button variant="outline" @click="editing = !editing">{{ editing ? "Hide definitions" : "Edit definitions" }}</Button></PageHeader>
<ApplyStatusRows :kind="KIND" class="mb-4" />
<p v-if="store.catalogError || store.pageErrorFor(KIND)" class="mb-4 text-sm text-destructive" role="alert">{{ store.catalogError || store.pageErrorFor(KIND) }}</p>
<p v-if="store.catalogError || store.pageErrorFor(KIND)" class="mb-4 text-sm text-danger" role="alert">{{ store.catalogError || store.pageErrorFor(KIND) }}</p>
<div v-if="editing" class="mb-6">
<form class="mb-4 flex gap-2" @submit.prevent="add"><Input v-model="newName" aria-label="Curator name" placeholder="Curator name" class="max-w-xs" /><Button type="submit" :disabled="!newName.trim() || definitions?.some(def => def.name === newName.trim())">Add curator</Button></form>
<p v-if="!definitions?.length" class="text-sm text-fg-muted">No custom curator definitions.</p>
-1
View File
@@ -107,7 +107,6 @@ onMounted(load);
<Card class="mb-4">
<CardHeader>
<CardTitle>Policies</CardTitle>
<CardAction>
<Button size="sm" @click="editing = true">New policy</Button>
</CardAction>
+1 -1
View File
@@ -156,7 +156,7 @@ const isAgent = (value: Identity) =>
</div>
<Badge v-if="isAgent(value) && serves.has(value.id)" variant="outline" class="font-mono">{{ org?.id }}</Badge>
<Badge v-if="value.lifecycle !== 'active'" :variant="lifecycle[value.lifecycle]" class="capitalize">{{ value.lifecycle }}</Badge>
<div v-if="value.kind !== 'system' && value.lifecycle !== 'retired'" class="flex gap-1">
<div v-if="value.kind !== 'system' && value.lifecycle !== 'retired'" class="flex flex-wrap gap-1">
<Button
v-if="isAgent(value) && !serves.has(value.id)"
variant="ghost"
+1 -1
View File
@@ -152,7 +152,7 @@ const remove = (member: Member) =>
<TableRow v-for="member in members" :key="member.identity_id + (member.workspace_id ?? '')">
<TableCell class="font-medium">{{ member.display_name }}</TableCell>
<TableCell class="text-fg-subtle capitalize">{{ member.kind.replace("_", " ") }}</TableCell>
<TableCell class="font-mono text-xs text-fg-subtle">{{ member.workspace_id ?? "—" }}</TableCell>
<TableCell class="font-mono text-xs text-fg-subtle">{{ member.workspace_id ?? "–" }}</TableCell>
<TableCell>
<Select :model-value="member.role" @update:model-value="setRole(member, $event)">
<SelectTrigger class="w-36" :aria-label="`Role for ${member.display_name}`">
-1
View File
@@ -84,7 +84,6 @@ const eyebrow = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<span class="w-28 font-mono text-sm font-medium">{{ name }}</span>
<Input v-model="provider.class" class="w-36 font-mono" :aria-label="`Class for ${name}`" />
<Input v-model="provider.base_url" class="max-w-md flex-1 font-mono" placeholder="base URL (empty: class default)" :aria-label="`Base URL for ${name}`" />
<span class="text-xs text-fg-subtle">Key: credential binding "{{ name }}"</span>
<Button variant="ghost" size="icon" class="ml-auto" :aria-label="`Remove provider ${name}`" @click="delete providers[name]"><Trash2 /></Button>
</div>
<form class="flex gap-2 border-t border-border px-4 py-3" @submit.prevent="addProvider">
-4
View File
@@ -29,10 +29,6 @@ const areas = [
</Button>
</PageHeader>
<p class="mb-4 max-w-prose text-sm text-muted-foreground">
This organisation's identities, connections, models and automation.
</p>
<div class="grid gap-3 sm:grid-cols-2">
<RouterLink v-for="area in areas" :key="area.to" :to="area.to" class="focus-visible:outline-2 focus-visible:outline-ring">
<Card size="sm" class="h-full transition-colors hover:border-primary/40">
+2 -4
View File
@@ -15,9 +15,7 @@ import { useOrgStore } from "@/stores/org";
/**
* The Organisation area's frame: the org every section below is about, and the
* switcher an instance admin uses to point it elsewhere. The sections are
* separate routes listed in the shell sidebar, so the org name is stated once
* here rather than repeated in a heading and a control.
* switcher an instance admin uses to point it elsewhere.
*/
const orgStore = useOrgStore();
const { homeOrg, instanceAdmin, org, orgs } = storeToRefs(orgStore);
@@ -45,7 +43,7 @@ onMounted(async () => {
<template>
<div>
<!-- The org is named once: the switcher for an instance admin, a plain
label for everyone else. Two labels said the same thing twice. -->
label for everyone else. -->
<div v-if="instanceAdmin" class="mb-4 flex flex-wrap items-center gap-2">
<Select :model-value="org?.id" @update:model-value="(id) => orgStore.viewOrg(String(id))">
<SelectTrigger class="w-72" aria-label="Organisation">
+1 -1
View File
@@ -96,7 +96,7 @@ async function create(): Promise<void> {
<TableRow v-for="workspace in workspaces" :key="workspace.id">
<TableCell class="font-mono text-xs">{{ workspace.id }}</TableCell>
<TableCell class="font-medium">{{ workspace.name }}</TableCell>
<TableCell class="text-fg-subtle">{{ workspace.environment || "—" }}</TableCell>
<TableCell class="text-fg-subtle">{{ workspace.environment || "–" }}</TableCell>
</TableRow>
<TableRow v-if="!workspaces.length">
<TableCell colspan="3">
+1 -2
View File
@@ -78,8 +78,7 @@ const filtered = computed(() => {
<Empty v-else-if="!skills.length">
<EmptyHeader>
<EmptyTitle>No skills discovered yet</EmptyTitle>
<EmptyDescription>Skills live as SKILL.md files under project, shared, or
user-global .agents/skills/&lt;name&gt;/ directories.</EmptyDescription>
<EmptyDescription>Add a SKILL.md under .agents/skills/&lt;name&gt;/ in a project, shared or user-global directory.</EmptyDescription>
</EmptyHeader>
</Empty>
<Empty v-else-if="!filtered.length">