diff --git a/frontend-modern/src/pages/Alerts.tsx b/frontend-modern/src/pages/Alerts.tsx index 73a22af..52a5d5e 100644 --- a/frontend-modern/src/pages/Alerts.tsx +++ b/frontend-modern/src/pages/Alerts.tsx @@ -7,7 +7,7 @@ import { ThresholdsTable } from '@/components/Alerts/ThresholdsTable'; import { InvestigateAlertButton } from '@/components/Alerts/InvestigateAlertButton'; import type { RawOverrideConfig, PMGThresholdDefaults, SnapshotAlertConfig, BackupAlertConfig } from '@/types/alerts'; import { Card } from '@/components/shared/Card'; -import { AIOverviewTable } from '@/components/shared/AIOverviewTable'; + import { SectionHeader } from '@/components/shared/SectionHeader'; import { SettingsPanel } from '@/components/shared/SettingsPanel'; import { Toggle } from '@/components/shared/Toggle'; @@ -2817,9 +2817,8 @@ function OverviewTab(props: { -
- -
+ {/* AI Intelligence Summary removed - patrol findings below provide the same value without noise */} +
@@ -7250,260 +7249,260 @@ function HistoryTab() { const rowKey = getIncidentRowKey(alert); return ( <> - - {/* Timestamp */} - - {new Date(alert.startTime).toLocaleTimeString('en-US', { - hour: '2-digit', - minute: '2-digit', - })} - - - {/* Source */} - - - {alert.source === 'ai' ? 'AI' : 'Alert'} - - - - {/* Resource */} - - {alert.resourceName} - - - {/* Type */} - - - {alert.type} - - - - {/* Severity */} - - - {alert.level} - - - - {/* Message */} - - {alert.message} - + {/* Timestamp */} + + {new Date(alert.startTime).toLocaleTimeString('en-US', { + hour: '2-digit', + minute: '2-digit', + })} + - {/* Duration */} - - {alert.duration} - + {/* Source */} + + + {alert.source === 'ai' ? 'AI' : 'Alert'} + + - {/* Status */} - - + {alert.resourceName} + + + {/* Type */} + + + {alert.type} + + + + {/* Severity */} + + + {alert.level} + + + + {/* Message */} + - {alert.status} - - + {alert.message} + - {/* Node */} - - {alert.node || '—'} - + {/* Duration */} + + {alert.duration} + - {/* Actions */} - -
- - - - - - - - - -
- - - - - - -

Loading timeline...

-
- - - {(timeline) => ( -
-
- Incident - {timeline().status} - - - acknowledged - - - - opened {new Date(timeline().openedAt).toLocaleString()} - - - closed {new Date(timeline().closedAt as string).toLocaleString()} - -
- {(() => { - const events = timeline().events || []; - const filteredEvents = filterIncidentEvents(events, historyIncidentEventFilters()); - return ( - <> - 0}> - - - 0}> -
- - {(event) => ( -
-
- - {event.summary} - - {new Date(event.timestamp).toLocaleString()} -
- -

- {(event.details as { note?: string }).note} -

-
- -

- {(event.details as { command?: string }).command} -

-
- -

- {(event.details as { output_excerpt?: string }).output_excerpt} -

-
-
- )} -
-
-
- 0 && filteredEvents.length === 0}> -

- No timeline events match the selected filters. -

-
- -

No timeline events yet.

-
- - ); - })()} -
-