TenantAtlas/app/Filament/Resources
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
..
AlertDeliveryResource/Pages feat: canonical tenant context resolution (#164) 2026-03-11 21:24:28 +00:00
AlertDestinationResource/Pages Spec 103: IA semantics (scope vs filter vs targeting) + UI polish (#126) 2026-02-21 00:28:15 +00:00
AlertRuleResource/Pages Spec 103: IA semantics (scope vs filter vs targeting) + UI polish (#126) 2026-02-21 00:28:15 +00:00
BackupScheduleResource feat: add tenant governance aggregate contract and action surface follow-ups (#199) 2026-03-29 21:14:17 +00:00
BackupSetResource feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
BaselineProfileResource feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
BaselineSnapshotResource/Pages feat: add baseline snapshot truth guards (#189) 2026-03-23 11:32:00 +00:00
EntraGroupResource/Pages feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
EvidenceSnapshotResource/Pages feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
FindingExceptionResource/Pages feat: harden finding governance health surfaces (#197) 2026-03-28 10:11:12 +00:00
FindingResource/Pages feat: align tenant dashboard truth surfaces (#204) 2026-04-03 20:26:15 +00:00
InventoryItemResource/Pages feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
PolicyResource feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
PolicyVersionResource/Pages feat: add request-scoped derived state memoization (#198) 2026-03-28 14:58:30 +00:00
ProviderConnectionResource/Pages feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
RestoreRunResource/Pages feat: tenant-owned query canon and wrong-tenant guards (#180) 2026-03-18 08:33:13 +00:00
ReviewPackResource/Pages Fix Review Pack generation UX + notifications (#133) 2026-02-23 19:42:52 +00:00
TenantResource feat: retrofit deferred operator surfaces (#203) 2026-04-02 09:22:44 +00:00
TenantReviewResource/Pages feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
Workspaces feat: implement spec 169 action surface contract v1.1 (#200) 2026-03-30 09:21:39 +00:00
AlertDeliveryResource.php feat: implement spec 169 action surface contract v1.1 (#200) 2026-03-30 09:21:39 +00:00
AlertDestinationResource.php feat: add tenant governance aggregate contract and action surface follow-ups (#199) 2026-03-29 21:14:17 +00:00
AlertRuleResource.php feat: add tenant governance aggregate contract and action surface follow-ups (#199) 2026-03-29 21:14:17 +00:00
BackupScheduleResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
BackupSetResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
BaselineProfileResource.php feat: implement spec 169 action surface contract v1.1 (#200) 2026-03-30 09:21:39 +00:00
BaselineSnapshotResource.php feat: implement spec 169 action surface contract v1.1 (#200) 2026-03-30 09:21:39 +00:00
EntraGroupResource.php feat: tenant-owned query canon and wrong-tenant guards (#180) 2026-03-18 08:33:13 +00:00
EvidenceSnapshotResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
FindingExceptionResource.php feat: harden finding governance health surfaces (#197) 2026-03-28 10:11:12 +00:00
FindingResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
InventoryItemResource.php feat: tenant-owned query canon and wrong-tenant guards (#180) 2026-03-18 08:33:13 +00:00
OperationRunResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
PolicyResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
PolicyVersionResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
ProviderConnectionResource.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
RestoreRunResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
ReviewPackResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00
TenantResource.php feat: complete provider truth cleanup (#207) 2026-04-05 00:48:31 +00:00
TenantReviewResource.php feat: consolidate operation naming surfaces (#202) 2026-03-30 22:51:06 +00:00