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

+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 />