From 9aa6507e7e8eb14a0a565b0d84c674fa0bed0d6e Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Sun, 16 Nov 2025 19:03:28 +0000 Subject: [PATCH] fix: expand map filters by default to show hotspot toggle Make the filters panel expanded by default so users can immediately see and access the hotspot visualization toggle without needing to click to expand the panel first. --- .kiro/specs/beach-litter-mapping/tasks.md | 2 +- src/components/map/MapFilters.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.kiro/specs/beach-litter-mapping/tasks.md b/.kiro/specs/beach-litter-mapping/tasks.md index 16dea81..a2ca0a1 100644 --- a/.kiro/specs/beach-litter-mapping/tasks.md +++ b/.kiro/specs/beach-litter-mapping/tasks.md @@ -91,7 +91,7 @@ - Configure chart responsiveness for mobile - _Requirements: 5.2, 5.3, 5.4_ -- [-] 12. Create hotspot visualization +- [x] 12. Create hotspot visualization - Fetch and display hotspot data on map - Implement color-coded severity indicators - Show hotspot boundaries and statistics diff --git a/src/components/map/MapFilters.tsx b/src/components/map/MapFilters.tsx index fb04e1d..2c28a72 100644 --- a/src/components/map/MapFilters.tsx +++ b/src/components/map/MapFilters.tsx @@ -24,7 +24,7 @@ export function MapFilters({ showHotspots = false, isLoadingHotspots = false, }: MapFiltersProps) { - const [isExpanded, setIsExpanded] = useState(false); + const [isExpanded, setIsExpanded] = useState(true); const litterTypes: LitterType[] = ['plastic', 'metal', 'glass', 'organic', 'hazardous', 'other']; const quantities: QuantityLevel[] = ['minimal', 'moderate', 'significant', 'severe'];