Skip to content

Commit f33bda4

Browse files
committed
much more style
1 parent fa93631 commit f33bda4

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

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

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const JobBasics = ({ pipelineRunResult }: JobBasicsProps) => {
8282
<div
8383
style={{
8484
width: '100%',
85-
backgroundColor: '#f5f6f9',
85+
background: `linear-gradient(to right, #f5f6f9, ${getStatusColor(pipelineRunResult.jobReport.status)}15)`,
8686
border: '1px solid #d7d9dc',
8787
borderRadius: '4px',
8888
paddingLeft: '1.5rem',
@@ -93,10 +93,34 @@ export const JobBasics = ({ pipelineRunResult }: JobBasicsProps) => {
9393
}}
9494
>
9595
<div style={{ marginBottom: '1rem' }}>
96-
<h2>{pipelineDetails && <AoUStylizedString text={pipelineDetails.displayName} />}</h2>
97-
{pipelineDetails && pipelineDetails.description && (
98-
<div style={{ margin: '1rem 0rem', color: colors.dark(0.8) }}>{pipelineDetails.description}</div>
99-
)}
96+
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
97+
<div style={{ flex: 1 }}>
98+
<h2>{pipelineDetails && <AoUStylizedString text={pipelineDetails.displayName} />}</h2>
99+
{pipelineDetails && pipelineDetails.description && (
100+
<div style={{ margin: '1rem 0rem', color: colors.dark(0.8) }}>{pipelineDetails.description}</div>
101+
)}
102+
</div>
103+
104+
{/* Status Badge */}
105+
<div
106+
style={{
107+
display: 'flex',
108+
alignItems: 'center',
109+
gap: '0.5rem',
110+
textTransform: 'capitalize',
111+
fontSize: 18,
112+
fontWeight: 600,
113+
border: '1px solid #d7d9dc',
114+
padding: '0.5rem 0.75rem',
115+
borderRadius: '4px',
116+
backgroundColor: '#fff',
117+
color: getStatusColor(pipelineRunResult.jobReport.status),
118+
}}
119+
>
120+
{getStatusIcon(pipelineRunResult.jobReport.status)}
121+
{pipelineRunResult.jobReport.status.toLowerCase()}
122+
</div>
123+
</div>
100124
</div>
101125
{/* Description */}
102126
<div

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ interface JobTimelineProps {
1010

1111
const MOCK_TIMELINE_EVENTS = [
1212
{ timestamp: '2024-01-01T10:00:00Z', event: 'Submitted' },
13-
{ timestamp: '2024-01-01T10:05:11Z', event: 'Started' },
14-
{ timestamp: '2024-01-01T10:05:37Z', event: 'Passed QC' },
13+
{ timestamp: '2024-01-01T10:05:10Z', event: 'Passed QC' },
14+
{ timestamp: '2024-01-01T10:06:11Z', event: 'Started' },
1515
{ timestamp: '2024-01-01T10:20:01Z', event: 'Succeeded' },
1616
];
1717

@@ -61,9 +61,8 @@ export const JobTimeline = ({ pipelineRunResult }: JobTimelineProps) => {
6161
gap: '0.5rem',
6262
backgroundColor: 'white',
6363
padding: '0.5rem 0.75rem',
64-
border: `1px solid ${colors.light(0.4)}`,
64+
border: '1px solid #D8D9DC',
6565
borderRadius: '20px',
66-
fontSize: '0.875rem',
6766
fontWeight: 500,
6867
}}
6968
>

0 commit comments

Comments
 (0)