[CP Staging] Fix "prevent self approval" showing too often#58129
[CP Staging] Fix "prevent self approval" showing too often#58129robertjchen merged 5 commits intomainfrom
Conversation
|
as i mentioned in slack, i'll continue testing in the morning - but @allroundexperts if you could also test when you start tomorrow that would be great! 🙏 |
|
Tests well 👍 Test 1 Screen.Recording.2025-03-11.at.07.34.08.movTest 2 Screen.Recording.2025-03-11.at.07.34.42.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeUnable to build android Android: mWeb ChromeScreen.Recording.2025-03-11.at.12.28.50.PM.moviOS: NativeScreen.Recording.2025-03-11.at.12.20.31.PM.moviOS: mWeb SafariScreen.Recording.2025-03-11.at.12.17.27.PM.movScreen.Recording.2025-03-11.at.12.18.48.PM.movMacOS: Chrome / SafariScreen.Recording.2025-03-11.at.12.07.13.PM.movScreen.Recording.2025-03-11.at.12.09.18.PM.movMacOS: DesktopScreen.Recording.2025-03-11.at.12.13.38.PM.movScreen.Recording.2025-03-11.at.12.15.24.PM.mov |
|
@MarioExpensify 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] |
|
Pushed 1807c6f |
|
✋ 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 "prevent self approval" showing too often (cherry picked from commit aef2182) (CP triggered by Beamanator)
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.1.11-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
Got successfully CP'd everywhere in 9.1.11-3 - #58171 (comment) 👍 |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|

cc @lakchote @allroundexperts
Explanation of Change
In https://github.com/Expensify/App/pull/56944/files we started showing the "Prevent self approval" error too often, we need this to be hidden behind the below condition (see tests)
Fixed Issues
$ #58128
Tests
Next test:
Offline tests
Same as above for submitter, but obviously not for the policy creator
QA Steps
Same as manual steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
#58129 (comment)
MacOS: Desktop