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:
@@ -1,25 +1,26 @@
|
|||||||
# Context — GoodGo POS Platform
|
# Context — GoodGo POS Platform
|
||||||
> Updated: 2026-03-03 21:38
|
> Updated: 2026-03-04 05:10
|
||||||
|
|
||||||
## Current Status
|
## Current Status
|
||||||
- **All Phases Complete**: A + B + C-E
|
- **All Features Complete**: Phase A + B + C-E + Missing Features
|
||||||
- **Branch**: master
|
- **Branch**: master
|
||||||
- **Commits**: `14d6c40` (Phase A) → `9630183` (Phase B) → `33047af` (Phase C-E)
|
- **Commits**: `14d6c40` → `9630183` → `33047af` → `d95e80f`
|
||||||
- **Container**: web-client-tpos-net-local healthy on port 3001
|
- **Total**: +1,839 insertions, 33 BFF endpoints, 29 service methods
|
||||||
- **Total**: +1,140 insertions, 15 new BFF endpoints, 17 new service methods
|
- **Docker**: needs restart + rebuild
|
||||||
|
|
||||||
## Completed Features
|
## DB Tables Used
|
||||||
- Categories CRUD (menu tab)
|
- catalog_service: products, categories, recipes*, recipe_ingredients*
|
||||||
- Order detail + cancel (finance tab)
|
- order_service: orders, order_items, order_statuses
|
||||||
- Shop update (overview tab)
|
- merchant_service: merchants, shops, merchant_staff, staff_roles
|
||||||
- Revenue reports day/week/month (reports tab)
|
- inventory_service: inventory_items, inventory_transactions
|
||||||
- Top products report (reports tab)
|
- membership_service: members, level_definitions
|
||||||
- Campaigns CRUD (promotions tab)
|
- promotion_service: campaigns, vouchers
|
||||||
- Customer CRUD (customers tab)
|
- wallet_service: wallets, wallet_transactions
|
||||||
- Shop settings (settings tab)
|
- booking_service: appointments, resources, staff_schedules
|
||||||
- Enhanced placeholders for sections without DB
|
- fnb_engine: tables, table_statuses, kitchen_tickets, sessions
|
||||||
|
(*) = newly created
|
||||||
|
|
||||||
## Remaining (need DB migration)
|
## Deploy Command
|
||||||
- Tables, Resources, Appointments → need table creation
|
cd deployments/local
|
||||||
- KDS → need WebSocket realtime
|
docker compose build --no-cache web-client-tpos-net
|
||||||
- Shifts, Recipes → need table creation
|
docker compose up -d web-client-tpos-net
|
||||||
|
|||||||
@@ -2189,6 +2189,14 @@
|
|||||||
case "schedule":
|
case "schedule":
|
||||||
_staffSchedules = await DataService.GetStaffSchedulesAsync(_shopGuid);
|
_staffSchedules = await DataService.GetStaffSchedulesAsync(_shopGuid);
|
||||||
break;
|
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)
|
catch (Exception ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user