mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-10 22:43:37 +00:00
fix(web): always show run size chip in run header
The size chip was gated on billing.total_usd_micros, so it only appeared after a run reached a terminal state. summary.size is always present, so render the chip unconditionally and only append the billed amount to the tooltip when available. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
57d7d868c1
commit
7d4aa474fc
1 changed files with 5 additions and 2 deletions
|
|
@ -562,8 +562,11 @@ export default function RunDetail({ params }: { params: { id: string } }) {
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
const totalUsdMicros = summary.billing?.total_usd_micros;
|
const totalUsdMicros = summary.billing?.total_usd_micros;
|
||||||
const sizeChip = totalUsdMicros != null && (
|
const sizeTooltip = totalUsdMicros != null
|
||||||
<Tooltip label={`Size ${summary.size} · ${formatUsdMicros(totalUsdMicros)} billed`}>
|
? `Size ${summary.size} · ${formatUsdMicros(totalUsdMicros)} billed`
|
||||||
|
: `Size ${summary.size}`;
|
||||||
|
const sizeChip = (
|
||||||
|
<Tooltip label={sizeTooltip}>
|
||||||
<span className="rounded bg-overlay px-1.5 py-0.5 font-mono text-xs font-bold text-fg-muted tabular-nums">
|
<span className="rounded bg-overlay px-1.5 py-0.5 font-mono text-xs font-bold text-fg-muted tabular-nums">
|
||||||
{summary.size}
|
{summary.size}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue