feat: Implement route planning feature with project selection and optimization

- Added route planning functionality to the map page, allowing users to select projects for routing.
- Implemented state management for route projects, start/end points, and search functionality.
- Integrated OpenRouteService API for route calculation and optimization.
- Enhanced UI with a route planning panel, including search and drag-and-drop reordering of projects.
- Added visual indicators for route start and end points on the map.
- Included translations for route planning features in both Polish and English.
- Created utility functions for route calculations, optimizations, and formatting of route data.
This commit is contained in:
2025-09-26 00:18:10 +02:00
parent 8a0baa02c3
commit 5aac63dfde
6 changed files with 3750 additions and 100 deletions

View File

@@ -16,9 +16,14 @@
"test:e2e:ui": "playwright test --ui"
},
"dependencies": {
"@mapbox/polyline": "^1.2.1",
"bcryptjs": "^3.0.2",
"better-sqlite3": "^11.10.0",
"date-fns": "^4.1.0",
"exceljs": "^4.4.0",
"html2canvas": "^1.4.1",
"jspdf": "^3.0.3",
"jspdf-autotable": "^5.0.2",
"leaflet": "^1.9.4",
"next": "15.1.8",
"next-auth": "^5.0.0-beta.29",
@@ -29,6 +34,7 @@
"react-dom": "^19.0.0",
"react-leaflet": "^5.0.0",
"recharts": "^2.15.3",
"xlsx": "^0.18.5",
"zod": "^3.25.67"
},
"devDependencies": {