[CP Staging] Fix empty report action for OldDot TAKECONTROL action#69307
[CP Staging] Fix empty report action for OldDot TAKECONTROL action#69307roryabraham merged 1 commit intomainfrom
TAKECONTROL action#69307Conversation
f8fa814 to
be42f63
Compare
|
@allroundexperts 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android MacOS: Chrome / SafariScreen.Recording.2025-08-27.at.3.41.09.AM.mov |
|
@marcaaron For some reason, the avatar is not showing up in the report item.
|
I think this is out of scope for this issue. Going ahead and approving. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Fix empty report action for OldDot `TAKECONTROL` action (cherry picked from commit 1dcf5de) (cherry-picked to staging by thienlnam)
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.1.99-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.2.0-0 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.0-5 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.0-5 🚀
|
| const {mentionedAccountIDs} = getOriginalMessage(reportAction as ReportAction<T>) ?? {}; | ||
|
|
||
| if (!mentionedAccountIDs?.length) { | ||
| // If mentionedAccountIDs exists and has values, use the first one |
There was a problem hiding this comment.
Checklist from #84288: When a report is created and approved in OldDot with auto‑pay enabled(the action is TAKE_CONTROL), ND always shows an extra Changed approver [owner name] system message. We've updated shouldReportActionBeVisible to hide that action.





Explanation of Change
Provides a fallback for OldDot "TAKECONTROL" actions that do not have mentions. For "TAKECONTROL" we don't need a
mentionedAccountIDsand should be able to just use thereportAction.accountIDwhich will always be the person who took control.Fixed Issues
$ #69280
PROPOSAL:
Tests
changed the approver to @[display name or email]Offline tests
❌
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))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
MacOS: Desktop