From e53fc5d759de2ee5c0995a051847667ae057778c Mon Sep 17 00:00:00 2001 From: Anil Natha Date: Wed, 18 Dec 2024 13:06:53 -0800 Subject: [PATCH] Added hard-coded links for STAC Browser for unity/dev and unity/test. --- CHANGELOG.md | 1 + src/state/slices/healthSlice.ts | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ceaa5c..4c2127b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated router configuration to improve URL readability. URLs no longer contain router information using a hash (#39). [#39](https://github.com/unity-sds/unity-ui/issues/39 - Updated home page route to be located at `/home` and the route `/` redirects to it. [#39](https://github.com/unity-sds/unity-ui/issues/39) - Updated application basename configuration to use the proxy name `ui` instead of `dashboard` [#45](https://github.com/unity-sds/unity-ui/issues/45) +- Added hard-coded links for STAC Browser for the unity/dev and unity/test venues [#47](https://github.com/unity-sds/unity-ui/issues/47) ## [0.7.0] 2024-09-27 - Updated node version lts/iron diff --git a/src/state/slices/healthSlice.ts b/src/state/slices/healthSlice.ts index 28899d3..32a4200 100644 --- a/src/state/slices/healthSlice.ts +++ b/src/state/slices/healthSlice.ts @@ -44,6 +44,46 @@ const getItems = () => { let serviceItems:Service[] = Array(); + if( project === "UNITY" && venue === 'DEV') { + + serviceItems = [ + { + componentName: "STAC Browser", + ssmKey: "", + healthCheckUrl: "", + landingPageUrl: "https://www.dev.mdps.mcp.nasa.gov:4443/data/stac_browser/", + healthChecks: [ + { + status: "UNKNOWN", + httpResponseCode: "", + date: "" + } + ] + } + ]; + + } + + if( project === "UNITY" && venue === 'TEST') { + + serviceItems = [ + { + componentName: "STAC Browser", + ssmKey: "", + healthCheckUrl: "", + landingPageUrl: "https://www.test.mdps.mcp.nasa.gov:4443/data/stac_browser/", + healthChecks: [ + { + status: "UNKNOWN", + httpResponseCode: "", + date: "" + } + ] + } + ]; + + } + if( project === "UNITY" && venue === 'OPS') { serviceItems = [ @@ -61,6 +101,7 @@ const getItems = () => { ] } ]; + } if( project === "EMIT" && venue === "DEV" ) {