From a5ea99b39bf359f52c6118cfba44a4acce5b1c9f Mon Sep 17 00:00:00 2001 From: NW Date: Wed, 5 Aug 2026 12:46:37 +0100 Subject: [PATCH] =?UTF-8?q?fix(admin):=20issue=20#131=20=E2=80=94=20dead?= =?UTF-8?q?=20callback=20buttons=20prod=5Fdistrict=5F/admin=5Fusers=20+=20?= =?UTF-8?q?no-op=20placeholders?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - prod_district_: pipe-delimited format (multi-word names safe) + handleDistrictBack shows categories (admin sees disabled locations via getLocationsByCountryAndCityAdmin) - admin_users: handleUserListBack (viewUserPage(0) edit) - current_page/current_quantity/no_action: no-op exact routes (no 'No handler' warns) - Audit: all 78 generated callbacks cross-checked — no overlaps, none missing - 48 tests pass; bump v1.2.6 --- VERSION.md | 8 +++- src/admin/views/partials/app-sidebar.ejs | 6 +-- .../adminHandlers/adminUserHandler.js | 20 +++++++++ .../product/categoryAddHandler.js | 4 +- .../adminHandlers/product/districtHandler.js | 45 +++++++++++++++++++ src/handlers/adminHandlers/product/index.js | 1 + src/router/routes.js | 16 +++++++ src/services/locationService.js | 7 +++ 8 files changed, 101 insertions(+), 6 deletions(-) diff --git a/VERSION.md b/VERSION.md index 66f6850..4ff3f84 100644 --- a/VERSION.md +++ b/VERSION.md @@ -9,10 +9,16 @@ ## Current Version -**v1.2.5** — 2026-08-05 +**v1.2.6** — 2026-08-05 ## Changelog +### v1.2.6 — 2026-08-05 +- **fix**: dead admin callback buttons — `prod_district_` (Back to Categories after adding category, pipe-delimited format) and `admin_users` (Back to User List) now registered +- **fix**: no-op placeholder buttons (`current_page`, `current_quantity`, `no_action`) no longer log "No handler" warns +- **fix**: `getLocationsByCountryAndCityAdmin` added (admin sees disabled locations in nav) +- **audit**: all 78 generated callback_data cross-checked against registered routes — no overlaps, none missing + ### v1.2.5 — 2026-08-05 - **fix**: crypto deposit error — handleDepositInstruction/handleDepositSelectWallet use editOrSendCallback (photo-safe fallback, fixes "no text in the message to edit" 400) - **fix**: chat clutter — lastInlineMessageId tracked in showProducts/showProfile/showBalance/showPurchases and deleted in resetUserContext diff --git a/src/admin/views/partials/app-sidebar.ejs b/src/admin/views/partials/app-sidebar.ejs index 2186092..5831291 100644 --- a/src/admin/views/partials/app-sidebar.ejs +++ b/src/admin/views/partials/app-sidebar.ejs @@ -28,7 +28,7 @@ - v1.2.5 + v1.2.6 @@ -43,10 +43,10 @@