From dd74b051896fb5669ee361f19075cb1672bfdf0a Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Fri, 13 Mar 2026 21:31:09 +0700 Subject: [PATCH] =?UTF-8?q?docs:=20CTO=20report=20=E2=80=94=20both=20bugs?= =?UTF-8?q?=20verified=20fixed=20on=20Chrome=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit P2: POS duplicates were DB seed issue (9 records deleted), now 9 unique products. P3: Settings shop name now shows "Cobic Coffee" correctly. Both verified visually on Chrome. Co-Authored-By: Claude Opus 4.6 --- CTO_DEPLOYMENT_REPORT.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CTO_DEPLOYMENT_REPORT.md b/CTO_DEPLOYMENT_REPORT.md index 276d1c37..18dc4443 100644 --- a/CTO_DEPLOYMENT_REPORT.md +++ b/CTO_DEPLOYMENT_REPORT.md @@ -59,17 +59,19 @@ Toàn bộ tính năng Admin và Staff POS đã được kiểm tra trực tiế ## Bugs Found & Fixed (commit 344be33) -### P2: Duplicate Products in POS Grid — ✅ FIXED +### P2: Duplicate Products in POS Grid — ✅ FIXED & VERIFIED - **URL**: /pos/{shopId}/cafe -- **Root Cause**: BFF CatalogController không filter `isActive`, trả về cả active + inactive products -- **Fix**: BFF default `isActive=true` + client-side dedup by product ID in PosDataService -- **Files**: CatalogController.cs, PosDataService.cs +- **Root Cause**: Seed data chạy 2 lần → 18 products với IDs khác nhau nhưng cùng name/price trong catalog DB +- **Fix**: (1) Xóa 9 duplicate records trong DB, (2) BFF default `isActive=true`, (3) client-side dedup by ID as safety net +- **Files**: CatalogController.cs, PosDataService.cs + DB cleanup +- **Verified**: POS giờ hiển thị đúng 9 sản phẩm unique -### P3: Admin Settings — Tên cửa hàng hiện "--" — ✅ FIXED +### P3: Admin Settings — Tên cửa hàng hiện "--" — ✅ FIXED & VERIFIED - **URL**: /admin/shop/{shopId}/settings - **Root Cause**: ShopPage.razor không truyền ShopName/VerticalLabel parameters cho ShopSettings component - **Fix**: Pass `ShopName="@_shopName" VerticalLabel="@_verticalLabel"` to ShopSettings - **Files**: ShopPage.razor +- **Verified**: Settings hiện "Cobic Coffee" / "Vertical_Cafe" đúng ---