## Summary - keep `/admin/reviews/workspace` workspace-scoped in shell and sidebar context - treat `tenant` query hints on the customer review workspace as page-level filters only - update the customer review workspace tests and Spec 311 navigation contract to match the workspace-hub IA ## Testing - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Reviews/CustomerReviewWorkspacePageTest.php` - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/WorkspaceContextTopbarAndTenantSelectionTest.php tests/Feature/Filament/PanelNavigationSegregationTest.php` - `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent` - `git diff --check` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #366
27 lines
1005 B
PHP
27 lines
1005 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Tenants;
|
|
|
|
enum TenantInteractionLane: string
|
|
{
|
|
case StandardActiveOperating = 'standard_active_operating';
|
|
case OnboardingWorkflow = 'onboarding_workflow';
|
|
case AdministrativeManagement = 'administrative_management';
|
|
case CanonicalWorkspaceRecord = 'canonical_workspace_record';
|
|
|
|
public static function fromPageCategory(TenantPageCategory $pageCategory): self
|
|
{
|
|
return match ($pageCategory) {
|
|
TenantPageCategory::OnboardingWorkflow => self::OnboardingWorkflow,
|
|
TenantPageCategory::TenantBound,
|
|
TenantPageCategory::TenantScopedEvidence => self::AdministrativeManagement,
|
|
TenantPageCategory::CanonicalWorkspaceRecordViewer => self::CanonicalWorkspaceRecord,
|
|
TenantPageCategory::WorkspaceWideSurface,
|
|
TenantPageCategory::WorkspaceScoped,
|
|
TenantPageCategory::WorkspaceChooserException => self::StandardActiveOperating,
|
|
};
|
|
}
|
|
}
|