diff --git a/app/scripts/components/datasets/s-overview/index.tsx b/app/scripts/components/datasets/s-overview/index.tsx
index e54fc9915..dc1bcd425 100644
--- a/app/scripts/components/datasets/s-overview/index.tsx
+++ b/app/scripts/components/datasets/s-overview/index.tsx
@@ -44,7 +44,10 @@ function DatasetsOverview() {
parentTo: DATASETS_PATH,
items: allDatasetsProps,
currentId: dataset.data.id,
- localMenuCmp:
+ localMenuCmp:
+ dataset?.data.disableExplore !== true ? (
+
+ ) : null
}}
/>
@@ -53,9 +56,10 @@ function DatasetsOverview() {
title={`${dataset.data.name} Overview`}
description={dataset.data.description}
renderBetaBlock={() => (
-
+
+ {dataset?.data.disableExplore !== true && (
Explore data
-
-
+ )}
+
+
)}
renderDetailsBlock={() => (
<>
diff --git a/app/scripts/main.tsx b/app/scripts/main.tsx
index 18b0997b7..eba9b82d8 100644
--- a/app/scripts/main.tsx
+++ b/app/scripts/main.tsx
@@ -5,7 +5,7 @@ import { BrowserRouter, Route, Routes, useLocation } from 'react-router-dom';
import { DevseedUiThemeProvider as DsTp } from '@devseed-ui/theme-provider';
import { userPages } from 'veda';
-import { discoveryRoutes, thematicRoutes } from './redirects';
+import { DatasetExploreRedirect, discoveryRoutes, thematicRoutes } from './redirects';
import theme, { GlobalStyles } from '$styles/theme';
import { getAppURL } from '$utils/history';
@@ -28,7 +28,6 @@ const StoriesHub = lazy(() => import('$components/stories/hub'));
const StoriesSingle = lazy(() => import('$components/stories/single'));
const DataCatalog = lazy(() => import('$components/data-catalog'));
-const DatasetsExplore = lazy(() => import('$components/datasets/s-explore'));
const DatasetsOverview = lazy(() => import('$components/datasets/s-overview'));
const Analysis = lazy(() => import('$components/analysis/define'));
@@ -95,7 +94,7 @@ function Root() {
/>
}
+ element={}
/>
} />
} />
);
+
+export function DatasetExploreRedirect() {
+ const dataset = useDataset();
+ const url = `${DATASETS_PATH}/${dataset?.data.id}`;
+ return dataset?.data.disableExplore ? (
+
+ ) : (
+
+ );
+}
diff --git a/docs/content/CONTENT.md b/docs/content/CONTENT.md
index d454fea34..9d8f7abbf 100644
--- a/docs/content/CONTENT.md
+++ b/docs/content/CONTENT.md
@@ -50,6 +50,7 @@ media: Media
thematics: string[]
sources: string[]
featured: boolean
+disableExplore: boolean
layers: Layer[]
related: Related[]
@@ -109,6 +110,11 @@ taxonomy:
Whether this dataset is featured
![](./media/fm-featured-dataset.png)
+**disableExplore**
+`boolean`
+When set to true, the 'explore data' section won't be available for this dataset.
+
+
**layers**
`Layer[]`
List of layers for this dataset. See [layer.md](./frontmatter/layer.md).
diff --git a/parcel-resolver-veda/index.d.ts b/parcel-resolver-veda/index.d.ts
index 204765a88..6c610201c 100644
--- a/parcel-resolver-veda/index.d.ts
+++ b/parcel-resolver-veda/index.d.ts
@@ -151,6 +151,7 @@ declare module 'veda' {
media?: Media;
layers: DatasetLayer[];
related?: RelatedContentData[];
+ disableExplore?: boolean;
}
// ///////////////////////////////////////////////////////////////////////////