feat(webui): link parked tasks to the page that fixes their blocker
This commit is contained in:
24 files changed
+214
-50
No files matched your search
@@ -176,6 +176,9 @@ const headerActions = computed(() =>
|
||||
<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="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>
|
||||
</Button>
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</div>
|
||||
|
||||
@@ -92,6 +92,8 @@ export interface AttemptsState {
|
||||
outputs?: Record<string, unknown>;
|
||||
/** The task whose workflow.call started this one. */
|
||||
called_by?: number;
|
||||
/** The page that fixes a parked task's blocker, when the viewer may act there. */
|
||||
recovery?: { blocker: string; label: string; link: string };
|
||||
}
|
||||
|
||||
/** One event off the task's stream, as much of it as this page reads. */
|
||||
|
||||
Reference in new issue
Block a user