-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Better handling of additional address fragments (e.g. Apt #) in AddressSearch #16745
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
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@neil-marcellini 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] |
|
@neil-marcellini Please disregard. I assigned PullerBear thinking it would grab a C+ in addition to myself, not assign another Expensify engineer. |
Reviewer Checklist
Screenshots/Videos |
|
@rushatgabhane I manually added you since PullerBear failed to pull in a C+ both times it was assigned. |
deetergp
left a comment
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.
Code looks good and tests pass with easy. It's a ✅ from me.
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-06.at.12.49.40.movMobile Web - SafariScreen.Recording.2023-04-06.at.12.53.42.movDesktopScreen.Recording.2023-04-06.at.13.51.45.movAndroidScreen.Recording.2023-04-06.at.12.53.05.movScreen.Recording.2023-04-06.at.12.52.15.mov |
rushatgabhane
left a comment
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.
@deetergp LGTM as well!
|
✋ 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/deetergp in version: 1.2.97-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.2.97-2 🚀
|








Details
This adds better handling than our initial attempt for additional address information that is not directly in Google's database, such as Apt #. Now we use the Autocomplete APIs
subpremiseparameter, which is populated when the API determines there is a valid extra address fragment, so it works for the same Apt # case as the original attempt, whilst also allowing for narrowing down searches by typing e.g. a city or a state (as in the linked issue).Fixed Issues
$ #15784
PROPOSAL: #15784 (comment)
Tests
Same as QA tests.
Offline tests
Autocomplete won't work offline so no test steps necessary.
QA Steps
Narrow down searches by typing a city (fixes the linked issue)
Add additional information, e.g. Apt #, plus narrow down the search with a city (maintains existing functionality and adds the fixed functionality)
Check usage of AddressSearch without a second address line
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Home Address (with Address Line 2 field)
https://user-images.githubusercontent.com/27287420/228862287-9c5cea9b-c3d8-4b4a-932f-619672d0d2b1.mp4
Without Address Line 2
https://user-images.githubusercontent.com/27287420/228862317-8130570e-0096-4633-820d-f37048c59c72.mp4
Mobile Web - Chrome
address-autocomplete-apt-android-chrome.mp4
Mobile Web - Safari
address-autocomplete-apt-ios-safari-2023-03-30_15.44.52.mp4
Desktop
address-autocomplete-apt-mac-desktop-2023-03-30_15.48.27.mp4
iOS
address-autocomplete-apt-ios-native-2023-03-30_15.41.42.mp4
Android
address-autocomplete-apt-android-native.mp4