fix(bot): issue #129 — missing shop_district_/shop_subcategory_ handlers, answerCallbackQuery timing, state.location pipe format

- Register shop_district_ (handleDistrictBack) + shop_subcategory_ (handleSubcategorySelection) in routes.js — Back button in empty categories now works
- state.location pipe-delimited with encodeURIComponent — multi-word names (Saint Petersburg) no longer break nav
- answerCallbackQuery moved to start of callback handling — no stuck spinner
- Empty city fallback (district_unknown) in Select district
- Guard against stale underscore-format state.location
- 48 tests pass; bump v1.2.4
This commit is contained in:
NW
2026-08-05 10:52:18 +01:00
parent 12c4cefc4c
commit 7a97d561a5
8 changed files with 78 additions and 15 deletions

View File

@@ -60,7 +60,8 @@
"mono_product": "📦 Digitales Produkt",
"infinite_stock": "∞ Immer verfügbar",
"no_description": "Keine Beschreibung",
"no_photo": "Kein Foto verfügbar"
"no_photo": "Kein Foto verfügbar",
"district_unknown": "Unbekannt"
},
"purchase": {
"summary": "🛒 Kaufübersicht:",

View File

@@ -60,7 +60,8 @@
"mono_product": "📦 Digital Product",
"infinite_stock": "∞ Always available",
"no_description": "No description provided",
"no_photo": "No photo available"
"no_photo": "No photo available",
"district_unknown": "Unknown"
},
"purchase": {
"summary": "🛒 Purchase Summary:",

View File

@@ -60,7 +60,8 @@
"mono_product": "📦 Producto Digital",
"infinite_stock": "∞ Siempre disponible",
"no_description": "Sin descripción",
"no_photo": "Sin foto disponible"
"no_photo": "Sin foto disponible",
"district_unknown": "Desconocido"
},
"purchase": {
"summary": "🛒 Resumen de compra:",