Skip to content

Feat/route optimizer component - #929

Open
TechBroAfrica wants to merge 2 commits into
SwiftChainn:mainfrom
TechBroAfrica:feat/route-optimizer-component
Open

TechBroAfrica wants to merge 2 commits into
SwiftChainn:mainfrom
TechBroAfrica:feat/route-optimizer-component

Conversation

@TechBroAfrica

Copy link
Copy Markdown

feat(logistics): create route optimization waypoint planner with drag-and-drop map

PR Description
Closes #830

Summary
This PR adds a drag-and-drop route optimization planner for fleet managers to reorder delivery waypoints, visualize the optimized route on a map, and export the final route as JSON.

What was implemented
Added a route optimizer map with draggable waypoint markers
Calculated and rendered the optimized route polyline between reordered stops
Added waypoint reorder controls for manual adjustments
Displayed total route distance and estimated travel time
Added JSON export for the optimized route payload
Improved mobile layout so controls stack cleanly on smaller screens
Kept the implementation aligned with the project’s component → hook → service architecture
Technical details
Built the UI in RouteOptimizer.tsx
Added optimization logic in useRouteOptimization.ts
Added a service layer for route optimization and fallback logic in routeOptimizationService.ts
Added regression coverage in RouteOptimizer.test.tsx
Verification
Route optimizer unit tests passed
Lint checks passed for the touched files

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@TechBroAfrica Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: Route Optimization Waypoint Planner with Drag-and-Drop Map

1 participant