-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Identified risks enhancements (#1573)
Resolves: https://issues.redhat.com/browse/MTA-1723 https://issues.redhat.com/browse/MTA-1749 https://issues.redhat.com/browse/MTA-1754 https://issues.redhat.com/browse/MTA-1762 Resolves: #1568 Resolves: #1570 Resolves: #1569 - New query to collate all apps that are inheriting a specific assessment based on underlying archetype inheritance. Use this new data to fix the applications column in the identified risks table to accurately reflect which applications have a specific risk level for a given answer. - Adds the ability to filter the applications table by the applications shown within the identified risks column. - Adds expandable functionality for rationale and mitigation text - Adds risk column for answer risk level - Link to risk filtered app inventory from landscape in reports page --------- Signed-off-by: ibolton336 <[email protected]>
- Loading branch information
1 parent
f620e0a
commit 85ac7b4
Showing
23 changed files
with
697 additions
and
668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
import { TimesCircleIcon, WarningTriangleIcon } from "@patternfly/react-icons"; | ||
import { IconedStatus } from "@app/components/IconedStatus"; | ||
|
||
interface RiskIconProps { | ||
risk: string; | ||
} | ||
|
||
const RiskIcon: React.FC<RiskIconProps> = ({ risk }) => { | ||
switch (risk) { | ||
case "green": | ||
return <IconedStatus preset="Ok" />; | ||
case "red": | ||
return <IconedStatus icon={<TimesCircleIcon />} status="danger" />; | ||
case "yellow": | ||
return <IconedStatus icon={<WarningTriangleIcon />} status="warning" />; | ||
default: | ||
return <IconedStatus preset="Unknown" />; | ||
} | ||
}; | ||
|
||
export default RiskIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.