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 #460
  • Loading branch information
kapr200 authored and Venefilyn committed Oct 1, 2024
1 parent 266c8ee commit e989730
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 @@ -2,9 +2,12 @@
// SPDX-License-Identifier: MIT

import {
AngleDoubleRightIcon,
CheckCircleIcon,
ExclamationCircleIcon,
ExclamationTriangleIcon,
HourglassHalfIcon,
InProgressIcon,
InfoCircleIcon,
} from "@patternfly/react-icons";
import React, { useEffect, useState } from "react";
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 e989730

Please sign in to comment.