TenantAtlas/tests/Feature/OpsUx
Ahmed Darrazi 051db1842d feat(107): implement Workspace Chooser v1 — all 40 tasks complete
Spec 107: Workspace Chooser v1 (Enterprise) + In-App Switch Entry Point

## Core changes
- Refactor EnsureWorkspaceSelected middleware: 7-step algorithm with
  auto-resume (single membership + last_workspace_id), stale session
  detection, ?choose=1 forced chooser, workspace-optional path bypass
- Create WorkspaceRedirectResolver for DRY tenant-count branching
  (0→managed-tenants, 1→tenant-dashboard, >1→choose-tenant)
- Add WorkspaceAutoSelected + WorkspaceSelected audit enum cases
- Rewrite ChooseWorkspace page: role badges, tenant counts,
  wire:click selection, audit logging, WorkspaceRedirectResolver
- Add 'Switch workspace' user menu item in AdminPanelProvider
- Rewrite SwitchWorkspaceController with audit + resolver
- Replace inline tenant branching in routes/web.php with resolver

## New test files (6)
- WorkspaceRedirectResolverTest (5 tests
Spec 107: Workspace Chooser v1 (Enterprise) + In-App Switch Entry Point

## Core changes
- Refactor EnsureWorkspaceSelected middleware: 7-step algorithmst
## Core changes
- Refactor EnsureWorkspaceSelected middleware: 7-stepes - Refactor Ensng  auto-resume (single membership + last_workspace_id), stale sessioid  detection, ?choose=1 forced chooser, w (security invariant preserve- Create WorkspaceRedirectResolver for DRY tenant-count branching

  (0→managed-tenants, 1→tenant-dashboapped (8163 assertions)
2026-02-22 17:19:19 +01:00
..
ActiveRunsTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
AdapterRunReconcilerTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BackupSetDeleteBulkJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkEnqueueIdempotencyTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationProgressDbOnlyTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
BulkTenantIsolationTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
CanonicalViewRunLinksTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
FailureSanitizationTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
NonLeakageWorkspaceOperationsTest.php Spec 077: Workspace Global Mode + context bar redundancy cleanup (#94) 2026-02-06 22:14:53 +00:00
NoQueuedDbNotificationsTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
NotificationViewRunLinkTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
OperateHubShellTest.php feat(107): implement Workspace Chooser v1 — all 40 tasks complete 2026-02-22 17:19:19 +01:00
OperationCatalogCoverageTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
OperationRunSummaryCountsIncrementTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
OperationSummaryKeysSpecTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
OpsUxSmokeTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
PolicyVersionForceDeleteBulkJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
PolicyVersionPruneBulkJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
ProgressWidgetFiltersTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
ProgressWidgetOverflowTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
ProgressWidgetPollerRegistrationTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
QueuedToastCopyTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
RestoreExecuteOperationRunSyncTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
RestoreExecutionOperationRunSyncTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
RestoreRunDeleteBulkJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
RunDetailPollingStopsOnTerminalTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
RunEnqueuedBrowserEventTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00
SummaryCountsWhitelistTest.php fix: restore full suite (Pest helper collision + ops-ux spec sync) (#130) 2026-02-22 11:36:27 +00:00
TargetScopeConcurrencyLimiterTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
TenantSyncBulkJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
TerminalNotificationFailureMessageTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
TerminalNotificationIdempotencyTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
UnknownOperationTypeLabelTest.php 055-ops-ux-rollout (#64) 2026-01-18 14:50:15 +00:00