Repository navigation
feat: Role Detail View/Members Tab Management Feature - #294
diana-villalvazo-wgu wants to merge 19 commits into
Conversation
|
Thanks for the pull request, @diana-villalvazo-wgu! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #294 +/- ##
==========================================
+ Coverage 99.07% 99.13% +0.06%
==========================================
Files 90 98 +8
Lines 1615 1734 +119
Branches 530 555 +25
==========================================
+ Hits 1600 1719 +119
Misses 15 15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
e6c34ad to
58147b2
Compare
342cd95 to
5528a7f
Compare
5528a7f to
dd14d77
Compare
rodmgwgu
left a comment
There was a problem hiding this comment.
nit: Please update the PR description to reflect the latest changes and mention that it depends on openedx-authz#653
rodmgwgu
left a comment
There was a problem hiding this comment.
I've been testing this in my local and is looking good, just found some details to address, also, I see that for custom roles we are missing the resource-type indicator and the last updated date, and the edit warning.
Also, are we validating if the user is superuser for hiding or disabling the edit and duplicate functions?
| src={Edit} | ||
| iconAs={Icon} | ||
| size="sm" | ||
| alt={intl.formatMessage(messages['authz.custom.role.edit.name.alt'])} |
There was a problem hiding this comment.
It was decided in ADR 0036 that custom role names won't be editable once created, so we should remove this.
|
@maguilarUXUI I'm seeing that in the design we don't have anywhere to show or edit the role description, should we add that in this view? |
| {!isCustom && <DuplicateRoleButton />} | ||
| <AddRoleButton key="add-role-button" iconBefore={PersonAdd} /> | ||
| </Stack> | ||
| ]} |
There was a problem hiding this comment.
The figma design shows an edit icon button and a warning alert for custom roles, those are missing here, are they going to be part of an upcoming pr?
There was a problem hiding this comment.
Rod ask me to remove the edit button since on an ADR they decided to not allow custom role name to be edited, the alert will be added later.
09a782c to
62aec3d
Compare

Summary
Implemented role detail page enabling users to view and manage members assigned to standard and custom roles. Users can now navigate to individual role details, search/filter members, assign new members, and manage member lifecycle.
Note:
Same PR as #291 but got closed after comparing base branch was deleted 😅
Changes
New Features
Role Detail Page: Main view showing role metadata with Members and Permissions tabs
Members Table: Display members filtered by role with search and scope filtering
Member Actions: Per-row action buttons
Technical Decisions
Role ID over Name: Uses roleId for filtering instead of URL-encoded roleName to avoid encoding/decoding complexity.
Use Assignments endpoint: We decided to use
/api/authz/v1/assignments/(updated with the display name of scope and organization - PR) due touseTeamMembersAssignmentsdefaults to returning the first 3 assignments per user. A user holding the same role in more than three scopes therefore appears only three times, leaving the remaining scopes undisplayed.Remaining Tasks (Part of other GH issues/epics)
Screenshots
Standard Role
Custom Role
Support Info
Closes openedx/openedx-authz#575
LLM Usage
Built with assistance from Claude.