From d95da66e62bdf7e27b586a9099935a329e6df0db Mon Sep 17 00:00:00 2001 From: bnguyen-bcgsc Date: Wed, 3 Apr 2024 15:13:50 -0700 Subject: [PATCH] - Add dynamic plural forms for key alteration categories in beta print view - Make 'Mutation Signature' plural - Remove duplicate Mutation Burden display in Rapid Summary - Merge develop into branch - DEVSU-2193 --- app/components/SummaryPrintTable/index.tsx | 4 ++-- app/views/PrintView/index.scss | 2 +- app/views/ReportView/components/GenomicSummary/index.tsx | 2 +- app/views/ReportView/components/RapidSummary/index.tsx | 4 ---- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/components/SummaryPrintTable/index.tsx b/app/components/SummaryPrintTable/index.tsx index ea4f4299d..057cfa94c 100644 --- a/app/components/SummaryPrintTable/index.tsx +++ b/app/components/SummaryPrintTable/index.tsx @@ -18,7 +18,7 @@ const variantToStrings: Dictionary = { cnv: 'CNV', smallMutation: 'Small Mutation', structuralVariant: 'Structural Variant', - expression: 'Expression', + expression: 'Expression Outlier', }; const SummaryPrintTable = ({ @@ -31,7 +31,7 @@ const SummaryPrintTable = ({ {data.filter((key) => (key.value !== null && key.value !== '')).map(({ [labelKey]: label, [valueKey]: value }) => ( - {variantTypes.includes(String(label)) ? variantToStrings[String(label)] : label} + {variantTypes.includes(String(label)) ? `${variantToStrings[String(label)]}${Object.values(value).length > 1 ? 's' : ''}` : label} {renderValue ? renderValue(value) : value} diff --git a/app/views/PrintView/index.scss b/app/views/PrintView/index.scss index d58afce84..33d1ddafc 100644 --- a/app/views/PrintView/index.scss +++ b/app/views/PrintView/index.scss @@ -33,7 +33,7 @@ .printbeta { &__logo { - max-width: 150px; + max-width: 250px; } &__headers { diff --git a/app/views/ReportView/components/GenomicSummary/index.tsx b/app/views/ReportView/components/GenomicSummary/index.tsx index 377bfbfb9..77feca0c2 100644 --- a/app/views/ReportView/components/GenomicSummary/index.tsx +++ b/app/views/ReportView/components/GenomicSummary/index.tsx @@ -254,7 +254,7 @@ const GenomicSummary = ({ tCellCd8?.pedsScoreComment ? tCellCd8?.pedsScoreComment : null, }, { - term: 'Mutation Signature', + term: 'Mutation Signatures', value: sigs, action: !isPrint ? () => history.push('mutation-signatures') : null, }, diff --git a/app/views/ReportView/components/RapidSummary/index.tsx b/app/views/ReportView/components/RapidSummary/index.tsx index 15ecd19eb..fe8546507 100644 --- a/app/views/ReportView/components/RapidSummary/index.tsx +++ b/app/views/ReportView/components/RapidSummary/index.tsx @@ -366,10 +366,6 @@ const RapidSummary = ({ term: 'Mutation Burden', value: primaryBurden && primaryBurden.totalMutationsPerMb !== null && (!tmburMutBur?.adjustedTmb || tmburMutBur.tmbHidden === true) ? `${primaryBurden.totalMutationsPerMb} Mut/Mb` : null, }, - { - term: 'Mutation Burden', - value: primaryBurden && primaryBurden.totalMutationsPerMb !== null && (!tmburMutBur?.adjustedTmb || tmburMutBur.tmbHidden === true) ? `${primaryBurden.totalMutationsPerMb} Mut/Mb` : null, - }, { term: 'SV Burden (POG Average)', value: svBurden,