## Summary - add a request-scoped derived-state store with deterministic keying and freshness controls - adopt the shared contract in ArtifactTruthPresenter, OperationUxPresenter, and RelatedNavigationResolver plus the covered Filament consumers - add spec, plan, contracts, guardrails, and focused memoization and freshness test coverage for spec 167 ## Verification - vendor/bin/sail artisan test --compact tests/Feature/078/RelatedLinksOnDetailTest.php - vendor/bin/sail artisan test --compact tests/Feature/078/ tests/Feature/Operations/TenantlessOperationRunViewerTest.php tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php tests/Feature/Monitoring/OperationsTenantScopeTest.php tests/Feature/Verification/VerificationAuthorizationTest.php tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php tests/Feature/Verification/VerificationReportRedactionTest.php tests/Feature/Verification/VerificationReportMissingOrMalformedTest.php tests/Feature/OpsUx/FailureSanitizationTest.php tests/Feature/OpsUx/CanonicalViewRunLinksTest.php - vendor/bin/sail bin pint --dirty --format agent ## Notes - Livewire v4.0+ compliance preserved - provider registration remains in bootstrap/providers.php - no Filament assets or panel registration changes - no global-search behavior changes - no destructive action behavior changes in this PR Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #198
26 lines
702 B
PHP
26 lines
702 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Ui\DerivedState;
|
|
|
|
enum DerivedStateFamily: string
|
|
{
|
|
case ArtifactTruth = 'artifact_truth';
|
|
case OperationUxGuidance = 'operation_ux_guidance';
|
|
case OperationUxExplanation = 'operation_ux_explanation';
|
|
case RelatedNavigationPrimary = 'related_navigation_primary';
|
|
case RelatedNavigationDetail = 'related_navigation_detail';
|
|
case RelatedNavigationHeader = 'related_navigation_header';
|
|
|
|
public function allowsNegativeResultCache(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function defaultFreshnessPolicy(): string
|
|
{
|
|
return RequestScopedDerivedStateStore::FRESHNESS_INVALIDATE_AFTER_MUTATION;
|
|
}
|
|
}
|