-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix disappearing finish waypoint when start waypoint is selected #29811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix disappearing finish waypoint when start waypoint is selected #29811
Conversation
|
@Santhosh-Sellavel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
neil-marcellini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. I'll test soon. One suggestion
|
It tests well |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-10-18.at.1.04.50.AM.movMobile Web - ChromeScreen_Recording_20231018_011525_Chrome.mp4Mobile Web - Safari & iOSScreen.Recording.2023-10-18.at.1.12.29.AM.movAndroid |
|
There are some console errors but irrelevant to the changes made here. |
|
LGTM just waiting to test on Android alone! |
|
Quick question @neil-marcellini Is this is bug or expected? I set a start address and cleared it, but the finish got removed. Screen.Recording.2023-10-18.at.1.34.02.AM.mov |
Oh great catch. That's not expected. There should always be a start and finish |
|
Should this be handled here or can be a separate one? |
|
Here is also App/src/libs/actions/Transaction.ts Line 112 in a88728a
|
|
One quick solution could be emptying each field inside waypoint object like so: saveWaypoint(transactionID, index.toString(), {address: '', lat: null, lng: null}); |
Cool but clearing won't delete the other entries as well. |
|
How about this : #29811 (comment) |
|
Bad Idea! |
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Didn't test this on Android something broke with my Android Build setup. But that shouldn't be a blocker here so Approving!
|
I think it's better to handle it separately, handling it more carefully and after testing thoroughly! cc: @neil-marcellini let me know your thoughts, thanks! |
neil-marcellini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks great and tests well. I think it's good to merge.
web1080.mov
|
To be clear we discussed the plan in a DM and agreed on the solution. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…waypoint Fix disappearing finish waypoint when start waypoint is selected (cherry picked from commit fc8ce73)
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.3.85-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
Details
When default waypoint is set to
nullthey are getting removed from onyx, but we need them for start and finish waypoints. Now for default waypoints we set{}rather thannullvalueFixed Issues
$ #29748
PROPOSAL: #29748 (comment)
Tests
+and choose request moneyOffline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
waypoints-android.mp4
Android: mWeb Chrome
waypoints-mweb.mp4
iOS: Native
waypoints-ios.mp4
iOS: mWeb Safari
waypoints-safari.mp4
MacOS: Chrome / Safari
waypoints-web.mov
MacOS: Desktop
waypoints-desktop.mov