Skip to content

Commit

Permalink
refactor: refactor the export to terra configuration (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and frano-m committed Aug 8, 2023
1 parent 2e4e4b7 commit 45dfc6c
Show file tree
Hide file tree
Showing 33 changed files with 400 additions and 507 deletions.

This file was deleted.

17 changes: 0 additions & 17 deletions explorer/app/components/Detail/components/Export/common/utils.ts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { TagWarning } from "@clevercanary/data-explorer-ui/lib/components/common/Tag/tag.styles";
import {
Link,
LinkProps,
} from "@clevercanary/data-explorer-ui/lib/components/Links/components/Link/link";
import React from "react";

export const BatchCorrectionWarning = ({
label,
url,
}: LinkProps): JSX.Element => {
return (
<p>
<TagWarning>Please note</TagWarning> Data normalization and batch
correction may differ between projects and processing methods. For details
see <Link label={label} url={url} />.
</p>
);
};
5 changes: 3 additions & 2 deletions explorer/app/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { Alert } from "@clevercanary/data-explorer-ui/lib/components/common/Alert/alert";
export { FluidAlert } from "@clevercanary/data-explorer-ui/lib/components/common/Alert/alert.styles";
export { ButtonGroup } from "@clevercanary/data-explorer-ui/lib/components/common/ButtonGroup/buttonGroup";
export {
ContentCopyIconSmall,
Expand All @@ -24,12 +25,13 @@ export { TagWarning } from "@clevercanary/data-explorer-ui/lib/components/common
export { DetailViewTable } from "@clevercanary/data-explorer-ui/lib/components/Detail/components/DetailViewTable/detailViewTable";
export { DownloadCurlCommandForm } from "@clevercanary/data-explorer-ui/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandForm/downloadCurlCommandForm";
export { DownloadCurlCommand } from "@clevercanary/data-explorer-ui/lib/components/Export/components/DownloadCurlCommand/downloadCurlCommand";
export { ExportEntityToTerra } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportEntityToTerra/exportEntityToTerra";
export { ExportMethod } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportMethod/exportMethod";
export { ExportSelectedData } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSelectedData/exportSelectedData";
export { ExportCurrentQuery } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSummary/components/ExportCurrentQuery/exportCurrentQuery";
export { ExportSelectedDataSummary } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSummary/components/ExportSelectedDataSummary/exportSelectedDataSummary";
export { ExportSummary } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSummary/exportSummary";
export { ExportToTerraForm } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportToTerra/components/ExportToTerraForm/exportToTerraForm";
export { ExportToTerra } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportToTerra/exportToTerra";
export { AzulFileDownload } from "@clevercanary/data-explorer-ui/lib/components/Index/components/AzulFileDownload/azulFileDownload";
export { Cell } from "@clevercanary/data-explorer-ui/lib/components/Index/components/Cell/cell";
export { Summaries } from "@clevercanary/data-explorer-ui/lib/components/Index/components/Hero/components/Summaries/summaries";
Expand All @@ -54,7 +56,6 @@ export { MdxMarkdown } from "./common/MDXMarkdown/mdxMarkdown";
export { ConsentCodeList } from "./Detail/components/ConsentCodeList/consentCodeList";
export { ConsentTooltip } from "./Detail/components/ConsentTooltip/consentTooltip";
export { ConsortiumOverview } from "./Detail/components/Consortium/ConsortiumOverview/consortiumOverview";
export { ExportEntityToTerraForm } from "./Detail/components/Export/components/ExportEntityToTerraForm/exportEntityToTerraForm";
export { FileLocationArchivePreview } from "./Detail/components/GeneratedMatricesTables/components/FileLocationArchivePreview/fileLocationArchivePreview";
export { FileLocationCopy } from "./Detail/components/GeneratedMatricesTables/components/FileLocationCopy/fileLocationCopy";
export { FileLocationDownload } from "./Detail/components/GeneratedMatricesTables/components/FileLocationDownload/fileLocationDownload";
Expand Down
2 changes: 1 addition & 1 deletion explorer/app/content/anvil-cmg/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { RenderComponent } from "@clevercanary/data-explorer-ui/lib/components/ComponentCreator/components/RenderComponent/renderComponent";
export { Section } from "../../components/common/MDXMarkdown/components/Section/mdxSection.styles";
export { default as ExportToTerra } from "../common/exportToTerra.mdx";
export { default as ExportToTerraStart } from "../common/exportToTerraStart.mdx";
export { default as ExportToTerraSuccess } from "../common/exportToTerraSuccess.mdx";
export { default as DataReleasePolicy } from "./dataReleasePolicy.mdx";
export { default as LoginTermsOfService } from "./loginTermsOfService.mdx";
Expand Down
12 changes: 12 additions & 0 deletions explorer/app/content/hca-dcp/downloadCurlCommandSuccess.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { BatchCorrectionWarning } from "../../components/Export/components/BatchCorrectionWarning/batchCorrectionWarning";

### Your curl Command is Ready

Execute the curl command below in your terminal to download the selected data.

<BatchCorrectionWarning
label={"Matrix Normalization and Batch Correction"}
url={
"https://data.humancellatlas.org/guides/consumer-vignettes/matrices#matrix-normalization-and-batch-correction"
}
/>
13 changes: 0 additions & 13 deletions explorer/app/content/hca-dcp/downloadEntityCurlCommandSuccess.mdx

This file was deleted.

10 changes: 10 additions & 0 deletions explorer/app/content/hca-dcp/exportToTerraStart.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { BatchCorrectionWarning } from "../../components/Export/components/BatchCorrectionWarning/batchCorrectionWarning";

### Export To Terra

<BatchCorrectionWarning
label={"Matrix Normalization and Batch Correction"}
url={
"https://data.humancellatlas.org/guides/consumer-vignettes/matrices#matrix-normalization-and-batch-correction"
}
/>
12 changes: 12 additions & 0 deletions explorer/app/content/hca-dcp/exportToTerraSuccessWithWarning.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { BatchCorrectionWarning } from "../../components/Export/components/BatchCorrectionWarning/batchCorrectionWarning";

### Your Terra Workspace Link is Ready

Your Terra Workspace has been opened in a new browser tab. The workspace URL is referenced below.

<BatchCorrectionWarning
label={"Matrix Normalization and Batch Correction"}
url={
"https://data.humancellatlas.org/guides/consumer-vignettes/matrices#matrix-normalization-and-batch-correction"
}
/>
8 changes: 5 additions & 3 deletions explorer/app/content/hca-dcp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ export {
Section,
SectionActions,
} from "../../components/common/MDXMarkdown/components/Section/mdxSection.styles";
export { default as ExportToTerra } from "../common/exportToTerra.mdx";
export { default as ExportToTerra } from "../common/exportToTerraStart.mdx";
export { default as ExportToTerraSuccess } from "../common/exportToTerraSuccess.mdx";
export { default as BatchCorrectionWarning } from "./batchCorrectionWarning.mdx";
export { default as ContributorGeneratedMatrices } from "./contributorGeneratedMatrices.mdx";
export { default as DataReleasePolicy } from "./dataReleasePolicy.mdx";
export { default as DCPGeneratedMatrices } from "./dcpGeneratedMatrices.mdx";
export { default as DownloadEntityCurlCommandStart } from "./downloadEntityCurlCommandStart.mdx";
export { default as DownloadEntityCurlCommandSuccess } from "./downloadEntityCurlCommandSuccess.mdx";
export { default as DownloadCurlCommandStart } from "./downloadCurlCommandStart.mdx";
export { default as DownloadCurlCommandSuccess } from "./downloadCurlCommandSuccess.mdx";
export { default as ExportToTerraStart } from "./exportToTerraStart.mdx";
export { default as ExportToTerraSuccessWithWarning } from "./exportToTerraSuccessWithWarning.mdx";
export { default as MatrixQuestionnaire } from "./matrixQuestionnaire.mdx";
25 changes: 0 additions & 25 deletions explorer/app/hooks/azul/useExportEntityToTerraResponseURL.ts

This file was deleted.

29 changes: 0 additions & 29 deletions explorer/app/hooks/azul/useFileManifestRequestParams.ts

This file was deleted.

17 changes: 0 additions & 17 deletions explorer/app/hooks/azul/useFileManifestRequestURL.ts

This file was deleted.

Loading

0 comments on commit 45dfc6c

Please sign in to comment.