Skip to content

Commit c11916f

Browse files
authored
Merge pull request #523 from opentargets/lf-validationlab-widget
Lf validationlab widget
2 parents 34fce8f + 5403bfe commit c11916f

File tree

12 files changed

+489
-6
lines changed

12 files changed

+489
-6
lines changed

public/profiles/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ var configProfile = {
3939

4040
// evidence page
4141
hideEvidenceSectionIds: [''],
42-
partnerEvidenceSectionIds: ['encore', 'otCrispr'],
42+
partnerEvidenceSectionIds: ['encore', 'otCrispr', 'validationlab'],
4343

4444
// datatypes
4545
hideDataTypes: [''],
46-
partnerDataTypes: ['ot_partner'],
46+
partnerDataTypes: ['ot_partner', 'ot_validation_lab'],
4747

4848
// for datasources we only set those that are private (partner)
4949
// partnerDataSources: list any private datasource (shown with lock in facets)

public/profiles/profile-partners.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ var configProfile = {
5050

5151
// evidence page
5252
hideEvidenceSectionIds: [''],
53-
partnerEvidenceSectionIds: ['encore', 'otCrispr'],
53+
partnerEvidenceSectionIds: ['encore', 'otCrispr', 'validationlab'],
5454

5555
// datatypes
5656
hideDataTypes: [''],
57-
partnerDataTypes: ['ot_partner'],
57+
partnerDataTypes: ['ot_partner', 'ot_validation_lab'],
5858

5959
// for datasources we only set those that are private (partner)
6060
// partnerDataSources: list any private datasource (shown with lock in facets)
61-
partnerDataSources: ['encore', 'ot_crispr'],
61+
partnerDataSources: ['encore', 'ot_crispr', 'ot_crispr_validation'],
6262
};

src/components/ChipList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function ChipContainer({ item, children }) {
3838
* Each chip can show an optional tooltip.
3939
* @param items Array of Strings.
4040
* @param small Display each chip as size="small"
41-
* Each item in the items array can also be an object, with format {label, tooltip}
41+
* Each item in the items array can also be an object, with format {label, tooltip, customClass}
4242
*/
4343
function ChipList({ items, small }) {
4444
const classes = useChipStyles();

src/dataSources.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ const dataSources = [
113113
label: 'OTAR CRISPR',
114114
isPrivate: isPrivateDataSource('ot_crispr'),
115115
},
116+
{
117+
id: 'ot_crispr_validation',
118+
label: 'OT CRISPR Validation',
119+
isPrivate: isPrivateDataSource('ot_crispr_validation'),
120+
},
116121
{
117122
id: 'encore',
118123
label: 'ENCORE',

src/dataTypes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ const dataTypes = [
4141
label: 'OTAR Projects',
4242
isPrivate: isPrivateDataType('ot_partner'),
4343
},
44+
{
45+
id: 'ot_validation_lab',
46+
label: 'OTAR Validation Lab',
47+
isPrivate: isPrivateDataType('ot_validation_lab'),
48+
},
4449
];
4550

4651
const dataTypesMap = dataTypes.reduce((acc, dataType) => {

src/pages/EvidencePage/sections.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import * as Orphanet from '../../sections/evidence/Orphanet';
2323
import * as OTCRISPR from '../../sections/evidence/OTCRISPR';
2424
import * as OTEncore from '../../sections/evidence/OTEncore';
2525
import * as CancerBiomarkers from '../../sections/evidence/CancerBiomarkers';
26+
import * as OTValidation from '../../sections/evidence/OTValidation';
2627

2728
import config from '../../config';
2829

@@ -51,6 +52,7 @@ const sections = [
5152
Phenodigm,
5253
OTCRISPR,
5354
OTEncore,
55+
OTValidation,
5456
].filter(
5557
// select sections to show based on:
5658
// 1. there is no specific hidden section for this page (length==0)

0 commit comments

Comments
 (0)