-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Display Route #25434
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
Display Route #25434
Conversation
|
hey @thienlnam I sent you a message about this PR in slack |
|
just heads up. I'm changing UPDATE: |
|
Oops. Lint failure @thienlnam! |
src/components/DistanceRequest.js
Outdated
| const hasRouteError = Boolean(lodashGet(transaction, 'errorFields.route')); | ||
| const previousWaypoints = usePrevious(waypoints); | ||
| const haveWaypointsChanged = !_.isEqual(previousWaypoints, waypoints); | ||
| const shouldFetchRoute = haveWaypointsChanged || !isOffline || !isLoadingRoute || TransactionUtils.validateWaypoints(waypoints); |
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.
This is wrong again @thienlnam. Lets keep this as it was and just change the variable name to shouldIgnoreFetching
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.
I fixed it - we don't use the inverse as much so I just adjusted the check (more of a preference thing though)
|
@arosiclair 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] |
|
Removing additional auto-assigned reviewers since @hayata-suenaga is already on this |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.57-0 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.57-6 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
|
|
||
| return ( | ||
| <> | ||
| <ScreenWrapper shouldEnableMaxHeight> |
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.
Nested ScreenWrapper can cause extra padding. There should only be one ScreenWrapper component per page. This caused #26008.
| @@ -96,8 +119,72 @@ function removeWaypoint(transactionID, currentIndex) { | |||
| ...transaction.comment, | |||
| waypoints: reIndexedWaypoints, | |||
| }, | |||
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.
We should also clear the error when we are removing the waypoint as we do in saveWaypoint action . This caused #27538
Details
Fixed Issues
$ #22708
PROPOSAL:
Tests
For engineers, if you're building and testing this PR in the development environment, you first need to run npm run configure-mapbox to setup the development environment.
Offline tests
Offline is known to not work at this time. You can save waypoints while offline but when coming online there will be an error. This is known at the time.
QA Steps
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
Web
Screen.Recording.2023-08-21.at.5.45.54.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-08-21.at.5.52.00.PM.mov
Mobile Web - Safari
Desktop
iOS
Android