diff --git a/src/core/components/EmptyData/EmptyData.enum.ts b/src/core/components/EmptyData/EmptyData.enum.ts index 8af44f4a..b0da3bc5 100644 --- a/src/core/components/EmptyData/EmptyData.enum.ts +++ b/src/core/components/EmptyData/EmptyData.enum.ts @@ -1,3 +1,3 @@ export enum EmptyDataLabels { - Default = 'no data found' + Default = 'no results found' } diff --git a/src/pages/Processes/Processes.constant.ts b/src/pages/Processes/Processes.constant.ts index be2f0d8b..e8a0f5e4 100644 --- a/src/pages/Processes/Processes.constant.ts +++ b/src/pages/Processes/Processes.constant.ts @@ -96,6 +96,24 @@ export const processesConnectedColumns: SKColumn[] = [ } ]; +export const processesHttpConnectedColumns: SKColumn[] = [ + { + name: ProcessPairsColumnsNames.Process, + prop: 'destinationName' as keyof ProcessPairsResponse, + customCellName: 'ProcessLinkCell' + }, + { + name: ProcessPairsColumnsNames.Protocol, + prop: 'protocol' as keyof ProcessPairsResponse, + width: 10 + }, + { + name: '', + customCellName: 'viewDetailsLinkCell', + modifier: 'fitContent' + } +]; + const oldTcpHiddenColumns: Record = { [FlowPairsColumnsNames.Client]: { show: false diff --git a/src/pages/Processes/Processes.enum.ts b/src/pages/Processes/Processes.enum.ts index 12f7dadb..f641611f 100644 --- a/src/pages/Processes/Processes.enum.ts +++ b/src/pages/Processes/Processes.enum.ts @@ -61,5 +61,6 @@ export enum ProcessPairsColumnsNames { LatencyAvgRx = 'Avg Rx Latency', Flows = 'Flows', ViewDetails = 'view details', - Title = 'Processes Data transfers' + Title = 'Processes Data transfers', + Protocol = 'Protocol' } diff --git a/src/pages/Processes/views/Process.tsx b/src/pages/Processes/views/Process.tsx index 3220992c..6cc49a01 100644 --- a/src/pages/Processes/views/Process.tsx +++ b/src/pages/Processes/views/Process.tsx @@ -24,7 +24,11 @@ import { TopologyRoutesPaths, TopologyURLFilters, TopologyViews } from '@pages/T import { ProcessPairsResponse } from 'API/REST.interfaces'; import ProcessDescription from '../components/ProcessDescription'; -import { processesConnectedColumns, ProcessesConnectedComponentsTable } from '../Processes.constant'; +import { + processesConnectedColumns, + ProcessesConnectedComponentsTable, + processesHttpConnectedColumns +} from '../Processes.constant'; import { ProcessesLabels, ProcessesRoutesPaths } from '../Processes.enum'; import { QueriesProcesses } from '../services/services.enum'; @@ -157,7 +161,7 @@ const Process = function () { ) => DurationCell({ ...props, endTime: props.data.endTime || Date.now() * 1000, startTime: props.data.startTime }), ByteFormatCell: (props: HighlightValueCellProps) => - HighlightValueCell({ ...props, format: formatBytes }) + HighlightValueCell({ ...props, format: formatBytes }), + //TODO; BE need to fix it + HttpStatusCell: (props: { data?: FlowPairsResponse }) => + props.data?.counterFlow?.result || props.data?.forwardFlow?.result || '' }; export const tcpFlowPairsColumns: SKColumn[] = [ @@ -125,7 +128,8 @@ export const httpFlowPairsColumns: SKColumn[] = [ }, { name: FlowPairsColumnsNames.StatusCode, - prop: 'counterFlow.result' as keyof FlowPairsResponse + prop: 'counterFlow.result' as keyof FlowPairsResponse, + customCellName: 'HttpStatusCell' }, { name: FlowPairsColumnsNames.From,