feat: enforce workspace and environment scope contract (Spec 338) #409

Merged
ahmido merged 2 commits from 338-workspace-environment-resource-scope-contract into platform-dev 2026-05-31 01:36:09 +00:00
Owner

Summary

  • enforce the canonical workspace/environment scope contract for workspace hubs and environment-owned surfaces
  • replace first-party Operations deep links that leaked Filament tableFilters[...] internals with stable product-level query behavior
  • add the sidebar scope indicator and split environment-page navigation into explicit Workspace-wide and Workspace admin groups
  • remove redundant tenantless All environments scope badges from workspace-wide pages while preserving explicit environment filter affordances
  • include the Spec 338 artifacts, guard tests, and browser smoke coverage for the new contract

Validation

  • cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Navigation/Spec338EnvironmentSidebarSeparationTest.php tests/Feature/Navigation/Spec338OperationRunLinksQueryContractTest.php tests/Feature/Navigation/Spec338SidebarScopeIndicatorTest.php tests/Feature/Filament/PanelNavigationSegregationTest.php
  • cd apps/platform && ./vendor/bin/sail php vendor/bin/pest tests/Browser/Spec338ScopeContractSmokeTest.php --compact

Notes

  • Livewire v4 compliance unchanged
  • Filament provider registration remains in bootstrap/providers.php
  • no destructive action behavior changed
  • no migrations, env var changes, or new Filament asset registration
## Summary - enforce the canonical workspace/environment scope contract for workspace hubs and environment-owned surfaces - replace first-party Operations deep links that leaked Filament `tableFilters[...]` internals with stable product-level query behavior - add the sidebar scope indicator and split environment-page navigation into explicit `Workspace-wide` and `Workspace admin` groups - remove redundant tenantless `All environments` scope badges from workspace-wide pages while preserving explicit environment filter affordances - include the Spec 338 artifacts, guard tests, and browser smoke coverage for the new contract ## Validation - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Navigation/Spec338EnvironmentSidebarSeparationTest.php tests/Feature/Navigation/Spec338OperationRunLinksQueryContractTest.php tests/Feature/Navigation/Spec338SidebarScopeIndicatorTest.php tests/Feature/Filament/PanelNavigationSegregationTest.php` - `cd apps/platform && ./vendor/bin/sail php vendor/bin/pest tests/Browser/Spec338ScopeContractSmokeTest.php --compact` ## Notes - Livewire v4 compliance unchanged - Filament provider registration remains in `bootstrap/providers.php` - no destructive action behavior changed - no migrations, env var changes, or new Filament asset registration
ahmido added 2 commits 2026-05-31 01:35:20 +00:00
merge: agent session work
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 3m35s
b893d8698b
ahmido merged commit e0c2cdb1f4 into platform-dev 2026-05-31 01:36:09 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ahmido/TenantAtlas#409
No description provided.