-
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
Hide Members option from non-workspace member #32857
Conversation
@cubuspl42 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] |
Still need to get Android to build but this is ready for a review. |
@@ -105,7 +105,10 @@ function ReportDetailsPage(props) { | |||
return items; | |||
} | |||
|
|||
if ((!isUserCreatedPolicyRoom && participants.length) || (isUserCreatedPolicyRoom && (!ReportUtils.isPublicRoom(props.report) || isPolicyMember))) { | |||
// The Members page is only shown when: | |||
// - The report is not a user created room with participants to show i.e. DM, Group Chat, etc |
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.
A tiny thing, but shouldn't it be "etc." instead of "etc"?
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.
Okey, not necessarily I guess: https://en.wikipedia.org/wiki/Et_cetera
The code looks good, I'll start testing |
We're missing a step of adding another user to this new workspace, don't we? If you modify the steps, maybe you'll assign letters A/B/C to the users? And divide the steps like...
I think it will make it easier for the QA |
Reviewer Checklist
Screenshots/VideosWeb(Full test flow, all users' perspectives) hide-members-list-web.mp4DesktopiOS(workspace member's perspective) hide-members-list-ios.mp4Android(workspace non-member's perspective) hide-members-list-android-compressed.mp4 |
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.
Looks good 👍
🎯 @cubuspl42, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #32928. |
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, NAB comment so I'll let you decide if you'd like to merge @marcaaron
// The Members page is only shown when: | ||
// - The report is not a user created room with participants to show i.e. DM, Group Chat, etc | ||
// - The report is a user created room and the room and the current user is a workspace member i.e. non-workspace members should not see this option. | ||
if ((!isUserCreatedPolicyRoom && participants.length) || (isUserCreatedPolicyRoom && isPolicyMember)) { |
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.
NAB but should we create a helper function that better describes these checks?
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.
With the extra documentation here now it should be easier to understand the intended logic. In this case, it's nice to have the explanation on the report "details" page vs. abstracted somewhere.
@cubuspl42 Hey thanks for that feedback on the QA steps! It's always good to hear suggestions on what would make things easier for everyone. I'll try to take a crack at updating this tomorrow. |
✋ 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/marcaaron in version: 1.4.12-0 🚀
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.4.12-0 🚀
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.4.12-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.12-2 🚀
|
Details
See this thread for details: https://expensify.slack.com/archives/C066HJM2CAZ/p1702002832829139
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/344255
Tests
Offline tests
N/A
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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)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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop