From 51f9a04d8254378345f87648af11fa989f118e40 Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Tue, 21 Nov 2023 15:04:01 -0500 Subject: [PATCH] :sparkles: Add question mark icon for archetype assessed indicator Signed-off-by: ibolton336 --- client/public/locales/en/translation.json | 2 ++ .../applications-table/applications-table.tsx | 33 +++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/client/public/locales/en/translation.json b/client/public/locales/en/translation.json index 46a981598c..c74d7b0c8a 100644 --- a/client/public/locales/en/translation.json +++ b/client/public/locales/en/translation.json @@ -251,6 +251,7 @@ "artifact": "Artifact", "artifactAssociated": "Associated artifact", "artifactNotAssociated": "No associated artifact", + "assessedArchetype": "Archetype assessed", "assessment": "Assessment", "assessmentQuestionnaires": "Assessment questionnaires", "assessmentNotes": "Assessment notes", @@ -368,6 +369,7 @@ "repositoryType": "Repository type", "review": "Review", "reviewedArchetype": "Archetype reviewed", + "reviews": "Reviews", "reviewComments": "Review comments", "risk": "Risk", diff --git a/client/src/app/pages/applications/applications-table/applications-table.tsx b/client/src/app/pages/applications/applications-table/applications-table.tsx index d5660fbca9..e558d45ddb 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -841,6 +841,10 @@ export const ApplicationsTable: React.FC = () => { (archetype) => !!archetype?.review ); + const hasAssessedArchetype = applicationArchetypes?.some( + (archetype) => !!archetype?.assessments?.length + ); + return ( { /> )} - { + */} + + + + + + + {hasAssessedArchetype && ( + + + + )} + + { {...getTdProps({ columnKey: "review" })} > - + { } /> - + {hasReviewedArchetype ? (