Focus on the first item of the selection list when user changes the search input#30438
Conversation
|
@robertKozik 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] |
|
bump @robertKozik |
…-user-changes-the-search-input-in-selectionlist
|
Hi @abzokhattab I'm gonna review this now. First things first, we need to extend QA test cases - we are changing the |
|
Thanks @robertKozik , updated the description let me know if it looks good for you |
I belive they wont work as before, now they will focus on the first item after searching 😄 |
|
Ops my fault 😄 i think i was not clear enough .. let me know now 😄 (hopefully last time) |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.-.native.movAndroid: mWeb Chromeandroid.-.web.moviOS: Nativeios.-.native.moviOS: mWeb Safariios.-.web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
robertKozik
left a comment
There was a problem hiding this comment.
LGTM - cannot find any regression 🚀
MonilBhavsar
left a comment
There was a problem hiding this comment.
Thanks! Looks good to me and works fine
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
|
✋ 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/MonilBhavsar in version: 1.3.94-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.3.94-0 🚀
|
|
Regression from this PR Repro step:
This happens only on dev/staging. Not happen on production regression.mov |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.3.95-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.95-9 🚀
|
Details
Fixed Issues
$ #29080
PROPOSAL: #29080 (comment)
Tests
asand selectAfrica/Asmaratr) and observe that focus is changed to first value as it normally does for all other similar UIOffline tests
asand selectAfrica/Asmaratr) and observe that focus is changed to first value as it normally does for all other similar UIQA Steps
asand selectAfrica/Asmaratr) and observe that focus is changed to the first value as it normally does for all other similar UIBesides the previous test, All lists using
SelectionListshould focus on the first item when changing the search value.We can check a few of each type (single selection and multiple selection) to make sure both list items are functioning correctly:
PR 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
Android: Native
Screen.Recording.2023-10-26.at.2.37.46.PM.mov
Android: mWeb Chrome
Screen.Recording.2023-10-26.at.2.41.17.PM.mov
iOS: Native
Screen.Recording.2023-10-26.at.4.06.31.PM.mov
iOS: mWeb Safari
Screen.Recording.2023-10-26.at.4.07.42.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-08.at.2.31.41.AM.mov
MacOS: Desktop
Screen.Recording.2023-10-26.at.1.39.05.PM.mov