Compare commits

..

No commits in common. "4c9544e9b76048d08b0c243901b2e31553ee18c0" and "a43fef535bcd7b9f13ad1210e8f31bf3ab747d6a" have entirely different histories.

2 changed files with 199 additions and 205 deletions

View File

@ -1,6 +1,4 @@
@php @php
$fieldWrapperView = $getFieldWrapperView();
$results = $getState() ?? []; $results = $getState() ?? [];
$results = is_array($results) ? $results : []; $results = is_array($results) ? $results : [];
@ -39,8 +37,7 @@
}; };
@endphp @endphp
<x-dynamic-component :component="$fieldWrapperView" :field="$field"> <div class="space-y-4">
<div class="space-y-4">
<x-filament::section <x-filament::section
heading="Safety checks" heading="Safety checks"
:description="$ranAtLabel ? ('Last run: ' . $ranAtLabel) : 'Run checks to evaluate risk before previewing.'" :description="$ranAtLabel ? ('Last run: ' . $ranAtLabel) : 'Run checks to evaluate risk before previewing.'"
@ -117,5 +114,5 @@
@endforeach @endforeach
</div> </div>
@endif @endif
</div> </div>
</x-dynamic-component>

View File

@ -1,6 +1,4 @@
@php @php
$fieldWrapperView = $getFieldWrapperView();
$diffs = $getState() ?? []; $diffs = $getState() ?? [];
$diffs = is_array($diffs) ? $diffs : []; $diffs = is_array($diffs) ? $diffs : [];
@ -35,8 +33,7 @@
}; };
@endphp @endphp
<x-dynamic-component :component="$fieldWrapperView" :field="$field"> <div class="space-y-4">
<div class="space-y-4">
<x-filament::section <x-filament::section
heading="Preview" heading="Preview"
:description="$ranAtLabel ? ('Generated: ' . $ranAtLabel) : 'Generate a preview to see what would change.'" :description="$ranAtLabel ? ('Generated: ' . $ranAtLabel) : 'Generate a preview to see what would change.'"
@ -176,5 +173,5 @@
@endforeach @endforeach
</div> </div>
@endif @endif
</div> </div>
</x-dynamic-component>