Implements workspace-scoped managed tenant onboarding wizard (Filament v5 / Livewire v4) with strict RBAC (404/403 semantics), resumable sessions, provider connection selection/creation, verification OperationRun, and optional bootstrap. Removes legacy onboarding entrypoints and adds Pest coverage + spec artifacts (073).
1.1 KiB
1.1 KiB
Quickstart — Unified Managed Tenant Onboarding Wizard (073)
Local setup
- Start containers:
vendor/bin/sail up -d - Install deps (if needed):
vendor/bin/sail composer installandvendor/bin/sail npm install - Run migrations:
vendor/bin/sail artisan migrate - Run frontend build/dev:
vendor/bin/sail npm run dev(watch)- or
vendor/bin/sail npm run build
Using the wizard (expected flow)
- Sign in to
/admin. - Choose a workspace at
/admin/choose-workspace. - Open
/admin/w/{workspace}/managed-tenants. - Start onboarding at
/admin/w/{workspace}/managed-tenants/onboarding. - Complete Identify → Connection → Verify (queued) → optional Bootstrap.
Notes:
- The onboarding UI must render DB-only; Graph calls occur only in queued work.
- Verification is tracked as an
OperationRun(modulehealth_check).
Tests
Run targeted tests (expected file name when implemented):
vendor/bin/sail artisan test --compact tests/Feature/ManagedTenantOnboardingWizardTest.php
Deploy / Ops
If Filament assets are used/registered, deployment must include:
php artisan filament:assets