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). ## Summary <!-- Kurz: Was ändert sich und warum? --> ## Spec-Driven Development (SDD) - [ ] Es gibt eine Spec unter `specs/<NNN>-<feature>/` - [ ] Enthaltene Dateien: `plan.md`, `tasks.md`, `spec.md` - [ ] Spec beschreibt Verhalten/Acceptance Criteria (nicht nur Implementation) - [ ] Wenn sich Anforderungen während der Umsetzung geändert haben: Spec/Plan/Tasks wurden aktualisiert ## Implementation - [ ] Implementierung entspricht der Spec - [ ] Edge cases / Fehlerfälle berücksichtigt - [ ] Keine unbeabsichtigten Änderungen außerhalb des Scopes ## Tests - [ ] Tests ergänzt/aktualisiert (Pest/PHPUnit) - [ ] Relevante Tests lokal ausgeführt (`./vendor/bin/sail artisan test` oder `php artisan test`) ## Migration / Config / Ops (falls relevant) - [ ] Migration(en) enthalten und getestet - [ ] Rollback bedacht (rückwärts kompatibel, sichere Migration) - [ ] Neue Env Vars dokumentiert (`.env.example` / Doku) - [ ] Queue/cron/storage Auswirkungen geprüft ## UI (Filament/Livewire) (falls relevant) - [ ] UI-Flows geprüft - [ ] Screenshots/Notizen hinzugefügt ## Notes <!-- Links, Screenshots, Follow-ups, offene Punkte --> Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.fritz.box> Reviewed-on: #88
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
openapi: 3.1.0
|
|
info:
|
|
title: TenantPilot — Managed Tenant Onboarding (073)
|
|
version: 0.1.0
|
|
description: |
|
|
Workspace-scoped onboarding wizard routes. These are UI endpoints (Filament/Livewire),
|
|
but documented here for contract clarity.
|
|
servers:
|
|
- url: https://example.invalid
|
|
paths:
|
|
/admin/w/{workspace}/managed-tenants:
|
|
get:
|
|
summary: Managed tenants landing (workspace-scoped)
|
|
parameters:
|
|
- name: workspace
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
responses:
|
|
'200':
|
|
description: Renders managed tenants landing page.
|
|
'403':
|
|
description: Workspace member missing required capability (where applicable).
|
|
'404':
|
|
description: Workspace not found or user not a member (deny-as-not-found).
|
|
/admin/w/{workspace}/managed-tenants/onboarding:
|
|
get:
|
|
summary: Managed tenant onboarding wizard (workspace-scoped)
|
|
parameters:
|
|
- name: workspace
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
responses:
|
|
'200':
|
|
description: Renders onboarding wizard page.
|
|
'403':
|
|
description: Workspace member missing onboarding capability.
|
|
'404':
|
|
description: Workspace not found or user not a member (deny-as-not-found).
|
|
|
|
/admin/register-tenant:
|
|
get:
|
|
summary: Legacy tenant registration entry point
|
|
deprecated: true
|
|
responses:
|
|
'404':
|
|
description: Must be removed / behave as not found (FR-001).
|