@@ -7,7 +7,14 @@ import '../../i18n/config'
77import * as Redux from 'redux'
88import { Box , Button , CircularProgress , Divider , Grid , Tab , Tabs } from '@mui/material'
99import { CalendarIcon } from '@mui/x-date-pickers'
10- import { DirectionsRun , SportsScore , Start } from '@mui/icons-material'
10+ import {
11+ DirectionsRun ,
12+ EscalatorWarning ,
13+ Speed ,
14+ SportsScore ,
15+ Start ,
16+ Title ,
17+ } from '@mui/icons-material'
1118import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
1219import { IState } from '../../store/reducers'
1320import { LineageJob } from '../../types/lineage'
@@ -36,12 +43,12 @@ import CloseIcon from '@mui/icons-material/Close'
3643import Dialog from '../Dialog'
3744import IconButton from '@mui/material/IconButton'
3845import JobTags from './JobTags'
46+ import MQTooltip from '../core/tooltip/MQTooltip'
3947import MqEmpty from '../core/empty/MqEmpty'
4048import MqStatus from '../core/status/MqStatus'
4149import MqText from '../core/text/MqText'
4250import RunInfo from './RunInfo'
4351import Runs from './Runs'
44- import SpeedRounded from '@mui/icons-material/SpeedRounded'
4552
4653interface DispatchProps {
4754 fetchLatestRuns : typeof fetchLatestRuns
@@ -207,48 +214,70 @@ const JobDetailPage: FunctionComponent<IProps> = (props) => {
207214 </ Box >
208215 </ Box >
209216 < Grid container spacing = { 2 } >
210- < Grid item xs = { 4 } >
217+ < Grid item xs = { 3 } >
211218 < MqInfo
212219 icon = { < CalendarIcon color = { 'disabled' } /> }
213220 label = { 'Created at' . toUpperCase ( ) }
214221 value = { formatUpdatedAt ( job . createdAt ) }
215222 />
216223 </ Grid >
217- < Grid item xs = { 4 } >
224+ < Grid item xs = { 3 } >
218225 < MqInfo
219226 icon = { < CalendarIcon color = { 'disabled' } /> }
220227 label = { 'Updated at' . toUpperCase ( ) }
221228 value = { formatUpdatedAt ( job . updatedAt ) }
222229 />
223230 </ Grid >
224- < Grid item xs = { 4 } >
231+ < Grid item xs = { 3 } >
225232 < MqInfo
226- icon = { < SpeedRounded color = { 'disabled' } /> }
233+ icon = { < Speed color = { 'disabled' } /> }
227234 label = { 'Last Runtime' . toUpperCase ( ) }
228235 value = { job . latestRun ? stopWatchDuration ( job . latestRun . durationMs ) : 'N/A' }
229236 />
230237 </ Grid >
231- < Grid item xs = { 4 } >
238+ < Grid item xs = { 3 } >
239+ < MqInfo
240+ icon = { < Title color = { 'disabled' } /> }
241+ label = { 'Type' . toUpperCase ( ) }
242+ value = { job . type ? job . type : 'N/A' }
243+ />
244+ </ Grid >
245+ < Grid item xs = { 3 } >
232246 < MqInfo
233247 icon = { < Start color = { 'disabled' } /> }
234248 label = { 'Last Started' . toUpperCase ( ) }
235249 value = { job . latestRun ? formatUpdatedAt ( job . latestRun . startedAt ) : 'N/A' }
236250 />
237251 </ Grid >
238- < Grid item xs = { 4 } >
252+ < Grid item xs = { 3 } >
239253 < MqInfo
240254 icon = { < SportsScore color = { 'disabled' } /> }
241255 label = { 'Last Finished' . toUpperCase ( ) }
242256 value = { job . latestRun ? formatUpdatedAt ( job . latestRun . endedAt ) : 'N/A' }
243257 />
244258 </ Grid >
245- < Grid item xs = { 4 } >
259+ < Grid item xs = { 3 } >
246260 < MqInfo
247261 icon = { < DirectionsRun color = { 'disabled' } /> }
248262 label = { 'Running Status' . toUpperCase ( ) }
249263 value = { < MqStatus label = { job . latestRun ?. state } color = { jobRunsStatus ( latestRuns ) } /> }
250264 />
251265 </ Grid >
266+ < Grid item xs = { 3 } >
267+ < MqInfo
268+ icon = { < EscalatorWarning color = { 'disabled' } /> }
269+ label = { 'Parent Job' . toUpperCase ( ) }
270+ value = {
271+ job . parentJobName ? (
272+ < MQTooltip title = { job . parentJobName } >
273+ < > { truncateText ( job . parentJobName , 16 ) } </ >
274+ </ MQTooltip >
275+ ) : (
276+ 'N/A'
277+ )
278+ }
279+ />
280+ </ Grid >
252281 </ Grid >
253282 < Divider sx = { { my : 1 } } />
254283 < JobTags jobTags = { jobTags } jobName = { job . name } namespace = { job . namespace } />
0 commit comments