## Summary - implement the Action Surface Contract v1.1 runtime changes for Spec 169 - add the new explicit ActionSurfaceType contract, validator/discovery updates, and enrolled surface declarations - update Filament action-surface documentation, focused guard tests, and spec artifacts for the completed feature ## Included - clickable-row vs explicit-inspect enforcement across monitoring, reporting, CRUD, and system reference surfaces - helper-first, workflow-next, destructive-last overflow ordering checks - system panel list discovery in the primary action-surface validator - Spec 169 artifacts: spec, plan, tasks, research, data model, quickstart, and logical contract ## Verification - focused Pest verification pack completed for: - tests/Feature/Guards/ActionSurfaceValidatorTest.php - tests/Feature/Guards/ActionSurfaceContractTest.php - tests/Feature/Rbac/TenantActionSurfaceConsistencyTest.php - integrated browser smoke test completed for admin-side reference surfaces: - /admin/operations - /admin/audit-log - /admin/finding-exceptions/queue - /admin/reviews - /admin/tenants ## Notes - system panel browser smoke coverage could not be exercised in the same session because /system routes require platform authentication in the integrated browser - Livewire target remains v4-compliant and no provider registration or asset strategy changes are introduced by this PR Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #200
28 lines
612 B
PHP
28 lines
612 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Ui\ActionSurface\Enums;
|
|
|
|
enum ActionSurfaceInspectAffordance: string
|
|
{
|
|
case ClickableRow = 'clickable_row';
|
|
case ViewAction = 'view_action';
|
|
case PrimaryLinkColumn = 'primary_link_column';
|
|
|
|
public function isExplicitInspect(): bool
|
|
{
|
|
return $this === self::ViewAction;
|
|
}
|
|
|
|
public function isPrimaryLinkColumn(): bool
|
|
{
|
|
return $this === self::PrimaryLinkColumn;
|
|
}
|
|
|
|
public function isSingleClickOpen(): bool
|
|
{
|
|
return $this === self::ClickableRow || $this === self::PrimaryLinkColumn;
|
|
}
|
|
}
|