Some checks failed
Main Confidence / confidence (push) Failing after 43s
## Summary - consolidate workspace and tenant shell resolution behind a canonical resolved shell context - align workspace switching, tenant selection, and tenant clearing with the new recovery and fallback rules - add focused Pest coverage for shell resolution and update root dev orchestration so platform Vite starts correctly from repo-root commands ## Testing - cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Monitoring/HeaderContextBarTest.php - cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Workspaces/GlobalContextShellContractTest.php - manual integrated-browser smoke for tenant-bound shell actions and context recovery flows - validated corepack pnpm build:platform, corepack pnpm dev:platform, corepack pnpm dev:website, and corepack pnpm dev ## Notes - Livewire v4 / Filament v5 remain unchanged and provider registration stays in bootstrap/providers.php - no new globally searchable resources or destructive Filament actions were introduced Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #246
26 lines
951 B
PHP
26 lines
951 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::WorkspaceScoped,
|
|
TenantPageCategory::WorkspaceChooserException => self::StandardActiveOperating,
|
|
};
|
|
}
|
|
}
|