From 64082050cca2dabdd366bca9f0a85dc3f9f07290 Mon Sep 17 00:00:00 2001 From: John Konecny <24961694+jfkonecn@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:19:32 -0400 Subject: [PATCH] Fixed news --- .../newsPage/ChangedAnnotationListItem.tsx | 8 ++++++++ .../webapp/app/pages/newsPage/NewsPage.tsx | 2 +- .../app/pages/newsPage/NewsPageContent.tsx | 18 ++++++++++++++---- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/app/pages/newsPage/ChangedAnnotationListItem.tsx b/src/main/webapp/app/pages/newsPage/ChangedAnnotationListItem.tsx index b6e43b47f..31a76afd1 100644 --- a/src/main/webapp/app/pages/newsPage/ChangedAnnotationListItem.tsx +++ b/src/main/webapp/app/pages/newsPage/ChangedAnnotationListItem.tsx @@ -11,6 +11,7 @@ import { UPDATED_IMPLICATION_COLUMNS, CHANGED_ANNOTATION_DRUG_REMOVAL_SAME_HIGHEST_LEVEL_COLUMNS, CHANGED_ANNOTATION_DRUG_SAME_HIGHEST_LEVEL_COLUMNS, + CHANGED_ANNOTATION_UPDATED_DRUG_SAME_HIGHEST_LEVEL_COLUMNS, } from 'app/pages/newsPage/NewsPageContent'; import { SimpleTable, SimpleTableRow } from 'app/components/SimpleTable'; import { Row } from 'react-bootstrap'; @@ -37,6 +38,7 @@ export enum AnnotationColumnHeaderType { DEMOTION_TUMOR_TYPE_SPECIFIC_EVIDENCE, PROMOTION_TUMOR_TYPE_SPECIFIC_EVIDENCE, NEW_ALTERATION_WITH_LEVEL, + UPDATED_SAME_LEVEL_DRUG, } export const ChangedAnnotationListItem = (props: { @@ -112,6 +114,12 @@ export const ChangedAnnotationListItem = (props: { defaultTitle = 'Updated therapeutic implications - New alteration(s) with a tumor type-specific level of evidence'; break; + case AnnotationColumnHeaderType.UPDATED_SAME_LEVEL_DRUG: + annotationColumnHeader = CHANGED_ANNOTATION_UPDATED_DRUG_SAME_HIGHEST_LEVEL_COLUMNS; + defaultTitle = + "Addition of drug(s) associated with a tumor type-specific leveled alteration(s) currently in OncoKB™ (without changing the alteration's highest level of evidence)"; + useOneLineRowClass = true; + break; case AnnotationColumnHeaderType.LEVEL: default: annotationColumnHeader = CHANGED_ANNOTATION_LEVEL_COLUMNS; diff --git a/src/main/webapp/app/pages/newsPage/NewsPage.tsx b/src/main/webapp/app/pages/newsPage/NewsPage.tsx index eb444bcb6..2766454ce 100644 --- a/src/main/webapp/app/pages/newsPage/NewsPage.tsx +++ b/src/main/webapp/app/pages/newsPage/NewsPage.tsx @@ -87,7 +87,7 @@ export default class NewsPage extends React.Component<{
- + diff --git a/src/main/webapp/app/pages/newsPage/NewsPageContent.tsx b/src/main/webapp/app/pages/newsPage/NewsPageContent.tsx index 91d6887c5..d351b0e39 100644 --- a/src/main/webapp/app/pages/newsPage/NewsPageContent.tsx +++ b/src/main/webapp/app/pages/newsPage/NewsPageContent.tsx @@ -84,6 +84,7 @@ export const LEVEL_OF_EVIDENCE = 'Level of Evidence'; export const CURRENT_LEVEL_OF_EVIDENCE = 'Current Level of Evidence'; export const PREVIOUS_LEVEL_OF_EVIDENCE = 'Previous Level of Evidence'; export const DRUGS_ADDED_TO_ONCOKB = `Drug(s) added to ${ONCOKB_TM}`; +export const DRUGS_UPDATE_IN_ONCOKB = `Drug(s) updated in ${ONCOKB_TM}`; export const DRUGS_CURRENTLY_IN_ONCOKB = `Drug(s) currently in ${ONCOKB_TM}`; export const DRUGS_REMOVED_FROM_ONCOKB = `Drug(s) removed from ${ONCOKB_TM}`; export const DRUGS_DEMOTED_IN_ONCOKB = `Drug(s) demoted in ${ONCOKB_TM}`; @@ -233,6 +234,16 @@ export const CHANGED_ANNOTATION_ADDITIONAL_DRUG_SAME_HIGHEST_LEVEL_COLUMNS = [ { name: EVIDENCE }, ]; +export const CHANGED_ANNOTATION_UPDATED_DRUG_SAME_HIGHEST_LEVEL_COLUMNS = [ + { name: LEVEL }, + { name: GENE }, + { name: MUTATION }, + { name: CANCER_TYPE }, + { name: LEVEL_ASSOCIATED_DRUGS_IN_ONCOKB }, + { name: DRUGS_UPDATE_IN_ONCOKB }, + { name: EVIDENCE }, +]; + export const CDX_COLUMNS = [ { name: LEVEL }, { name: GENE }, @@ -289,7 +300,7 @@ const EVIDENCE_COLUMN_SEPARATOR = '; '; // https://stackoverflow.com/questions/41947168/is-it-possible-to-use-keyof-operator-on-literals-instead-of-interfaces export const NEWS_BY_DATE: { [date: string]: NewsData } = { - '09202024': { + '09242024': { changedAnnotations: [ { columnHeaderType: AnnotationColumnHeaderType.NEW_ALTERATION_WITH_LEVEL, @@ -332,7 +343,7 @@ export const NEWS_BY_DATE: { [date: string]: NewsData } = { {getAlternativeAllelesPageLinks('MET', 'M1250T')} , 'Non-Small Cell Lung Cancer', - 'Type Ib MET Inhibitors: Elzovantinib, Capmatinib, Tepotinib', + 'Elzovantinib, Capmatinib, Tepotinib', , @@ -340,8 +351,7 @@ export const NEWS_BY_DATE: { [date: string]: NewsData } = { ], }, { - title: - "Addition of drug(s) associated with a tumor type-specific leveled alteration(s) currently in OncoKB™ (without changing the alteration's highest level of evidence)", + columnHeaderType: AnnotationColumnHeaderType.UPDATED_SAME_LEVEL_DRUG, content: [ [ '1',