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 <noreply@anthropic.com>
This commit is contained in:
Matt Johnson (via Claude) 2026-06-08 05:22:53 +00:00
commit ff887b500c

View file

@ -182,11 +182,11 @@ _SUB_TYPE_DISPLAY = {
# Direction short-form -> long-form for multi-line render. # Direction short-form -> long-form for multi-line render.
_DIRECTION_LONG = { _DIRECTION_LONG = {
"North": "Northbound", "N": "Northbound", "NB": "Northbound", "North": "Northbound", "N": "Northbound", "NB": "Northbound", "north": "Northbound", "nb": "Northbound",
"South": "Southbound", "S": "Southbound", "SB": "Southbound", "South": "Southbound", "S": "Southbound", "SB": "Southbound", "south": "Southbound", "sb": "Southbound",
"East": "Eastbound", "E": "Eastbound", "EB": "Eastbound", "East": "Eastbound", "E": "Eastbound", "EB": "Eastbound", "east": "Eastbound", "eb": "Eastbound",
"West": "Westbound", "W": "Westbound", "WB": "Westbound", "West": "Westbound", "W": "Westbound", "WB": "Westbound", "west": "Westbound", "wb": "Westbound",
"Both": "Both Directions", "Both": "Both Directions", "both": "Both Directions",
} }