fix(ui): show a parked task's error once and wrap long log lines on a phone
This commit is contained in:
1 parent
8d0d707d3e
commit
30105666e2
5 files changed
+9
-9
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user