Skip to content

Commit

Permalink
Add missing states to status labels
Browse files Browse the repository at this point in the history
New colors and icons for:
* running
* pending
* skipped

Fixes packit#460
  • Loading branch information
kapr200 committed Oct 1, 2024
1 parent 266c8ee commit d7b1dbb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions frontend/src/components/statusLabels/StatusLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {
ExclamationCircleIcon,
ExclamationTriangleIcon,
InfoCircleIcon,
AngleDoubleRightIcon,
InProgressIcon,
HourglassHalfIcon,
} from "@patternfly/react-icons";
import React, { useEffect, useState } from "react";
import { BaseStatusLabel, BaseStatusLabelProps } from "./BaseStatusLabel";
Expand Down Expand Up @@ -39,6 +42,18 @@ export const StatusLabel: React.FC<StatusLabelProps> = (props) => {
setColor("orange");
setIcon(<ExclamationTriangleIcon />);
break;
case "pending":
setColor("cyan");
setIcon(<HourglassHalfIcon />);
break;
case "running":
setColor("blue");
setIcon(<InProgressIcon/>);
break;
case "skipped":
setColor("grey");
setIcon(<AngleDoubleRightIcon />);
break;
}
}, [props.status]);

Expand Down

0 comments on commit d7b1dbb

Please sign in to comment.