-
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
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 |
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 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
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