From 493b0b3d34eb23c49b0a6e5c8d41b562fd6825a3 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 4 Jun 2026 01:05:24 -0700 Subject: [PATCH] fix: expose map layer reset --- .../maps/LocationMapBottomSheet.jsx | 38 ++++++++++--------- .../src/styles/pages/LocationMapManager.css | 9 ++++- frontend/tests/location-map-manager.spec.ts | 5 ++- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/maps/LocationMapBottomSheet.jsx b/frontend/src/components/maps/LocationMapBottomSheet.jsx index 3929af6..230d0d7 100644 --- a/frontend/src/components/maps/LocationMapBottomSheet.jsx +++ b/frontend/src/components/maps/LocationMapBottomSheet.jsx @@ -97,6 +97,7 @@ export default function LocationMapBottomSheet({ const maxHeight = Math.max(40, Math.round(mapSize?.height || selectedHeight)); const saveDraftLabel = savingAction === "save" ? "Saving..." : "Save Draft"; const publishLabel = savingAction === "publish" ? "Publishing..." : "Publish"; + const resetLayerFilters = () => setFilters({ ...DEFAULT_MAP_FILTERS }); const showSelectedZoneItems = () => { setFilters((current) => ({ ...current, @@ -162,31 +163,34 @@ export default function LocationMapBottomSheet({ {sheetDescription} ) : null} - - - - {layersOpen ? ( -
+
{changedLayerCount ? ( ) : null} + +
+
+ + {layersOpen ? ( +
{DISPLAY_CONTROLS.map(([key, label]) => (