## 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
25 lines
1.1 KiB
PHP
25 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Support\Badges\BadgeCatalog;
|
|
use App\Support\Badges\BadgeDomain;
|
|
|
|
it('maps all evidence snapshot statuses and completeness states to known badge specs', function (BadgeDomain $domain, string $value): void {
|
|
$spec = BadgeCatalog::spec($domain, $value);
|
|
|
|
expect($spec->label)->not->toBe('Unknown')
|
|
->and($spec->icon)->not->toBeNull();
|
|
})->with([
|
|
'queued status' => [BadgeDomain::EvidenceSnapshotStatus, 'queued'],
|
|
'generating status' => [BadgeDomain::EvidenceSnapshotStatus, 'generating'],
|
|
'active status' => [BadgeDomain::EvidenceSnapshotStatus, 'active'],
|
|
'superseded status' => [BadgeDomain::EvidenceSnapshotStatus, 'superseded'],
|
|
'expired status' => [BadgeDomain::EvidenceSnapshotStatus, 'expired'],
|
|
'failed status' => [BadgeDomain::EvidenceSnapshotStatus, 'failed'],
|
|
'complete completeness' => [BadgeDomain::EvidenceCompleteness, 'complete'],
|
|
'partial completeness' => [BadgeDomain::EvidenceCompleteness, 'partial'],
|
|
'missing completeness' => [BadgeDomain::EvidenceCompleteness, 'missing'],
|
|
'stale completeness' => [BadgeDomain::EvidenceCompleteness, 'stale'],
|
|
]);
|