From 7bbc5d47dc0f7b442b48c52b5eabe0215cc5ef44 Mon Sep 17 00:00:00 2001 From: Chaoran Chen Date: Sun, 12 Jan 2025 22:25:22 +0100 Subject: [PATCH] feat: remove metadata availability plot from landing page --- src/pages/ExplorePage.tsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/pages/ExplorePage.tsx b/src/pages/ExplorePage.tsx index 852bdd18..82ec0e9e 100644 --- a/src/pages/ExplorePage.tsx +++ b/src/pages/ExplorePage.tsx @@ -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'; @@ -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] @@ -50,7 +48,7 @@ export const ExplorePage = ({ isSmallScreen }: Props) => { if (!exploreUrl) { return null; } - if (!wholeDatelessDataset.data || !wholeDateCountDataset.data) { + if (!wholeDateCountDataset.data) { return ; } @@ -90,13 +88,15 @@ export const ExplorePage = ({ isSmallScreen }: Props) => { height={300} toolbarChildren={} /> -
- -
+ {/*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.*/} + {/*
*/} + {/* */} + {/*
*/}