Implements workspace-first enforcement and UX: - Workspace selected before tenant flows; /admin routes into choose-workspace/choose-tenant - Tenant lists and default tenant selection are scoped to current workspace - Workspaces UI is tenantless at /admin/workspaces Security hardening: - Workspaces can never have 0 owners (blocks last-owner removal/demotion) - Blocked attempts are audited with action_id=workspace_membership.last_owner_blocked + required metadata - Optional break-glass recovery page to re-assign workspace owner (audited) Tests: - Added/updated Pest feature tests covering redirects, scoping, tenantless workspaces, last-owner guards, and break-glass recovery. Notes: - Filament v5 strict Page property signatures respected in RepairWorkspaceOwners. Co-authored-by: Ahmed Darrazi <ahmeddarrazi@MacBookPro.fritz.box> Reviewed-on: #86
14 lines
632 B
PHP
14 lines
632 B
PHP
<x-filament-panels::page>
|
|
<div class="space-y-6">
|
|
<div class="rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900">
|
|
<div class="text-sm text-gray-700 dark:text-gray-200">
|
|
<p class="font-medium">Purpose</p>
|
|
<p class="mt-1">
|
|
This page exists to recover from broken workspace ownership state (e.g. a workspace with zero owners due to manual DB edits).
|
|
Actions here require break-glass mode and are fully audited.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-filament-panels::page>
|