## Summary - remove legacy tenant-scoped routing and middleware paths in favor of the current environment/workspace context flow - update Filament pages and resources to use the cleaned-up admin surface and environment filter context - add the related spec 317 artifacts and targeted tests for environment filter state and legacy context cleanup ## Testing - not run as part of this commit/push/PR workflow Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #372
29 lines
1.0 KiB
PHP
29 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Tenants;
|
|
|
|
use App\Support\Navigation\AdminSurfaceScope;
|
|
|
|
enum TenantInteractionLane: string
|
|
{
|
|
case StandardActiveOperating = 'standard_active_operating';
|
|
case OnboardingWorkflow = 'onboarding_workflow';
|
|
case AdministrativeManagement = 'administrative_management';
|
|
case CanonicalWorkspaceRecord = 'canonical_workspace_record';
|
|
|
|
public static function fromSurfaceScope(AdminSurfaceScope $pageCategory): self
|
|
{
|
|
return match ($pageCategory) {
|
|
AdminSurfaceScope::OnboardingWorkflow => self::OnboardingWorkflow,
|
|
AdminSurfaceScope::EnvironmentBound,
|
|
AdminSurfaceScope::EnvironmentScopedEvidence => self::AdministrativeManagement,
|
|
AdminSurfaceScope::CanonicalWorkspaceRecordViewer => self::CanonicalWorkspaceRecord,
|
|
AdminSurfaceScope::WorkspaceWideSurface,
|
|
AdminSurfaceScope::WorkspaceScoped,
|
|
AdminSurfaceScope::WorkspaceChooserException => self::StandardActiveOperating,
|
|
};
|
|
}
|
|
}
|