TenantAtlas/resources/views/filament/system/pages/ops/runbooks.blade.php

60 lines
3.1 KiB
PHP

<x-filament-panels::page>
<div class="space-y-6">
<div class="rounded-lg border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-100">
<div class="text-sm font-semibold">Operator warning</div>
<div class="mt-1 text-sm">
Runbooks can modify customer data across tenants. Always run preflight first, and ensure you have the correct scope selected.
</div>
</div>
<div class="rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900">
<div class="flex items-start justify-between gap-4">
<div>
<div class="text-sm font-semibold text-gray-900 dark:text-gray-100">
Rebuild Findings Lifecycle
</div>
<div class="mt-1 text-sm text-gray-600 dark:text-gray-300">
Backfills legacy findings lifecycle fields, SLA due dates, and consolidates drift duplicate findings.
</div>
</div>
<div class="text-xs text-gray-500 dark:text-gray-400">
Scope: {{ $this->scopeLabel() }}
</div>
</div>
<div class="mt-4 border-t border-gray-100 pt-4 text-sm text-gray-700 dark:border-gray-800 dark:text-gray-200">
@if (is_array($this->preflight))
<div class="grid grid-cols-1 gap-3 sm:grid-cols-3">
<div class="rounded-md bg-gray-50 p-3 dark:bg-gray-800">
<div class="text-xs text-gray-500 dark:text-gray-400">Affected</div>
<div class="mt-1 font-semibold">{{ (int) ($this->preflight['affected_count'] ?? 0) }}</div>
</div>
<div class="rounded-md bg-gray-50 p-3 dark:bg-gray-800">
<div class="text-xs text-gray-500 dark:text-gray-400">Total scanned</div>
<div class="mt-1 font-semibold">{{ (int) ($this->preflight['total_count'] ?? 0) }}</div>
</div>
<div class="rounded-md bg-gray-50 p-3 dark:bg-gray-800">
<div class="text-xs text-gray-500 dark:text-gray-400">Estimated tenants</div>
<div class="mt-1 font-semibold">{{ is_numeric($this->preflight['estimated_tenants'] ?? null) ? (int) $this->preflight['estimated_tenants'] : '—' }}</div>
</div>
</div>
@if ((int) ($this->preflight['affected_count'] ?? 0) <= 0)
<div class="mt-3 text-sm text-gray-600 dark:text-gray-300">
Nothing to do for the current scope.
</div>
@endif
@else
<div>
Run <span class="font-medium">Preflight</span> to see how many findings would change for the selected scope.
</div>
@endif
</div>
</div>
</div>
</x-filament-panels::page>