-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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 |
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.
LGTM!
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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