Skip to content

Commit

Permalink
🐛 Add application risk to assessment drawer (#1488)
Browse files Browse the repository at this point in the history
https://issues.redhat.com/browse/MTA-1504

---------

Signed-off-by: ibolton336 <ibolton@redhat.com>
Signed-off-by: Ian Bolton <ibolton@redhat.com>
  • Loading branch information
ibolton336 authored Oct 26, 2023
1 parent bd5a4b0 commit fe11195
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
2 changes: 2 additions & 0 deletions client/src/app/api/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export interface Application {
assessments?: Ref[];
assessed?: boolean;
archetypes?: Ref[];
risk?: Risk;
confidence?: number;
}

export interface Review {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from "./application-detail-drawer";
import { useFetchReviewById } from "@app/queries/reviews";
import { ReviewedArchetypeItem } from "./reviewed-archetype-item";
import { RiskLabel } from "@app/components/RiskLabel";

export interface IApplicationDetailDrawerAssessmentProps
extends Pick<IApplicationDetailDrawerProps, "application" | "onCloseClick"> {
Expand Down Expand Up @@ -136,12 +137,12 @@ export const ApplicationDetailDrawerAssessment: React.FC<
{appReview?.workPriority || notYetReviewed}
</DescriptionListDescription>
</DescriptionListGroup>
{/* <DescriptionListGroup>
<DescriptionListGroup>
<DescriptionListTerm>{t("terms.risk")}</DescriptionListTerm>
<DescriptionListDescription cy-data="risk">
{application && <ApplicationRisk application={application} />}
<RiskLabel risk={application?.risk || "unknown"} />
</DescriptionListDescription>
</DescriptionListGroup> */}
</DescriptionListGroup>
</DescriptionList>
<TextContent className={spacing.mtLg}>
<Title headingLevel="h3" size="md">
Expand Down

This file was deleted.

0 comments on commit fe11195

Please sign in to comment.