feat(storm-intel): configurable pin radius, fix blank map, 6mo default, remove mock polygons

- Map always renders (removed blank overlay when no nearby events)
- Pin radius is now user-configurable (default 5 mi, input shown in pin strip)
- Default date range changed to 6 months for faster initial load
- IEM fetch window narrowed to 6 months to match default
- MOCK_STORM_EVENTS cleared (IEM provides real NWS polygon data)
This commit is contained in:
Satyam-Rastogi
2026-05-19 00:47:43 +05:30
parent 1b7af0699d
commit a6d3997d07
3 changed files with 50 additions and 200 deletions
+1 -145
View File
@@ -5598,151 +5598,7 @@ export const LEAD_FORM_OPTIONS = {
],
};
// Storm Events mock history of severe weather events in Plano TX area
// Each polygon is an array of [lat, lng] pairs forming the storm impact boundary.
// severity scale: trace (<1"), moderate (11.5"), significant (1.52"), severe (2"+)
// conversionWindow: days 760 = hot, 61120 = warm, >120 = cold
export const MOCK_STORM_EVENTS = [
{
id: 'SE-001',
date: '2026-04-28',
type: 'hail',
severity: 'severe',
maxHailSize: 2.5,
areaName: 'NE Plano / Spring Creek Pkwy',
county: 'Collin',
estimatedHomes: 1240,
description: 'Golf ballsized hail (2.5") swept through northeast Plano, generating dozens of immediate roof damage reports. Highest claim density in the Spring Creek / Custer Rd corridor.',
source: 'NOAA',
// Severe large irregular blob, WSWENE track, jagged edges like real NWS swath
polygon: [
[33.082, -96.748], [33.086, -96.741], [33.081, -96.731],
[33.089, -96.720], [33.093, -96.712], [33.090, -96.703],
[33.099, -96.695], [33.106, -96.687], [33.112, -96.680],
[33.116, -96.672], [33.119, -96.665], [33.114, -96.659],
[33.108, -96.665], [33.112, -96.674], [33.105, -96.681],
[33.098, -96.691], [33.091, -96.702], [33.085, -96.713],
[33.078, -96.726], [33.075, -96.739],
],
},
{
id: 'SE-002',
date: '2026-03-15',
type: 'hail',
severity: 'moderate',
maxHailSize: 1.2,
areaName: 'Central Plano / W 15th St',
county: 'Collin',
estimatedHomes: 870,
description: 'Quarter-sized hail moved through central Plano neighborhoods. Minor granule loss on older roofs; several shingle bruising reports filed.',
source: 'NWS',
// Moderate compact irregular blob, slight ENE drift, concave S edge
polygon: [
[33.064, -96.763], [33.068, -96.754], [33.065, -96.744],
[33.071, -96.736], [33.067, -96.727], [33.059, -96.723],
[33.051, -96.727], [33.046, -96.736], [33.048, -96.747],
[33.053, -96.757], [33.060, -96.764],
],
},
{
id: 'SE-003',
date: '2026-02-03',
type: 'hail',
severity: 'significant',
maxHailSize: 1.75,
areaName: 'SE Plano / Parker Rd Corridor',
county: 'Collin',
estimatedHomes: 960,
description: 'Half-dollar sized hail impacted the Parker Rd corridor. High claim conversion probability — many homes in this zone have 1520 year old roofs.',
source: 'NOAA',
// Significant elongated jagged swath with notch mid-south edge
polygon: [
[33.007, -96.739], [33.012, -96.729], [33.008, -96.719],
[33.017, -96.709], [33.024, -96.701], [33.031, -96.694],
[33.037, -96.686], [33.041, -96.679], [33.038, -96.671],
[33.032, -96.677], [33.036, -96.686], [33.029, -96.694],
[33.021, -96.704], [33.014, -96.715], [33.006, -96.729],
[33.004, -96.740],
],
},
{
id: 'SE-004',
date: '2026-01-20',
type: 'hail',
severity: 'moderate',
maxHailSize: 1.0,
areaName: 'W Plano / Legacy West',
county: 'Collin',
estimatedHomes: 680,
description: 'Quarter-sized hail with sustained winds up to 45 mph. Mixed residential and commercial impact around the Legacy West district.',
source: 'NWS',
// Moderate roughly E-W oriented compact blob, irregular N edge
polygon: [
[33.075, -96.841], [33.080, -96.831], [33.077, -96.819],
[33.083, -96.810], [33.079, -96.802], [33.070, -96.801],
[33.062, -96.805], [33.057, -96.814], [33.060, -96.826],
[33.066, -96.836], [33.073, -96.843],
],
},
{
id: 'SE-005',
date: '2025-12-10',
type: 'hail',
severity: 'trace',
maxHailSize: 0.8,
areaName: 'Allen / N Plano Border',
county: 'Collin',
estimatedHomes: 430,
description: 'Marble-sized hail, minimal visible damage. Worth a light canvassing pass on homes with 10+ year roofs in this zone.',
source: 'NWS',
// Trace small amoeba-like blob, limited extent
polygon: [
[33.113, -96.669], [33.117, -96.661], [33.115, -96.652],
[33.109, -96.646], [33.102, -96.648], [33.098, -96.657],
[33.101, -96.666], [33.108, -96.672],
],
},
{
id: 'SE-006',
date: '2025-11-05',
type: 'hail',
severity: 'significant',
maxHailSize: 1.6,
areaName: 'S Plano / Haggard Park Area',
county: 'Collin',
estimatedHomes: 810,
description: 'Half-dollar hail combined with strong gusts. Shingle bruising confirmed across multiple streets. This zone responded well to canvassing in Q4.',
source: 'NOAA',
// Significant ragged WSWENE swath with NE hook (supercell right turn)
polygon: [
[33.015, -96.793], [33.021, -96.782], [33.017, -96.771],
[33.026, -96.761], [33.034, -96.752], [33.040, -96.743],
[33.048, -96.737], [33.051, -96.730], [33.047, -96.722],
[33.040, -96.731], [33.032, -96.743], [33.024, -96.756],
[33.016, -96.769], [33.011, -96.782], [33.012, -96.793],
],
},
{
id: 'SE-007',
date: '2025-09-18',
type: 'hail',
severity: 'moderate',
maxHailSize: 1.1,
areaName: 'Frisco / N Plano',
county: 'Collin',
estimatedHomes: 530,
description: 'Storm cell crossed from Frisco into north Plano. Roofs 10 years or older in this zone are likely showing impact marks.',
source: 'NOAA',
// Moderate enters from W, ragged NE exit, concave mid-south
polygon: [
[33.112, -96.808], [33.117, -96.797], [33.113, -96.786],
[33.121, -96.776], [33.129, -96.764], [33.135, -96.753],
[33.140, -96.743], [33.136, -96.736], [33.129, -96.742],
[33.133, -96.751], [33.127, -96.762], [33.120, -96.773],
[33.113, -96.785], [33.108, -96.798], [33.110, -96.809],
],
},
];
export const MOCK_STORM_EVENTS = [];
// Storm-sourced leads canvasser door-knock results linked to storm events
// Each lead has a stormSource { id, areaName, date, maxHailSize, severity } and