- manager: new pages/orders/ (Tables page cards + quick actions, order page with
lines, multi-select pay/discount/cancel/tab, staff + customer, price changes,
history, the menu + cart beside it); a free table opens a new order on first
Send; v1 TablesPage, OrderDetailPage, DesktopOrderingTab, ManagerOrderDrawer
and PaymentMethodModal removed
- ordering by line id like the phones: GET /api/orders/menu (the counter's
product shape, in-store prices); the product dialog, cart rules and quote hook
move to packages/ordering (@xenia/ordering), shared by counter, menu tablet,
manager
- close follows orders.close_with_unpaid (pay first, or write off after saying
so) on the order page and the overview's quick view; paying asks cash or card
- a confirmed booking can keep its table ahead (manager, phones, counter):
POST /api/connect/bookings/{id}/table, reservations create/PATCH; refused with
reservation.table_kept within 2 h of another booking
- tests: test_manager_ordering.py, online bookings +2, manager orders.test.mjs,
@xenia/ordering, e2e manager.mjs (take, change, pay-first close, RESERVED)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "manager-dashboard",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "node --test \"tests/*.test.mjs\"",
|
|
"lint": "node scripts/lint.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-query": "^5.107.1",
|
|
"@xenia/access": "^0.0.0",
|
|
"@xenia/api": "^0.0.0",
|
|
"@xenia/floorplan": "^0.0.0",
|
|
"@xenia/i18n": "^0.0.0",
|
|
"@xenia/ordering": "^0.0.0",
|
|
"@xenia/signage": "^0.0.0",
|
|
"@xenia/ui": "^0.0.0",
|
|
"axios": "^1.21.1",
|
|
"lucide-react": "^1.73.0",
|
|
"qrcode.react": "^4.2.0",
|
|
"react": "^19.3.1",
|
|
"react-dom": "^19.3.1",
|
|
"react-hot-toast": "^2.6.1",
|
|
"react-is": "^19.3.1",
|
|
"react-router-dom": "^7.18.5",
|
|
"recharts": "^3.10.1",
|
|
"zustand": "^5.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.5",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.3.0",
|
|
"autoprefixer": "^10.6.2",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
"globals": "^17.14.0",
|
|
"postcss": "^8.5.33",
|
|
"tailwindcss": "^3.4.16",
|
|
"vite": "^8.3.8"
|
|
}
|
|
}
|