Skip to content

Commit 59d2d7b

Browse files
feat: unified export flow #4102 (#4356)
1 parent 8845dba commit 59d2d7b

File tree

15 files changed

+774
-498
lines changed

15 files changed

+774
-498
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Filters } from "@databiosphere/findable-ui/lib/common/entities";
2+
import { useFileManifest } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/useFileManifest";
3+
4+
export interface ExportEntityProps {
5+
filters: Filters;
6+
}
7+
8+
/**
9+
* Empty wrapper component that triggers calls to populate the selected data in the side channel. Required only
10+
* for choose export method functionality (as individual export methods trigger the required calls themsleves).
11+
* @param {Object} props - The properties object.
12+
* @param {ExportEntityProps} props.filters - The base filters for displaying the selected data related.
13+
* @returns Fragment.
14+
*/
15+
export const ExportEntity = ({ filters }: ExportEntityProps): JSX.Element => {
16+
useFileManifest(filters);
17+
return <></>;
18+
};

app/components/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export { FileNameCell } from "./Detail/components/GeneratedMatricesTables/compon
9595
export { GeneratedMatricesTables } from "./Detail/components/GeneratedMatricesTables/generatedMatricesTables";
9696
export { AtlasSection } from "./Detail/components/Section/components/AtlasSection/atlasSection";
9797
export { ManifestDownloadEntity as AnVILManifestDownloadEntity } from "./Export/components/AnVILExplorer/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity";
98+
export { ExportEntity as AnVILExportEntity } from "./Export/components/AnVILExplorer/components/ExportEntity/exportEntity";
9899
export { BioNetworkCell } from "./Index/components/BioNetworkCell/bioNetworkCell";
99100
export { ConsentCodesCell } from "./Index/components/ConsentCodesCell/consentCodesCell";
100101
export { CopyCell } from "./Index/components/CopyCell/copyCell";

0 commit comments

Comments
 (0)