feat: add 'Alert' badge to findings triggered by alert-triggered analysis
Shows a purple '⚡ Alert' badge on findings that were discovered through
alert-triggered analysis rather than scheduled patrol runs. This gives
users visibility into how findings were discovered without cluttering
the patrol run history table.
This commit is contained in:
parent
a2b3878ad2
commit
4cc74021fd
1 changed files with 9 additions and 0 deletions
|
|
@ -2894,6 +2894,15 @@ function OverviewTab(props: {
|
|||
🔇 Suppressed
|
||||
</span>
|
||||
</Show>
|
||||
{/* Alert-triggered badge - shows when finding came from alert-triggered analysis */}
|
||||
<Show when={finding.alert_id}>
|
||||
<span
|
||||
class="text-[10px] px-1.5 py-0.5 rounded bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400 flex-shrink-0"
|
||||
title="This finding was discovered by alert-triggered analysis"
|
||||
>
|
||||
⚡ Alert
|
||||
</span>
|
||||
</Show>
|
||||
{/* Resource name pill */}
|
||||
<span class="text-xs px-2 py-0.5 rounded bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 flex-shrink-0 hidden sm:inline">
|
||||
{finding.resource_name}
|
||||
|
|
|
|||
Loading…
Reference in a new issue