fix(ui): give service problems room and drop rows and bars with nothing to say

This commit is contained in:
sam committed 2026-10-24 11:41:48 +11:00
1 parent 61d25447e6
commit 3af3717a90
4 files changed
+85 -88

No files matched your search

+3 -3
View File
@@ -187,7 +187,7 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
<span class="flex items-baseline gap-2">
<span class="min-w-0 flex-1 truncate text-[13px]" :class="row.id === selected && 'font-medium'">{{ row.id }}</span>
<Badge v-if="store.drafts.some((draft) => draft.id === row.id)" variant="outline">Draft</Badge>
<span v-if="row.avg_tokens" class="font-mono text-xs text-fg-subtle">{{ compact(row.avg_tokens) }}</span>
<span v-if="row.avg_tokens" class="font-mono text-xs text-fg-subtle" :title="`${row.avg_tokens.toLocaleString()} tokens per run on average`">{{ compact(row.avg_tokens) }} tok</span>
</span>
<span class="mt-1.5 flex items-center gap-2 text-xs text-fg-subtle">
<span v-if="live.get(row.id)?.running" class="flex w-20 shrink-0 items-center gap-1.5 text-info">
@@ -195,10 +195,10 @@ const rate = (deliveredRuns = 0, total = 0) => (total ? deliveredRuns / total :
</span>
<span v-else-if="live.get(row.id)?.last" class="w-20 shrink-0 truncate" :title="`Latest run: ${statusLabel(live.get(row.id)?.last?.status ?? '')}`">{{ statusLabel(live.get(row.id)?.last?.status ?? "") }}</span>
<span v-else class="w-20 shrink-0">–</span>
<span class="h-1 flex-1 overflow-hidden rounded-full bg-border" role="img" :aria-label="`${delivered(row)} of ${row.runs ?? 0} runs delivered`" :title="`${delivered(row)} of ${row.runs ?? 0} runs delivered`">
<span v-if="row.runs" class="h-1 flex-1 overflow-hidden rounded-full bg-border" role="img" :aria-label="`${delivered(row)} of ${row.runs ?? 0} runs delivered`" :title="`${delivered(row)} of ${row.runs ?? 0} runs delivered`">
<span class="block h-full rounded-full bg-primary" :style="{ width: `${rate(delivered(row), row.runs) * 100}%` }" />
</span>
<span class="w-16 shrink-0 text-right font-mono" aria-hidden="true">{{ delivered(row) }}/{{ row.runs ?? 0 }}</span>
<span v-if="row.runs" class="w-16 shrink-0 text-right font-mono" aria-hidden="true">{{ delivered(row) }}/{{ row.runs }}</span>
</span>
</button>
</li>