TenantAtlas/tests/Feature/OpsUx
ahmido e15eee8f26 fix: consolidate tenant creation + harden selection flows (#131)
## Summary
- Removes the legacy Tenant CRUD create page (`/admin/tenants/create`) so tenant creation is handled exclusively via the onboarding wizard.
- Updates tenant selection flows and pages to prevent Livewire polling/notification-related 404s on workspace-scoped routes.
- Aligns empty-state UX with enterprise patterns (avoid duplicate CTAs).

## Key changes
- Tenant creation
  - Removed `CreateTenant` page + route from `TenantResource`.
  - `TenantResource::canCreate()` now returns `false` (CRUD creation disabled).
  - Tenants list now surfaces an **Add tenant** action that links to onboarding (`admin.onboarding`).
- Onboarding wizard
  - Removed redundant legacy step-cards from the blade view (Wizard schema is the source of truth).
  - Disabled topbar on the onboarding page to avoid lazy-loaded notifications.
- Choose tenant
  - Enterprise UI redesign + workspace context.
  - Uses Livewire `selectTenant()` instead of a form POST.
  - Disabled topbar and gated BODY_END hook to avoid background polling.
- Baseline profiles
  - Hide header create action when table is empty to avoid duplicate CTAs.

## Tests
- `vendor/bin/sail artisan test --compact --filter='Onboarding|ManagedTenantOnboarding'`
- `vendor/bin/sail artisan test --compact --filter='ManagedTenantsLivewireUpdate'`
- `vendor/bin/sail artisan test --compact --filter='TenantSetup|TenantResourceAuth|TenantAdminAuth|ListTenants'`
- `vendor/bin/sail artisan test --compact --filter='BaselineProfile'`
- `vendor/bin/sail artisan test --compact --filter='ChooseTenant|TenantMake|TenantScoping|AdminTenantScoped|AdminHomeRedirect|WorkspaceContext'`

## Notes
- Filament v5 / Livewire v4 compatible.
- No new assets introduced; no deploy pipeline changes required.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #131
2026-02-22 19:54:24 +00: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 fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00: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