TenantAtlas/apps/platform
ahmido c7b38606a9 feat: implement spec 285 workspace-first environment access (#344)
Implements platform feature branch `285-workspace-rbac-environment-access`.

Summary:
- switch managed environment authorization to workspace-first role resolution with explicit environment-scope narrowing
- rewire Filament pages, resources, policies, and user tenant access helpers to the shared access-scope resolver
- add Spec 285 coverage across unit, feature, and browser tests plus full spec artifacts

Validation:
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Unit/Auth/WorkspaceFirstCapabilityResolverTest.php tests/Unit/Auth/ManagedEnvironmentAccessScopeResolverTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Auth/WorkspaceFirstManagedEnvironmentAccessTest.php tests/Feature/Filament/ManagedEnvironmentAccessScopeManagementTest.php tests/Feature/Filament/WorkspaceMembershipRoleManagementTest.php tests/Feature/Rbac/GovernanceArtifactsWorkspaceFirstAuthorizationTest.php tests/Feature/Rbac/OperationRunWorkspaceFirstAuthorizationTest.php tests/Feature/Rbac/ProviderConnectionWorkspaceFirstPolicyTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Verification/ProviderExecutionReauthorizationTest.php tests/Feature/ProviderConnections/ProviderConnectionHealthCheckStartSurfaceTest.php tests/Feature/Tenants/TenantProviderBackedActionStartTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Audit/TenantMembershipAuditLogTest.php tests/Feature/Filament/TenantMembersTest.php tests/Feature/TenantRBAC/TenantMembershipCrudTest.php tests/Feature/TenantRBAC/TenantSwitcherScopeTest.php`
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Browser/Spec285WorkspaceRbacEnvironmentAccessSmokeTest.php`
- `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent`

Target branch: `platform-dev`.

Follow-up integration path after merge:
- `platform-dev` -> `dev`.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #344
2026-05-09 12:40:50 +00:00
..
.pnpm-store/v10 Spec 235: harden baseline truth and onboarding flows (#271) 2026-04-24 05:44:54 +00:00
app feat: implement spec 285 workspace-first environment access (#344) 2026-05-09 12:40:50 +00:00
bootstrap feat: complete workspace-first environment routing cutover (#340) 2026-05-07 21:56:14 +00:00
config feat: implement provider capability registry (#342) 2026-05-08 21:17:05 +00:00
database feat: implement workspace and tenant closure lifecycle (#337) 2026-05-07 13:12:17 +00:00
drizzle
lang feat: polish tenant dashboard operations attention UX (#338) 2026-05-07 16:55:17 +00:00
public Automated: 268-operationrun-activity-feedback — commit & PR (#324) 2026-05-04 12:17:15 +00:00
resources feat: implement provider-neutral artifact source taxonomy (#343) 2026-05-08 23:47:31 +00:00
routes feat: complete workspace-first environment routing cutover (#340) 2026-05-07 21:56:14 +00:00
storage
tests feat: implement spec 285 workspace-first environment access (#344) 2026-05-09 12:40:50 +00:00
.env.example feat(specs/256): external support desk handoff (#301) 2026-04-29 20:16:40 +00:00
artisan
composer.json feat: implement runtime trend recalibration reporting (#244) 2026-04-18 07:36:05 +00:00
composer.lock
drizzle.config.ts
package.json
patch_aside.php Auto: 266-tenant-dashboard-productization-v1 → platform-dev (#322) 2026-05-03 14:03:46 +00:00
patch_readiness.php Auto: 266-tenant-dashboard-productization-v1 → platform-dev (#322) 2026-05-03 14:03:46 +00:00
patch_test.php Auto: 266-tenant-dashboard-productization-v1 → platform-dev (#322) 2026-05-03 14:03:46 +00:00
patch_view.php Auto: 266-tenant-dashboard-productization-v1 → platform-dev (#322) 2026-05-03 14:03:46 +00:00
patch.diff Auto: 266-tenant-dashboard-productization-v1 → platform-dev (#322) 2026-05-03 14:03:46 +00:00
phpunit.pgsql.xml
phpunit.xml
pnpm-lock.yaml feat: compress governance operator outcomes (#253) 2026-04-19 12:30:36 +00:00
revert.php Auto: 266-tenant-dashboard-productization-v1 → platform-dev (#322) 2026-05-03 14:03:46 +00:00
vite.config.js