Skip to content

Commit 19f5d9d

Browse files
status icons fixed for all type of status.
1 parent 7864dc6 commit 19f5d9d

File tree

9 files changed

+30
-6
lines changed

9 files changed

+30
-6
lines changed

src/constants/icons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export enum iconColors {
66
primary = 'primary',
77
red = 'red',
88
orange = 'orange',
9+
mustard = 'mustard',
910
}
1011

1112
export enum iconSizes {

src/ui/_globalStyles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $redColor: var(--red);
1818
$orangeColor: var(--orange);
1919
$darkerOrangeColor: var(--darkOrange);
2020
$ButterflyBlue: var(--butterflyBlue);
21+
$mustardColor: var(--mustard);
2122

2223
$imageFallbackBackgroundColor: var(--lightestGrey);
2324

src/ui/components/circles/index.module.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@
5757
.orange {
5858
background-color: $orangeColor;
5959
}
60+
.mustard {
61+
background-color: $mustardColor;
62+
}

src/ui/components/circles/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ type Colors =
1313
| 'green'
1414
| 'grey'
1515
| 'lightestGrey'
16-
| 'orange';
16+
| 'orange'
17+
| 'mustard';
1718

1819
export const ColoredCircle: React.FC<{ color: Colors; size: Sizes }> = ({
1920
children,
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

src/ui/components/icons/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ import { ReactComponent as StackComponent } from './assets/StackComponent.svg';
3939
import { ReactComponent as FunnelFill } from './assets/FunnelFill.svg';
4040
import { ReactComponent as Delete } from './assets/Delete.svg';
4141
import { ReactComponent as SimplePlus } from './assets/SimplePlus.svg';
42+
import { ReactComponent as Inprogress } from './assets/InProgress.svg';
43+
import { ReactComponent as Cached } from './assets/Cached.svg';
4244

4345
import styles from './index.module.scss';
4446
import { joinClassNames } from '../../../utils/styles';
@@ -111,6 +113,8 @@ const icons = {
111113
table: createIcon({ Component: Table }),
112114
check: createIcon({ Component: Check, useStroke: true }),
113115
close: createIcon({ Component: Close, useStroke: true }),
116+
cached: createIcon({ Component: Cached, useStroke: true }),
117+
inProgress: createIcon({ Component: Inprogress, useStroke: true }),
114118
chevronLeft: createIcon({ Component: ChevronLeft }),
115119
chevronRight: createIcon({
116120
Component: ChevronLeft,

src/ui/default.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
--red: #FF5C93;
1717
--blue: #22BBDD;
1818
--butterflyBlue: #3699FF;
19+
--mustard:#E8A562;
1920
}

src/ui/layouts/pipelines/Pipelines/List/Status/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
import { useService } from './useService';
1212

1313
export const Status: React.FC<{ pipeline: TPipeline }> = ({ pipeline }) => {
14-
const { lastThreeRuns } = useService({ pipeline });
15-
// const lastThreeRuns: any[] = ['failed', 'completed', 'running', 'cached'];
14+
// const { lastThreeRuns } = useService({ pipeline });
15+
const lastThreeRuns: any[] = ['failed', 'completed', 'running', 'cached'];
1616
return (
1717
<FlexBox alignItems="center">
1818
{lastThreeRuns.map((status: any, index: number) => (
@@ -30,7 +30,10 @@ export const Status: React.FC<{ pipeline: TPipeline }> = ({ pipeline }) => {
3030
<If condition={status === runStatus.RUNNING}>
3131
{() => (
3232
<ColoredCircle color="secondary" size="xs">
33-
{/* <icons color={iconColors.orange} size={iconSizes.xs} /> */}
33+
<icons.inProgress
34+
color={iconColors.white}
35+
size={iconSizes.xs}
36+
/>
3437
</ColoredCircle>
3538
)}
3639
</If>
@@ -43,8 +46,8 @@ export const Status: React.FC<{ pipeline: TPipeline }> = ({ pipeline }) => {
4346
</If>
4447
<If condition={status === runStatus.CACHED}>
4548
{() => (
46-
<ColoredCircle color="primary" size="xs">
47-
{/* <icons.close color={iconColors.white} size={iconSizes.xs} /> */}
49+
<ColoredCircle color="mustard" size="xs">
50+
<icons.cached color={iconColors.white} size={iconSizes.xs} />
4851
</ColoredCircle>
4952
)}
5053
</If>

0 commit comments

Comments
 (0)