## Summary - add the RBAC role definition diff UX upgrade as the first concrete consumer of the shared diff presentation foundation - refine managed tenant onboarding draft routing, CTA labeling, and cancellation redirect behavior - tighten related Filament and diff rendering regression coverage ## Testing - updated focused Pest coverage for onboarding draft routing and lifecycle behavior - updated focused Pest coverage for shared diff partials and RBAC finding rendering ## Notes - Livewire v4.0+ compliance is preserved within the existing Filament v5 surfaces - provider registration remains unchanged in bootstrap/providers.php - no new Filament assets were added; existing deployment practice still relies on php artisan filament:assets when assets change Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #171
38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
@php
|
|
use App\Support\Diff\RbacRoleDefinitionDiffBuilder;
|
|
|
|
$payload = is_array($getState()) ? $getState() : [];
|
|
$diffKind = is_string($payload['diff_kind'] ?? null) ? (string) $payload['diff_kind'] : 'permission_change';
|
|
$presentation = app(RbacRoleDefinitionDiffBuilder::class)->build($payload);
|
|
@endphp
|
|
|
|
<div class="space-y-4">
|
|
<x-filament::section
|
|
:heading="__('findings.rbac.detail_heading')"
|
|
:description="__('findings.rbac.' . $diffKind)"
|
|
>
|
|
<div class="space-y-4">
|
|
@include('filament.partials.diff.summary-badges', [
|
|
'summary' => $presentation->summary,
|
|
])
|
|
|
|
@if ($presentation->rows !== [])
|
|
<div class="space-y-3">
|
|
@foreach ($presentation->rows as $row)
|
|
@include('filament.partials.diff.row', [
|
|
'row' => $row,
|
|
'compact' => false,
|
|
'dimUnchanged' => true,
|
|
])
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
|
|
<div class="rounded-lg border border-gray-200 bg-gray-50 p-3 text-sm text-gray-700 dark:border-white/10 dark:bg-gray-950 dark:text-gray-300">
|
|
{{ __('findings.rbac.assignments_excluded') }}
|
|
{{ __('findings.rbac.restore_unsupported') }}
|
|
</div>
|
|
</div>
|
|
</x-filament::section>
|
|
</div>
|