Skip to content

Commit

Permalink
feat: remove metadata availability plot from landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoran-chen committed Jan 12, 2025
1 parent 5347d56 commit 7bbc5d4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/pages/ExplorePage.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { KnownVariantsList } from '../components/KnownVariantsList/KnownVariantsList';
import { SequencingIntensityChartWidget } from '../widgets/SequencingIntensityChartWidget';
import { ShowMoreButton } from '../helpers/ui';
import { MetadataAvailabilityChartWidget } from '../widgets/MetadataAvailabilityChartWidget';
import { DatelessCountrylessCountSampleData } from '../data/sample/DatelessCountrylessCountSampleDataset';
import React, { useEffect } from 'react';
import { useExploreUrl } from '../helpers/explore-url';
import { CaseCountAsyncDataset, CaseCountData } from '../data/CaseCountDataset';
Expand All @@ -29,10 +27,10 @@ export const ExplorePage = ({ isSmallScreen }: Props) => {
const { lsSelector, lSelector, hostAndQc } = useSingleSelectorsFromExploreUrl(exploreUrl!);

// Fetch data
const wholeDatelessDataset = useQuery(
signal => DatelessCountrylessCountSampleData.fromApi(lsSelector, signal),
[lsSelector]
);
// const wholeDatelessDataset = useQuery(
// signal => DatelessCountrylessCountSampleData.fromApi(lsSelector, signal),
// [lsSelector]
// );
const wholeDateCountDataset = useQuery(
signal => DateCountSampleData.fromApi(lsSelector, signal),
[lsSelector]
Expand All @@ -50,7 +48,7 @@ export const ExplorePage = ({ isSmallScreen }: Props) => {
if (!exploreUrl) {
return null;
}
if (!wholeDatelessDataset.data || !wholeDateCountDataset.data) {
if (!wholeDateCountDataset.data) {
return <Loader />;
}

Expand Down Expand Up @@ -90,13 +88,15 @@ export const ExplorePage = ({ isSmallScreen }: Props) => {
height={300}
toolbarChildren={<ShowMoreButton to={exploreUrl.getDeepExplorePageUrl('/sequencing-coverage')} />}
/>
<div>
<MetadataAvailabilityChartWidget.ShareableComponent
title='Metadata Availability'
sampleSet={wholeDatelessDataset.data}
height={300}
/>
</div>
{/*This widget is quite slow (which can be (probably easily) improved but as it is probably not
super useful, it's easier to just disable it.*/}
{/*<div>*/}
{/* <MetadataAvailabilityChartWidget.ShareableComponent*/}
{/* title='Metadata Availability'*/}
{/* sampleSet={wholeDatelessDataset.data}*/}
{/* height={300}*/}
{/* />*/}
{/*</div>*/}
</div>
</div>
</div>
Expand Down

0 comments on commit 7bbc5d4

Please sign in to comment.