Skip to content
Merged
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
60 changes: 60 additions & 0 deletions site-config/anvil-cmg/dev/detail/dataset/export/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,60 @@ export const exportConfig: ExportConfig = {
} as ComponentConfig<typeof C.BackPageHero>,
],
},
{
mainColumn: [
/* --------- */
/* Dataset is not accessible; render warning */
/* --------- */
{
children: [
{
children: [
{
component: MDX.Alert,
viewBuilder: V.buildAlertDatasetExportWarning,
} as ComponentConfig<typeof MDX.Alert, DatasetsResponse>,
],
component: C.BackPageContentSingleColumn,
} as ComponentConfig<typeof C.BackPageContentSingleColumn>,
],
component: C.ConditionalComponent,
viewBuilder: V.renderDatasetExportWarning,
} as ComponentConfig<typeof C.ConditionalComponent, DatasetsResponse>,
/* ------ */
/* Dataset is accessible; render Cancer Genomics Cloud export method */
/* ------ */
{
children: [
{
children: [
{
component: ExportToPlatform,
viewBuilder: V.buildDatasetExportToPlatform(
EXPORTS.CANCER_GENOMICS_CLOUD
),
} as ComponentConfig<typeof ExportToPlatform>,
],
component: C.BackPageContentMainColumn,
} as ComponentConfig<typeof C.BackPageContentMainColumn>,
/* sideColumn */
...exportSideColumn,
],
component: C.ConditionalComponent,
viewBuilder: V.renderDatasetExport,
} as ComponentConfig<typeof C.ConditionalComponent, DatasetsResponse>,
],
route: ROUTES.CANCER_GENOMICS_CLOUD,
top: [
{
children: [DATASET_ACCESSIBILITY_BADGE],
component: C.BackPageHero,
viewBuilder: V.buildDatasetExportToPlatformHero(
EXPORTS.CANCER_GENOMICS_CLOUD.title
),
} as ComponentConfig<typeof C.BackPageHero>,
],
},
{
mainColumn: [
/* --------- */
Expand Down Expand Up @@ -286,6 +340,12 @@ export const exportConfig: ExportConfig = {
EXPORT_METHODS.CAVATICA
),
} as ComponentConfig<typeof ExportMethod>,
{
component: ExportMethod,
viewBuilder: V.buildDatasetExportToPlatformMethod(
EXPORT_METHODS.CANCER_GENOMICS_CLOUD
),
} as ComponentConfig<typeof ExportMethod>,
{
component: C.ExportMethod,
viewBuilder: V.buildDatasetExportMethodManifestDownload,
Expand Down
Loading