TenantAtlas/specs/089-provider-connections-tenantless-ui/quickstart.md
2026-02-12 17:32:08 +01:00

38 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Quickstart — Spec 089 (Provider Connections tenantless UI)
## Prereqs
- Docker + Docker Compose
- Laravel Sail (project standard)
## Run locally
- Start services: `vendor/bin/sail up -d`
- Run migrations (if needed): `vendor/bin/sail artisan migrate`
- Run dev assets (if youre checking UI): `vendor/bin/sail npm run dev`
## Key routes
- Canonical list: `/admin/provider-connections`
- Optional filter: `/admin/provider-connections?tenant_id=<tenant-external-id>`
- Legacy redirect (must remain ≥2 releases): `/admin/tenants/<tenant-external-id>/provider-connections` → canonical
## Run targeted tests
- Full suite (compact): `vendor/bin/sail artisan test --compact`
Suggested focused tests (adjust once implementation lands):
- `vendor/bin/sail artisan test --compact tests/Unit/Filament/ProviderConnectionResourceLivewireTenantInferenceTest.php`
- `vendor/bin/sail artisan test --compact tests/Unit/Policies/ProviderConnectionPolicyTenantResolutionTest.php`
## Formatting
- `vendor/bin/sail bin pint --dirty`
## Notes
- Non-workspace members must get 404.
- Non-tenant members must get 404 for direct record access.
- Tenant members missing capabilities must get 403.
- Global search must not expose Provider Connections.