## Summary - add the Evidence Snapshot domain with immutable tenant-scoped snapshots, per-dimension items, queued generation, audit actions, badge mappings, and Filament list/detail surfaces - add the workspace evidence overview, capability and policy wiring, Livewire update-path hardening, and review-pack integration through explicit evidence snapshot resolution - add spec 153 artifacts, migrations, factories, and focused Pest coverage for evidence, review-pack reuse, authorization, action-surface regressions, and audit behavior ## Testing - `vendor/bin/sail artisan test --compact --stop-on-failure` - `CI=1 vendor/bin/sail artisan test --compact` - `vendor/bin/sail bin pint --dirty --format agent` ## Notes - branch: `153-evidence-domain-foundation` - commit: `b7dfa279` - spec: `specs/153-evidence-domain-foundation/` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #183
44 lines
2.6 KiB
PHP
44 lines
2.6 KiB
PHP
<x-filament-panels::page>
|
|
<div class="space-y-6">
|
|
@if ($rows === [])
|
|
<div class="rounded-xl border border-dashed border-gray-300 bg-white p-8 text-center shadow-sm">
|
|
<h2 class="text-lg font-semibold text-gray-950">No evidence snapshots in this scope</h2>
|
|
<p class="mt-2 text-sm text-gray-600">Adjust filters or create a tenant snapshot to populate the workspace overview.</p>
|
|
<div class="mt-4">
|
|
<a href="{{ route('admin.evidence.overview') }}" class="inline-flex items-center rounded-lg bg-gray-900 px-4 py-2 text-sm font-medium text-white">
|
|
Clear filters
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@else
|
|
<div class="overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm">
|
|
<table class="min-w-full divide-y divide-gray-200 text-sm">
|
|
<thead class="bg-gray-50 text-left text-gray-600">
|
|
<tr>
|
|
<th class="px-4 py-3 font-medium">Tenant</th>
|
|
<th class="px-4 py-3 font-medium">Completeness</th>
|
|
<th class="px-4 py-3 font-medium">Generated</th>
|
|
<th class="px-4 py-3 font-medium">Missing</th>
|
|
<th class="px-4 py-3 font-medium">Stale</th>
|
|
<th class="px-4 py-3 font-medium">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-gray-100 bg-white text-gray-900">
|
|
@foreach ($rows as $row)
|
|
<tr>
|
|
<td class="px-4 py-3">{{ $row['tenant_name'] }}</td>
|
|
<td class="px-4 py-3">{{ ucfirst(str_replace('_', ' ', $row['completeness_state'])) }}</td>
|
|
<td class="px-4 py-3">{{ $row['generated_at'] ?? '—' }}</td>
|
|
<td class="px-4 py-3">{{ $row['missing_dimensions'] }}</td>
|
|
<td class="px-4 py-3">{{ $row['stale_dimensions'] }}</td>
|
|
<td class="px-4 py-3">
|
|
<a href="{{ $row['view_url'] }}" class="text-primary-600 hover:text-primary-500">View tenant evidence</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</x-filament-panels::page> |