Interactive interface for browsing global, full-resolution satellite imagery
different color for layer notices
Jason Kentb17742d241ea
diff --git a/web/css/sidebar-panel.css b/web/css/sidebar-panel.cssindex 2c2f4e3bb..211756428 100644--- a/web/css/sidebar-panel.css+++ b/web/css/sidebar-panel.css@@ -388,6 +388,12 @@ li.item.productsitem.inmotion,background: #dacf00;cursor: default;display: none;+ &.layer-notice {+ background-color: #f90;+ &:hover {+ background: #ff6900;+ }+ }&:hover {background: #fff200;}diff --git a/web/js/containers/sidebar/zot.js b/web/js/containers/sidebar/zot.jsindex 43ce26203..443005918 100644--- a/web/js/containers/sidebar/zot.js+++ b/web/js/containers/sidebar/zot.js@@ -5,19 +5,20 @@ import { Tooltip } from 'reactstrap';export default function Zot (props) {const { zot, layer } = props;const [tooltipVisible, toggleTooltip] = useState(false);-- let zotString = '';+ let className = 'zot';+ let tooltipString = '';if (zot && zot.overZoomValue) {- zotString += `Layer is overzoomed by ${zot.overZoomValue.toString()}x its maximum zoom level <br/>`;+ tooltipString += `Layer is overzoomed by ${zot.overZoomValue.toString()}x its maximum zoom level <br/>`;}if (zot && zot.layerNotices) {- zotString += zot.layerNotices;+ tooltipString += zot.layerNotices;+ className = 'zot layer-notice';}return (<divid={`${layer}-zot`}- className="zot"+ className={className}><TooltipclassName="zot-tooltip"@@ -27,7 +28,7 @@ export default function Zot (props) {toggle={() => toggleTooltip(!tooltipVisible)}delay={{ show: 0, hide: 300 }}>- <div dangerouslySetInnerHTML={{ __html: zotString }} />+ <div dangerouslySetInnerHTML={{ __html: tooltipString }} /></Tooltip><b>!</b></div>diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.jsindex cfe77faf1..247a17cd0 100644--- a/web/js/containers/toolbar.js+++ b/web/js/containers/toolbar.js@@ -131,12 +131,14 @@ class toolbarContainer extends Component {const { parameters, features } = config;const { notification } = features;const domain = window.location.origin;+ const testDomains = ['localhost', 'worldview.sit', 'worldview.uat', 'uat.gibs'];+ const isTestInstance = testDomains.some((href) => domain.includes(href));if (notification) {- let notificationURL = notification.url && !domain.includes('localhost')- // Use the deployed domain (SIT, UAT, PROD) when possible+ let notificationURL = !isTestInstance+ // Use the configured domain in production? `${notification.url}?domain=${domain}`- // Use the PROD domain when running locally+ // Use the UAT domain for test instances: `${notification.url}?domain=https%3A%2F%2Fworldview.uat.earthdata.nasa.gov`;if (parameters.mockAlerts) {