-
Notifications
You must be signed in to change notification settings - Fork 3.5k
#2 - Fix deleted expense is unselected before disappearing #69406
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
#2 - Fix deleted expense is unselected before disappearing #69406
Conversation
|
@hoangzinh 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] |
|
Code looks good. @bernhardoj, can you resolve conflict so I can start recording for PR? |
|
Fixed |
|
The GH actions errors are unrelated to this PR> |
|
Look like they were fixed in the main branch. Do you mind merging the latest main branch again? @bernhardoj |
|
@hoangzinh done |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-09-03.at.17.43.01.android.movAndroid: mWeb ChromeScreen.Recording.2025-09-03.at.17.39.50.android.chrome.moviOS: HybridAppScreen.Recording.2025-09-03.at.17.56.14.moviOS: mWeb SafariScreen.Recording.2025-09-03.at.17.46.15.movMacOS: Chrome / SafariScreen.Recording.2025-09-03.at.17.26.06.web.movMacOS: DesktopScreen.Recording.2025-09-03.at.17.34.17.mov |
|
@bernhardoj can you resolve conflicts again? |
|
@hoangzinh done |
hoangzinh
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.
LGTM
|
FYI Conflicts |
|
@AndrewGable Fixed |
|
Safe to ignore the failing test: https://expensify.slack.com/archives/C01GTK53T8Q/p1757006279943369 |
trjExpensify
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.
Second time's a charm, as they say!
|
Sorry keep forgetting to merge this one, conflicts again. Merging main should fix the tests too |
|
@bernhardoj, can you help resolve the conflict again? TIA |
2f8bdf5
|
@AndrewGable done |
|
✋ 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/AndrewGable in version: 9.2.9-0 🚀
|
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 9.2.11-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.12-4 🚀
|
| useSyncFocus(pressableRef, !!isFocused, shouldSyncFocus); | ||
|
|
||
| const pendingAction = | ||
| (item.pendingAction ?? (groupItem.transactions.length > 0 && groupItem.transactions.every((transaction) => transaction.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE))) |
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.
Coming from: #72406
When displaying report item, pendingAction here is calculated incorrectly, it will always be delete regardless of item.pendingAction
Explanation of Change
Fixed Issues
$ #69344
$ #66028
PROPOSAL: #66028 (comment) #69344 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
#66028
#69344
For mWeb/Android/iOS, it's not possible to open the report while selected, so just make sure the delete works.
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))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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4