fix(ui): trim filler prose and expose appearance in settings nav
This commit is contained in:
1 parent
977f149d6b
commit
e50a381992
31 files changed
+38
-89
No files matched your search
@@ -141,8 +141,7 @@ const title = computed(() => (props.binding ? "Edit binding" : "New binding"));
|
||||
<DialogHeader>
|
||||
<DialogTitle>{{ title }}</DialogTitle>
|
||||
<DialogDescription>
|
||||
A binding is not armed until it is approved, and editing one drops it
|
||||
back to pending approval.
|
||||
Editing returns this binding to pending approval.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
@@ -308,8 +307,7 @@ const title = computed(() => (props.binding ? "Edit binding" : "New binding"));
|
||||
</Field>
|
||||
</div>
|
||||
<FieldDescription>
|
||||
Optional. A pin is both halves or neither, so leave both blank to
|
||||
use the single configured repo.
|
||||
Both or neither; blank uses the configured repo.
|
||||
</FieldDescription>
|
||||
</Field>
|
||||
</FieldGroup>
|
||||
|
||||
@@ -63,8 +63,7 @@ const failureTitle = computed(() =>
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No bindings yet</EmptyTitle>
|
||||
<EmptyDescription>
|
||||
Create one from a saved field mapping to turn a captured webhook into a
|
||||
workflow.
|
||||
None yet. A mapping + a workflow make a binding.
|
||||
</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
@@ -36,8 +36,7 @@ function onOpenChange(open: boolean): void {
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogTitle>Delete "{{ props.binding?.name }}"?</AlertDialogTitle>
|
||||
<AlertDialogDescription>
|
||||
It stops dispatching immediately and cannot be recovered. Captured
|
||||
events for its source keep arriving; they just stop starting tasks.
|
||||
It stops dispatching immediately and cannot be recovered.
|
||||
</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
|
||||
@@ -64,7 +64,7 @@ async function copyEndpoint() {
|
||||
<EmptyHeader>
|
||||
<EmptyMedia variant="icon"><Inbox /></EmptyMedia>
|
||||
<EmptyTitle>No captures yet</EmptyTitle>
|
||||
<EmptyDescription>Point a webhook at this address and it shows up here.</EmptyDescription>
|
||||
<EmptyDescription>Webhooks sent here appear below.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
<div class="flex items-center gap-2 rounded-md border border-border bg-background py-1 pr-1 pl-3">
|
||||
<code class="font-mono text-xs">{{ endpoint }}</code>
|
||||
|
||||
@@ -164,7 +164,7 @@ function fieldCount(schema: Record<string, string> | null | undefined): number {
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No event types yet</EmptyTitle>
|
||||
<EmptyDescription>
|
||||
Create one from a captured event.
|
||||
Nothing is dispatched until a type matches.
|
||||
</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
@@ -174,7 +174,6 @@ const models = computed({
|
||||
</SettingRow>
|
||||
<SettingRow
|
||||
label="Unrestricted filesystem"
|
||||
hint="File tools can write anywhere."
|
||||
:tone="chat.unrestricted_filesystem ? 'danger' : 'default'"
|
||||
>
|
||||
<Switch v-model="chat.unrestricted_filesystem" aria-label="Unrestricted filesystem" />
|
||||
|
||||
@@ -119,8 +119,7 @@ function scopes(binding: HarnessBinding): string {
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>Harness bindings are not configured</EmptyTitle>
|
||||
<EmptyDescription>
|
||||
This process cannot read credential bindings or captured OAuth tokens,
|
||||
so there is nothing to set up here.
|
||||
This process cannot read credential bindings or captured OAuth tokens.
|
||||
</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
@@ -129,8 +128,8 @@ function scopes(binding: HarnessBinding): string {
|
||||
<Alert v-if="!state.terminal" class="mb-4">
|
||||
<AlertTitle>Setup terminal unavailable</AlertTitle>
|
||||
<AlertDescription>
|
||||
This process cannot open a Kit container. The bindings below are still
|
||||
listed; the setup terminal needs a container-capable process.
|
||||
This process cannot open a Kit container. Bindings are still listed
|
||||
below.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
|
||||
|
||||
+2
-2
@@ -78,13 +78,13 @@ const settings: NavSpec = {
|
||||
"/settings/status",
|
||||
],
|
||||
},
|
||||
{ paths: ["/settings/history"] },
|
||||
{ paths: ["/settings/appearance", "/settings/history"] },
|
||||
],
|
||||
};
|
||||
|
||||
// Reached from the Dashboard's Logs button and the account menu, and by
|
||||
// Jump to, but not from the bar.
|
||||
const unlisted = ["/logs", "/settings/appearance"];
|
||||
const unlisted = ["/logs"];
|
||||
|
||||
export function navTree(hidden: string[] = []): NavNode[] {
|
||||
return buildNav(table, specs, hidden).tree;
|
||||
|
||||
@@ -11,7 +11,6 @@ import {
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
@@ -52,10 +51,6 @@ function onOpenChange(open: boolean) {
|
||||
<DialogTitle>{{
|
||||
draft.id === null ? "New mapping" : "Edit mapping"
|
||||
}}</DialogTitle>
|
||||
<DialogDescription>
|
||||
Bind named fields to JSON paths from a real captured event, ready for
|
||||
a playbook binding.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<Card>
|
||||
@@ -78,7 +73,7 @@ function onOpenChange(open: boolean) {
|
||||
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Payload — click a value to bind it</CardTitle>
|
||||
<CardTitle>Payload</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<Alert v-if="draft.payloadError" variant="destructive">
|
||||
@@ -90,7 +85,7 @@ function onOpenChange(open: boolean) {
|
||||
@pick="addField"
|
||||
/>
|
||||
<p v-else class="text-sm text-fg-muted">
|
||||
Pick a captured event above to see its payload.
|
||||
No event selected.
|
||||
</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -36,7 +36,7 @@ const failureByField = computed(
|
||||
|
||||
<template>
|
||||
<p v-if="!fields.length" class="py-3 text-sm text-fg-muted">
|
||||
Click a value in the payload to bind a field.
|
||||
No fields bound.
|
||||
</p>
|
||||
|
||||
<Table v-else>
|
||||
|
||||
@@ -47,10 +47,7 @@ import {
|
||||
<Empty v-else-if="!mappings.length">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No mappings yet</EmptyTitle>
|
||||
<EmptyDescription
|
||||
>Create one from a captured event to reuse its fields in a future
|
||||
playbook binding.</EmptyDescription
|
||||
>
|
||||
<EmptyDescription>None yet.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
|
||||
@@ -141,7 +141,6 @@ const routes = [
|
||||
navPath: "/settings",
|
||||
settings: true,
|
||||
label: "Appearance",
|
||||
description: "Theme and display preferences.",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -317,7 +316,7 @@ const routes = [
|
||||
navPath: "/settings",
|
||||
settings: true,
|
||||
label: "Extensions",
|
||||
description: "Installable extensions: install, accept what they may use, enable.",
|
||||
description: "Installed extensions and their grants.",
|
||||
section: "settings",
|
||||
},
|
||||
},
|
||||
@@ -329,7 +328,7 @@ const routes = [
|
||||
navPath: "/settings",
|
||||
settings: true,
|
||||
label: "Plugins",
|
||||
description: "Directories Archie loads extensions from at startup.",
|
||||
description: "Where extension directories are loaded from.",
|
||||
section: "settings",
|
||||
},
|
||||
},
|
||||
@@ -376,7 +375,6 @@ const routes = [
|
||||
redirect: "/settings/personas",
|
||||
meta: {
|
||||
label: "Settings",
|
||||
description: "Everything you configure: agents, integrations, runtime.",
|
||||
},
|
||||
},
|
||||
// Paths from before Settings existed, kept for bookmarks and chat history.
|
||||
|
||||
@@ -63,7 +63,7 @@ onMounted(load);
|
||||
<Button size="sm" :disabled="busy" @click="create"><Plus data-icon="inline-start" /> New token</Button>
|
||||
</div>
|
||||
<p class="mb-3 text-xs text-fg-subtle">
|
||||
A token acts as you. Send it as <code>Authorization: Bearer <token></code>.
|
||||
Send it as <code>Authorization: Bearer <token></code>.
|
||||
</p>
|
||||
<p v-if="error" role="alert" class="mb-3 text-sm text-danger">{{ error }}</p>
|
||||
<div v-if="created" class="mb-3 rounded-lg border border-border bg-card p-3">
|
||||
|
||||
@@ -53,7 +53,7 @@ const status = computed(() => (dials.value ? reviewDialStatus(config.value, dial
|
||||
<SettingRow
|
||||
label="Approve before posting"
|
||||
for="review-approve"
|
||||
hint="Park a finished review so an operator approves the draft before it posts."
|
||||
hint="Draft waits for you before it posts."
|
||||
>
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Switch id="review-approve" v-model="dials.approve_before_post" aria-label="Approve before posting" />
|
||||
|
||||
@@ -95,8 +95,7 @@ async function save() {
|
||||
<SheetHeader>
|
||||
<SheetTitle>Review {{ count }} {{ count === 1 ? "change" : "changes" }}</SheetTitle>
|
||||
<SheetDescription>
|
||||
{{ sections.length }} {{ sections.length === 1 ? "section" : "sections" }},
|
||||
saved in order; a failure stops the rest.
|
||||
{{ sections.length }} {{ sections.length === 1 ? "section" : "sections" }}
|
||||
</SheetDescription>
|
||||
</SheetHeader>
|
||||
<div class="flex-1 space-y-3 overflow-y-auto px-4 pb-4">
|
||||
|
||||
@@ -36,9 +36,7 @@ const chars = computed(() => soul.value?.text.length ?? 0);
|
||||
<DraftHint :kind="KIND" path="text" />
|
||||
</div>
|
||||
<p class="mt-1 text-xs text-fg-subtle">
|
||||
Archie's name, register and warmth, rendered into the chat prompt's identity slot. An empty
|
||||
value falls back to the SOUL file, then the shipped default. The invariant rules and tool
|
||||
inventory are unaffected.
|
||||
Empty falls back to the SOUL file, then the shipped default.
|
||||
</p>
|
||||
<Textarea
|
||||
id="soul-text"
|
||||
|
||||
@@ -50,9 +50,6 @@ function chooseMotion(value: unknown): void {
|
||||
<section class="flex min-w-0 flex-col items-start">
|
||||
<div>
|
||||
<h2 id="appearance-theme" class="text-sm font-medium">Theme</h2>
|
||||
<p class="mt-1 text-sm text-muted-foreground">
|
||||
Follow your device, or keep Archie light or dark.
|
||||
</p>
|
||||
</div>
|
||||
<ToggleGroup
|
||||
type="single"
|
||||
@@ -71,9 +68,6 @@ function chooseMotion(value: unknown): void {
|
||||
<section class="flex min-w-0 flex-col items-start">
|
||||
<div>
|
||||
<h2 id="appearance-density" class="text-sm font-medium">Density</h2>
|
||||
<p class="mt-1 text-sm text-muted-foreground">
|
||||
Use relaxed spacing, or fit more work on screen.
|
||||
</p>
|
||||
</div>
|
||||
<ToggleGroup
|
||||
type="single"
|
||||
@@ -91,9 +85,6 @@ function chooseMotion(value: unknown): void {
|
||||
<section class="flex min-w-0 flex-col items-start">
|
||||
<div>
|
||||
<h2 id="appearance-motion" class="text-sm font-medium">Motion</h2>
|
||||
<p class="mt-1 text-sm text-muted-foreground">
|
||||
Follow your device, or reduce interface animation here.
|
||||
</p>
|
||||
</div>
|
||||
<ToggleGroup
|
||||
type="single"
|
||||
@@ -113,9 +104,6 @@ function chooseMotion(value: unknown): void {
|
||||
<h2 id="appearance-tooltips" class="text-sm font-medium">
|
||||
Tooltips
|
||||
</h2>
|
||||
<p class="mt-1 text-sm text-muted-foreground">
|
||||
Show extra context when controls are hovered or focused.
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
:model-value="tooltipsEnabled"
|
||||
|
||||
@@ -204,8 +204,7 @@ onMounted(load);
|
||||
}}
|
||||
</Button>
|
||||
<p v-if="installing" class="text-xs text-fg-muted">
|
||||
The build runs on this host and the restart is verified out of band;
|
||||
the page can be left.
|
||||
You can leave this page; the restart continues here.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import PageHeader from "@/base/PageHeader.vue";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
@@ -54,9 +53,6 @@ const filtered = computed(() => {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Catalogue</CardTitle>
|
||||
<CardDescription
|
||||
>Project, shared, and user-global skills</CardDescription
|
||||
>
|
||||
<Input
|
||||
v-model="search"
|
||||
type="search"
|
||||
|
||||
@@ -68,8 +68,7 @@ const total = computed(
|
||||
</TableBody>
|
||||
</Table>
|
||||
<p v-if="capture.truncated" class="mt-2 text-xs text-fg-muted">
|
||||
Showing the first {{ files.length }} of {{ total }} files. The totals
|
||||
above cover every file in this capture.
|
||||
Showing the first {{ files.length }} of {{ total }} files.
|
||||
</p>
|
||||
</template>
|
||||
</template>
|
||||
@@ -57,8 +57,7 @@ const nothingRecorded = computed(
|
||||
|
||||
<div v-else class="flex flex-col">
|
||||
<p class="mb-3 text-xs text-fg-muted">
|
||||
Captured when the attempt's work was committed, so this covers the whole
|
||||
attempt, not one stage.
|
||||
Whole attempt, not one stage.
|
||||
</p>
|
||||
<ChangeCapture
|
||||
v-for="(capture, i) in captures"
|
||||
|
||||
@@ -229,8 +229,7 @@ const download = computed(() =>
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No persisted log for this attempt</EmptyTitle>
|
||||
<EmptyDescription
|
||||
>The log service is not reporting a reader, so the file cannot be
|
||||
read.</EmptyDescription
|
||||
>The log service has no reader for this file.</EmptyDescription
|
||||
>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
@@ -268,7 +267,7 @@ const download = computed(() =>
|
||||
>
|
||||
</div>
|
||||
<p v-if="current?.truncated" class="px-1 pt-1 text-xs text-warn">
|
||||
The log is larger than the readable window; its oldest entries cannot be paged.
|
||||
Log truncated; older entries are not pageable.
|
||||
</p>
|
||||
<Button v-if="download" variant="outline" size="sm" class="mt-3" as-child>
|
||||
<a :href="download" download>Download log</a>
|
||||
|
||||
@@ -19,7 +19,6 @@ watch(() => props.task.review_gate, () => {
|
||||
<Card v-if="gate" class="mb-6">
|
||||
<CardHeader>
|
||||
<CardTitle>Review findings</CardTitle>
|
||||
<p class="text-sm text-muted-foreground">Select the findings to post to the pull request.</p>
|
||||
<p v-if="gate.head_sha" class="break-all font-mono text-xs text-muted-foreground">Head commit: {{ gate.head_sha }}</p>
|
||||
</CardHeader>
|
||||
<CardContent class="space-y-4">
|
||||
@@ -44,7 +43,7 @@ watch(() => props.task.review_gate, () => {
|
||||
</li>
|
||||
</ul>
|
||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||
<p class="text-xs text-muted-foreground">{{ selected.length }} of {{ gate.findings.length }} selected<template v-if="!selected.length">. Select at least one finding to approve.</template></p>
|
||||
<p class="text-xs text-muted-foreground">{{ selected.length }} of {{ gate.findings.length }} selected</p>
|
||||
<TaskRowActions :task="task" :only="['approve', 'rereview', 'reject']" :findings="selected" @done="emit('done', $event)" />
|
||||
</div>
|
||||
</CardContent>
|
||||
|
||||
@@ -354,9 +354,8 @@ function requestFromMenu(id: string) {
|
||||
<DialogHeader>
|
||||
<DialogTitle>Re-review this pull request?</DialogTitle>
|
||||
<DialogDescription>
|
||||
The review phases run again with your instructions. Two re-reviews
|
||||
are allowed; this is
|
||||
{{ props.task.rereview_rounds ? "the next" : "the first" }} one.
|
||||
Two re-reviews allowed; this is the
|
||||
{{ props.task.rereview_rounds ? "next" : "first" }}.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div class="flex flex-col gap-2">
|
||||
@@ -397,8 +396,7 @@ function requestFromMenu(id: string) {
|
||||
<DialogHeader>
|
||||
<DialogTitle>Retry this task?</DialogTitle>
|
||||
<DialogDescription>
|
||||
Choose where the retry starts. The mode is saved on the task and
|
||||
the daemon prepares the worktree from it.
|
||||
Choose where the retry starts.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<RadioGroupRoot
|
||||
|
||||
@@ -23,7 +23,6 @@ import { useRoute, useRouter } from "vue-router";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
@@ -209,7 +208,6 @@ async function reveal(id: number) {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>All tasks</CardTitle>
|
||||
<CardDescription>Click a row for its timeline</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent class="flex flex-col gap-3">
|
||||
<TaskFilters
|
||||
|
||||
@@ -4,7 +4,6 @@ import { computed } from "vue";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
@@ -31,9 +30,6 @@ const maxMs = computed(() => maxStageMs(props.stages));
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Slowest stages</CardTitle>
|
||||
<CardDescription
|
||||
>Average duration, this workflow's stages</CardDescription
|
||||
>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<Table>
|
||||
|
||||
@@ -4,7 +4,6 @@ import { computed } from "vue";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
@@ -36,7 +35,6 @@ const rows = computed(() => failingStages(props.stages));
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Most failures</CardTitle>
|
||||
<CardDescription>Stages that error out, over their runs</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<Empty v-if="!rows.length">
|
||||
|
||||
@@ -62,7 +62,7 @@ function duration(ms?: number): string {
|
||||
<span v-if="trigger.detail" class="truncate text-fg-subtle">{{ trigger.detail }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div v-else-if="data.kind === 'start'" class="mt-0.5 text-xs text-muted-foreground">Nothing starts it yet; run it by hand or bind an event to it.</div>
|
||||
<div v-else-if="data.kind === 'start'" class="mt-0.5 text-xs text-muted-foreground">Nothing starts it yet.</div>
|
||||
<div v-else-if="data.detail" class="mt-0.5 truncate text-xs text-muted-foreground" :title="data.detail">{{ data.detail }}</div>
|
||||
<p v-if="data.summary" class="mt-1 line-clamp-2 text-xs leading-snug text-foreground/80" :title="data.summary">{{ data.summary }}</p>
|
||||
<div v-if="data.when || data.retry || data.continues" class="mt-1 flex flex-wrap gap-1 text-[11px]">
|
||||
|
||||
@@ -79,7 +79,6 @@ function setNeeds(next: { captures?: boolean; gate_retries?: number }): void {
|
||||
<header class="flex items-center gap-2 border-b border-border px-4 py-3">
|
||||
<div class="min-w-0 flex-1">
|
||||
<div class="text-sm font-medium">Workflow settings</div>
|
||||
<div class="text-[11px] text-fg-subtle">What it takes, where it works, and what starts it</div>
|
||||
</div>
|
||||
<Button type="button" variant="ghost" size="icon-sm" aria-label="Close" @click="emit('close')"><X /></Button>
|
||||
</header>
|
||||
@@ -202,7 +201,7 @@ function setNeeds(next: { captures?: boolean; gate_retries?: number }): void {
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-else class="text-xs text-fg-subtle">Nothing starts it automatically. Run it by hand, or bind an event.</p>
|
||||
<p v-else class="text-xs text-fg-subtle">Nothing starts it automatically.</p>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user