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.
This commit is contained in:
Ho Ngoc Hai
2026-03-04 07:49:26 +07:00
parent d95e80f274
commit d9fda3f54f
2 changed files with 28 additions and 19 deletions

View File

@@ -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

View File

@@ -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)