Clear columns when search 'x' is clicked#77984
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Custom columns DB fix
|
👋 |
|
Original bug #77973 is not fixed for me: From Reports > Reports: Screen.Recording.2025-12-19.at.00.56.44.movFrom Reports > Expenses: Screen.Recording.2025-12-19.at.01.01.00.mov |
This comment was marked as outdated.
This comment was marked as outdated.
|
@JS00001 It's a race condition caused by App/src/components/Search/index.tsx Line 289 in ebbf37d
Removing the |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-19.at.03.33.01.movAndroid: mWeb ChromeScreen.Recording.2025-12-19.at.03.34.19.moviOS: HybridAppScreen.Recording.2025-12-19.at.03.27.32.moviOS: mWeb SafariScreen.Recording.2025-12-19.at.03.28.20.movMacOS: Chrome / SafariScreen.Recording.2025-12-19.at.03.18.49.mov |
bdee142
|
@dominictb Ready for you again, added a comment in the code as well. This logic has caused a ton of race conditions, lets just get rid of the logic alltogether |
| for (const key of Object.values(FILTER_KEYS)) { | ||
| switch (key) { | ||
| case FILTER_KEYS.GROUP_BY: | ||
| continue; |
There was a problem hiding this comment.
We can remove this continue.
|
There's a small issue that:
But this already happens on |
dominictb
left a comment
There was a problem hiding this comment.
All good except #77984 (comment)
🎀
|
@MarioExpensify 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] |
|
✋ 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/luacmartins in version: 9.2.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.85-7 🚀
|
Explanation of Change
Clear columns when search 'x' is clicked
Fixed Issues
$ #77973
Tests
Select some custom columns with some filters entered on the reports page
Ensure the columns change
Click the 'x' in the searchbar
Ensure the columns get cleared
Offline tests
N/A
QA Steps
Same as tests
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
Screen.Recording.2025-12-18.at.9.00.21.AM.mov