## Summary - harden operation-run lifecycle handling with explicit reconciliation policy, stale-run healing, failed-job bridging, and monitoring visibility - refactor audit log event inspection into a Filament slide-over and remove the stale inline detail/header-action coupling - align panel theme asset resolution and supporting Filament UI updates, including the rounded 2xl theme token regression fix ## Testing - ran focused Pest coverage for the affected audit-log inspection flow and related visibility tests - ran formatting with `vendor/bin/sail bin pint --dirty --format agent` - manually verified the updated audit-log slide-over flow in the integrated browser ## Notes - branch includes the Spec 160 artifacts under `specs/160-operation-lifecycle-guarantees/` - the full test suite was not rerun as part of this final commit/PR step Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #190
28 lines
655 B
PHP
28 lines
655 B
PHP
<?php
|
|
|
|
namespace App\Support\Filament;
|
|
|
|
use Illuminate\Support\Facades\Vite;
|
|
|
|
class PanelThemeAsset
|
|
{
|
|
public static function resolve(string $entry): string
|
|
{
|
|
$manifest = public_path('build/manifest.json');
|
|
|
|
if (! is_file($manifest)) {
|
|
return Vite::asset($entry);
|
|
}
|
|
|
|
/** @var array<string, array{file?: string}>|null $decoded */
|
|
$decoded = json_decode((string) file_get_contents($manifest), true);
|
|
$file = $decoded[$entry]['file'] ?? null;
|
|
|
|
if (! is_string($file) || $file === '') {
|
|
return Vite::asset($entry);
|
|
}
|
|
|
|
return asset('build/'.$file);
|
|
}
|
|
}
|