fix(webui): stop empty states re-deriving their own titles

A title that states the fact does not need a description that derives it:
the log, panels, lifecycle lists, dashboard cards, stages, skills and
captures empty states now say the fact once, and keep only the
descriptions that carry an action, a cause, or a distinct reading.
This commit is contained in:
sam committed 2026-09-21 00:56:24 +10:00
1 parent 578c0f5a2d
commit 050f833a23
43 files changed
+239 -315

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ import { configError } from "./state";
<EmptyTitle>{{ configError ? "Cannot reach archied" : "No configuration loaded" }}</EmptyTitle>
<EmptyDescription v-if="configError">{{ configError }}</EmptyDescription>
<EmptyDescription v-else>
archied is running without a config file wired into the dashboard, so there is nothing to show.
archied is running without a config file wired into the dashboard.
</EmptyDescription>
</EmptyHeader>
</Empty>
+1 -2
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { Button, type ButtonVariants } from "@/components/ui/button";
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import ConfigList from "./ConfigList.vue";
import ConfigRow from "./ConfigRow.vue";
import type { LifecycleEntry } from "./types";
@@ -26,7 +26,6 @@ function actionVariant(kind?: string): ButtonVariants["variant"] {
<Empty v-if="!props.actions.length">
<EmptyHeader>
<EmptyTitle>No actions reported</EmptyTitle>
<EmptyDescription>The server did not return any operator actions.</EmptyDescription>
</EmptyHeader>
</Empty>
<ConfigList v-else>
+1 -2
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { Badge } from "@/components/ui/badge";
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import type { StatusKind } from "@/lib/status";
import { statusKind, statusLabel } from "@/lib/task-meta";
import ConfigList from "./ConfigList.vue";
@@ -21,7 +21,6 @@ const props = defineProps<{ statuses: LifecycleEntry[] }>();
<Empty v-if="!props.statuses.length">
<EmptyHeader>
<EmptyTitle>No statuses reported</EmptyTitle>
<EmptyDescription>The server did not return any lifecycle statuses.</EmptyDescription>
</EmptyHeader>
</Empty>
<ConfigList v-else>
+3 -8
View File
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { RefreshCw } from "@lucide/vue";
import { onMounted } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
import { useLiveResource } from "@/stores/live-updates";
import ConfigSections from "./ConfigSections.vue";
import ConfigUnavailable from "./ConfigUnavailable.vue";
import DangerousActionsCard from "./DangerousActionsCard.vue";
@@ -23,17 +22,13 @@ async function load(): Promise<void> {
await Promise.all([loadConfig(), loadDangerous()]);
}
useLiveResource(null, () => void load());
onMounted(load);
</script>
<template>
<div>
<PageHeader title="Advanced" subtitle="Identity, storage and sandboxing, and dangerous actions.">
<Button variant="outline" @click="load">
<RefreshCw data-icon="inline-start" />
Refresh
</Button>
</PageHeader>
<PageHeader title="Advanced" subtitle="Identity, storage and sandboxing, and dangerous actions." />
<ReadOnlyNotice />
<ConfigUnavailable v-if="configUnavailable" />
+3 -8
View File
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { RefreshCw } from "@lucide/vue";
import { onMounted } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
import { useLiveResource } from "@/stores/live-updates";
import ConfigUnavailable from "./ConfigUnavailable.vue";
import ModelsCard from "./ModelsCard.vue";
import { configUnavailable, loadConfig } from "./state";
@@ -13,17 +12,13 @@ import { configUnavailable, loadConfig } from "./state";
* Nothing on this page is editable from the dashboard: a model role is a
* structured field, and the server keeps those behind its own config path.
*/
useLiveResource(null, () => void loadConfig());
onMounted(loadConfig);
</script>
<template>
<div>
<PageHeader title="Models" subtitle="Model roles, and the providers backing them.">
<Button variant="outline" @click="loadConfig">
<RefreshCw data-icon="inline-start" />
Refresh
</Button>
</PageHeader>
<PageHeader title="Models" subtitle="Model roles, and the providers backing them." />
<ConfigUnavailable v-if="configUnavailable" />
<ModelsCard v-else />
+3 -8
View File
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { RefreshCw } from "@lucide/vue";
import { onMounted } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
import { useLiveResource } from "@/stores/live-updates";
import ConfigUnavailable from "./ConfigUnavailable.vue";
import ReadOnlyNotice from "./ReadOnlyNotice.vue";
import RepositoriesCard from "./RepositoriesCard.vue";
@@ -12,17 +11,13 @@ import { configUnavailable, loadConfig } from "./state";
/**
* The repositories Archie watches, and the gate overrides each one carries.
*/
useLiveResource(null, () => void loadConfig());
onMounted(loadConfig);
</script>
<template>
<div>
<PageHeader title="Repositories" subtitle="The repositories Archie polls, and their per-repo gate overrides.">
<Button variant="outline" @click="loadConfig">
<RefreshCw data-icon="inline-start" />
Refresh
</Button>
</PageHeader>
<PageHeader title="Repositories" subtitle="The repositories Archie polls, and their per-repo gate overrides." />
<ReadOnlyNotice />
<ConfigUnavailable v-if="configUnavailable" />
+3 -8
View File
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { RefreshCw } from "@lucide/vue";
import { onMounted } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
import { useLiveResource } from "@/stores/live-updates";
import ConfigNotices from "./ConfigNotices.vue";
import ConfigSections from "./ConfigSections.vue";
import ConfigUnavailable from "./ConfigUnavailable.vue";
@@ -27,17 +26,13 @@ async function load(): Promise<void> {
await Promise.all([loadConfig(), loadVersion(), loadUpdate()]);
}
useLiveResource("updates", () => void load());
onMounted(load);
</script>
<template>
<div>
<PageHeader title="Status" subtitle="What archied is running with right now.">
<Button variant="outline" @click="load">
<RefreshCw data-icon="inline-start" />
Refresh
</Button>
</PageHeader>
<PageHeader title="Status" subtitle="Runtime health, versions, updates, and configuration." />
<!-- Only the configuration projection is gated on the config read: update
checking and the reload notices come from other endpoints, so a config
+3 -8
View File
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { RefreshCw } from "@lucide/vue";
import { onMounted } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
import { useLiveResource } from "@/stores/live-updates";
import ConfigSections from "./ConfigSections.vue";
import ConfigUnavailable from "./ConfigUnavailable.vue";
import LifecycleCard from "./LifecycleCard.vue";
@@ -19,17 +18,13 @@ async function load(): Promise<void> {
await Promise.all([loadConfig(), loadLifecycle()]);
}
useLiveResource(null, () => void load());
onMounted(load);
</script>
<template>
<div>
<PageHeader title="Task settings" subtitle="How work moves through archied, and what it is allowed to spend.">
<Button variant="outline" @click="load">
<RefreshCw data-icon="inline-start" />
Refresh
</Button>
</PageHeader>
<PageHeader title="Task settings" subtitle="How work moves through archied, and what it is allowed to spend." />
<ReadOnlyNotice />
<LifecycleCard />