fix(ui): drop the duplicate start time from a task's stages

This commit is contained in:
sam committed 2026-10-19 01:59:47 +11:00
1 parent d23c3031bf
commit 25bd601a63
2 files changed
+64 -76

No files matched your search

-12
View File
@@ -79,17 +79,6 @@ const timeLimit = computed(() => {
}
return `${duration(Math.max(0, now.value.getTime() - started))} used of ${limit} limit`;
});
/** An attempt's start is rendered as an absolute instant, never as "started 2
* days ago": on a still-running attempt a relative stamp reads as two days of
* work, which is exactly the elapsed-time claim the design forbids. */
const startedAt = computed(() => {
const value = attempt.value?.started_at;
if (!value) return "start time not recorded";
const when = new Date(value);
if (Number.isNaN(when.getTime())) return "start time not recorded";
return `started ${when.toISOString().replace("T", " ").slice(0, 16)} UTC`;
});
</script>
<template>
@@ -122,7 +111,6 @@ const startedAt = computed(() => {
<div v-else>
<div class="flex flex-wrap items-center gap-3" :class="stages.length || attempt.error ? 'mb-4' : undefined">
<Badge :variant="meta.kind">{{ meta.label }}</Badge>
<span class="text-xs text-fg-muted">{{ startedAt }}</span>
<span v-if="timeLimit" class="text-xs text-fg-muted">{{
timeLimit
}}</span>