refactor: reduce operation run detail density
This commit is contained in:
parent
c1479600d6
commit
78c7161921
@ -359,6 +359,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support
|
|||||||
],
|
],
|
||||||
visible: $artifactTruth !== null,
|
visible: $artifactTruth !== null,
|
||||||
description: 'Detailed artifact-truth context explains evidence quality and caveats without repeating the top decision summary.',
|
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,
|
entries: $counts,
|
||||||
description: 'Normalized run counters remain available for deeper inspection without competing with the primary decision.',
|
description: 'Normalized run counters remain available for deeper inspection without competing with the primary decision.',
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
collapsed: false,
|
collapsed: true,
|
||||||
variant: 'diagnostic',
|
variant: 'diagnostic',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -398,7 +400,7 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support
|
|||||||
view: 'filament.infolists.entries.snapshot-json',
|
view: 'filament.infolists.entries.snapshot-json',
|
||||||
viewData: ['payload' => static::reconciliationPayload($record)],
|
viewData: ['payload' => static::reconciliationPayload($record)],
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
collapsed: false,
|
collapsed: true,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -418,6 +420,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support
|
|||||||
title: 'Baseline compare',
|
title: 'Baseline compare',
|
||||||
items: $baselineCompareFacts,
|
items: $baselineCompareFacts,
|
||||||
description: 'Type-specific comparison detail stays below the canonical decision and supporting layers.',
|
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',
|
title: 'Baseline compare evidence',
|
||||||
view: 'filament.infolists.entries.snapshot-json',
|
view: 'filament.infolists.entries.snapshot-json',
|
||||||
viewData: ['payload' => $baselineCompareEvidence],
|
viewData: ['payload' => $baselineCompareEvidence],
|
||||||
|
collapsible: true,
|
||||||
|
collapsed: true,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -465,6 +471,8 @@ private static function enterpriseDetailPage(OperationRun $record): \App\Support
|
|||||||
title: 'Baseline capture evidence',
|
title: 'Baseline capture evidence',
|
||||||
view: 'filament.infolists.entries.snapshot-json',
|
view: 'filament.infolists.entries.snapshot-json',
|
||||||
viewData: ['payload' => $baselineCaptureEvidence],
|
viewData: ['payload' => $baselineCaptureEvidence],
|
||||||
|
collapsible: true,
|
||||||
|
collapsed: true,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,24 +33,22 @@
|
|||||||
|
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
@if ($primaryNextStep !== null)
|
@if ($primaryNextStep !== null)
|
||||||
<x-filament::section
|
<div class="rounded-xl border-l-4 border-primary-500 bg-primary-50 px-4 py-4 dark:bg-primary-500/10">
|
||||||
compact
|
<div class="text-xs font-semibold uppercase tracking-[0.16em] text-primary-600 dark:text-primary-400">
|
||||||
secondary
|
{{ $primaryNextStep['label'] ?? 'Primary next step' }}
|
||||||
:heading="$primaryNextStep['label'] ?? 'Primary next step'"
|
</div>
|
||||||
>
|
<div class="mt-2 text-base font-semibold text-gray-950 dark:text-white">
|
||||||
<div class="text-base font-semibold text-gray-950 dark:text-white">
|
|
||||||
{{ $primaryNextStep['text'] ?? 'No action needed.' }}
|
{{ $primaryNextStep['text'] ?? 'No action needed.' }}
|
||||||
</div>
|
</div>
|
||||||
</x-filament::section>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (filled($compactCounts['summaryLine'] ?? null) || $countFacts !== [])
|
@if (filled($compactCounts['summaryLine'] ?? null) || $countFacts !== [])
|
||||||
<x-filament::section
|
<div class="rounded-xl border border-gray-200 bg-gray-50/70 px-4 py-4 dark:border-gray-700 dark:bg-gray-800/50">
|
||||||
compact
|
<div class="text-xs font-semibold uppercase tracking-[0.16em] text-gray-500 dark:text-gray-400">
|
||||||
secondary
|
Counts
|
||||||
heading="Counts"
|
</div>
|
||||||
>
|
<div class="mt-2 space-y-4">
|
||||||
<div class="space-y-4">
|
|
||||||
@if (filled($compactCounts['summaryLine'] ?? null))
|
@if (filled($compactCounts['summaryLine'] ?? null))
|
||||||
<div class="text-sm font-medium text-gray-900 dark:text-white">
|
<div class="text-sm font-medium text-gray-900 dark:text-white">
|
||||||
{{ $compactCounts['summaryLine'] }}
|
{{ $compactCounts['summaryLine'] }}
|
||||||
@ -64,7 +62,7 @@
|
|||||||
])
|
])
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</x-filament::section>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user