TenantAtlas/app/Support/Badges/Domains
ahmido dc46c4fa58 feat: complete provider truth cleanup (#207)
## Summary
- implement Spec 179 to make tenant lifecycle, provider consent, and provider verification the primary truth axes on the targeted Filament surfaces
- demote legacy tenant app status and legacy provider status and health to diagnostic-only roles, add centralized badge mappings for provider consent and verification, and keep provider connections excluded from global search
- add the full Spec 179 artifact set under `specs/179-provider-truth-cleanup/` plus focused Pest coverage for tenant truth cleanup, provider truth cleanup, RBAC, discovery safety, and badge semantics
- fix the numeric out-of-scope tenant route regression so inaccessible `/admin/tenants/{id}` paths return `404 Not Found` instead of `500`

## Testing
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantLifecycleStatusDomainSeparationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantTruthCleanupSpec179Test.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/ProviderConnectionsDbOnlyTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/ProviderConnectionTruthCleanupSpec179Test.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/RequiredFiltersTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Tenants/TenantProviderConnectionsCtaTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Rbac/TenantResourceAuthorizationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/ProviderConnectionListAuthorizationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ProviderConnections/ProviderConnectionAuthorizationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Rbac/AdminGlobalSearchContextSafetyTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantGlobalSearchLifecycleScopeTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantScopingTest.php`
- `vendor/bin/sail artisan test --compact tests/Unit/Badges/TenantBadgesTest.php`
- `vendor/bin/sail artisan test --compact tests/Unit/Badges/ProviderConnectionBadgesTest.php`

## Manual validation
- integrated-browser smoke on `/admin/tenants`, tenant detail, `/admin/provider-connections`, provider detail, and provider edit
- verified out-of-scope tenant and provider URLs return `404 Not Found` with the current session

## Notes
- branch: `179-provider-truth-cleanup`
- commit: `e54c6632`
- target: `dev`

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #207
2026-04-05 00:48:31 +00:00
..
AlertDeliveryStatusBadge.php feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
AlertDestinationLastTestStatusBadge.php feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
AuditActorTypeBadge.php feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
AuditOutcomeBadge.php feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
BackupSetStatusBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
BaselineProfileStatusBadge.php Spec 116: Baseline drift engine v1 (meta fidelity + coverage guard) (#141) 2026-03-02 22:02:58 +00:00
BaselineSnapshotFidelityBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
BaselineSnapshotGapStatusBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
BaselineSnapshotLifecycleBadge.php feat: add baseline snapshot truth guards (#189) 2026-03-23 11:32:00 +00:00
BooleanEnabledBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
BooleanHasErrorsBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
DiffRowStatusBadge.php feat: add shared diff presentation foundation (#170) 2026-03-14 12:32:08 +00:00
EvidenceCompletenessBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
EvidenceSnapshotStatusBadge.php feat: implement evidence domain foundation (#183) 2026-03-19 13:32:52 +00:00
FindingExceptionStatusBadge.php feat: implement finding risk acceptance lifecycle (#184) 2026-03-20 01:07:55 +00:00
FindingRiskGovernanceValidityBadge.php feat: harden finding governance health surfaces (#197) 2026-03-28 10:11:12 +00:00
FindingSeverityBadge.php feat: Workspace settings slices v1 (backup, drift, operations) (#120) 2026-02-16 03:18:33 +00:00
FindingStatusBadge.php feat: harden finding governance health surfaces (#197) 2026-03-28 10:11:12 +00:00
FindingTypeBadge.php feat: Spec 105 — Entra Admin Roles Evidence + Findings (#128) 2026-02-22 02:37:36 +00:00
GovernanceArtifactActionabilityBadge.php feat: implement governance artifact truth semantics (#188) 2026-03-23 00:13:57 +00:00
GovernanceArtifactContentBadge.php feat: implement governance artifact truth semantics (#188) 2026-03-23 00:13:57 +00:00
GovernanceArtifactExistenceBadge.php feat: implement governance artifact truth semantics (#188) 2026-03-23 00:13:57 +00:00
GovernanceArtifactFreshnessBadge.php feat: implement governance artifact truth semantics (#188) 2026-03-23 00:13:57 +00:00
GovernanceArtifactPublicationReadinessBadge.php feat: implement governance artifact truth semantics (#188) 2026-03-23 00:13:57 +00:00
IgnoredAtBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
ManagedTenantOnboardingVerificationStatusBadge.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
OperationRunOutcomeBadge.php feat: harden operation lifecycle monitoring (#190) 2026-03-23 21:53:19 +00:00
OperationRunStatusBadge.php feat: harden operation lifecycle monitoring (#190) 2026-03-23 21:53:19 +00:00
OperatorExplanationEvaluationResultBadge.php feat: harden baseline compare summary trust surfaces (#196) 2026-03-27 00:19:53 +00:00
OperatorExplanationTrustworthinessBadge.php feat: implement operator explanation layer (#191) 2026-03-24 11:24:33 +00:00
PolicyRestoreModeBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
PolicyRiskBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
PolicySnapshotModeBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
ProviderConnectionHealthBadge.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConnectionStatusBadge.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ProviderConsentStatusBadge.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
ProviderVerificationStatusBadge.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
ReferenceResolutionStateBadge.php feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
RestoreCheckSeverityBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
RestorePreviewDecisionBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
RestoreResultStatusBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
RestoreRunStatusBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
ReviewPackStatusBadge.php Fix Review Pack generation UX + notifications (#133) 2026-02-23 19:42:52 +00:00
SystemHealthBadge.php feat(114): system console control tower (merged) (#139) 2026-02-28 00:15:31 +00:00
TenantAppStatusBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
TenantPermissionStatusBadge.php 059-unified-badges (#71) 2026-01-22 23:44:51 +00:00
TenantRbacStatusBadge.php feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
TenantReviewCompletenessStateBadge.php feat: normalize operator outcome taxonomy (#186) 2026-03-22 12:13:34 +00:00
TenantReviewStatusBadge.php feat: add tenant review layer (#185) 2026-03-21 22:03:01 +00:00
TenantStatusBadge.php feat: centralize tenant lifecycle presentation (#175) 2026-03-16 18:18:53 +00:00
VerificationCheckSeverityBadge.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00
VerificationCheckStatusBadge.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00
VerificationReportOverallBadge.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00