Update ownership check when moving expenses and add ownerAccountID on refresh of selected transactions - #73633
Conversation
|
@bernhardoj 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] |
|
Will #73623 also be fixed with this? |
|
@c3024 No, I'm still checking that one. |
|
|
||
| const shouldShowRemoveFromReport = isEditing && isOwner && !isReportIOU && !isSelectedReportUnreported && !isCardTransaction; | ||
| const shouldShowRemoveFromReport = | ||
| !!(selectedReportID && selectedReportID !== CONST.REPORT.UNREPORTED_REPORT_ID && selectedReport) && isEditing && isOwner && !isReportIOU && !isCardTransaction; |
There was a problem hiding this comment.
Doesn't the existing isSelectedReportUnreported work here instead of this check?
selectedReportID && selectedReportID !== CONST.REPORT.UNREPORTED_REPORT_ID && selectedReportThere was a problem hiding this comment.
!isSelectedReportUnreported is also true when selectedReportID is undefined (when multiple reports are selected), so the "Remove from report" button would keep showing on multiple report selection if we use just that.
Codecov Report❌ Patch coverage is
... and 13 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafarimoveChrome1.movmoveChrome2.movmoveChrome3.movmoveChrome4.movmoveChrome5.movmoveChrome6.movMacOS: Desktop |
Update ownership check when moving expenses and add ownerAccountID on refresh of selected transactions (cherry picked from commit cca82d2) (cherry-picked to staging by puneetlath)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 9.2.39-1 🚀
|
|
Awaiting retest here |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.2.39-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 9.2.40-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 9.2.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.40-1 🚀
|

Explanation of Change
Update ownership check when moving expenses
Fixed Issues
$ #73601, #73623
PROPOSAL:
Tests
Offline tests
QA Steps
Same.
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-10-28.at.7.25.17.PM.mov
MacOS: Desktop