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<{