TenantAtlas/apps/platform/app/Filament
ahmido 5248654691 feat: retire tenant panel runtime dead code (#359)
## Summary
- retire remaining legacy tenant-panel runtime assumptions in the Filament admin runtime and route resolution paths
- centralize canonical admin environment context handling for shared surfaces instead of relying on deprecated `tenant` panel behavior
- harden guard coverage so legacy `/admin/t` and `/admin/tenants` route families cannot regress
- update scoped navigation, drillthrough, reference-link, and global-search tests to use the admin panel environment runtime
- add the Spec 304 package under `specs/304-tenant-panel-dead-code-retirement/` and document the rollout in the product ledger

## Test Coverage Updated
- `AdminSharedSurfacePanelParityTest`
- `NoActiveTenantResourceRoutesTest`
- `NoLegacyTenantPanelRuntimeTest`
- `AdminTenantResolverGuardTest`
- `PolicyVersionResolvedReferenceLinksTest`
- `EntraGroupGlobalSearchScopeTest`
- `OperationsDashboardDrillthroughTest`

## Runtime Notes
- remains compliant with Filament v5 on Livewire v4
- no provider registration changes; provider registration location remains `apps/platform/bootstrap/providers.php`
- no new globally searchable resource was introduced; existing scoped search assertions were updated only
- no destructive actions were added or changed
- no asset registration changes; deploy posture for `cd apps/platform && php artisan filament:assets` is unchanged

## Validation
- updated tests and docs/spec artifacts were committed in this branch
- tests were not re-run in this turn

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #359
2026-05-14 23:57:36 +00:00
..
Clusters feat(specs/301): admin inventory navigation cutover (#356) 2026-05-14 14:50:08 +00:00
Concerns refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Pages feat: retire tenant panel runtime dead code (#359) 2026-05-14 23:57:36 +00:00
Resources feat: cut over admin directory groups (#358) 2026-05-14 22:44:44 +00:00
Support feat: cut over tenant core to managed environments (#335) 2026-05-07 06:38:14 +00:00
System refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00
Widgets refactor: consolidate internal tenant model naming (#355) 2026-05-14 11:13:28 +00:00