-
Notifications
You must be signed in to change notification settings - Fork 3k
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 single waypoint #25161
Display single waypoint #25161
Conversation
@allroundexperts 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-22.at.3.05.29.AM.movMobile Web - ChromeMobile Web - SafariScreen.Recording.2023-08-22.at.4.23.49.AM.movDesktopScreen.Recording.2023-08-22.at.3.11.58.AM.moviOSScreen.Recording.2023-08-22.at.3.19.17.AM.movAndroidScreen.Recording.2023-08-22.at.3.20.37.AM.mov |
@allroundexperts I haven't tested these on Android and iOS native apps. I'd really appreciate it if you could test this PR on these platforms 🙇 Also, you need to run |
Sure thing @hayata-suenaga. |
Hi @hayata-suenaga! |
Found a bug when changing the window size while there is a single waypoint, the map is reset and the map focuses on a wrong location Screen.Recording.2023-08-17.at.3.36.02.PM.mov |
This bug stems from how the Right Side Panel (I don't know if this is the right name) is resized when a breakpoint is reached (if you shrink the browser window, the size of Right Side Panel changes to cover the entire page). I asked a question regarding this in the #epensify-open-source channel Slack channel. According to this comment in the Slack thread, this is a known issue that stemmed from the Navigation Refactoring project. The bug is being worked on in this App issue. Because this issue will be fixed in the future, I suggest we treat this bug as a temporary one and won't fix it in this PR. What do you think @neil-marcellini @allroundexperts ? |
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.
Testing well!
The scrolling behavior of the waypoint list works fine on iOS I gonna test on SE |
@hayata-suenaga On SE, don't add a new stop. Just check with the existing two options. |
@allroundexperts I feel like I'm missing something here 😕 the waypoint list is scrollable on SE, too Screen.Recording.2023-08-21.at.4.10.33.PM.mov |
That's weird. I'll check it again on. |
Okay. It turns out that if you try to scroll by pressing on the Screen.Recording.2023-08-22.at.4.20.16.AM.mov |
okay on the actual physical device, I think it would be much easier to scroll, but thank you for the investigation 🥇 |
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.
Looks great, awesome work!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@allroundexperts Found that auto-panning doesn't seem to work if you add the following addresses on iOS Start: 584 Castro St, San Francisco |
@thienlnam did you merge main to your PR? |
@hayata-suenaga I checked again and this seems to be still happening on iOS only. Another issue that I'm noticing now is the following: Screen.Recording.2023-08-23.at.1.21.03.AM.movNotice how the map zooms itself when I just click the |
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.57-0 🚀
|
🚀 Deployed to staging by https://github.com/neil-marcellini 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 🚀
|
@@ -175,13 +205,16 @@ function DistanceRequest({transactionID, transaction, mapboxAccessToken}) { | |||
zoom: DEFAULT_ZOOM_LEVEL, | |||
}} | |||
style={styles.mapView} | |||
waypoints={waypointMarkers} |
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.
After adding waypoints, we should have changed the default location from SF to the first value in waypoints to keep animations consist (coming from #29471)
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.
ah that's a good point. Thank for letting us know!
cc: @neil-marcellini
Details
This PR makes it possible to display single or multiple waypoints on the map.
Fixed Issues
$ #22706
PROPOSAL: N/A
Tests / QA
First, we gonna test "flying" behavior (see the video below) when a single waypoint is provided.
Open NewDot on any platform
Go to any chat room where you can request money. Click the "+" icon next to the chat message text field. Click "Request money option from the popup menu.
Click "Distance" in the tab menu. Check a map of San Francisco is displayed (it might a lot time to render the map and you might see a placeholder component for a while. This is a known issue, and a fix is under work).
Click "Start" from the list of waypoints.
On the text field in the next screen, type
88 Kearny Street.
Select the first option (the address should be San Francisco)Confirm that map "flies" and zooms into a different part of San Francisco. Refer to the following video.
video
Screen.Recording.2023-08-16.at.9.56.38.PM.mov
Select "Finish" from the list of waypoints.
On the text field in the next screen, type "Golden Gate Bridge". Click the first option that appears.
Confirm that the map pans out to fit both the initial starting point and the finish point (Golden Gate Park). Refer to the following video.
Video
Uploading Screen Recording 2023-08-21 at 1.28.53 PM.mov…
Click the "Add stop" button. Confirm that the marker component changes. Refer to the following screenshots (the left one is "before" and the right one is "after."
Click "Finish" and type "Lands End Trail". Click the first option.
Verify that the map pans out more to fit all three points/markers.
Video
Uploading Screen Recording 2023-08-21 at 1.31.23 PM.mov…
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
Web
web.single.mov
Mobile Web - Chrome
android.multiple.mov
Mobile Web - Safari
safari.single.mov
Desktop
desktop.single.mov
iOS
Screen.Recording.2023-08-21.at.9.08.37.AM.mov
Android