Conversation
|
@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: NativeUnable to build on Android Android: mWeb ChromeScreen.Recording.2025-03-04.at.1.25.04.PM.moviOS: NativeScreen.Recording.2025-03-04.at.1.21.14.PM.moviOS: mWeb SafariScreen.Recording.2025-03-04.at.1.18.18.PM.movMacOS: Chrome / SafariScreen.Recording.2025-03-04.at.1.02.30.PM.movMacOS: DesktopScreen.Recording.2025-03-04.at.1.14.37.PM.mov |
|
BUG When offline, although the submit button is disabled, the message below the button does not update optimistically. Screen.Recording.2025-03-04.at.1.28.42.PM.mov |
|
@allroundexperts ready for another round of review. This bug you've reported is preexisting from the I've formulated a solution to it, if you can think of any better way of doing it, feel free to le met know. Thanks! |
amyevans
left a comment
There was a problem hiding this comment.
Code looks good so I'll approve! Just 2 nitpicks on the QA/tests:
Control workspace with three members( admin and employee), we'll call them User A and User B respectively
three two
Go to a report where you
Let's finish the sentence 😄
Feel free to self-merge once they're updated!
Oops, I've updated the QA steps and forgot some things along the way 😅 Thanks for noticing! I've modified it |
|
✋ 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/lakchote in version: 9.1.11-1 🚀
|
| const optimisticNextStep = policy?.preventSelfApproval ? buildOptimisticNextStepForPreventSelfApprovalsEnabled() : nextStep; | ||
|
|
||
| const shouldShowNextStep = transactions?.length !== 0 && isFromPaidPolicy && !!optimisticNextStep?.message?.length && !shouldShowStatusBar; |
There was a problem hiding this comment.
Hmm shouldn't we only be doing buildOptimisticNextStepForPreventSelfApprovalsEnabled if policy?.preventSelfApproval AND if the submitter is the next receiver?
There was a problem hiding this comment.
More investigation in https://expensify.slack.com/archives/C06ML6X0W9L/p1741645160823569 - but yeah OldDot is correctly showing the next steps as "Waiting for to approve expenses" b/c I'm not submitting to myself 😬 I thinkkkkk i can put up a quick fix
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|
Explanation of Change
In #55740, we've implemented a mechanism for "Prevent Self Approvals" (locking the toggle for this setting based on conditions, showing a modal) that we need to remove.
Since by default, the initial workflow has Everyone that submits to an approver, we won't be able to prevent self approvals by locking the toggle.
We should keep the existing mechanism in place in NewDot that prevents self approvals.
Video test
Screen.Recording.2025-02-28.at.11.51.09.mov
Fixed Issues
$ #56645
Tests
Prerequisites:
Test
Workspace > RulesSubmitaction should be disabledQA Steps
Same as in tests
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
Screen.Recording.2025-02-28.at.11.51.09.mov
MacOS: Desktop