An area is a list of postcodes, a shape drawn on a map or a circle around a point. The fee engine (both copies, byte-identical) matches a shape only by the customer's pin, then postcodes; point-in-polygon (edges inside) and haversine circles; shared cases in fee_cases.json. - Alembic 0053: delivery_areas.kind / geometry, orders.online_lat / lng - /api/connect/fees: areas with kind + geometry (validated: 3-200 corners, 50 m - 50 km), the venue's place (PUT /venue-point, setting venue.location, sent to the cloud as fees.venue_point), preview by lat / lng - manager: DeliveryMap (Leaflet + OpenStreetMap tiles): draw / move / remove corners, circles, the venue on the map, an overview, test an order by a point - pulled online orders keep the pin; the site re-checks the fee with it; the counter links the pin to a map - tests: backend (shapes, venue point, pinned orders), manager logic, e2e manager.mjs and order_app.mjs 6R.G blocks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49 lines
1.2 KiB
JSON
49 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",
|
|
"leaflet": "^1.9.4",
|
|
"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"
|
|
}
|
|
}
|