-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
10 changed files
with
919 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
site-config/lungmap/dev/detail/project/metadataMainColumn.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ComponentConfig } from "@databiosphere/findable-ui/lib/config/entities"; | ||
import { ProjectsResponse } from "../../../../../app/apis/azul/hca-dcp/common/responses"; | ||
import * as C from "../../../../../app/components"; | ||
import * as V from "../../../../../app/viewModelBuilders/azul/hca-dcp/common/viewModelBuilders"; | ||
|
||
export const mainColumn: ComponentConfig[] = [ | ||
{ | ||
component: C.ManifestDownloadEntity, | ||
viewBuilder: V.buildManifestDownloadEntity, | ||
} as ComponentConfig<typeof C.ManifestDownloadEntity, ProjectsResponse>, | ||
]; |
47 changes: 47 additions & 0 deletions
47
site-config/lungmap/dev/detail/project/overviewSideColumn.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { ComponentConfig } from "@databiosphere/findable-ui/lib/config/entities"; | ||
import { ProjectsResponse } from "../../../../../app/apis/azul/hca-dcp/common/responses"; | ||
import * as C from "../../../../../app/components"; | ||
import * as V from "../../../../../app/viewModelBuilders/azul/hca-dcp/common/viewModelBuilders"; | ||
|
||
export const sideColumn: ComponentConfig[] = [ | ||
{ | ||
children: [ | ||
{ | ||
children: [ | ||
{ | ||
component: C.SectionTitle, | ||
props: { | ||
title: "Analysis Portals", | ||
}, | ||
} as ComponentConfig<typeof C.SectionTitle>, | ||
{ | ||
component: C.KeyValuePairs, | ||
viewBuilder: V.buildAnalysisPortals, | ||
} as ComponentConfig<typeof C.KeyValuePairs, ProjectsResponse>, | ||
], | ||
component: C.Grid, | ||
props: { | ||
gridSx: { gap: 4 }, | ||
}, | ||
} as ComponentConfig<typeof C.Grid>, | ||
], | ||
component: C.GridPaperSection, | ||
} as ComponentConfig<typeof C.GridPaperSection>, | ||
{ | ||
component: C.Details, | ||
viewBuilder: V.buildDetails, | ||
} as ComponentConfig<typeof C.Details>, | ||
{ | ||
children: [ | ||
{ | ||
component: C.KeyValuePairs, | ||
viewBuilder: V.buildFileCounts, | ||
} as ComponentConfig<typeof C.KeyValuePairs, ProjectsResponse>, | ||
], | ||
component: C.CollapsableSection, | ||
props: { | ||
collapsable: true, | ||
title: "File Counts", | ||
}, | ||
} as ComponentConfig<typeof C.CollapsableSection>, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { CategoryGroup } from "@databiosphere/findable-ui/lib/config/entities"; | ||
import { | ||
ANALYSIS_PROTOCOL, | ||
ANATOMICAL_ENTITY, | ||
BIOLOGICAL_SEX, | ||
CONTACT_NAME, | ||
CONTENT_DESCRIPTION, | ||
DEVELOPMENT_STAGE, | ||
DONOR_DISEASE, | ||
FILE_FORMAT, | ||
FILE_SOURCE, | ||
GENUS_SPECIES, | ||
INSTITUTION, | ||
INSTRUMENT_MANUFACTURER_MODEL, | ||
LIBRARY_CONSTRUCTION_METHOD, | ||
MODEL_ORGAN, | ||
NUCLEIC_ACID_SOURCE, | ||
ORGAN_PART, | ||
PAIRED_END, | ||
PRESERVATION_METHOD, | ||
PROJECT_TITLE, | ||
SAMPLE_ENTITY_TYPE, | ||
SELECTED_CELL_TYPE, | ||
SPECIMEN_DISEASE, | ||
} from "../../../../hca-dcp/dev/index/common/category"; | ||
|
||
export const CATEGORY_GROUP: Record<string, CategoryGroup> = { | ||
DONOR: { | ||
categoryConfigs: [ | ||
BIOLOGICAL_SEX, | ||
DEVELOPMENT_STAGE, | ||
DONOR_DISEASE, | ||
GENUS_SPECIES, | ||
], | ||
label: "Donor", | ||
}, | ||
FILE: { | ||
categoryConfigs: [CONTENT_DESCRIPTION, FILE_FORMAT, FILE_SOURCE], | ||
label: "File", | ||
}, | ||
PROJECT: { | ||
categoryConfigs: [PROJECT_TITLE, CONTACT_NAME, INSTITUTION], | ||
label: "Project", | ||
}, | ||
PROTOCOL: { | ||
categoryConfigs: [ | ||
ANALYSIS_PROTOCOL, // workflow | ||
INSTRUMENT_MANUFACTURER_MODEL, | ||
LIBRARY_CONSTRUCTION_METHOD, | ||
NUCLEIC_ACID_SOURCE, | ||
PAIRED_END, | ||
], | ||
label: "Protocol", | ||
}, | ||
SAMPLE: { | ||
categoryConfigs: [ | ||
ANATOMICAL_ENTITY, // specimenOrgan | ||
ORGAN_PART, | ||
PRESERVATION_METHOD, | ||
MODEL_ORGAN, | ||
SAMPLE_ENTITY_TYPE, | ||
SELECTED_CELL_TYPE, | ||
SPECIMEN_DISEASE, | ||
], | ||
label: "Sample", | ||
}, | ||
}; | ||
|
||
export const CATEGORY_GROUPS: CategoryGroup[] = [ | ||
CATEGORY_GROUP.PROJECT, | ||
CATEGORY_GROUP.DONOR, | ||
CATEGORY_GROUP.SAMPLE, | ||
CATEGORY_GROUP.PROTOCOL, | ||
CATEGORY_GROUP.FILE, | ||
]; |
Oops, something went wrong.