Fixed no result found after selecting a address from the drop-down menu - #27035
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@mananjadhav 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] |
|
@mananjadhav Can you review this today? |
|
@shubham1206agra Apologies I was away for the weekend. I did test, and the Test steps work fine, but this particular case doesn't. When I start searching or type only one letter, it momentarily shows no-results-found.movI tried figuring out an easy fix but I can't see how. Can you fix it? I am now wondering if @Pujan92's solution of fixing it in the lib would be needed. Will wait for your fix before testing again. |
@mananjadhav This issue is due to the synchronous nature of API calls in lib. I also checked that @Pujan92's solution did not work for the above issue. I think we should do nothing about this as this may introduce regression in other areas, and it's a minor issue. |
|
@AndrewGable Can you please check this case and confirm if this is fine? |
|
Does this happen on the existing build? |
|
Yes it does @AndrewGable |
|
It would be really nice to fix this, how complex would the solution be? |
It will require patching upstream, with not so sure solution. I think we should directly open upstream PR for this as patching locally might create some problems. Which can be done after we merge this PR as a follow up |
|
@AndrewGable Our current approach won't work, and then we'll have to fix it upstream. I won't say it is complex, the idea is to expose the props while the API is being fetched. |
|
We have our own fork so fixing upstream seems like just as easy to fix it the "right" way as this PR. I am happy to help make sure it is deployed correctly, etc. |
|
@mananjadhav Please decide in that case, and if upstream changes are needed, please create a fork so that I can work on that. |
|
Btw we need to fix this issue in short |
|
Yes @shubham1206agra but the fix will be pushed in this forked repo |
|
I am gonna close this one and reopen another PR when upstream changes are made |
|
I am gonna reopen this PR. Looks like you also need these changes too! |
|
@mananjadhav You can start testing this PR |
|
I feel like we can get rid of the text and only use the loading spinner, but we should vertically and horizontally center the spinner. cc @Expensify/design |
|
I will wait on FaridSafi/react-native-google-places-autocomplete#913 to be merged |
|
@shubham1206agra Did you get a chance to look at @shawnborton's comment? I think we want the wrapper to be equal to the width of the input (or the list items). No text and only spinner. |
|
I thought @shawnborton is verifying this with Design team. |
|
I think we're all good to move forward with just vertically and horizontally centering the loading spinner, no need for a text label. |
|
@mananjadhav Please complete the checklist now |
Reviewer Checklist
Screenshots/VideosWebweb-address-search.movMobile Web - Chromemweb-chrome-address-search.movMobile Web - Safarimweb-safari-address-search.movDesktopdesktop-address-search.moviOSios-address-search.movAndroidandroid-address-search.movThanks @shubham1206agra for the changes. This looks better. Thank you for taking this to the finish line. |
|
Yeah not directly related to the change here, but good to fix. I'll let @AndrewGable decide. All good from my side. 🎀 👀 🎀 C+ reviewed. |
|
@AndrewGable Can you please review this? |
|
@AndrewGable looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Tests were still running I guess, not emergency. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@AndrewGable Can you create an issue for this? |
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.3.79-0 🚀
|
|
I'd report these via #expensify-bugs Slack channel |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|


Details
Fixed Issues
$ #25595
PROPOSAL: #25595 (comment)
Tests
Billing addressagain in step 4, we don't see anyNo result found.QA Steps
Same as
TestsPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Screen.Recording.2023-09-08.at.9.13.02.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-09-08.at.9.20.01.PM.mov
Mobile Web - Safari
Screen.Recording.2023-09-08.at.9.23.43.PM.mov
Desktop
Screen.Recording.2023-09-08.at.9.28.52.PM.mov
iOS
Screen.Recording.2023-09-08.at.9.34.05.PM.mov
Android
Screen.Recording.2023-09-08.at.10.04.02.PM.mov