-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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] |
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! |
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! |
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
null
they are getting removed from onyx, but we need them for start and finish waypoints. Now for default waypoints we set{}
rather thannull
valueFixed Issues
$ #29748
PROPOSAL: #29748 (comment)
Tests
+
and choose request moneyOffline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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