Migrate from ScrollView to FlatList for filter bar in Report section to prevent empty space issue - #76418
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@dukenv0307 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] |
trjExpensify
left a comment
There was a problem hiding this comment.
The initial bug report and your tests express clicking the "Reset" button in the exposed from filter, but your screen recordings are illustrating deselecting and clicking "Apply". It would be better if the evidence matched the bug report and the QA steps.
P.s - Can you try to make your PR titles more reflective of what code changes the PR is making / fill out the explanation of changes section? Thanks!
|
@thelullabyy any updates? Let's update the steps and videos to cover the regression as well |
…2/fix-empty-space-issue
|
I fixed the issue and updated recordings part. Please check again |
|
Test failure issue is not related to this PR. It failed in latest main as well |
…2/fix-empty-space-issue
|
Thanks for that! The bug still seems to be present on iOS mWeb Safari: ios-web.mov |
|
@trjExpensify Do you mean the empty space is showing briefly issue right?
|
|
Yep |
|
@thelullabyy Can you please confirm if this issue happens on main as well? I think it has a different RCA and is out of scope. The problem we want to fix here is that the blank space shows forever and this only happens on Android native. |
|
@dukenv0307 I can confirm it also happens on main but I don't have specific reproduce steps for this issue. And I did test again both this PR and main, the issue happens quite rare, it doesn't appear for most of the time. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-08.at.15.17.09.movAndroid: mWeb ChromeScreen.Recording.2025-12-08.at.15.13.34.moviOS: HybridAppScreen.Recording.2025-12-08.at.15.20.59.moviOS: mWeb SafariScreen.Recording.2025-12-08.at.15.14.21.movMacOS: Chrome / SafariScreen.Recording.2025-12-08.at.15.12.25.mov |
|
I can't reproduce this issue |
|
✋ 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/nkuoch in version: 9.2.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.74-12 🚀
|

Explanation of Change
Migrate from ScrollView to FlatList for filter bar in Report section to prevent empty space issue
Fixed Issues
$ #74582
PROPOSAL: #74582 (comment)
Tests
Test 1:
Test 2:
Prerequisite: Log in with an account that has a workspace.
Offline tests
QA Steps
Test 1:
Test 2:
Prerequisite: Log in with an account that has a workspace.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
android-.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov