Skip to content

Commit fb883d3

Browse files
committed
timeline updates
1 parent d7ba9fc commit fb883d3

File tree

1 file changed

+12
-1
lines changed
  • src/pages/scientificServices/pipelines/tabs/history/details/components

1 file changed

+12
-1
lines changed

src/pages/scientificServices/pipelines/tabs/history/details/components/JobTimeline.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export const JobTimeline = ({ pipelineRunResult }: JobTimelineProps) => {
131131
backgroundColor: 'white',
132132
borderRadius: '4px',
133133
minHeight: '4rem',
134+
opacity: !event.timestamp && pipelineRunResult.jobReport.status === 'FAILED' ? 0.5 : 1,
134135
}}
135136
>
136137
{/* Success icon */}
@@ -145,7 +146,17 @@ export const JobTimeline = ({ pipelineRunResult }: JobTimelineProps) => {
145146
width: '100%',
146147
}}
147148
>
148-
<div style={{ fontWeight: 'bold' }}>{event.event}</div>
149+
<div
150+
style={{
151+
fontWeight: 'bold',
152+
color:
153+
!event.timestamp && pipelineRunResult.jobReport.status === 'FAILED'
154+
? colors.dark(0.5)
155+
: colors.dark(),
156+
}}
157+
>
158+
{event.event}
159+
</div>
149160
<div>
150161
{event.timestamp ? (
151162
new Date(event.timestamp).toLocaleString()

0 commit comments

Comments
 (0)