@@ -32,7 +32,6 @@ import {
32
32
useAsync ,
33
33
not ,
34
34
ZERO_TIME_STRING ,
35
- extractImage ,
36
35
useInterval ,
37
36
URLS ,
38
37
ServerError ,
@@ -60,13 +59,13 @@ import { getTagDetails, getTriggerDetails, cancelCiTrigger, cancelPrePostCdTrigg
60
59
import { DEFAULT_ENV , TIMEOUT_VALUE , WORKER_POD_BASE_URL } from './constants'
61
60
import { GitTriggers } from '../../types'
62
61
import warn from '../../../Assets/Icon/ic-warning.svg'
63
- import docker from '../../../Assets/Icon/ic-docker.svg'
64
62
import { LogsRenderer } from './LogsRenderer'
65
63
import DeploymentDetailSteps from './DeploymentDetailSteps'
66
64
import { DeploymentHistoryDetailedView , DeploymentHistoryConfigList } from './DeploymentHistoryDiff'
67
65
import { GitChanges , Scroller } from './History.components'
68
66
import Artifacts from './Artifacts'
69
67
import { statusColor as colorMap , EMPTY_STATE_STATUS , PULSATING_STATUS_MAP } from '../../constants'
68
+ import { ImageChipCell } from '../ImageChipCell'
70
69
import './cicdHistory.scss'
71
70
72
71
const Finished = React . memo (
@@ -88,10 +87,7 @@ const Finished = React.memo(
88
87
{ type === HistoryComponentType . CI && artifact && (
89
88
< >
90
89
< div className = "dc__bullet" />
91
- < div className = "dc__app-commit__hash" >
92
- < img src = { docker } alt = "docker" className = "commit-hash__icon grayscale" />
93
- { extractImage ( artifact ) }
94
- </ div >
90
+ < ImageChipCell imagePath = { artifact } placement = "top" />
95
91
</ >
96
92
) }
97
93
</ div >
@@ -111,7 +107,7 @@ const WorkerStatus = React.memo(
111
107
const getViewWorker = ( ) =>
112
108
showLink ? (
113
109
< NavLink to = { `${ WORKER_POD_BASE_URL } /${ workerPodName } /logs` } target = "_blank" className = "anchor" >
114
- < div className = "mr-10" > View worker pod</ div >
110
+ < span className = "mr-10 fs-13 " > View worker pod</ span >
115
111
</ NavLink >
116
112
) : null
117
113
@@ -310,14 +306,7 @@ const StartDetails = ({
310
306
311
307
{ type === HistoryComponentType . CD ? (
312
308
// eslint-disable-next-line react/jsx-no-useless-fragment
313
- < >
314
- { artifact && (
315
- < div className = "dc__app-commit__hash" data-testid = "docker-image-hash" >
316
- < img src = { docker } alt = "docker" className = "commit-hash__icon grayscale" />
317
- { artifact . split ( ':' ) [ 1 ] }
318
- </ div >
319
- ) }
320
- </ >
309
+ < > { artifact && < ImageChipCell imagePath = { artifact } placement = "top" /> } </ >
321
310
) : (
322
311
Object . keys ( gitTriggers ?? { } ) . length > 0 &&
323
312
ciMaterials ?. map ( ( ciMaterial ) => {
0 commit comments