[CP Staging] Do not show HOLD educational modal in money requests from DMs#75150
[CP Staging] Do not show HOLD educational modal in money requests from DMs#75150
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hide-hold-modal-iou.movAndroid: mWeb Chromemweb-chrome-hide-hold-modal-iou.moviOS: HybridAppiOS: mWeb Safarimweb-safari-hide-hold-modal-iou.movMacOS: Chrome / Safariweb-hide-hold-modal-iou.movMacOS: Desktopdesktop-hide-hold-modal-iou.mov |
|
@Beamanator 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] |
…-DMs [CP Staging] Do not show HOLD educational modal in money requests from DMs (cherry picked from commit a3dc7a4) (cherry-picked to staging by lakchote)
|
✋ 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/lakchote in version: 9.2.58-3 🚀
|
|
@cristipaval Windows 11/ Chrome in v9.2.58-3 Submitter View: pass 74505-1.mp4Approver View: Hold 74505-2.mp4Approver View: Reject 74505-3.mp4Test that HOLD educational does not show for money requests from 1:1 DM chats - pass 75150.1.mp4 |
|
@IuliiaHerets I'll take care of the copy as a follow up. |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.58-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.2.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.2.59-5 🚀
|
|
|
||
| const shouldShowBrokenConnectionViolation = shouldShowBrokenConnectionViolationTransactionUtils(parentReport, policy, transactionViolations); | ||
| const isReportSubmitter = isCurrentUserSubmitter(chatIOUReport); | ||
| const isParentReportDM = isDM(parentReport); |
There was a problem hiding this comment.
👋 Hey, coming from #75520
This has caused an issue with educational modal(s) appearing twice (HOLD modal on the first hold, HOLD&REJECT on the next one)
We should have used chatIOUReport instead of parentReport (same as in MoneyReportHeader)
The copy on the educational modals for hold and reject is specific to expenses from workspace chats. This PR disables the educational modals for money requests from DMs
Explanation of Change
Adds a check, and if the parent chat report of the money requests is a DM, doesn't display the modal.
Fixed Issues
$ #75083
PROPOSAL:
Tests
Test that QA tests from this PR still pass.
Test that HOLD educational does not show for money requests from 1:1 DM chats.
Verify that no errors appear in the JS console
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))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
MacOS: Desktop