fix(webui): cut redundant tails and restating descriptions from copy
Empty states and card descriptions no longer explain the consequence the main clause already implies, page descriptions match between the router and the chat page-index tool, and the Appearance cards lose descriptions that restated their controls.
This commit is contained in:
1 parent
af16b2bb34
commit
47cbe2b8d3
21 files changed
+35
-39
No files matched your search
@@ -27,22 +27,22 @@ type DashboardPage struct {
|
||||
// page line and the dashboard_navigate tool both draw from it, so the agent
|
||||
// never points at a page it was not told about.
|
||||
var dashboardPages = []DashboardPage{
|
||||
{Path: "/", Label: "Dashboard", Description: "The control room: what Archie is working on, what needs you, and token spend."},
|
||||
{Path: "/tasks", Label: "Tasks", Description: "Issues Archie has picked up and where they stand: the work queue."},
|
||||
{Path: "/workflows", Label: "Workflows", Description: "The routed workflows (bootstrap, implement, tdd, feasibility) and their run history."},
|
||||
{Path: "/", Label: "Dashboard", Description: "What Archie is working on, what needs you, and token spend."},
|
||||
{Path: "/tasks", Label: "Tasks", Description: "Issues Archie has picked up, and where each one stands."},
|
||||
{Path: "/workflows", Label: "Workflows", Description: "The routed workflows and their run history."},
|
||||
{Path: "/skills", Label: "Skills", Description: "The SKILL.md capabilities Archie can activate."},
|
||||
{Path: "/curators", Label: "Curators", Description: "The scheduled passes that curate Archie's memory and captures."},
|
||||
{Path: "/curators", Label: "Curators", Description: "Scheduled passes that curate Archie's memory and captures."},
|
||||
{Path: "/captures", Label: "Event inspector", Description: "Captured inbound events for inspection."},
|
||||
{Path: "/mappings", Label: "Field mappings", Description: "How inbound event fields map onto internal ones."},
|
||||
{Path: "/bindings", Label: "Playbook bindings", Description: "How captured events are bound to the workflows they start."},
|
||||
{Path: "/bindings", Label: "Playbook bindings", Description: "Which workflow a captured event starts."},
|
||||
{Path: "/logs", Label: "Logs", Description: "The daemon log stream, filterable by level and component."},
|
||||
{Path: "/channels", Label: "Channels", Description: "Inbound chat and notification channels (e.g. Telegram) and their state."},
|
||||
{Path: "/system/status", Label: "Status", Description: "Update state, where the running configuration came from, and the daemon listen address."},
|
||||
{Path: "/system/appearance", Label: "Appearance", Description: "Dashboard theme and display preferences."},
|
||||
{Path: "/system/tasks", Label: "Task settings", Description: "Work lifecycle configuration: statuses, operator actions, and budgets."},
|
||||
{Path: "/channels", Label: "Channels", Description: "Inbound chat and notification channels, and their state."},
|
||||
{Path: "/system/status", Label: "Status", Description: "Update state, configuration sources, and the listen address."},
|
||||
{Path: "/system/appearance", Label: "Appearance", Description: "Theme and display preferences."},
|
||||
{Path: "/system/tasks", Label: "Task settings", Description: "Work lifecycle: statuses, operator actions, and budgets."},
|
||||
{Path: "/system/models", Label: "Models", Description: "Model roles and the providers backing them."},
|
||||
{Path: "/system/repos", Label: "Repositories", Description: "Repositories Archie watches, and their per-repo gate overrides."},
|
||||
{Path: "/system/advanced", Label: "Advanced", Description: "Identity, storage and sandboxing, and the dangerous actions."},
|
||||
{Path: "/system/advanced", Label: "Advanced", Description: "Identity, storage, sandboxing, and dangerous actions."},
|
||||
}
|
||||
|
||||
// DashboardPages returns a copy of the dashboard page registry.
|
||||
|
||||
@@ -128,7 +128,7 @@ func configFieldDescriptors() []ConfigSection {
|
||||
{
|
||||
ID: "models",
|
||||
Label: "Models & providers",
|
||||
Description: "Which model handles each stage of work, and which LLM providers are wired up. Only the environment variable NAME is shown, never its value.",
|
||||
Description: "Which model handles each stage of work. Only the environment variable NAME is shown, never its value.",
|
||||
Fields: []ConfigField{
|
||||
{Key: "models", Label: "Model roles", Type: FieldStructured, Editable: false},
|
||||
{Key: "providers", Label: "Providers", Type: FieldStructured, Editable: false},
|
||||
@@ -165,7 +165,7 @@ func configFieldDescriptors() []ConfigSection {
|
||||
{
|
||||
ID: "web",
|
||||
Label: "Dashboard",
|
||||
Description: "This dashboard's own listen address.",
|
||||
Description: "This dashboard's listen address.",
|
||||
Fields: []ConfigField{
|
||||
{Key: "web.listen", Label: "Listen address", Description: `"off" disables the dashboard.`, Type: FieldString, Editable: true, RestartRequired: true},
|
||||
},
|
||||
|
||||
@@ -11,7 +11,7 @@ import CapturesList from "./CapturesList.vue";
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Recent captures</CardTitle>
|
||||
<CardDescription>Newest first. Headers and payloads are redacted before they are stored.</CardDescription>
|
||||
<CardDescription>Headers and payloads are redacted before they are stored.</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<CapturesList />
|
||||
|
||||
@@ -10,7 +10,7 @@ import CaptureStatus from "./CaptureStatus.vue";
|
||||
<div class="mb-5 flex flex-wrap items-start justify-between gap-5">
|
||||
<div>
|
||||
<h1 class="text-3xl font-semibold tracking-[-0.03em]">Event inspector</h1>
|
||||
<p class="mt-2 text-sm text-fg-muted">Real inbound payloads archie has captured, most recent first.</p>
|
||||
<p class="mt-2 text-sm text-fg-muted">Inbound payloads, most recent first.</p>
|
||||
</div>
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<CaptureStatus />
|
||||
|
||||
@@ -20,7 +20,7 @@ export function logsEmptyTitle(durableUnavailable: boolean, streamState: string)
|
||||
*/
|
||||
export function logsEmptyDetail(durableUnavailable: boolean, streamState: string): string {
|
||||
if (streamState === "unavailable") {
|
||||
return "The daemon is not serving /api/logs/stream. Reload once it is reachable.";
|
||||
return "The daemon is not serving the log stream. Reload once it is reachable.";
|
||||
}
|
||||
if (durableUnavailable) {
|
||||
return "This deployment keeps no durable history. Live daemon logs appear here while the page is open.";
|
||||
|
||||
@@ -37,8 +37,8 @@ function captureLabel(capture: Capture): string {
|
||||
const captureHint = computed(() => {
|
||||
if (captures.value.length) return null;
|
||||
return capturesEnabled.value
|
||||
? "No events have been captured yet, so there is nothing to bind against."
|
||||
: "Capture is not configured on this deployment, so there is nothing to preview against.";
|
||||
? "No captured events yet."
|
||||
: "Capture is not configured on this deployment.";
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ export function selectCapture(value: string): void {
|
||||
current.payloadError = null;
|
||||
} catch {
|
||||
current.payload = null;
|
||||
current.payloadError = "This capture's body is not valid JSON, so its fields cannot be mapped by path.";
|
||||
current.payloadError = "This capture's body is not valid JSON.";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ const routes = [
|
||||
{ path: "/workflows", name: "workflows", component: WorkflowsPage, meta: { label: "Workflows", description: "The routed workflows and their run history.", section: "workflows" } },
|
||||
{ path: "/skills", name: "skills", component: SkillsPage, meta: { label: "Skills", description: "The SKILL.md capabilities Archie can activate.", section: "skills" } },
|
||||
{ path: "/curators", name: "curators", component: CuratorsPage, meta: { label: "Curators", description: "Scheduled passes that curate Archie's memory and captures.", section: "curators" } },
|
||||
{ path: "/captures", name: "captures", component: CapturesPage, meta: { label: "Inspector", description: "Captured inbound events, as they were received.", section: "captures" } },
|
||||
{ path: "/captures", name: "captures", component: CapturesPage, meta: { label: "Inspector", description: "Captured inbound events for inspection.", section: "captures" } },
|
||||
{ path: "/mappings", name: "mappings", component: MappingsPage, meta: { label: "Mappings", description: "How inbound event fields map onto internal ones.", section: "mappings" } },
|
||||
{ path: "/bindings", name: "bindings", component: BindingsPage, meta: { label: "Bindings", description: "Which workflow a captured event starts.", section: "bindings" } },
|
||||
{ path: "/system/status", name: "system-status", component: SystemStatusPage, meta: { label: "Status", description: "Update state, configuration sources, and the listen address.", section: "settings" } },
|
||||
|
||||
@@ -32,7 +32,7 @@ const actions = computed(() => lifecycle.value?.actions ?? []);
|
||||
<ConfigCard
|
||||
v-else
|
||||
title="Work lifecycle"
|
||||
description="The task statuses and operator actions archied ships. Add one on the backend and it appears here without a frontend change."
|
||||
description="The task statuses and operator actions archied ships."
|
||||
>
|
||||
<LifecycleStatusList :statuses="statuses" />
|
||||
<LifecycleActionList :actions="actions" />
|
||||
|
||||
@@ -13,7 +13,7 @@ import ProviderTable from "./ProviderTable.vue";
|
||||
<template>
|
||||
<ConfigCard
|
||||
title="Models & providers"
|
||||
description="Which model handles each stage of work, and which LLM providers are wired up. Only the environment variable NAME is shown, never its value."
|
||||
description="Which model handles each stage of work."
|
||||
>
|
||||
<ModelRoleList />
|
||||
<ProviderTable />
|
||||
|
||||
@@ -27,7 +27,7 @@ const rows = computed(() =>
|
||||
title="Configuration sources"
|
||||
:description="
|
||||
origins.length
|
||||
? 'Applied from top to bottom; later entries take precedence over earlier ones.'
|
||||
? 'Later entries take precedence.'
|
||||
: 'The files that supplied the running configuration.'
|
||||
"
|
||||
>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { LockKeyhole } from "@lucide/vue";
|
||||
|
||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||
import { Alert, AlertTitle } from "@/components/ui/alert";
|
||||
import { configEditable } from "./state";
|
||||
|
||||
/**
|
||||
@@ -18,10 +18,6 @@ import { configEditable } from "./state";
|
||||
<template>
|
||||
<Alert v-if="!configEditable" class="mb-4">
|
||||
<LockKeyhole />
|
||||
<AlertTitle>Read-only here</AlertTitle>
|
||||
<AlertDescription>
|
||||
This process serves a published configuration snapshot and holds no write path, so the values below cannot be
|
||||
changed from this dashboard. Edit the config file on the host that owns it, or reach the dashboard that does.
|
||||
</AlertDescription>
|
||||
<AlertTitle>Read-only settings</AlertTitle>
|
||||
</Alert>
|
||||
</template>
|
||||
@@ -15,7 +15,7 @@ import TooltipCard from "./TooltipCard.vue";
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="Appearance" subtitle="How the dashboard looks." />
|
||||
<PageHeader title="Appearance" />
|
||||
<ThemeCard />
|
||||
<TooltipCard />
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@ function apply(value: unknown): void {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ConfigCard title="Theme" description="The palette this browser renders the dashboard in.">
|
||||
<ConfigCard title="Theme">
|
||||
<div class="flex justify-end">
|
||||
<ToggleGroup :model-value="theme" aria-label="Theme" @update:model-value="apply">
|
||||
<ToggleGroupItem value="dark">Dark</ToggleGroupItem>
|
||||
|
||||
@@ -6,7 +6,7 @@ import ConfigCard from "./ConfigCard.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ConfigCard title="Tooltips" description="Shown on hover, and the only place a clamped cell's full text lives.">
|
||||
<ConfigCard title="Tooltips">
|
||||
<div class="flex justify-end">
|
||||
<Switch aria-label="Tooltips" :model-value="tooltipsEnabled" @update:model-value="setTooltips" />
|
||||
</div>
|
||||
|
||||
@@ -45,7 +45,7 @@ function basis(component: (typeof versionComponents.value)[number]): string {
|
||||
<ConfigCard
|
||||
v-if="versionMissing"
|
||||
title="Update status"
|
||||
description="Not configured on this deployment, so there is nothing to check against."
|
||||
description="Not configured on this deployment."
|
||||
/>
|
||||
<Card v-else-if="versionError" class="mb-4">
|
||||
<CardContent>
|
||||
@@ -60,7 +60,7 @@ function basis(component: (typeof versionComponents.value)[number]): string {
|
||||
<ConfigCard
|
||||
v-else
|
||||
title="Update status"
|
||||
description="How each component is deployed, and whether what's running matches what's installed. Hover a row for the exact versions compared."
|
||||
description="Whether what's running matches what's installed."
|
||||
>
|
||||
<Empty v-if="!versionComponents.length">
|
||||
<EmptyHeader>
|
||||
|
||||
@@ -38,7 +38,7 @@ const recognised = computed(() => schema.value === CONFIG_SCHEMA);
|
||||
<PanelError
|
||||
v-else-if="events === null"
|
||||
title="Could not load this task's events"
|
||||
detail="The configuration is recorded as an event on the task, so it cannot be shown while the event stream is unreadable. archied did not answer — retry, or check the daemon."
|
||||
detail="The run configuration could not be read — retry, or check the daemon."
|
||||
@retry="$emit('retry')"
|
||||
/>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ const unavailable = computed(() => {
|
||||
if (run.canRetry || run.taskList === undefined) return "";
|
||||
return run.task
|
||||
? `A new run can only start from a parked task. This task is ${statusLabel(run.task.status ?? "")}.`
|
||||
: "This task's operator controls could not be read, so a new run cannot be started from here.";
|
||||
: "This task's operator controls could not be read.";
|
||||
});
|
||||
|
||||
const errorText = computed(() => {
|
||||
|
||||
@@ -31,7 +31,7 @@ const copy = computed(() =>
|
||||
title: "Task not found",
|
||||
sub: `No task with id ${props.raw ?? ""} in this deployment.`,
|
||||
empty: `Nothing is recorded for task ${props.raw ?? ""}`,
|
||||
detail: "archied answered that this task does not exist, so there is no run history to show.",
|
||||
detail: "archied answered that this task does not exist.",
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
@@ -129,7 +129,7 @@ const download = computed(() =>
|
||||
<Empty v-else-if="view.kind === 'empty'">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>Nothing recorded</EmptyTitle>
|
||||
<EmptyDescription>This attempt's log file has no entries matching the current filter.</EmptyDescription>
|
||||
<EmptyDescription>This attempt's log has no entries matching the current filter.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
<EmptyContent v-if="download">
|
||||
<Button variant="outline" size="sm" as-child>
|
||||
|
||||
@@ -48,7 +48,7 @@ function retryDebug(): void {
|
||||
<PanelError
|
||||
v-else-if="run.attempts === null"
|
||||
title="Could not load this task's attempts"
|
||||
detail="This panel reads one attempt, and the task's run history could not be read."
|
||||
detail="The task's run history could not be read."
|
||||
@retry="run.loadAttempts"
|
||||
/>
|
||||
|
||||
@@ -56,7 +56,7 @@ function retryDebug(): void {
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No attempt recorded</EmptyTitle>
|
||||
<EmptyDescription>
|
||||
This task has no recorded run, so there is nothing to read for an attempt.
|
||||
This task has no recorded run.
|
||||
</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
Reference in new issue
Block a user