From b7138fc68cff5137ef83e77a880ad6c4a73afc8b Mon Sep 17 00:00:00 2001 From: Eric Boucher Date: Tue, 8 Oct 2024 00:04:40 +0200 Subject: [PATCH] Fix boundary selection outside of alert mode (#1356) --- .../components/MapView/LeftPanel/index.tsx | 2 +- .../MapView/__snapshots__/index.test.tsx.snap | 1420 ++--------------- .../NavBar/__snapshots__/index.test.tsx.snap | 32 - frontend/src/config/mozambique/prism.json | 2 +- 4 files changed, 135 insertions(+), 1321 deletions(-) diff --git a/frontend/src/components/MapView/LeftPanel/index.tsx b/frontend/src/components/MapView/LeftPanel/index.tsx index 7b7829da4..518659507 100644 --- a/frontend/src/components/MapView/LeftPanel/index.tsx +++ b/frontend/src/components/MapView/LeftPanel/index.tsx @@ -179,7 +179,7 @@ const LeftPanel = memo(() => { const renderAlertsPanel = React.useMemo( () => ( - + {tabValue === Panel.Alerts && } ), [tabValue], diff --git a/frontend/src/components/MapView/__snapshots__/index.test.tsx.snap b/frontend/src/components/MapView/__snapshots__/index.test.tsx.snap index d78e99dc0..44b1f1d53 100644 --- a/frontend/src/components/MapView/__snapshots__/index.test.tsx.snap +++ b/frontend/src/components/MapView/__snapshots__/index.test.tsx.snap @@ -339,1161 +339,7 @@ exports[`MapView renders as expected 1`] = ` id="full-width-tabpanel-alerts" role="tabpanel" style="display: none; flex-grow: 1; height: calc(94vh - 48px); overflow-x: auto;" - > -
-
-
-
- - - Choose hazard layer - -
  • - - INAM Rainfall Data - -
  • - - Blended rainfall aggregate (10-day) - - raster - - - - Blended rainfall aggregate (1-month) - - raster - - - - Blended rainfall aggregate (2-month) - - raster - - - - Blended rainfall aggregate (3-month) - - raster - - - - Blended rainfall aggregate (4-month) - - raster - - - - Blended rainfall aggregate (5-month) - - raster - - - - Blended rainfall aggregate (6-month) - - raster - - - - Blended rainfall aggregate (7-month) - - raster - - - - Blended rainfall aggregate (8-month) - - raster - - - - Blended rainfall aggregate (9-month) - - raster - - - - Blended rainfall aggregate (1-year) - - raster - - - - Blended rainfall anomaly (10-day) - - raster - - - - Blended rainfall anomaly (1-month) - - raster - - - - Blended rainfall anomaly (2-month) - - raster - - - - Blended rainfall anomaly (3-month) - - raster - - - - Blended rainfall anomaly (4-month) - - raster - - - - Blended rainfall anomaly (5-month) - - raster - - - - Blended rainfall anomaly (6-month) - - raster - - - - Blended rainfall anomaly (7-month) - - raster - - - - Blended rainfall anomaly (8-month) - - raster - - - - Blended rainfall anomaly (9-month) - - raster - - - - Blended rainfall anomaly (1-year) - - raster - - - - INAM SPI - 1-month - - raster - - - - INAM SPI - 2-month - - raster - - - - INAM SPI - 3-month - - raster - - - - INAM SPI - 6-month - - raster - - - - INAM SPI - 9-month - - raster - - - - INAM SPI - 1-year - - raster - - - - INAM SPI - 2-year - - raster - - - - INAM SPI - 3-year - - raster - - - - INAM SPI - 5-year - - raster - - -
  • - - Forecasts - -
  • - - Rolling daily rainfall forecast - - raster - - - - 10-day rainfall forecast - - raster - - - - 10-day rainfall forecast anomaly - - raster - - -
  • - - Global Rainfall Products - -
  • - - CHIRPS daily rainfall estimate (mm) - - raster - - - - CHIRPS 10-day rainfall estimate (mm) - - raster - - - - CHIRPS 1-month rainfall aggregate - - raster - - - - CHIRPS 3-month rainfall aggregate (mm) - - raster - - - - CHIRPS 6-month rainfall aggregate (mm) - - raster - - - - CHIRPS 9-month rainfall aggregate (mm) - - raster - - - - CHIRPS 1-year rainfall aggregate (mm) - - raster - - - - CHIRPS 10-day rainfall anomaly - - raster - - - - CHIRPS 1-month rainfall anomaly - - raster - - - - CHIRPS 3-month rainfall anomaly - - raster - - - - CHIRPS 6-month rainfall anomaly - - raster - - - - CHIRPS 9-month rainfall anomaly - - raster - - - - CHIRPS 1-year rainfall anomaly - - raster - - - - SPI - 1-month - - raster - - - - SPI - 3-month - - raster - - - - SPI - 6-month - - raster - - - - SPI - 9-month - - raster - - - - SPI - 1-year - - raster - - -
  • - - Dry Periods - -
  • - - Days since last rain - - raster - - - - Longest dry spell - - raster - - -
  • - - Extreme Rain Events - -
  • - - Number of days with heavy rainfall in the last 30 days - - raster - - - - Number of days with intense rainfall in the last 30 days - - raster - - - - Number of days with extreme rainfall in the last 30 days - - raster - - - - Longest consecutive heavy rainfall days - - raster - - - - Longest consecutive intense rainfall days - - raster - - - - Longest consecutive extreme rainfall days - - raster - - -
  • - - Vegetation Conditions - -
  • - - 10-day NDVI (MODIS) - - raster - - - - 10-day NDVI anomaly (MODIS) - - raster - - -
  • - - INAM Air Temperature - -
  • - - INAM mean maximum air temperature (10-day) - - raster - - - - INAM mean maximum air temperature anomaly (10-day) - - raster - - -
  • - - Land Surface Temperature - -
  • - - Daytime Land Surface Temperature - 10-day (MODIS) - - raster - - - - Land Surface Temperature - 10-day Anomaly (MODIS) - - raster - - - - Land Surface Temperature - 10-day Amplitude (MODIS) - - raster - - -
  • - - Tropical Storms - -
  • - - Tropical Storms - Wind buffers - - polygon - - -
    -
    -
    -
    - - Threshold - -
    - - -
    -
    -
    - - Regions - - -
    -
    - -
    -
    - -
    -
    - - - Create Alert - - -
    - + />