TenantAtlas/tests/Feature/Filament
ahmido fb1046c97a Spec 077: Workspace Global Mode + context bar redundancy cleanup (#94)
Implements Spec 077 refinements: workspace Global Mode and navigation/context-bar redundancy cleanup.

Summary
- Global Mode: `/admin/workspaces` is workspace-optional (lists only member workspaces); explicit allowlist in `EnsureWorkspaceSelected`.
- Navigation cleanup: workspace switching is topbar-only; no sidebar “Switch workspace”; removes redundant “Manage workspaces” entry from context-bar.
- Context bar: when no workspace selected, tenant picker is disabled with guidance; on tenant-scoped routes `/admin/t/{tenant}/…` the tenant indicator is read-only (Filament tenant menu remains primary).
- Authorization: workspace creation is policy-driven (`WorkspacePolicy::create()`), enforced in `ChooseWorkspace` via Gate.

Safety / Compliance
- Livewire v4.0+ compliant (Filament v5).
- Panel provider registration remains in `bootstrap/providers.php` (no changes required).
- Global search: no new globally searchable resources added; no behavior changes introduced.
- Destructive actions: none added/changed.
- Assets: no new assets registered; deploy process unchanged (if assets are registered elsewhere, ensure `php artisan filament:assets` runs in deploy as usual).

Tests
- `vendor/bin/sail bin pint --dirty`
- `vendor/bin/sail artisan test --compact tests/Feature/Workspaces tests/Feature/Monitoring tests/Feature/OpsUx tests/Feature/Filament/WorkspaceContextTopbarAndTenantSelectionTest.php`

Spec artifacts
- `specs/077-workspace-nav-monitoring-hub/{spec,plan,tasks}.md`
- `specs/077-workspace-nav-monitoring-hub/contracts/routes.md`

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@MacBookPro.fritz.box>
Reviewed-on: #94
2026-02-06 22:14:53 +00:00
..
AdminHomeRedirectsToChooseTenantWhenWorkspaceSelectedTest.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
AdminSmokeTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
AppProtectionPolicySettingsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ArchivedTenantViewTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
BackupCreationTest.php 015-policy-picker-ux (#21) 2026-01-02 13:59:15 +00:00
BackupItemsBulkRemoveTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
BackupItemsNoPollingTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
BackupSetGraphSafetyTest.php feat/048-backup-restore-ui-graph-safety (#55) 2026-01-11 00:14:35 +00:00
BackupSetPolicyPickerTableTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BackupSetUiEnforcementTest.php feat/066-rbac-ui-enforcement-helper-v2 (#83) 2026-01-30 17:28:47 +00:00
ChooseTenantEmptyStateRegisterTenantCtaVisibilityTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ChooseTenantIsWorkspaceScopedTest.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
ChooseTenantRequiresWorkspaceTest.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
ChooseWorkspaceShowsLastUsedRecommendationTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
ConditionalAccessPreviewOnlyTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
EnrollmentAutopilotSettingsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
EnrollmentRestrictionsPreviewOnlyTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
EntraGroupSyncRunResourceTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
FilamentBootsTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
FilamentNotificationsAssetsTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
GroupPolicyConfigurationHydrationTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
GroupPolicyConfigurationNormalizedDiffTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
GroupPolicyConfigurationRestoreTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
HousekeepingTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
InventoryHubDbOnlyTest.php 058-tenant-ui-polish (#70) 2026-01-22 00:17:23 +00:00
InventoryItemResourceTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
InventoryPagesTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
InventorySyncRunResourceTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
LivewireInterceptShimIsLoadedTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
LoginRedirectsToChooseWorkspaceWhenMultipleWorkspacesTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
MalformedSnapshotWarningTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ODataTypeMismatchTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyCaptureSnapshotOptionsTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
PolicyListingTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicySettingsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicySettingsStandardRendersArraysTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyVersionReadableLayoutTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyVersionRestoreToIntuneTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
PolicyVersionRestoreViaWizardTest.php 065-tenant-rbac-v1 (#79) 2026-01-28 21:09:47 +00:00
PolicyVersionScopeTagsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyVersionSettingsTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyVersionTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyViewSettingsCatalogReadableTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ProviderConnectionsDbOnlyTest.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
ProviderConnectionsUiEnforcementTest.php feat/066-rbac-ui-enforcement-helper-v2 (#83) 2026-01-30 17:28:47 +00:00
RestoreExecutionTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
RestoreItemSelectionTest.php feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00
RestorePreviewTest.php feat/018-driver-updates-wufb (#27) 2026-01-04 00:38:54 +00:00
RestoreRunUiEnforcementTest.php feat/066-rbac-ui-enforcement-helper-v2 (#83) 2026-01-30 17:28:47 +00:00
RestoreWizardGraphSafetyTest.php feat/048-backup-restore-ui-graph-safety (#55) 2026-01-11 00:14:35 +00:00
ScriptPoliciesNormalizedDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SelectTenantPostPersistsLastUsedTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
SettingsCatalogPolicyHydrationTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SettingsCatalogPolicyNormalizedDiffTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
SettingsCatalogPolicyNormalizedDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SettingsCatalogPolicySyncTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SettingsCatalogRestoreApplySettingsPatchTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SettingsCatalogRestoreTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SettingsCatalogSettingsTableRenderTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantActionsAuthorizationTest.php feat/066-rbac-ui-enforcement-helper-v2 (#83) 2026-01-30 17:28:47 +00:00
TenantDashboardDbOnlyTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantDashboardTenantScopeTest.php 058-tenant-ui-polish (#70) 2026-01-22 00:17:23 +00:00
TenantDiagnosticsRepairsTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
TenantMakeCurrentTest.php 065-tenant-rbac-v1 (#79) 2026-01-28 21:09:47 +00:00
TenantMembersDbOnlyRenderTest.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
TenantMembersTest.php 066-rbac-ui-enforcement-helper (#81) 2026-01-30 16:58:02 +00:00
TenantPortfolioContextSwitchTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantRbacWizardTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantResourceIndexIsWorkspaceScopedTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
TenantScopingTest.php 065-tenant-rbac-v1 (#79) 2026-01-28 21:09:47 +00:00
TenantSetupTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantSwitcherUrlResolvesTenantTest.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
TenantViewHeaderUiEnforcementTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
WindowsUpdateProfilesRestoreTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
WindowsUpdateRingPolicyTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
WindowsUpdateRingRestoreTest.php feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
WorkspaceContextTopbarAndTenantSelectionTest.php Spec 077: Workspace Global Mode + context bar redundancy cleanup (#94) 2026-02-06 22:14:53 +00:00