Skip to content

Commit

Permalink
feat: unified export flow #4102 (#4356)
Browse files Browse the repository at this point in the history
  • Loading branch information
MillenniumFalconMechanic authored Feb 3, 2025
1 parent 8845dba commit 59d2d7b
Show file tree
Hide file tree
Showing 15 changed files with 774 additions and 498 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Filters } from "@databiosphere/findable-ui/lib/common/entities";
import { useFileManifest } from "@databiosphere/findable-ui/lib/hooks/useFileManifest/useFileManifest";

export interface ExportEntityProps {
filters: Filters;
}

/**
* Empty wrapper component that triggers calls to populate the selected data in the side channel. Required only
* for choose export method functionality (as individual export methods trigger the required calls themsleves).
* @param {Object} props - The properties object.
* @param {ExportEntityProps} props.filters - The base filters for displaying the selected data related.
* @returns Fragment.
*/
export const ExportEntity = ({ filters }: ExportEntityProps): JSX.Element => {
useFileManifest(filters);
return <></>;
};
1 change: 1 addition & 0 deletions app/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export { FileNameCell } from "./Detail/components/GeneratedMatricesTables/compon
export { GeneratedMatricesTables } from "./Detail/components/GeneratedMatricesTables/generatedMatricesTables";
export { AtlasSection } from "./Detail/components/Section/components/AtlasSection/atlasSection";
export { ManifestDownloadEntity as AnVILManifestDownloadEntity } from "./Export/components/AnVILExplorer/components/ManifestDownload/components/ManifestDownloadEntity/manifestDownloadEntity";
export { ExportEntity as AnVILExportEntity } from "./Export/components/AnVILExplorer/components/ExportEntity/exportEntity";
export { BioNetworkCell } from "./Index/components/BioNetworkCell/bioNetworkCell";
export { ConsentCodesCell } from "./Index/components/ConsentCodesCell/consentCodesCell";
export { CopyCell } from "./Index/components/CopyCell/copyCell";
Expand Down
Loading

0 comments on commit 59d2d7b

Please sign in to comment.