mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-14 11:06:21 +02:00
* fix(aviation): unify NOTAM status logic between map and ops table Both endpoints now use a shared NOTAM loader (seed-first with live fallback) so they see the same closure snapshot. When an airport has a NOTAM *and* real flight data, the new mergeNotamWithExistingAlert() preserves observed stats instead of hard-replacing with severe/closure. This fixes DXB showing NORMAL in the ops table but SEVERE on the map. - Extract loadNotamClosures() to _shared.ts (used by both handlers) - Add mergeNotamWithExistingAlert() for NOTAM + flight data merge - Align ops-summary severity: NOTAM floor = moderate (operating) or severe (no flights), matching the map's merge logic - Fix OMAD → OMAA ICAO typo in seed MENA list (AUH) * fix: resolve strict tsconfig type errors in API build * fix(aviation): preserve closure delayType for NOTAM-closed airports Downstream consumers (MapPopup, data-loader, country-instability) rely on delayType === 'closure' as the only closure signal. Always set delayType to closure in mergeNotamWithExistingAlert() since the NOTAM confirms the airport is closed — severity is still nuanced by flight data.