-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: Resolve empty space issue when deleting an expense with Group By filter applied #77393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Resolve empty space issue when deleting an expense with Group By filter applied #77393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an issue where empty space appears when deleting an expense with a Group By filter applied. The fix ensures that selected transactions are properly cleared when the groupBy filter changes or is reset.
Key Changes:
- Added logic to track previous groupBy value using
usePrevioushook - Clear selected transactions when the groupBy filter changes
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| useEffect(() => { | ||
| if (prevValidGroupBy === validGroupBy) { | ||
| return; | ||
| } | ||
| clearSelectedTransactions(); | ||
| }, [validGroupBy, prevValidGroupBy, clearSelectedTransactions]); |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a test case to verify that selected transactions are cleared when the groupBy filter changes. While the implementation is correct, test coverage would help prevent regressions of this fix in the future.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@mananjadhav Friendly bump for review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-empty-space-group.movAndroid: mWeb Chromemweb-chrome-empty-space-group.moviOS: HybridAppiOS: mWeb Safarimweb-safari-empty-space-group.movMacOS: Chrome / Safariweb-empty-space-group.mov |
|
I am having issues with iOS build. |
|
@heyjennahay @srikarparsi Quick bump on the PR. |
heyjennahay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with product change
|
@srikarparsi Gentle bump. |
|
@srikarparsi This one's been waiting for you. |
|
✋ 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/srikarparsi in version: 9.2.94-0 🚀
|
…n-deleting-expense fix: Resolve empty space issue when deleting an expense with Group By filter applied
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.94-4 🚀
|
Explanation of Change
Fixed Issues
$ #77010
PROPOSAL: #77010 (comment)
Tests
Offline tests
QA Steps
Same as test
// TODO: These must be filled out, or the issue title must include "[No QA]."
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.Native.mov
Android: mWeb Chrome
Android.mWeb.chrome.mov
iOS: Native
IOS.Native.mov
iOS: mWeb Safari
IOS.mWeb.safari.mov
MacOS: Chrome / Safari
macOs.chrome.mov