From 61dd51062ea81b5d9ccc8d096bd4a1f4152c14ce Mon Sep 17 00:00:00 2001 From: Dave Falke Date: Wed, 6 Sep 2023 16:15:45 -0400 Subject: [PATCH] Hardcode map link (#474) * Hardcode map link * Add build dependency for compile:check target --- nx.json | 5 +++ .../components/homepage/VEuPathDBHomePage.tsx | 38 +++++++++++++------ 2 files changed, 31 insertions(+), 12 deletions(-) diff --git a/nx.json b/nx.json index 0683171766..013a429ac5 100644 --- a/nx.json +++ b/nx.json @@ -37,6 +37,11 @@ "^build-npm-modules" ] }, + "compile:check": { + "dependsOn": [ + "^build-npm-modules" + ] + }, "bundle:dev": { "dependsOn": [ "^build-npm-modules" diff --git a/packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/homepage/VEuPathDBHomePage.tsx b/packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/homepage/VEuPathDBHomePage.tsx index 6f7e40b0a8..d9ae3555f4 100644 --- a/packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/homepage/VEuPathDBHomePage.tsx +++ b/packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/homepage/VEuPathDBHomePage.tsx @@ -368,8 +368,9 @@ const useHeaderMenuItems = ( (q) => q.urlSegment === QUESTION_FOR_MAP_DATASETS ) ); - const showInteractiveMaps = mapMenuItemsQuestion != null; - const mapMenuItems = useMapMenuItems(mapMenuItemsQuestion); + // const showInteractiveMaps = mapMenuItemsQuestion != null; + // const mapMenuItems = useMapMenuItems(mapMenuItemsQuestion); + const showInteractiveMaps = projectId === VectorBase && !!useEda; // type: reactRoute, webAppRoute, externalLink, subMenu, custom const fullMenuItemEntries: HeaderMenuItemEntry[] = [ @@ -577,24 +578,37 @@ const useHeaderMenuItems = ( include: [EuPathDB, UniDB], }, }, + // { + // key: 'maps-alpha', + // display: ( + // <> + // Interactive maps BETA + // + // ), + // type: 'subMenu', + // metadata: { + // test: () => showInteractiveMaps, + // }, + // items: mapMenuItems ?? [ + // { + // key: 'maps-loading', + // type: 'custom', + // display: , + // }, + // ], + // }, { - key: 'maps-alpha', + type: 'reactRoute', display: ( <> - Interactive maps BETA + BETA Multi-study Interactive Map ), - type: 'subMenu', + key: 'map--mega-study', + url: '/workspace/maps/DS_480c976ef9/new', metadata: { test: () => showInteractiveMaps, }, - items: mapMenuItems ?? [ - { - key: 'maps-loading', - type: 'custom', - display: , - }, - ], }, { key: 'pubcrawler',