Skip to content

Commit

Permalink
✨ Add question mark icon for archetype assessed indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Nov 21, 2023
1 parent d215b73 commit e00ea89
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
"artifact": "Artifact",
"artifactAssociated": "Associated artifact",
"artifactNotAssociated": "No associated artifact",
"assessedArchetype": "Archetype assessed",
"assessment": "Assessment",
"assessmentQuestionnaires": "Assessment questionnaires",
"assessmentNotes": "Assessment notes",
Expand Down Expand Up @@ -368,6 +369,7 @@
"repositoryType": "Repository type",
"review": "Review",
"reviewedArchetype": "Archetype reviewed",

"reviews": "Reviews",
"reviewComments": "Review comments",
"risk": "Risk",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,10 @@ export const ApplicationsTable: React.FC = () => {
(archetype) => !!archetype?.review
);

const hasAssessedArchetype = applicationArchetypes?.some(
(archetype) => !!archetype?.assessments?.length
);

return (
<Tr
key={application.name}
Expand Down Expand Up @@ -869,22 +873,45 @@ export const ApplicationsTable: React.FC = () => {
/>
)}
</Td>
<Td
{/* <Td
width={10}
modifier="truncate"
{...getTdProps({ columnKey: "assessment" })}
>
<ApplicationAssessmentStatus
application={application}
/>
</Td> */}
<Td
width={10}
modifier="truncate"
{...getTdProps({ columnKey: "assessment" })}
>
<Grid>
<GridItem span={8}>
<ApplicationAssessmentStatus
application={application}
/>
</GridItem>
<GridItem span={1}>
{hasAssessedArchetype && (
<Tooltip
content={t("terms.assessedArchetype")}
aria-label="assessment"
>
<QuestionCircleIcon />
</Tooltip>
)}
</GridItem>
</Grid>
</Td>
<Td
width={10}
modifier="truncate"
{...getTdProps({ columnKey: "review" })}
>
<Grid>
<GridItem span={10}>
<GridItem span={8}>
<IconedStatus
preset={
isAppReviewed || hasReviewedArchetype
Expand All @@ -893,7 +920,7 @@ export const ApplicationsTable: React.FC = () => {
}
/>
</GridItem>
<GridItem span={2}>
<GridItem span={1}>
{hasReviewedArchetype ? (
<Tooltip
content={t("terms.reviewedArchetype")}
Expand Down

0 comments on commit e00ea89

Please sign in to comment.