Skip to content

Commit

Permalink
Fixed news
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkonecn committed Sep 20, 2024
1 parent c8b3cbc commit 6408205
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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: {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/app/pages/newsPage/NewsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class NewsPage extends React.Component<{
<CitationText />
</div>
<div className="mt-2">
<NewsList date={'09202024'} />
<NewsList date={'09242024'} />
<NewsList date={'08152024'} />
<NewsList date={'07042024'} />
<NewsList date={'07022024'} />
Expand Down
18 changes: 14 additions & 4 deletions src/main/webapp/app/pages/newsPage/NewsPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down Expand Up @@ -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 },
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -332,16 +343,15 @@ export const NEWS_BY_DATE: { [date: string]: NewsData } = {
{getAlternativeAllelesPageLinks('MET', 'M1250T')}
</WithSeparator>,
'Non-Small Cell Lung Cancer',
'Type Ib MET Inhibitors: Elzovantinib, Capmatinib, Tepotinib',
'Elzovantinib, Capmatinib, Tepotinib',
<WithSeparator separator={EVIDENCE_COLUMN_SEPARATOR}>
<PMIDLink pmids="38564707" />
</WithSeparator>,
],
],
},
{
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',
Expand Down

0 comments on commit 6408205

Please sign in to comment.