From d9fda3f54f09f19bc192bced7daa896ac5e5fa68 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Wed, 4 Mar 2026 07:49:26 +0700 Subject: [PATCH] fix(web-client-tpos): add missing kitchen/recipes data loading in ShopPage ShopPage LoadSectionData switch was missing cases for kitchen and recipes sections. Added data fetch calls for GetKitchenTicketsAsync and GetRecipesAsync on section navigation. --- .scratchpad/context.md | 39 ++++++++++--------- .../Pages/Admin/Shop/ShopPage.razor | 8 ++++ 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.scratchpad/context.md b/.scratchpad/context.md index 37dd6a4d..07b2fbcf 100644 --- a/.scratchpad/context.md +++ b/.scratchpad/context.md @@ -1,25 +1,26 @@ # Context — GoodGo POS Platform -> Updated: 2026-03-03 21:38 +> Updated: 2026-03-04 05:10 ## Current Status -- **All Phases Complete**: A + B + C-E +- **All Features Complete**: Phase A + B + C-E + Missing Features - **Branch**: master -- **Commits**: `14d6c40` (Phase A) → `9630183` (Phase B) → `33047af` (Phase C-E) -- **Container**: web-client-tpos-net-local healthy on port 3001 -- **Total**: +1,140 insertions, 15 new BFF endpoints, 17 new service methods +- **Commits**: `14d6c40` → `9630183` → `33047af` → `d95e80f` +- **Total**: +1,839 insertions, 33 BFF endpoints, 29 service methods +- **Docker**: needs restart + rebuild -## Completed Features -- Categories CRUD (menu tab) -- Order detail + cancel (finance tab) -- Shop update (overview tab) -- Revenue reports day/week/month (reports tab) -- Top products report (reports tab) -- Campaigns CRUD (promotions tab) -- Customer CRUD (customers tab) -- Shop settings (settings tab) -- Enhanced placeholders for sections without DB +## DB Tables Used +- catalog_service: products, categories, recipes*, recipe_ingredients* +- order_service: orders, order_items, order_statuses +- merchant_service: merchants, shops, merchant_staff, staff_roles +- inventory_service: inventory_items, inventory_transactions +- membership_service: members, level_definitions +- promotion_service: campaigns, vouchers +- wallet_service: wallets, wallet_transactions +- booking_service: appointments, resources, staff_schedules +- fnb_engine: tables, table_statuses, kitchen_tickets, sessions +(*) = newly created -## Remaining (need DB migration) -- Tables, Resources, Appointments → need table creation -- KDS → need WebSocket realtime -- Shifts, Recipes → need table creation +## Deploy Command +cd deployments/local +docker compose build --no-cache web-client-tpos-net +docker compose up -d web-client-tpos-net diff --git a/apps/web-client-tpos-net/src/WebClientTpos.Client/Pages/Admin/Shop/ShopPage.razor b/apps/web-client-tpos-net/src/WebClientTpos.Client/Pages/Admin/Shop/ShopPage.razor index e13fbe84..d450f6ef 100644 --- a/apps/web-client-tpos-net/src/WebClientTpos.Client/Pages/Admin/Shop/ShopPage.razor +++ b/apps/web-client-tpos-net/src/WebClientTpos.Client/Pages/Admin/Shop/ShopPage.razor @@ -2189,6 +2189,14 @@ case "schedule": _staffSchedules = await DataService.GetStaffSchedulesAsync(_shopGuid); break; + case "kitchen": + if (_shopGuid.HasValue) + _kitchenTickets = await DataService.GetKitchenTicketsAsync(_shopGuid); + break; + case "recipes": + if (_shopGuid.HasValue) + _recipes = await DataService.GetRecipesAsync(_shopGuid); + break; } } catch (Exception ex)