Skip to content

Commit bfc8bd3

Browse files
frano-mFran McDade
andauthored
refactor: refactor the export to terra configuration (#891) (#3595)
Co-authored-by: Fran McDade <franmcdade@Frans-MacBook-Pro.local>
1 parent 2e4e4b7 commit bfc8bd3

File tree

33 files changed

+400
-507
lines changed

33 files changed

+400
-507
lines changed

explorer/app/components/Detail/components/Export/common/entities.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

explorer/app/components/Detail/components/Export/common/utils.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

explorer/app/components/Detail/components/Export/components/ExportEntityToTerraForm/exportEntityToTerraForm.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { TagWarning } from "@clevercanary/data-explorer-ui/lib/components/common/Tag/tag.styles";
2+
import {
3+
Link,
4+
LinkProps,
5+
} from "@clevercanary/data-explorer-ui/lib/components/Links/components/Link/link";
6+
import React from "react";
7+
8+
export const BatchCorrectionWarning = ({
9+
label,
10+
url,
11+
}: LinkProps): JSX.Element => {
12+
return (
13+
<p>
14+
<TagWarning>Please note</TagWarning> Data normalization and batch
15+
correction may differ between projects and processing methods. For details
16+
see <Link label={label} url={url} />.
17+
</p>
18+
);
19+
};

explorer/app/components/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { Alert } from "@clevercanary/data-explorer-ui/lib/components/common/Alert/alert";
2+
export { FluidAlert } from "@clevercanary/data-explorer-ui/lib/components/common/Alert/alert.styles";
23
export { ButtonGroup } from "@clevercanary/data-explorer-ui/lib/components/common/ButtonGroup/buttonGroup";
34
export {
45
ContentCopyIconSmall,
@@ -24,12 +25,13 @@ export { TagWarning } from "@clevercanary/data-explorer-ui/lib/components/common
2425
export { DetailViewTable } from "@clevercanary/data-explorer-ui/lib/components/Detail/components/DetailViewTable/detailViewTable";
2526
export { DownloadCurlCommandForm } from "@clevercanary/data-explorer-ui/lib/components/Export/components/DownloadCurlCommand/components/DownloadCurlCommandForm/downloadCurlCommandForm";
2627
export { DownloadCurlCommand } from "@clevercanary/data-explorer-ui/lib/components/Export/components/DownloadCurlCommand/downloadCurlCommand";
27-
export { ExportEntityToTerra } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportEntityToTerra/exportEntityToTerra";
2828
export { ExportMethod } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportMethod/exportMethod";
2929
export { ExportSelectedData } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSelectedData/exportSelectedData";
3030
export { ExportCurrentQuery } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSummary/components/ExportCurrentQuery/exportCurrentQuery";
3131
export { ExportSelectedDataSummary } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSummary/components/ExportSelectedDataSummary/exportSelectedDataSummary";
3232
export { ExportSummary } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportSummary/exportSummary";
33+
export { ExportToTerraForm } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportToTerra/components/ExportToTerraForm/exportToTerraForm";
34+
export { ExportToTerra } from "@clevercanary/data-explorer-ui/lib/components/Export/components/ExportToTerra/exportToTerra";
3335
export { AzulFileDownload } from "@clevercanary/data-explorer-ui/lib/components/Index/components/AzulFileDownload/azulFileDownload";
3436
export { Cell } from "@clevercanary/data-explorer-ui/lib/components/Index/components/Cell/cell";
3537
export { Summaries } from "@clevercanary/data-explorer-ui/lib/components/Index/components/Hero/components/Summaries/summaries";
@@ -54,7 +56,6 @@ export { MdxMarkdown } from "./common/MDXMarkdown/mdxMarkdown";
5456
export { ConsentCodeList } from "./Detail/components/ConsentCodeList/consentCodeList";
5557
export { ConsentTooltip } from "./Detail/components/ConsentTooltip/consentTooltip";
5658
export { ConsortiumOverview } from "./Detail/components/Consortium/ConsortiumOverview/consortiumOverview";
57-
export { ExportEntityToTerraForm } from "./Detail/components/Export/components/ExportEntityToTerraForm/exportEntityToTerraForm";
5859
export { FileLocationArchivePreview } from "./Detail/components/GeneratedMatricesTables/components/FileLocationArchivePreview/fileLocationArchivePreview";
5960
export { FileLocationCopy } from "./Detail/components/GeneratedMatricesTables/components/FileLocationCopy/fileLocationCopy";
6061
export { FileLocationDownload } from "./Detail/components/GeneratedMatricesTables/components/FileLocationDownload/fileLocationDownload";

explorer/app/content/anvil-cmg/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { RenderComponent } from "@clevercanary/data-explorer-ui/lib/components/ComponentCreator/components/RenderComponent/renderComponent";
22
export { Section } from "../../components/common/MDXMarkdown/components/Section/mdxSection.styles";
3-
export { default as ExportToTerra } from "../common/exportToTerra.mdx";
3+
export { default as ExportToTerraStart } from "../common/exportToTerraStart.mdx";
44
export { default as ExportToTerraSuccess } from "../common/exportToTerraSuccess.mdx";
55
export { default as DataReleasePolicy } from "./dataReleasePolicy.mdx";
66
export { default as LoginTermsOfService } from "./loginTermsOfService.mdx";
File renamed without changes.
File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { BatchCorrectionWarning } from "../../components/Export/components/BatchCorrectionWarning/batchCorrectionWarning";
2+
3+
### Your curl Command is Ready
4+
5+
Execute the curl command below in your terminal to download the selected data.
6+
7+
<BatchCorrectionWarning
8+
label={"Matrix Normalization and Batch Correction"}
9+
url={
10+
"https://data.humancellatlas.org/guides/consumer-vignettes/matrices#matrix-normalization-and-batch-correction"
11+
}
12+
/>

explorer/app/content/hca-dcp/downloadEntityCurlCommandSuccess.mdx

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)