fix(bot): issue #128 — empty category menus, duplicate country lists, DB typo+desync migration
- getCategoriesWithProductsByLocationId: filter districts to categories with real in-stock/mono products; empty → no_categories message + back button + answerCallbackQuery - Main-menu debounce (1200ms) in routes.js for products/profile/wallets/purchases — no duplicate Select-your-country on rapid taps - Migration 012: fix typos (Centr→Center, Chiken→Chicken, Brusel→Brussels, Sever→North) + re-enable locations that have in-stock products (desync fix) - Tests updated (48 pass); bump v1.2.3
This commit is contained in:
@@ -9,10 +9,16 @@
|
||||
|
||||
## Current Version
|
||||
|
||||
**v1.2.2** — 2026-08-04
|
||||
**v1.2.3** — 2026-08-04
|
||||
|
||||
## Changelog
|
||||
|
||||
### v1.2.3 — 2026-08-04
|
||||
- **fix**: empty category menus — districts with no in-stock products show "No products available in this district" (getCategoriesWithProductsByLocationId filters by real stock/mono)
|
||||
- **fix**: duplicate "Select your country" messages on rapid Products tap — 1200ms main-menu debounce in routes.js
|
||||
- **fix**: DB typos + desync — migration 012 (Centr→Center, Chiken→Chicken, Brusel→Brussels, Sever→North) and re-enables locations that actually have in-stock products
|
||||
- **fix**: answerCallbackQuery on no_categories branch (no stuck loading spinner)
|
||||
|
||||
### v1.2.2 — 2026-08-04
|
||||
- **fix**: BUG-01 — disabled locations/categories/subcategories filtered from bot menus (getActiveLocationById, is_active checks)
|
||||
- **fix**: BUG-02 — graceful handling of disabled entity during purchase flow (location_disabled notice + main-menu redirect, no crash)
|
||||
|
||||
Reference in New Issue
Block a user