Commit Graph

6 Commits

Author SHA1 Message Date
Ho Ngoc Hai
545bc1f519 feat(web-client-tpos): connect all remaining admin pages to real backend APIs
- BFF: Added 10 new endpoints (staff roles/schedules, orders, wallets, devices, promotions, inventory transactions, membership levels)
- PosDataService: Added 14 new client methods with DTOs
- Rewrote 19 admin pages from hardcoded to real API:
  Staff: Create, Schedule, Attendance, Payroll
  Finance: Overview, Revenue, Expenses, Tax
  Inventory: PurchaseOrders, StockTransfer, SupplierMgmt
  Product: MenuBuilder, ModifierGroups, PricingRules
  Customer: Feedback, LoyaltyProgram
  System: DeviceManagement, NotificationCenter, IntegrationHub
2026-02-28 06:05:50 +07:00
Ho Ngoc Hai
e0d7567cf0 feat(web-client-tpos): connect inventory and customer pages to real API data 2026-02-28 05:48:54 +07:00
Ho Ngoc Hai
5a81fee85a feat(web-client-tpos): connect product catalog and create to catalog-service API 2026-02-28 05:42:52 +07:00
Ho Ngoc Hai
53fda4935c feat(web-client-tpos): add BFF staff endpoint for admin staff directory 2026-02-28 04:51:11 +07:00
Ho Ngoc Hai
12be9737d9 feat(web-client-tpos): replace hardcoded store pages with real API data
- Rewrite StoreList.razor with real data from PosDataService
- Rewrite StoreDetail.razor with real shop data from BFF
- Rewrite StoreSettings.razor with editable form bound to real data
- Add GetShopByIdAsync to PosDataService and BFF endpoint
- Add UpdateShopAsync to MerchantApiService
- Add ShopUpdateDto to MerchantDtos
- Fix BFF DB connection: configurable via env vars (BFF_DB_HOST)
- Add BFF_DB env vars to docker-compose.yml
2026-02-28 04:23:11 +07:00
Cursor Agent
640bec71a4 feat(tpos): add BFF data endpoints with Npgsql + Dapper
- Add Npgsql 9.0.3 and Dapper 2.1.66 packages to Server project
- Create BffDataController with read-only endpoints:
  GET /api/bff/shops
  GET /api/bff/shops/{shopId}/products
  GET /api/bff/shops/{shopId}/categories
  GET /api/bff/shops/{shopId}/tables
  GET /api/bff/shops/{shopId}/appointments
  GET /api/bff/shops/{shopId}/resources
- Register MVC controllers in Program.cs (AddControllers + MapControllers)

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 22:51:57 +00:00