bb306ea41d
Build the Route Optimization route planner UI in groombook/web: - New /admin/routes page with date picker + groomer selector (auto-filtered for groomer role via GET /api/staff/me) - react-leaflet + OpenStreetMap tiles, lazy-loaded so Leaflet ships as a separate code-split chunk (RouteMap-*.js / .css) - Map with numbered teardrop divIcon pins + route polyline, auto-fit bounds; numbered pins avoid the Leaflet default-marker asset issue - Stop-list panel: per-stop card with time, client name, address, travel time from previous stop, and tight-schedule conflict flag - Total travel time + distance summary + route status badge (draft / optimized / in_progress / completed) - "Optimize" button wired to POST /api/routes/optimize - Reads daily route via GET /api/routes/daily?staffId=&date= - Tests for stop rendering, summary, role auto-filter, optimize call - Updated UAT_PLAYBOOK.md §5.28 — Route Planner Page Co-Authored-By: Paperclip <noreply@paperclip.ing>
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"name": "@groombook/web",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint src --ext .ts,.tsx",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:e2e": "playwright test -c e2e/playwright.config.ts"
|
|
},
|
|
"dependencies": {
|
|
"@groombook/types": "workspace:*",
|
|
"@stripe/react-stripe-js": "^6.1.0",
|
|
"@stripe/stripe-js": "^9.1.0",
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"better-auth": "^1.5.6",
|
|
"leaflet": "^1.9.4",
|
|
"lucide-react": "^0.577.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-leaflet": "^5.0.0",
|
|
"react-router-dom": "^7.1.2",
|
|
"recharts": "^3.8.0",
|
|
"tailwindcss": "^4.2.2"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.50.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/leaflet": "^1.9.12",
|
|
"@types/node": "^25.6.0",
|
|
"@types/react": "^19.0.6",
|
|
"@types/react-dom": "^19.0.3",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"eslint": "^9.18.0",
|
|
"jsdom": "^26.1.0",
|
|
"typescript": "^5.7.3",
|
|
"typescript-eslint": "^8.20.0",
|
|
"vite": "^6.0.7",
|
|
"vite-plugin-pwa": "^0.21.1",
|
|
"vitest": "^3.0.4"
|
|
},
|
|
"license": "AGPL-3.0-only"
|
|
}
|