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:
43 files changed
+239
-315
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
|
||||
import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
|
||||
import SlowestStagesCard from "./SlowestStagesCard.vue";
|
||||
import StageFailuresCard from "./StageFailuresCard.vue";
|
||||
import type { StageStats } from "./stages";
|
||||
@@ -28,7 +28,6 @@ const props = defineProps<{ stages: StageStats[] }>();
|
||||
<Empty>
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No stage data yet</EmptyTitle>
|
||||
<EmptyDescription>Stage timing and failures appear here once workflows have run.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
</CardContent>
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import { RefreshCw } from "@lucide/vue";
|
||||
import { onMounted, ref } from "vue";
|
||||
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
|
||||
import { api } from "@/lib/api";
|
||||
import { useLiveResource } from "@/stores/live-updates";
|
||||
import StartWorkForm from "./StartWorkForm.vue";
|
||||
import type { StageStats } from "./stages";
|
||||
import StagesSection from "./StagesSection.vue";
|
||||
@@ -38,17 +37,13 @@ async function load() {
|
||||
}
|
||||
}
|
||||
|
||||
useLiveResource("tasks", () => void load(), 500);
|
||||
onMounted(load);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="Workflows" subtitle="Run outcomes and spend per workflow, and where stages get stuck.">
|
||||
<Button variant="outline" @click="load">
|
||||
<RefreshCw data-icon="inline-start" />
|
||||
Refresh
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<PageHeader title="Workflows" subtitle="Run outcomes and spend per workflow, and where stages get stuck." />
|
||||
|
||||
<!-- Starting work needs a definition to start: with none served, the form
|
||||
could only be submitted to fail. -->
|
||||
|
||||
Reference in new issue
Block a user