You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] [Due for payment 2026-03-11] Distance- "Please remove duplicate waypoints" remains after rearranging waypoints via keyboard #80165
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: 9.3.6-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#79793 Email or phone of affected tester (no customers):jnoijnojiojiojnioni@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.1 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Click + > Track distance > Map.
Enter the waypoint - A > B > B.
Press Tab until it reaches Start waypoint.
Press keyboard space, down arrow, and Enter.
Press Enter again.
Expected Result:
"Please remove duplicate waypoints" will disappear because the waypoints are now B > A > B.
Actual Result:
"Please remove duplicate waypoints" does not disappear when the waypoints are now B > A > B.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #79793 - "feat: implement keyboard reordering for DraggableList" by @MobileMage (High confidence) Related Issues: None
Recommendation: REVERT
PR #79793 added keyboard reordering functionality to the DraggableList component by registering KeyboardSensor with sortableKeyboardCoordinates. While this feature works correctly for reordering, it exposed an issue where the duplicate waypoint error message does not clear after keyboard reordering removes adjacent duplicates (e.g., A > B > B becomes B > A > B).
The bug is reproducible only on staging where PR #79793 was deployed. The reproduction steps involve using the new keyboard reordering feature (Space to drag, arrow keys to move, Enter to drop) which was introduced by this PR.
Added KeyboardSensor with sortableKeyboardCoordinates to enable keyboard-based waypoint reordering
Changed from single useSensor to useSensors array to support both pointer and keyboard input
The bug manifests specifically when using keyboard reordering to fix duplicate waypoints. When waypoints A > B > B are reordered to B > A > B via keyboard:
The waypoints are correctly reordered (B > A > B)
The validatedWaypoints should update to reflect no duplicates
However, the "Please remove duplicate waypoints" error remains visible
Root Cause
The validation logic in IOURequestStepDistanceMap.tsx uses useFetchRoute hook which calls getValidWaypoints(). This function filters out adjacent duplicate waypoints.
When keyboard reordering happens:
updateWaypoints() sets optimistic waypoints with the new order
The effect at line 229-234 that should clear the error has a condition that prevents clearing when duplicateWaypointsError is true
This creates a state where the waypoints are valid but the error persists
The keyboard reordering feature introduced by PR #79793 works correctly, but it revealed this validation/error-clearing issue that likely existed before but was harder to trigger with mouse-based reordering.
changed the title [-][Due for payment 2026-03-11] Distance- "Please remove duplicate waypoints" remains after rearranging waypoints via keyboard[/-][+][$250] [Due for payment 2026-03-11] Distance- "Please remove duplicate waypoints" remains after rearranging waypoints via keyboard[/+]on Mar 11, 2026
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jan 21, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #79793
melvin-bot commentedon Jan 21, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Jan 21, 2026
Triggered auto assignment to @johncschuster (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Jan 21, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon Jan 21, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #79793 - "feat: implement keyboard reordering for DraggableList" by @MobileMage (High confidence)
Related Issues: None
Recommendation: REVERT
PR #79793 added keyboard reordering functionality to the DraggableList component by registering KeyboardSensor with sortableKeyboardCoordinates. While this feature works correctly for reordering, it exposed an issue where the duplicate waypoint error message does not clear after keyboard reordering removes adjacent duplicates (e.g., A > B > B becomes B > A > B).
Labels: Keeping
DeployBlockerCash(Frontend bug). RemovingDeployBlocker(not a backend issue).📋 Detailed Analysis
Evidence
The bug is reproducible only on staging where PR #79793 was deployed. The reproduction steps involve using the new keyboard reordering feature (Space to drag, arrow keys to move, Enter to drop) which was introduced by this PR.
Verification
PR #79793 modified
/home/runner/work/App/App/src/components/DraggableList/index.tsx:KeyboardSensorwithsortableKeyboardCoordinatesto enable keyboard-based waypoint reorderinguseSensortouseSensorsarray to support both pointer and keyboard inputThe bug manifests specifically when using keyboard reordering to fix duplicate waypoints. When waypoints A > B > B are reordered to B > A > B via keyboard:
validatedWaypointsshould update to reflect no duplicatesRoot Cause
The validation logic in
IOURequestStepDistanceMap.tsxusesuseFetchRoutehook which callsgetValidWaypoints(). This function filters out adjacent duplicate waypoints.When keyboard reordering happens:
updateWaypoints()sets optimistic waypoints with the new orderuseFetchRouterecalculatesvalidatedWaypointsduplicateWaypointsErroris computed as:nonEmptyWaypointsCount >= 2 && Object.keys(validatedWaypoints).length !== nonEmptyWaypointsCountduplicateWaypointsErroris trueThe keyboard reordering feature introduced by PR #79793 works correctly, but it revealed this validation/error-clearing issue that likely existed before but was harder to trigger with mouse-based reordering.
31 remaining items
[-][Due for payment 2026-03-11] Distance- "Please remove duplicate waypoints" remains after rearranging waypoints via keyboard[/-][+][$250] [Due for payment 2026-03-11] Distance- "Please remove duplicate waypoints" remains after rearranging waypoints via keyboard[/+]melvin-bot commentedon Mar 11, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022031823558572194473
johncschuster commentedon Mar 11, 2026
Payment Summary
MobileMage commentedon Mar 11, 2026
Applied @johncschuster
johncschuster commentedon Mar 13, 2026
Thanks, @MobileMage! I've sent the offer. Once accepted, I'll get payment issued!
MobileMage commentedon Mar 16, 2026
Accepted @johncschuster
trjExpensify commentedon Mar 16, 2026
approved $250 for @jayeshmangwani.
johncschuster commentedon Mar 16, 2026
@jayeshmangwani do we require any regression test steps? If so, can you provide them?
jayeshmangwani commentedon Mar 17, 2026
@johncschuster Yes, we should add regression tests here. Adding them below:
jayeshmangwani commentedon Mar 17, 2026
Regression Test Proposal
Tests:
Test Case 1: Keyboard Reordering
Test Case 2: Drag and Drop
Test Case 3: Duplicate Waypoints Handling
Do we agree 👍 or 👎
johncschuster commentedon Mar 18, 2026
Thank you! I've created an issue for those steps. We're all done here! 🎉