Fix: Blue dot is not displayed over current user location#44023
Conversation
…ssSearch component
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@ZhenjaHorbach 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/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromeandroid-web.mp4iOS: Nativeios.mp4iOS: mWeb Safariios-web.mp4MacOS: Chrome / Safariweb_3OCLQ1Cc.mp4MacOS: DesktopNA |
|
LGTM and everything works well 💪 |
|
I'm seeing a bit of weird behavior if you move back to the first screen before turning on location services - the map moves to a different location temporarily, and then recenters on the blue dot. Is there another place we need to update the current location? It looks like the location it jumps to is the same as the apple default, maybe? 2024-06-20_12-55-36.mp4 |
@dangrous When you press back, the map moves to the same location again here. This strange behavior is because the map adds animation when it moves to the user's location. We can fix this by avoiding the animation by passing a specific parameter mapRef.flyTo({
center: [currentPosition.longitude, currentPosition.latitude],
zoom: CONST.MAPBOX.DEFAULT_ZOOM,
+ animate: false,
}); |
|
I'm checking now When we choose current location without permission and press go back But it doesn't look critical 2024-06-21.14.33.55.mov |
@ZhenjaHorbach I was able to replicate that bug in staging as well. I have pushed a fix for it, could you please retest. |
Thanks a lot for the fix ! LGTM |
dangrous
left a comment
There was a problem hiding this comment.
This looks good and thanks for fixing that bug! I just have one question about the dependencies but if that's intentional then we're good to go!
|
✋ 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/dangrous in version: 9.0.2-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
Details
Fixed Issues
$ #43113
PROPOSAL: #43113 (comment)
Tests
Precondition: location access is disabled
Offline tests
Same steps
QA Steps
Same steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
CleanShot.2024-06-20.at.12.47.20.mp4
Android: mWeb Chrome
CleanShot.2024-06-20.at.12.56.12.mp4
iOS: Native
CleanShot.2024-06-20.at.11.38.04.mp4
iOS: mWeb Safari
CleanShot.2024-06-20.at.11.42.44.mp4
MacOS: Chrome / Safari
CleanShot.2024-06-20.at.10.26.01.mp4
MacOS: Desktop
N/A