-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: Submit button is shown for second admin when "Prevent self-approval" is enabled #76887
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
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.
|
|
@aimane-chnaif 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] |
|
@cristipaval 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: HybridAppScreen.Recording.2025-12-08.at.8.45.42.pm.movAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2025-12-08.at.8.27.44.pm.moviOS: mWeb SafariScreen.Recording.2025-12-08.at.8.45.42.pm.movMacOS: Chrome / SafariScreen.Recording.2025-12-08.at.8.27.44.pm.mov |
|
@nkdengineer can we add unit test as per #76887 (comment)? |
joekaufmanexpensify
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.
Changes make sense to me
Not sure why the test decreased on |
|
There's no test case added for |
|
If so no other change is needed. |
|
Tests fixed on main. Merge main |
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.
Looks good except job 8 failure
|
Is job 8 failing in main as well? |
|
Yes |
|
@cristipaval Fixed now. |
|
✋ 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/cristipaval in version: 9.2.75-0 🚀
|
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.2.75-0 🚀
|
Revert "fix: Submit button is shown for second admin when "Prevent self-approval" is enabled #76887"
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.2.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.77-1 🚀
|
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.2.78-0 🚀
|

Explanation of Change
fix: Submit button is shown for second admin when "Prevent self-approval" is enabled
Fixed Issues
$ #75159
PROPOSAL: #75159 (comment)
Tests
Submitbutton is grayed out on money report headerApprovebutton is grayed out on money report headerSubmitbutton doesn't appear on the owner's draft reportApprovebutton doesn't appear on the owner's outstanding reportOffline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Screen.Recording.2025-12-06.at.21.26.40.mov
Android: mWeb Chrome
Screen.Recording.2025-12-06.at.21.27.11.mov
iOS: Native
Screen.Recording.2025-12-06.at.21.27.49.mov
iOS: mWeb Safari
Screen.Recording.2025-12-06.at.21.28.14.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-06.at.21.22.39.mov
Screen.Recording.2025-12-06.at.21.25.03.mov
Screen.Recording.2025-12-06.at.21.30.45.mov