Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRDCDH-1234 Add CTDC Data Common #411

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/modelNavigator/Generic_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/config/DataCommons.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { DataCommons } from "./DataCommons";

// NOTE: We're asserting that the DataCommons array is sorted alphabetically by name
// at the static configuration level. This requirement is dictated by CRDCDH-1235.
it("should be sorted alphabetically", () => {
const sortedDataCommons = [...DataCommons].sort((a, b) => a.name.localeCompare(b.name));
expect(DataCommons).toEqual(sortedDataCommons);
});
107 changes: 107 additions & 0 deletions src/config/DataCommons.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logo from "../assets/modelNavigator/Logo.jpg";
import CDSLogo from "../assets/modelNavigator/CDS_Logo.png";
import GenericLogo from "../assets/modelNavigator/Generic_Logo.png";

/**
* The URL of the Data Commons Model Repo
Expand Down Expand Up @@ -122,6 +123,112 @@ export const DataCommons: DataCommon[] = [
},
},
},
{
name: "CTDC",
assets: null,
configuration: {
pageTitle: "CTDC Data Model",
titleIconSrc: GenericLogo,
pdfConfig: {
fileType: "pdf",
prefix: "CTDC_",
downloadPrefix: "CTDC_",
fileTransferManifestName: "CTDC_Data_Loading_Template-file-manifest",
iconSrc: logo,
footnote: "https://hub.datacommons.cancer.gov/model-navigator/CTDC",
landscape: true,
},
facetFilterSearchData: [
{
groupName: "Category",
datafield: "category",
section: "Filter By Nodes",
tooltip: "category",
show: true,
checkboxItems: [
{ name: "Administrative", isChecked: false, group: "category" },
{ name: "Analysis", isChecked: false, group: "category" },
{ name: "Biospecimen", isChecked: false, group: "category" },
{ name: "Case", isChecked: false, group: "category" },
{ name: "Clinical", isChecked: false, group: "category" },
{ name: "Clinical_Trial", isChecked: false, group: "category" },
{ name: "Data_File", isChecked: false, group: "category" },
{ name: "Study", isChecked: false, group: "category" },
],
},
{
groupName: "Assignment",
datafield: "assignment",
section: "Filter By Nodes",
tooltip: "assignment",
show: true,
checkboxItems: [
{ name: "Core", isChecked: false, group: "assignment" },
{ name: "Extended", isChecked: false, group: "assignment" },
],
},
{
groupName: "Class",
datafield: "class",
section: "Filter By Nodes",
tooltip: "class",
show: true,
checkboxItems: [
{ name: "Primary", isChecked: false, group: "class" },
{ name: "Secondary", isChecked: false, group: "class" },
],
},
{
groupName: "Inclusion",
datafield: "inclusion",
section: "Filter By Property",
tooltip: "inclusion",
show: true,
checkboxItems: [
{ name: "Optional", isChecked: false, group: "optional" },
{ name: "Preferred", isChecked: false, group: "preferred" },
{ name: "Required", isChecked: false, group: "required" },
],
},
{
groupName: "UI Display",
datafield: "uiDisplay",
section: "Filter By Property",
tooltip: "inclusion",
show: true,
checkboxItems: [
{ name: "no", isChecked: false, group: "no" },
{ name: "yes", isChecked: false, group: "yes" },
],
},
],
facetFilterSectionVariables: {
"Filter By Nodes": {
color: "#0D71A3",
checkBoxColorsOne: "#E3F4FD",
checkBoxColorsTwo: "#f0f8ff",
checkBoxBorderColor: "#0D71A3",
height: "7px",
isExpanded: true,
},
"Filter By Relationship": {
color: "#FF9742",
checkBoxColorsOne: "#FF9742",
checkBoxColorsTwo: "#FF9742",
height: "7px",
isExpanded: true,
},
"Filter By Property": {
color: "#0D71A3",
checkBoxColorsOne: "#E3F4FD",
checkBoxColorsTwo: "#f0f8ff",
checkBoxBorderColor: "#0D71A3",
height: "7px",
isExpanded: true,
},
},
},
},
{
name: "ICDC",
assets: null,
Expand Down
Loading