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
@@ -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