Implements Spec 080: split Filament into workspace-managed `/admin/*` (manage) vs tenant operations `/admin/t/{tenant}/*` (operate).
Highlights:
- Adds tenant operations panel (`tenant`) at `/admin/t` with tenancy by `Tenant.external_id`
- Keeps management resources in workspace panel (`admin`) under `/admin/tenants/*`
- Moves Provider Connections to workspace-managed routes: `/admin/tenants/{tenant}/provider-connections`
- Adds discoverability CTA on tenant view (Actions → Provider connections)
- Adds/updates Pest regression tests for routing boundaries, 404/403 RBAC-UX semantics, and global search isolation
- Includes full Spec Kit artifacts under `specs/080-workspace-managed-tenant-admin/`
Validation:
- `vendor/bin/sail bin pint --dirty`
- `vendor/bin/sail artisan test --compact tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php`
Co-authored-by: Ahmed Darrazi <ahmeddarrazi@MacBookPro.fritz.box>
Reviewed-on: #97
37 lines
1.0 KiB
Markdown
37 lines
1.0 KiB
Markdown
# Quickstart — Spec 080 Workspace-Managed Tenant Administration Migration
|
|
|
|
## Prereqs
|
|
|
|
- Laravel Sail is used for local dev.
|
|
|
|
## Run locally
|
|
|
|
- Start services: `vendor/bin/sail up -d`
|
|
- Install deps (if needed): `vendor/bin/sail composer install`
|
|
|
|
## What to verify manually
|
|
|
|
1. Select a workspace (existing flow)
|
|
2. Visit workspace-managed tenant admin:
|
|
- `/admin/tenants`
|
|
- `/admin/tenants/{tenant}`
|
|
3. Visit tenant operate routes only when entitled:
|
|
- `/admin/t/{tenant}/…`
|
|
4. Confirm removed tenant-scoped management URLs return 404:
|
|
- `/admin/t/{tenant}/provider-connections`
|
|
- `/admin/t/{tenant}/required-permissions`
|
|
|
|
## Run targeted tests
|
|
|
|
- Run Spec 080 test file (to be created in Phase 2):
|
|
- `vendor/bin/sail artisan test --compact tests/Feature/Spec080WorkspaceManagedTenantAdminMigrationTest.php`
|
|
|
|
## Formatting
|
|
|
|
- Format touched files: `vendor/bin/sail bin pint --dirty`
|
|
|
|
## Deployment note
|
|
|
|
This feature changes route registration via Filament panel providers.
|
|
No migrations are expected.
|