Skip to content

Commit b8be96c

Browse files
fix[frontend](alerts): separated source and adversaries into separated columns
1 parent ddeec68 commit b8be96c

3 files changed

Lines changed: 8 additions & 17 deletions

File tree

‎frontend/src/features/alerts/components/alert-row.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { isAiNote } from '../lib/ai-note'
66
import type { Alert, AlertTag } from '../types/alert.types'
77
import { AlertIncidentTarget } from './alert-incident-target'
88
import { EchoesChip } from './echoes-chip'
9+
import { EndpointMini } from './endpoint-mini'
910
import { StatusChangeMenu } from './status-change-menu'
1011
import { TagChip } from './tag-chip'
11-
import { FlowCell } from './flow-cell'
1212

1313
const TD = 'whitespace-nowrap px-3 py-2.5 align-middle'
1414

@@ -128,7 +128,10 @@ export function AlertRow({
128128
{a.technique || '—'}
129129
</td>
130130
<td className={TD}>
131-
<FlowCell source={a.target} adversary={a.adversary} />
131+
<EndpointMini ep={a.target} />
132+
</td>
133+
<td className={TD}>
134+
<EndpointMini ep={a.adversary} accent />
132135
</td>
133136
<td className={`${TD} text-center`}>
134137
<span

‎frontend/src/features/alerts/components/alerts-table-header.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export function AlertsTableHeader({ allChecked, onTogglePage }: { allChecked: bo
1717
<th className={TH}>{t('alerts.table.alert')}</th>
1818
<th className={TH}>{t('alerts.table.status')}</th>
1919
<th className={TH}>{t('alerts.table.technique')}</th>
20-
<th className={TH}>{t('alerts.table.sourceAdversary')}</th>
20+
<th className={TH}>{t('alerts.table.source')}</th>
21+
<th className={TH}>{t('alerts.table.adversary')}</th>
2122
<th className={`${TH} text-center`}>{t('alerts.table.severity')}</th>
2223
<th className={`${TH} text-center`}>{t('alerts.table.echoes')}</th>
2324
<th className={`${TH} text-center`}>{t('alerts.table.time')}</th>
@@ -26,4 +27,4 @@ export function AlertsTableHeader({ allChecked, onTogglePage }: { allChecked: bo
2627
)
2728
}
2829

29-
export const ALERTS_TABLE_COLUMN_COUNT = 11
30+
export const ALERTS_TABLE_COLUMN_COUNT = 12

‎frontend/src/features/alerts/components/flow-cell.tsx‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)