Conversation
|
Spanish translation review requested here. |
|
🚧 @lakchote has triggered a test build. You can view the workflow run here. |
|
@dannymcclain @alitoshmatov One of you needs to 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] |
This comment has been minimized.
This comment has been minimized.
@trjExpensify @JmillsExpensify @dannymcclain you can test it out here 👆 |
|
Do we need to add a test to the QA steps to cover the existing submitted report case? I take it we want to handle this like any other approval workflow change after a report has already been submitted? Existing submitted report
|
Reviewer Checklist
Screenshots/VideosAndroid: Nativepsa-android.movAndroid: mWeb Chromepsa-mweb.mp4iOS: Nativepsa-ios.mp4iOS: mWeb Safaripsa-safari.mp4MacOS: Chrome / Safaripsa-web.movMacOS: Desktoppsa-desktop.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] |
|
Nice!! I'll review this later today / early tomorrow. Thank you 😄 |
|
@MarioExpensify if you could review this today that'd be great! |
|
@lakchote Yep, I'm on it right now. Can you please merge main? It seems there are conflicts 😞 |
MarioExpensify
left a comment
There was a problem hiding this comment.
Everything looks good, let's get the conflict solved so we can merge! Thank you
|
The conflicts are going to be fun to handle. I'll report back when you can merge 😅 |
|
@MarioExpensify ready for review again! |
|
✋ 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/MarioExpensify in version: 9.0.96-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.96-1 🚀
|
|
Because we can remove a user from the member details page also, we should also handle the case when there is only one member left on the workspace and the members were removed from the member details page. |
Explanation of Change
Implement the "Prevent Self-Approvals" mechanism in NewDot.
Video test
Screen.Recording.2025-01-27.at.09.53.31.mov
Fixed Issues
$ #53799
Tests
Prerequisites:
1. Basic Flow (No self approvers)
Expected result:
The toggle should turn on without any modal or warnings (because no one is self-approving in this scenario).
2. Verify Modal Trigger When a Member is Their Own Approver
Expected result: a modal appears because User B is self-approving.
This modal says “Any members currently approving their own expenses will be removed and replaced with the default approver for this workspace ({defaultWorkspaceOwnerEmail}).".
{defaultWorkspaceOwnerEmail}should be replaced by the default workspace approver/owner.6. Confirm the modal, the toggle should be ON.
7. Go to Workflows.
Expected results:
The workflow where user B was self approving should have been removed.
The workflow that remains should be the default one where all workspace members submits to the workspace approver.
3. Workspace with several members become a workspace with only one member
Prerequisite: having a workspace with
Prevent self approvalsenabledPrevent self approvalsgot disabledPrevent self approvalsgot disabled4. Check we can't enable the feature if there's only one user (the workspace owner)
5. Check Spanish Translations
“Any members currently approving their own expenses will be removed and replaced with the default approver for this workspace ({defaultWorkspaceOwnerEmail})."
Offline tests
Settings > Troubleshoot > Force offlineQA 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-01-27.at.09.53.31.mov
MacOS: Desktop