@@ -7,7 +7,14 @@ import { format } from 'date-fns';
77import { Box , ColumnLayout , Container , Header , Loader , NavigateLink , StatusIndicator } from 'components' ;
88
99import { DATE_TIME_FORMAT } from 'consts' ;
10- import { getRunError , getRunPriority , getRunStatusMessage , getStatusIconColor , getStatusIconType } from 'libs/run' ;
10+ import {
11+ getRunError ,
12+ getRunPriority ,
13+ getRunProbeStatuses ,
14+ getRunStatusMessage ,
15+ getStatusIconColor ,
16+ getStatusIconType ,
17+ } from 'libs/run' ;
1118import { ROUTES } from 'routes' ;
1219import { useGetRunQuery } from 'services/run' ;
1320
@@ -65,6 +72,14 @@ export const RunDetails = () => {
6572
6673 const statusMessage = getRunStatusMessage ( runData ) ;
6774
75+ const renderRobeStatuses = ( ) => {
76+ const statuses = getRunProbeStatuses ( runData ) ;
77+
78+ if ( ! statuses . length ) return '-' ;
79+
80+ return statuses . map ( ( statusType , index ) => < StatusIndicator key = { index } type = { statusType } /> ) ;
81+ } ;
82+
6883 return (
6984 < >
7085 < Container header = { < Header variant = "h2" > { t ( 'common.general' ) } </ Header > } >
@@ -112,6 +127,7 @@ export const RunDetails = () => {
112127
113128 < div >
114129 < Box variant = "awsui-key-label" > { t ( 'projects.run.status' ) } </ Box >
130+
115131 < div >
116132 < StatusIndicator
117133 type = { getStatusIconType ( status , terminationReason ) }
@@ -122,6 +138,13 @@ export const RunDetails = () => {
122138 </ div >
123139 </ div >
124140
141+ { runData . jobs . length <= 1 && (
142+ < div >
143+ < Box variant = "awsui-key-label" > { t ( 'projects.run.probe' ) } </ Box >
144+ < div > { renderRobeStatuses ( ) } </ div >
145+ </ div >
146+ ) }
147+
125148 < div >
126149 < Box variant = "awsui-key-label" > { t ( 'projects.run.error' ) } </ Box >
127150 < div > { getRunError ( runData ) ?? '-' } </ div >
0 commit comments