-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create leave workspace functionality #56316
Create leave workspace functionality #56316
Conversation
@shubham1206agra 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: NativeScreen.Recording.2025-02-04.at.9.21.52.PM.movAndroid: mWeb ChromeScreen.Recording.2025-02-04.at.7.53.25.PM.moviOS: NativeScreen.Recording.2025-02-04.at.8.06.44.PM.moviOS: mWeb SafariScreen.Recording.2025-02-04.at.7.47.16.PM.movMacOS: Chrome / SafariScreen.Recording.2025-02-04.at.7.44.33.PM.movMacOS: DesktopScreen.Recording.2025-02-04.at.7.56.52.PM.mov |
@shubham1206agra “ have finished updating the translation for leaving the workspace. Could you check this PR? Thanks! |
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!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
I don't understand that sentiment. Did we just introduce a |
Looking back at this - I believe it will work fine for those who can use it, and will not work for those who should not be able to leave a workspace (prohibited on the backend). However, we should probably update to just not show the button for those folks. Apologies, I thought from the conversation on the other issue that it would be backend, which I don't have time for at the moment, but I'm not sure that's true - I think these are both frontend? Maybe we can get a follow up going shortly. |
🚀 Deployed to staging by https://github.com/dangrous in version: 9.0.97-0 🚀
|
It would have been great if someone tested that, it doesn't work fine. Here's one example. This is an approver who has an outstanding processing report submitted to them. As per the BE logic for leaving a workspace, they shouldn't be allowed to leave the workspace. In NewDot we're showing them a 2025-02-12_08-48-41.mp4I still maintain we should not have pushed this PR separately without the appropriate handling on restrictions to leave/remove someone from the workspace as we've pointed to numerous times at this point. Additionally, I don't think the new copy added in this PR is accurate as I mentioned here. You don't lose access to "all data associated with the workspace" upon leaving per se -- for example your expense reports remain shared with you. OldDot shows this today for a non-owner admin leaving a workspace: ![]() Let's revert this PR, and tackle this once, consistently, and holistically. CC: @MonilBhavsar |
@trjExpensify Assign me and @huult #43508 and we can start working on this holistically. What do you think about this? @huult In the meantime, let's prepare another PR for the same. |
sure |
@shubham1206agra @huult can you create revert with [CP Staging] prefix please? |
Here's the fresh issue to tackle this holistically: #56750 |
@shubham1206agra Will you do it, or should I do it? |
@huult Please do the revert. |
Have we got this revert PR up? CC: @dangrous |
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.97-1 🚀
|
* main: (544 commits) Update Mobile-Expensify submodule version to 9.0.98-1 Update version to 9.0.98-1 Update Mobile-Expensify submodule version to 9.0.98-0 Update version to 9.0.98-0 update comment. Skip late check if the client is offline Clear intervals instead of skipping initialization Stopping logging missed PONGs if a PONG has already been missed fix unit test. Update Mobile-Expensify submodule version to 9.0.97-1 Update version to 9.0.97-1 Use correct approach for changing fn names Fix a few more lint things Fix default imports on tag settings apge Fix import spacing and order Remove default imports from category settings page Revert PR #56316 Revert PR #56316 match pattern Revert "Remove hybrid app check from getEnvironment" ...
Details
Fixed Issues
$ #55462
PROPOSAL: #55462 (comment)
Tests
Same QA step
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
Screen.Recording.2025-02-04.at.17.17.03.mp4
Android: mWeb Chrome
Screen.Recording.2025-02-04.at.17.18.37.mp4
iOS: Native
Screen.Recording.2025-02-04.at.17.19.59.mp4
iOS: mWeb Safari
Screen.Recording.2025-02-04.at.17.20.59.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-02-04.at.17.21.33.mp4
MacOS: Desktop
Screen.Recording.2025-02-04.at.17.22.53.mp4