fix(ui): show a parked task's error once and wrap long log lines on a phone

This commit is contained in:
sam committed 2026-10-19 01:47:34 +11:00
1 parent 8d0d707d3e
commit 30105666e2
5 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -127,7 +127,7 @@ const startedAt = computed(() => {
timeLimit
}}</span>
</div>
<p v-if="attempt.error" role="alert" class="mb-3 whitespace-pre-wrap break-words text-sm text-danger">{{ attempt.error }}</p>
<p v-if="attempt.error && attempt.error !== run.task?.park_reason" role="alert" class="mb-3 whitespace-pre-wrap break-words text-sm text-danger">{{ attempt.error }}</p>
<ol
v-if="stages.length"
:aria-label="`Stages recorded in attempt ${attempt.attempt}`"
@@ -142,7 +142,7 @@ const startedAt = computed(() => {
@select="selectStage(stage)"
/>
</ol>
<Empty v-else>
<Empty v-else-if="!attempt.error">
<EmptyHeader>
<EmptyTitle>No workflow steps recorded</EmptyTitle>
</EmptyHeader>
+1 -1
View File
@@ -174,7 +174,7 @@ const headerActions = computed(() =>
<Button variant="ghost" size="sm" :disabled="jumping || run.attemptNumber == null" @click="jumpToLog">Jump to log line</Button>
</AlertTitle>
<AlertDescription>
<p v-if="failure.detail" class="mt-0.5 font-mono text-xs break-words text-fg-muted">{{ failure.detail }}</p>
<p v-if="failure.detail" class="mt-0.5 font-mono text-xs text-fg-muted [overflow-wrap:anywhere]">{{ failure.detail }}</p>
<p v-if="jumpError" class="mt-1 text-xs" role="alert">{{ jumpError }}</p>
<Button v-if="failure.parked && run.attempts?.recovery" as-child size="sm" class="mt-2">
<RouterLink :to="run.attempts.recovery.link">{{ run.attempts.recovery.label }}</RouterLink>