Skip to content

Commit 7c9f92e

Browse files
committed
feat: replace svg for trigger details status
1 parent 7b3a2ff commit 7c9f92e

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

src/Shared/Components/CICDHistory/TriggerOutput.tsx

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import DeploymentDetailSteps from './DeploymentDetailSteps'
6767
import { DeploymentHistoryDetailedView, DeploymentHistoryConfigList } from './DeploymentHistoryDiff'
6868
import { GitChanges, Scroller } from './History.components'
6969
import Artifacts from './Artifacts'
70-
import { statusColor as colorMap, EMPTY_STATE_STATUS, PULSATING_STATUS_MAP } from '../../constants'
70+
import { statusColor as colorMap, EMPTY_STATE_STATUS } from '../../constants'
7171
import './cicdHistory.scss'
7272

7373
const Finished = React.memo(
@@ -367,31 +367,27 @@ const TriggerDetailsStatusIcon = React.memo(
367367
({ status }: TriggerDetailsStatusIconType): JSX.Element => (
368368
<div className="flexbox-col">
369369
<div className="flex">
370-
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
371-
<circle cx="5" cy="5" r="4.5" fill="white" stroke="#3B444C" />
370+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
371+
<circle cx="10" cy="10" r="5" stroke="var(--N700)" />
372+
<path d="M10 15L10 20" stroke="var(--N700)" />
372373
</svg>
373374
</div>
374375

375376
<div className="flex flex-grow-1">
376377
<div className="dc__border-left--n7 h-100" />
377378
</div>
378379

379-
<svg
380-
width="10"
381-
height="10"
382-
viewBox="0 0 10 10"
383-
fill="none"
384-
className={`br-6 ${PULSATING_STATUS_MAP[status] ? 'dc__pulsate' : ''}`}
385-
style={
386-
!PULSATING_STATUS_MAP[status]
387-
? {
388-
boxShadow: `0 0 10px ${colorMap[status]}`,
389-
}
390-
: {}
391-
}
392-
xmlns="http://www.w3.org/2000/svg"
393-
>
394-
<circle cx="5" cy="5" r="4.5" fill={colorMap[status]} stroke={colorMap[status]} strokeOpacity="0.3" />
380+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
381+
<circle
382+
cx="10"
383+
cy="10"
384+
r="5"
385+
fill={colorMap[status]}
386+
stroke={colorMap[status]}
387+
strokeOpacity="0.3"
388+
strokeWidth="10"
389+
/>
390+
<path d="M10 0L10 5" stroke="var(--N700)" />
395391
</svg>
396392
</div>
397393
),

0 commit comments

Comments
 (0)