From 78c7161921d70f50f3ea3187832e969d7650d8c7 Mon Sep 17 00:00:00 2001 From: Ahmed Darrazi Date: Thu, 26 Mar 2026 14:20:36 +0100 Subject: [PATCH] refactor: reduce operation run detail density --- .../Resources/OperationRunResource.php | 12 +++++++-- .../enterprise-detail/decision-zone.blade.php | 26 +++++++++---------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/app/Filament/Resources/OperationRunResource.php b/app/Filament/Resources/OperationRunResource.php index a54e8365..89e5c4f6 100644 --- a/app/Filament/Resources/OperationRunResource.php +++ b/app/Filament/Resources/OperationRunResource.php @@ -359,6 +359,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support ], visible: $artifactTruth !== null, description: 'Detailed artifact-truth context explains evidence quality and caveats without repeating the top decision summary.', + collapsible: true, + collapsed: true, ), ); @@ -371,7 +373,7 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support entries: $counts, description: 'Normalized run counters remain available for deeper inspection without competing with the primary decision.', collapsible: true, - collapsed: false, + collapsed: true, variant: 'diagnostic', ), ); @@ -398,7 +400,7 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support view: 'filament.infolists.entries.snapshot-json', viewData: ['payload' => static::reconciliationPayload($record)], collapsible: true, - collapsed: false, + collapsed: true, ), ); } @@ -418,6 +420,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support title: 'Baseline compare', items: $baselineCompareFacts, description: 'Type-specific comparison detail stays below the canonical decision and supporting layers.', + collapsible: true, + collapsed: true, ), ); } @@ -449,6 +453,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support title: 'Baseline compare evidence', view: 'filament.infolists.entries.snapshot-json', viewData: ['payload' => $baselineCompareEvidence], + collapsible: true, + collapsed: true, ), ); } @@ -465,6 +471,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support title: 'Baseline capture evidence', view: 'filament.infolists.entries.snapshot-json', viewData: ['payload' => $baselineCaptureEvidence], + collapsible: true, + collapsed: true, ), ); } diff --git a/resources/views/filament/infolists/entries/enterprise-detail/decision-zone.blade.php b/resources/views/filament/infolists/entries/enterprise-detail/decision-zone.blade.php index e6fdfdc8..b92e187d 100644 --- a/resources/views/filament/infolists/entries/enterprise-detail/decision-zone.blade.php +++ b/resources/views/filament/infolists/entries/enterprise-detail/decision-zone.blade.php @@ -33,24 +33,22 @@
@if ($primaryNextStep !== null) - -
+
+
+ {{ $primaryNextStep['label'] ?? 'Primary next step' }} +
+
{{ $primaryNextStep['text'] ?? 'No action needed.' }}
- +
@endif @if (filled($compactCounts['summaryLine'] ?? null) || $countFacts !== []) - -
+
+
+ Counts +
+
@if (filled($compactCounts['summaryLine'] ?? null))
{{ $compactCounts['summaryLine'] }} @@ -64,7 +62,7 @@ ]) @endif
- +
@endif