Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 245-ez-time-filter-co…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
bobular committed Sep 7, 2023
2 parents d77a2d4 + c4bf80e commit 28c0a68
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
5 changes: 5 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"^build-npm-modules"
]
},
"compile:check": {
"dependsOn": [
"^build-npm-modules"
]
},
"bundle:dev": {
"dependsOn": [
"^build-npm-modules"
Expand Down
1 change: 1 addition & 0 deletions packages/libs/eda/src/lib/core/hooks/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function useWdkStudyRecord(datasetId: string): HookValue | undefined {
'bulk_download_url',
'request_needs_approval',
'is_public',
'study_access',
])
.filter((attribute) => attribute in studyRecordClass.attributesMap);
const studyRecord = await wdkService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down Expand Up @@ -577,24 +578,37 @@ const useHeaderMenuItems = (
include: [EuPathDB, UniDB],
},
},
// {
// key: 'maps-alpha',
// display: (
// <>
// Interactive maps <img alt="BETA" src={betaImage} />
// </>
// ),
// type: 'subMenu',
// metadata: {
// test: () => showInteractiveMaps,
// },
// items: mapMenuItems ?? [
// {
// key: 'maps-loading',
// type: 'custom',
// display: <Loading radius={4} />,
// },
// ],
// },
{
key: 'maps-alpha',
type: 'reactRoute',
display: (
<>
Interactive maps <img alt="BETA" src={betaImage} />
<img alt="BETA" src={betaImage} /> 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: <Loading radius={4} />,
},
],
},
{
key: 'pubcrawler',
Expand Down

0 comments on commit 28c0a68

Please sign in to comment.