diff --git a/VERSION.md b/VERSION.md index 661234e..3c9f9e9 100644 --- a/VERSION.md +++ b/VERSION.md @@ -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) diff --git a/src/__tests__/botBugFixes.test.js b/src/__tests__/botBugFixes.test.js index a072436..b2db826 100644 --- a/src/__tests__/botBugFixes.test.js +++ b/src/__tests__/botBugFixes.test.js @@ -92,7 +92,8 @@ vi.mock('../services/userService.js', () => ({ vi.mock('../services/categoryService.js', () => ({ __esModule: true, default: { - getCategoriesByLocationId: vi.fn().mockResolvedValue([]) + getCategoriesByLocationId: vi.fn().mockResolvedValue([]), + getCategoriesWithProductsByLocationId: vi.fn().mockResolvedValue([]) } })); diff --git a/src/admin/views/partials/app-sidebar.ejs b/src/admin/views/partials/app-sidebar.ejs index d87e6c3..af91c4a 100644 --- a/src/admin/views/partials/app-sidebar.ejs +++ b/src/admin/views/partials/app-sidebar.ejs @@ -28,7 +28,7 @@ - v1.2.2 + v1.2.3 @@ -43,10 +43,10 @@