-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Community Permissions] Update Is allowed
, In
and Hide permission
logic according to the new design
#9211
Conversation
Jenkins BuildsClick to see older builds (20)
|
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, just some suggestions
ui/app/AppLayouts/Chat/controls/community/PermissionsDropdown.qml
Outdated
Show resolved
Hide resolved
ui/app/AppLayouts/Chat/controls/community/PermissionsDropdown.qml
Outdated
Show resolved
Hide resolved
ui/app/AppLayouts/Chat/views/communities/CommunityNewPermissionView.qml
Outdated
Show resolved
Hide resolved
ui/app/AppLayouts/Chat/views/communities/CommunityNewPermissionView.qml
Outdated
Show resolved
Hide resolved
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! I've also tested the changes and it works nicely.
c8c2043
to
5537a1d
Compare
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.
Great job!
Some minor comments added related to your changes:
- The
Edit
flow is not correct. I.e: When you selectBecome member
, then create the new permission, then go toEdit
. TheIn
selection should be thecommunity
one. Now it appears the option of selecting channels:
Other comments not related to this pr but it would be nice if you also fix them as part of it:
ui/app/AppLayouts/Chat/controls/community/PermissionsDropdown.qml
Outdated
Show resolved
Hide resolved
One other comment... If I remember correctly, the last decision made regarding the |
5537a1d
to
8e89720
Compare
Thank you @noeliaSD for your comments!
Could we address it in this dedicated task: #8855 ? I think it will be easier to do it completely there.
Done Yeah, I noticed that and tried to fix, but it requires a closer look imo. From what I saw it may need some more complex changes to have |
8e89720
to
c3700c4
Compare
I'm not sure, in design it's still present. @xAlisher, could you please take a look? |
For me it is ok to address it separately. As far as we have it tracked in any task, it is ok.
Ok. Could you add a new task to track it? |
Sure thing: #9280 |
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.
QA
Tested, approved.
Hi @micieslak, a few issues were noted in points 26-29 but from previous comments it looks like they are already known and will be addressed in other PRs. Let me know what you think. Thanks!
“Is allowed to” field
Admin granting permission
- OK: No option to grant admin rights
- OK: Option to grant Become member
- OK: Option to grant Moderate
- OK: Option to grant View and post
- OK: Option to grant View only
Owner granting permission
- OK: Option to grant admin rights
- OK: Option to grant Become member
- OK: Option to grant Moderate
- OK: Option to grant View and post
- OK: Option to grant View only
Descriptions
11. OK: Permission description for Become an admin
12. OK: Permission description for Become member
13. OK: Permission description for Moderate
14. OK: Permission description for View and post
15. OK: Permission description for View only
“In” field
- OK: When an “Become admin” admin is selected in “Is allowed to”, the value in “In” is fixed to the community name. No other option is available.
- OK: When “Become member” is selected in “Is allowed to”, the value in “In” is fixed to the community name. No other option is available.
- OK: When “Moderate” is selected in “Is allowed to”, the value in “In” can be 1 or more channels
- OK: When “View and post” is selected in “Is allowed to”, the value in “In” can be 1 or more channels
- OK: When View only is selected in “Is allowed to”, the value in “In” can be 1 or more channels
Default private permission option
- OK: Become admin: Enabled, not editable
- OK: Become member: Disabled, editable
- OK: Moderate: Enabled, editable
- OK: View and post: Disabled, editable
- OK: View only: Disabled, editable
Edit
- FAIL: Editing Become admin permission shows channels instead of community in “In” field
- FAIL: Editing Become member permission shows channels instead of community in “In” field
Permissions list:
Hi @glitchminer, as discussed earlier with Noelia, there is a separate task (#8855) to cover edit flow (points 26-29). Thanks for extensive testing! |
…y channels, no add channel button)
…tion depending on chosen permission
…tch depending on selected permission Closes: #9050
c3700c4
to
ea7510b
Compare
What does the PR do
Closes #9050
Needed alignments for
StatusSwitch
are excluded to a separate ticket: #9212Affected areas
CommunityNewPermissionView
and releted componentsScreenshot of functionality (including design for comparison)
Kazam_screencast_00104.webm