From 6afcde39349fae53fd3ef770bc6ff93611b464f4 Mon Sep 17 00:00:00 2001 From: Mandy Parson Date: Tue, 17 Jun 2025 09:53:49 -0600 Subject: [PATCH 1/2] MMT-4028: Removing Visualizations Toggle --- bin/deploy-bamboo.sh | 2 -- package-lock.json | 8 ++++---- package.json | 2 +- static/src/js/components/Layout/Layout.jsx | 8 +++----- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/bin/deploy-bamboo.sh b/bin/deploy-bamboo.sh index 4b87fcc20..240681dcd 100755 --- a/bin/deploy-bamboo.sh +++ b/bin/deploy-bamboo.sh @@ -19,8 +19,6 @@ config="`jq '.application.cmrHost = $newValue' --arg newValue $bamboo_CMR_HOST < config="`jq '.application.edscHost = $newValue' --arg newValue $bamboo_EDSC_HOST <<< $config`" config="`jq '.application.gkrHost = $newValue' --arg newValue $bamboo_GKR_HOST <<< $config`" config="`jq '.application.kmsHost = $newValue' --arg newValue $bamboo_KMS_HOST <<< $config`" -# Remove in MMT-4028 -config="`jq '.application.showVisualizations = ($newValue | tostring)' --arg newValue $bamboo_SHOW_VISUALIZATIONS <<< $config`" config="`jq '.application.cookieDomain = $newValue' --arg newValue $bamboo_COOKIE_DOMAIN <<< $config`" config="`jq '.application.displayProdWarning = $newValue' --arg newValue $bamboo_DISPLAY_PROD_WARNING <<< $config`" config="`jq '.application.tokenValidTime = $newValue' --arg newValue $bamboo_JWT_VALID_TIME <<< $config`" diff --git a/package-lock.json b/package-lock.json index 7f3f22fb4..d3eb172c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "dependencies": { "@apollo/client": "^3.8.5", - "@edsc/metadata-preview": "^1.4.0-beta.2", + "@edsc/metadata-preview": "^1.4.0", "@node-saml/node-saml": "^4.0.5", "@rjsf/core": "^5.15.0", "@rjsf/utils": "^5.15.0", @@ -4232,9 +4232,9 @@ } }, "node_modules/@edsc/metadata-preview": { - "version": "1.4.0-beta.2", - "resolved": "https://registry.npmjs.org/@edsc/metadata-preview/-/metadata-preview-1.4.0-beta.2.tgz", - "integrity": "sha512-dSLfVZxt5iSSGXW33Y9xyUXAXc1p+X/n0D0WfAUmLlkCuFDQ0OUHLcnt1PNERVEn01a+IS/IQ+zVG+TYT5gIdQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@edsc/metadata-preview/-/metadata-preview-1.4.0.tgz", + "integrity": "sha512-dBMFzFaUTEmqiCaZ5zMYK0+jurCAWRu/lSGOkX1Spu9xO0B2hvOAZZAhIrG7Lonm4anvRL6dmY41AVD3srUNQQ==", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index 5a4ed627f..c8daf4b53 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@apollo/client": "^3.8.5", - "@edsc/metadata-preview": "^1.4.0-beta.2", + "@edsc/metadata-preview": "^1.4.0", "@node-saml/node-saml": "^4.0.5", "@rjsf/core": "^5.15.0", "@rjsf/utils": "^5.15.0", diff --git a/static/src/js/components/Layout/Layout.jsx b/static/src/js/components/Layout/Layout.jsx index 2e330a490..865976e17 100644 --- a/static/src/js/components/Layout/Layout.jsx +++ b/static/src/js/components/Layout/Layout.jsx @@ -48,8 +48,7 @@ const Layout = ({ className, displayNav }) => { ummVis } = getUmmVersionsConfig() - // Remove showVisualizations in MMT-4028 - const { env, displayProdWarning, showVisualizations } = getApplicationConfig() + const { env, displayProdWarning } = getApplicationConfig() const { user } = useAuthContext() @@ -191,8 +190,7 @@ const Layout = ({ className, displayNav }) => { } ] }, - // Remove in MMT-4028 - ...((showVisualizations === 'true') ? [{ + { title: 'Visualizations', version: `v${ummVis}`, children: [ @@ -205,7 +203,7 @@ const Layout = ({ className, displayNav }) => { title: 'Drafts' } ] - }] : []), + }, { title: 'Order Options', children: [ From fd37db3b605c804b4113c0f31f5b18a11be72e71 Mon Sep 17 00:00:00 2001 From: Mandy Parson Date: Tue, 17 Jun 2025 10:28:12 -0600 Subject: [PATCH 2/2] MMT-4028: removing showVisualization in config file --- static.config.json | 1 - 1 file changed, 1 deletion(-) diff --git a/static.config.json b/static.config.json index 641372e70..df6d0c4c9 100644 --- a/static.config.json +++ b/static.config.json @@ -8,7 +8,6 @@ "mmtHost": "http://localhost:5173", "edscHost": "https://search.sit.earthdata.nasa.gov", "kmsHost": "https://cmr.sit.earthdata.nasa.gov/kms", - "showVisualizations": "true", "version": "development", "defaultResponseHeaders": { "Access-Control-Allow-Origin": "*",