From fa7f1cf76abcac8a288b78641dfbfcc5132b28b4 Mon Sep 17 00:00:00 2001 From: you Date: Sat, 21 Mar 2026 23:47:45 +0000 Subject: [PATCH] fix: region dropdown labels show 'IATA - Friendly Name' format Dropdown items now display 'SJC - San Jose, US' instead of just 'San Jose, US'. Summary shows just IATA codes for brevity. --- public/index.html | 2 +- public/region-filter.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 1073797..16e2afe 100644 --- a/public/index.html +++ b/public/index.html @@ -80,7 +80,7 @@ - + diff --git a/public/region-filter.js b/public/region-filter.js index 40eb75f..29f441a 100644 --- a/public/region-filter.js +++ b/public/region-filter.js @@ -90,7 +90,7 @@ if (!_selected) return 'All Regions'; var sel = Array.from(_selected); if (sel.length === 0) return 'All Regions'; - if (sel.length <= 2) return sel.map(function (c) { return _regions[c] || c; }).join(', '); + if (sel.length <= 2) return sel.join(', '); return sel.length + ' Regions'; } @@ -127,7 +127,7 @@ html += ''; codes.forEach(function (code) { - var label = _regions[code] || code; + var label = _regions[code] ? (code + ' - ' + _regions[code]) : code; var active = allSelected || (_selected && _selected.has(code)); html += '';