diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index af33ecfce..dd4ab42fc 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,7 +1,22 @@
-
+## PR Checklists
+(Select the checklist that applies to your PR)
-## Why are you creating this Pull Request?
+### Adding a Dataset Overview:
+- [ ] Dataset is available in the production VEDA STAC
+- [ ] Production STAC url is referenced in the dataset overview
+- [ ] All metadata, including those for the E&A page, is completed in the mdx file
+- [ ] Any images are compressed, ideally <500 KB
+- [ ] At least one code owner has reviewed the PR
-- [Adding Datasets or Stories](?title=Content%3A%20%3Cname%3E&expand=1&template=content.md)
-- [Version Release](?title=Deploy%20vX.X.X&expand=1&template=version_release.md)
-- [Other](?expand=1&template=default.md)
\ No newline at end of file
+### Adding a Data Story:
+- [ ] Any data referenced in the story is already published to VEDA STAC and referenced in a separate dataset overview page (prior to merging or as part of the same PR)
+- [ ] All metadata is completed in the mdx file
+- [ ] Any images are compressed, ideally <500 KB
+- [ ] Published Date is as close to the actual release date as possible (work with veda-ui team to determine potential release date when story is close to ready)
+- [ ] At least one code owner has reviewed the PR
+
+### Updating VEDA-UI
+- [ ] Confirmed that [updating the `veda-ui` submodule](https://github.com/NASA-IMPACT/veda-config/blob/main/docs/DEVELOPMENT.md#development) is needed.
+- [ ] Ensured that the correct version of veda-ui is being used
+- [ ] Reviewed the veda-ui changelogs for relevant updates
+- [ ] Tested that the changes work as expected with the current instance configuration
\ No newline at end of file
diff --git a/.veda/ui b/.veda/ui
index 7839e8d42..179976ec2 160000
--- a/.veda/ui
+++ b/.veda/ui
@@ -1 +1 @@
-Subproject commit 7839e8d425dae7dde41676571e92a4b7d3937a88
+Subproject commit 179976ec2da0fff8c9ba3e46a59a69ac5c2aa568
diff --git a/datasets/CMIP-winter-median-pr.data.mdx b/datasets/CMIP-winter-median-pr.data.mdx
index 3b684c201..f8d6f20e3 100644
--- a/datasets/CMIP-winter-median-pr.data.mdx
+++ b/datasets/CMIP-winter-median-pr.data.mdx
@@ -41,7 +41,7 @@ layers:
layerId: CMIP245-winter-median-pr
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
@@ -81,7 +81,7 @@ layers:
layerId: CMIP585-winter-median-pr
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
diff --git a/datasets/CMIP-winter-median-ta.data.mdx b/datasets/CMIP-winter-median-ta.data.mdx
index c4b1f8104..d97feb16f 100644
--- a/datasets/CMIP-winter-median-ta.data.mdx
+++ b/datasets/CMIP-winter-median-ta.data.mdx
@@ -41,7 +41,7 @@ layers:
layerId: CMIP245-winter-median-ta
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -82,7 +82,7 @@ layers:
layerId: CMIP585-winter-median-ta
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
diff --git a/datasets/FLDAS-soilmoisture-anomalies.data.mdx b/datasets/FLDAS-soilmoisture-anomalies.data.mdx
index 6d35dc63f..eadf88172 100644
--- a/datasets/FLDAS-soilmoisture-anomalies.data.mdx
+++ b/datasets/FLDAS-soilmoisture-anomalies.data.mdx
@@ -43,7 +43,7 @@ layers:
layerId: SoilMoi00_10cm_tavg
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
diff --git a/datasets/GPM_3IMERGDF.data.mdx b/datasets/GPM_3IMERGDF.data.mdx
new file mode 100644
index 000000000..ea857754b
--- /dev/null
+++ b/datasets/GPM_3IMERGDF.data.mdx
@@ -0,0 +1,75 @@
+---
+id: GPM_3IMERGDF.v07
+name: "GPM IMERG Daily Precipitation"
+description: "GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree"
+media:
+ src: ::file ./gpmimergdaily.png
+ alt: CMIP6 Near-Surface Air Temperature Screenshot
+ author:
+ name: NASA
+ url:
+taxonomy:
+ - name: Topics
+ values:
+ - Climate
+layers:
+ - id: GPM_3IMERGDF.v07
+ type: cmr
+ stacCol: GPM_3IMERGDF
+ tileApiEndpoint: "https://dev-titiler-cmr.delta-backend.com/WebMercatorQuad/tilejson.json"
+ name: GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree
+ description: "GPM Level 3 IMERG Final Daily 10 x 10 km (GPM_3IMERGDF) accumulated precipitation"
+ time_density: day
+ zoomExtent:
+ - 0
+ - 20
+ sourceParams:
+ tile_scale: 3
+ resampling: bilinear
+ variable: precipitation
+ colormap_name: gnbu
+ rescale:
+ - 0
+ - 46
+ maxzoom: 12
+ concept_id: C2723754864-GES_DISC
+ backend: xarray
+ legend:
+ unit:
+ label:
+ type: gradient
+ min: "0 mm/hr"
+ max: "46 mm/hr"
+ stops:
+ [
+ "#f7fcf0",
+ "#e6f5e1",
+ "#d7efd1",
+ "#c5e8c2",
+ "#abdeb6",
+ "#8bd2bf",
+ "#6bc3c9",
+ "#4bafd1",
+ "#3193c2",
+ "#1878b4",
+ "#085da0",
+ "#084081",
+ ]
+---
+
+
+
+# GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree V06 (GPM_3IMERGDF)
+
+## Dataset Description
+
+This dataset is the GPM Level 3 IMERG _Final_ Daily 10 x 10 km (GPM_3IMERGDF) derived from the half-hourly GPM_3IMERGHH. The derived result represents the Final estimate of the daily mean precipitation rate in mm/day. The dataset is produced by first computing the mean precipitation rate in (mm/hour) in every grid cell, and then multiplying the result by 24.
+
+Source: [https://disc.gsfc.nasa.gov/datasets/GPM_3IMERGDF_07/summary](https://disc.gsfc.nasa.gov/datasets/GPM_3IMERGDF_07/summary)
+
+## Data Source
+
+The files represented are NetCDF files in GES DISC's Earthdata Cloud bucket and discovered and tiled via a dynamic tiling service using CMR.
+
+
+
diff --git a/datasets/darnah-flood.data.mdx b/datasets/darnah-flood.data.mdx
index 5febdb17e..93215e73c 100644
--- a/datasets/darnah-flood.data.mdx
+++ b/datasets/darnah-flood.data.mdx
@@ -37,7 +37,7 @@ layers:
layerId: darnah-flood
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
metadata:
source: HLS
diff --git a/datasets/global-reanalysis-da.data.mdx b/datasets/global-reanalysis-da.data.mdx
index e900d122c..abf9d4be3 100644
--- a/datasets/global-reanalysis-da.data.mdx
+++ b/datasets/global-reanalysis-da.data.mdx
@@ -45,7 +45,7 @@ layers:
layerId: lis-global-da-evap
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -85,7 +85,7 @@ layers:
layerId: lis-global-da-gpp
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -126,7 +126,7 @@ layers:
layerId: lis-global-da-gws
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -167,7 +167,7 @@ layers:
layerId: lis-global-da-swe
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -209,7 +209,7 @@ layers:
layerId: lis-global-da-streamflow
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -250,7 +250,7 @@ layers:
layerId: lis-global-da-qs
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -291,7 +291,7 @@ layers:
layerId: lis-global-da-qsb
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -332,7 +332,7 @@ layers:
layerId: lis-global-da-tws
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -373,7 +373,7 @@ layers:
layerId: lis-global-da-totalprecip
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
diff --git a/datasets/gpmimergdaily.png b/datasets/gpmimergdaily.png
new file mode 100644
index 000000000..e03e5722a
Binary files /dev/null and b/datasets/gpmimergdaily.png differ
diff --git a/datasets/lahaina-fire.data.mdx b/datasets/lahaina-fire.data.mdx
index da1945f3b..1a4881d10 100644
--- a/datasets/lahaina-fire.data.mdx
+++ b/datasets/lahaina-fire.data.mdx
@@ -42,7 +42,7 @@ layers:
layerId: landsat-nighttime-thermal
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
@@ -79,7 +79,7 @@ layers:
layerId: hls-swir-falsecolor-composite
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
info:
source: NASA
@@ -110,7 +110,7 @@ layers:
layerId: hls-bais2-v2
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
diff --git a/datasets/snow-projections-diff.data.mdx b/datasets/snow-projections-diff.data.mdx
index 046e38d8e..96212ed68 100644
--- a/datasets/snow-projections-diff.data.mdx
+++ b/datasets/snow-projections-diff.data.mdx
@@ -41,7 +41,7 @@ layers:
layerId: snow-projections-diff-scenario-245
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
@@ -79,7 +79,7 @@ layers:
layerId: snow-projections-diff-scenario-585
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
diff --git a/datasets/snow-projections-median.data.mdx b/datasets/snow-projections-median.data.mdx
index 9f6bec08d..9a1484293 100644
--- a/datasets/snow-projections-median.data.mdx
+++ b/datasets/snow-projections-median.data.mdx
@@ -40,7 +40,7 @@ layers:
layerId: snow-projections-median-scenario-245
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
@@ -79,7 +79,7 @@ layers:
layerId: snow-projections-median-scenario-585
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
diff --git a/datasets/twsanomaly.data.mdx b/datasets/twsanomaly.data.mdx
index 1f7b0904d..6e0e68969 100644
--- a/datasets/twsanomaly.data.mdx
+++ b/datasets/twsanomaly.data.mdx
@@ -36,7 +36,7 @@ layers:
layerId: lis-tws-anomaly
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
- if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')} VS ${dateFns.format(compareDatetime, 'DD LLL yyyy')}`;
+ if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')} VS ${dateFns.format(compareDatetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index 4dd7859af..bd0886c21 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -7,7 +7,7 @@ You can see the version running:
./.veda/veda --info
```
-The commit you may want to pin the `veda-ui` to will depend, but to get the latest changes from the `main` branch you could do:
+The commit you may want to pin the `veda-ui` to will depend, but to update veda-ui you can do:
```
# Go into the submodule
cd .veda/ui
@@ -15,12 +15,10 @@ cd .veda/ui
# Update the submodule info
git fetch
-# Switch to the branch you want.
-# You can also choose a specific tag.
-git switch main
+# Switch to the release you want.
+# You can see the list of releases on https://github.com/NASA-IMPACT/veda-ui/releases
-# Get the latest changes
-git pull
+git checkout vx.x.x
# Get back to the root directory
cd -
diff --git a/docs/SETUP.md b/docs/SETUP.md
index 7a045f962..a9951217b 100644
--- a/docs/SETUP.md
+++ b/docs/SETUP.md
@@ -4,14 +4,16 @@ This repo contains all the content and configuration needed to setup your own in
The `veda-config` relies on the `veda-ui` submodule.
Use `--recursive` flag when cloning `veda-config`, or initialize the submodules with:
+
```
git submodule update --init --recursive
```
## Requirements
+
To set up the development environment for this website, you'll need to install the following on your system:
-- [Node](http://nodejs.org/) v16 (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
+- [Node](http://nodejs.org/) (see version in [.nvmrc](../.nvmrc)) (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
- [Yarn](https://yarnpkg.com/) Package manager
If you use [`nvm`](https://github.com/creationix/nvm), activate the desired Node version:
@@ -34,11 +36,13 @@ Then, setup the project by running the command below.
## Usage
### Config files
+
Configuration is done using [dot.env](https://parceljs.org/features/node-emulation/#.env-files) files.
These files are used to simplify the configuration of the app and should not contain sensitive information.
Copy the `.env.local-sample` to `.env.local` to add your configuration variables.
+
```sh
cp .env.local-sample .env.local
```
@@ -50,11 +54,12 @@ Get your Mapbox access token from Mapbox Dashboard. Put the key in `.env.local`
## Running the app
To preview the app use:
+
```
yarn serve
```
-This will start the app and make it available at http://localhost:9000.
+This will start the app and make it available at .
If the application is not working properly or erroring when it starts, try cleaning the cache with `yarn clean`.
If the errors persist [open an issue](https://github.com/NASA-IMPACT/veda-config/issues/new) with the problem description.
diff --git a/package.json b/package.json
index 7bbd65bfc..6edd22982 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "veda-config",
"description": "Configuration for Veda",
- "version": "0.17.0",
+ "version": "0.18.0",
"source": "./.veda/ui/app/index.html",
"license": "Apache-2.0",
"scripts": {
diff --git a/stories/nc-hogs.stories.mdx b/stories/nc-hogs.stories.mdx
index 86a0edfd9..a6d35569b 100644
--- a/stories/nc-hogs.stories.mdx
+++ b/stories/nc-hogs.stories.mdx
@@ -8,7 +8,7 @@ media:
author:
name: Gerry Broome
url: https://www.vox.com/future-perfect/23003487/north-carolina-hog-pork-bacon-farms-environmental-racism-black-residents-pollution-meat-industry
-pubDate: 2024-04-15
+pubDate: 2024-10-31
taxonomy:
- name: Topics
values:
diff --git a/veda.config.js b/veda.config.js
index a2a606660..00ea03f04 100644
--- a/veda.config.js
+++ b/veda.config.js
@@ -2,25 +2,29 @@ module.exports = {
/**
* Glob path for the datasets.
*/
- datasets: './datasets/*.data.mdx',
+ datasets: "./datasets/*.data.mdx",
/**
* Glob path for the stories.
*/
- stories: './stories/*.stories.mdx',
+ stories: "./stories/*.stories.mdx",
// App component and content overrides.
// See docs/CONFIGURATION.md for more information.
pageOverrides: {
// Content for the about page.
// Type: Content override
- aboutContent: './overrides/about.mdx'
+ aboutContent: "./overrides/about.mdx",
},
strings: {
stories: {
- one: ' Data Story',
- other: 'Data Stories'
- }
- }
+ one: " Data Story",
+ other: "Data Stories",
+ },
+ },
+ cookieConsentForm: {
+ title: "Cookie Consent",
+ copy: "We use cookies to enhance your browsing experience and to help us understand how our website is used. These cookies allow us to collect data on site usage and improve our services based on your interactions. To learn more about it, see our [Privacy Policy](https://www.nasa.gov/privacy/#cookies)",
+ },
};