@php /** @var \App\Models\OperationRun $run */ $run = $this->run; $statusSpec = \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::OperationRunStatus, (string) $run->status, ); $outcomeSpec = (string) $run->status === 'completed' ? \App\Support\Badges\BadgeRenderer::spec( \App\Support\Badges\BadgeDomain::OperationRunOutcome, (string) $run->outcome, ) : null; $summaryCounts = is_array($run->summary_counts) ? $run->summary_counts : []; $hasSummary = count($summaryCounts) > 0; @endphp
Run #{{ (int) $run->getKey() }} {{ \App\Support\OperationCatalog::label((string) $run->type) }}
{{ $statusSpec->label }} @if ($outcomeSpec) {{ $outcomeSpec->label }} @endif
Workspace
{{ $run->workspace?->name ?? 'Unknown workspace' }}
Tenant
{{ $run->tenant?->name ?? 'Tenantless' }}
Started
{{ $run->started_at?->toDayDateTimeString() ?? '—' }}
Completed
{{ $run->completed_at?->toDayDateTimeString() ?? '—' }}
Initiator
{{ (string) ($run->initiator_name ?? '—') }}
Runbooks
Go to runbooks
@if ($hasSummary) Summary counts
@foreach ($summaryCounts as $key => $value)

{{ \Illuminate\Support\Str::headline((string) $key) }}

{{ is_numeric($value) ? number_format((int) $value) : $value }}

@endforeach
@endif @if (! empty($run->failure_summary))
Failures
@include('filament.partials.json-viewer', ['value' => $run->failure_summary])
@endif