TenantAtlas/database/factories
ahmido a989ef1a23 feat: workspace context enforcement (specs 070–072) (#85)
Implements specs 070–072 (workspace foundation, workspace-scoped tenant selection, managed-tenants workspace enforcement).

Highlights
- Adds Workspace + WorkspaceMembership models/migrations + middleware to persist/enforce current workspace context.
- Scopes tenant selection to the current workspace.
- Makes legacy `/admin/managed-tenants*` routes redirect into workspace-scoped URLs.
- Enforces tenant routes under `/admin/t/{tenant}` to 404 when workspace context is missing or mismatched.
- Fixes Filament page Blade wrappers so header actions render on choose-workspace / choose-tenant / no-access pages.

Verification
- Pint: `vendor/bin/sail bin pint --dirty`
- Tests: `vendor/bin/sail artisan test --compact tests/Feature/Guards/NoAdHocFilamentAuthPatternsTest.php tests/Feature/Workspaces tests/Feature/Filament/ChooseTenantIsWorkspaceScopedTest.php tests/Feature/Filament/ChooseTenantRequiresWorkspaceTest.php tests/Feature/Filament/TenantSwitcherUrlResolvesTenantTest.php tests/Feature/ManagedTenants tests/Feature/AdminNewRedirectTest.php`

Notes
- Filament v5 / Livewire v4 compatible.
- Panel provider registration stays in `bootstrap/providers.php` (Laravel 11+ rule).
- No new heavy frontend assets added.

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@MacBookPro.fritz.box>
Reviewed-on: #85
2026-02-02 10:07:41 +00:00
..
BackupItemFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BackupSetFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
EntraGroupFactory.php 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
EntraGroupSyncRunFactory.php 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
FindingFactory.php feat/044-drift-mvp (#58) 2026-01-14 23:16:10 +00:00
InventoryItemFactory.php feat/040-inventory-core (#43) 2026-01-07 14:54:24 +00:00
InventoryLinkFactory.php feat/042-inventory-dependencies-graph (#49) 2026-01-10 00:20:14 +00:00
InventorySyncRunFactory.php feat/040-inventory-core (#43) 2026-01-07 14:54:24 +00:00
OperationRunFactory.php 054-unify-runs-suitewide (#63) 2026-01-17 22:25:00 +00:00
PlatformUserFactory.php feat: implement auth structure system panel (#77) 2026-01-27 21:49:18 +00:00
PolicyFactory.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
PolicyVersionFactory.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
ProviderConnectionFactory.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
ProviderCredentialFactory.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
RestoreRunFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
TenantFactory.php feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00
UserFactory.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
WorkspaceFactory.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
WorkspaceMembershipFactory.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00