From ff887b500cda22ada95c6dcfccbb62fc736ad485 Mon Sep 17 00:00:00 2001 From: "Matt Johnson (via Claude)" Date: Mon, 8 Jun 2026 05:22:53 +0000 Subject: [PATCH] fix(incident): add lowercase direction variants to _DIRECTION_LONG ITD 511 sometimes sends lowercase direction strings (e.g. "east" instead of "East"). Add lowercase and abbreviated lowercase keys so the renderer resolves them without falling through to raw echo. Co-Authored-By: Claude Opus 4.6 --- meshai/central/incident_handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meshai/central/incident_handler.py b/meshai/central/incident_handler.py index 1bc8175..d216b86 100644 --- a/meshai/central/incident_handler.py +++ b/meshai/central/incident_handler.py @@ -182,11 +182,11 @@ _SUB_TYPE_DISPLAY = { # Direction short-form -> long-form for multi-line render. _DIRECTION_LONG = { - "North": "Northbound", "N": "Northbound", "NB": "Northbound", - "South": "Southbound", "S": "Southbound", "SB": "Southbound", - "East": "Eastbound", "E": "Eastbound", "EB": "Eastbound", - "West": "Westbound", "W": "Westbound", "WB": "Westbound", - "Both": "Both Directions", + "North": "Northbound", "N": "Northbound", "NB": "Northbound", "north": "Northbound", "nb": "Northbound", + "South": "Southbound", "S": "Southbound", "SB": "Southbound", "south": "Southbound", "sb": "Southbound", + "East": "Eastbound", "E": "Eastbound", "EB": "Eastbound", "east": "Eastbound", "eb": "Eastbound", + "West": "Westbound", "W": "Westbound", "WB": "Westbound", "west": "Westbound", "wb": "Westbound", + "Both": "Both Directions", "both": "Both Directions", }