-
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
Request location only when necessary in MapView #36761
Conversation
if (!shouldPanMapToCurrentPosition()) { | ||
setCurrentPositionToInitialState(); | ||
return; | ||
} | ||
|
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.
Why don't we just return early?
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.
@s77rt It is because currentPosition
needs to bet set so that pending view is not displayed.
App/src/components/MapView/MapView.tsx
Line 145 in 6f3d8f6
{!isOffline && Boolean(accessToken) && Boolean(currentPosition) ? ( |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.mov |
Please add missing screenshots / videos |
Co-authored-by: Abdelhafidh Belalia <[email protected]>
@s77rt Added all the videos! Sorry for the delay.. Android simulator was (and still is) having issues |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
@esh-g Can you please check #36761 (comment) |
@s77rt Replied! |
Made the change @s77rt! |
@esh-g Please run prettier (lint failing) |
Co-authored-by: Abdelhafidh Belalia <[email protected]>
✋ 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/chiragsalian in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Fixed Issues
$ #36491
PROPOSAL: #36491 (comment)
Tests
Offline tests
QA Steps
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
Screen.Recording.2024-02-19.at.9.29.21.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-02-19.at.9.36.15.PM.mov
iOS: Native
Screen.Recording.2024-02-19.at.9.54.35.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-02-19.at.9.41.18.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-17.at.8.17.27.PM.mov
MacOS: Desktop
Screen.Recording.2024-02-19.at.10.03.28.PM.mov