Fix: User not scrolled to top of chats list when scrolling down and deleting search#52606
Conversation
…x/50562-fix-list-not-scrolled-up-when-query-empty
|
@allgandalf 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: NativeScreen.Recording.2024-11-19.at.11.31.05.AM.movAndroid: mWeb ChromeScreen.Recording.2024-11-19.at.11.29.28.AM.moviOS: NativeScreen.Recording.2024-11-19.at.11.32.18.AM.moviOS: mWeb SafariScreen.Recording.2024-11-19.at.11.33.04.AM.movMacOS: Chrome / SafariScreen.Recording.2024-11-19.at.11.26.09.AM.movMacOS: DesktopScreen.Recording.2024-11-19.at.11.28.41.AM.mov |
|
When going from empty to some query we are not scrolling back up and I think we should? Screen.Recording.2024-11-19.at.11.59.11.mov |
No strong feeling here, I am okay both ways. intuitively I feel we should, because the results are updating. |
|
Yeah, I think we should because that is what we do when it is not empty and we type something else...but we can ask the @Expensify/design team for help here 😄 |
|
Yeah I agree with scrolling back to the top once someone starts inputting a query. |
…x/50562-fix-list-not-scrolled-up-when-query-empty
|
@rlinoz not sure why you experience this. My code changes doesn't change that behavior Can you tell me what browser you use? it might be browser specific weirdness Or can you re-try with this latest merge from main? Kapture.2024-11-20.at.08.32.00.mp4 |
|
ah yeah, it happens only on Firefox |
|
✋ 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/rlinoz in version: 9.0.65-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|
Explanation of Change
This fix will resolve scroll issue when removing search input value to empty in BaseSelectionList and the SearchRouter
Fixed Issues
$ #50562
PROPOSAL: #50562 (comment)
Tests
Offline tests
Same as test
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Kapture.2024-11-15.at.14.14.32.mp4
Android: mWeb Chrome
Kapture.2024-11-15.at.14.21.50.mp4
iOS: Native
Kapture.2024-11-15.at.14.09.45.mp4
iOS: mWeb Safari
Kapture.2024-11-15.at.14.11.03.mp4
MacOS: Chrome / Safari
Kapture.2024-11-15.at.14.00.58.mp4
MacOS: Desktop
Kapture.2024-11-15.at.14.32.44.mp4