fix: Remove member confirmation is same for approver as well as member - #47026
Conversation
|
@allgandalf 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] |
|
@allgandalf This is the result when we try to delete approver, Should we hide the remove button when deleting the approver? Screen.Recording.2024-08-08.at.16.18.47.mov |
|
I think we should update the |
|
Also @nkdengineer ,In the video, for a split second i can see the regular remove member modal, why is that ? |
|
I don't think we want to allow that option - in the case where there's only one other person it works fine if you route all approvals to the other admin, but in the case that there are many approvers and admins, you need to manually update the approver flows |
|
@nkdengineer , please update the PR to match the expected results ^ |
|
@allgandalf So we will not allow user to remove the approver, right? |
|
I assume yes, but leave it upto @thienlnam , are we on the same note here? |
|
The error message for why an approver cannot be removed is valuable IMO, I think we should keep it as is and just show the error message. So the current functionality seems fine |
|
Fine with me, I will complete the checklist now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-08-14.at.10.32.45.AM.movAndroid: mWeb ChromeScreen.Recording.2024-08-14.at.10.25.53.AM.moviOS: NativeScreen.Recording.2024-08-14.at.10.35.42.AM.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-08-14.at.10.21.53.AM.movMacOS: DesktopScreen.Recording.2024-08-14.at.10.34.04.AM.mov |
|
@allgandalf If it only shows error message like that, do we need to change the approver in optimistic data? |
|
The same happens on production and staging, so i guess that bug should be filed separately |
|
✋ 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/thienlnam in version: 9.0.21-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.21-4 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.21-4 🚀
|
Details
Fixed Issues
$ #46337
PROPOSAL: #46337 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
native.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov