Skip to content

feat: Role Detail View/Members Tab Management Feature - #294

Open
diana-villalvazo-wgu wants to merge 19 commits into
openedx:masterfrom
WGU-Open-edX:diana/members-tab
Open

diana-villalvazo-wgu wants to merge 19 commits into
openedx:masterfrom
WGU-Open-edX:diana/members-tab

Conversation

@diana-villalvazo-wgu

@diana-villalvazo-wgu diana-villalvazo-wgu commented Nov 24, 2026 •

Copy link
Copy Markdown

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

    • Duplicate Button (Standard Roles)
    • Edit button for role name editing (Custom Roles)
    • MoreVert dropdown menu with Duplicate and Delete actions (Custom Roles)
    • PersonAdd button to open member assignment wizard
  • Members Table: Display members filtered by role with search and scope filtering

    • Username search
    • Scope-based filtering
    • Pagination with configurable page size
    • Proper data flattening for nested assignments
  • Member Actions: Per-row action buttons

    • View: Navigate to member audit page (eye icon)
    • Delete: Remove member from role (trash icon)

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 to useTeamMembersAssignments defaults 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)

  • Delete member action: IconButton (needs implementation)
  • Duplicate role action: Menu item and Button (needs implementation)
  • Delete role action: Menu item (needs implementation)
  • Edit role name: Button (needs modal/inline edit)
  • Permissions tab: Empty placeholder (needs implementation)
  • Modify Wizard to take current role instead of allowing to chose others (needs implementation)

Screenshots

Standard Role

Screenshot 2026-11-26 at 5 41 28 p m

Custom Role

Screenshot 2026-11-26 at 5 41 06 p m

Support Info

Closes openedx/openedx-authz#575

LLM Usage

Built with assistance from Claude.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Nov 24, 2026
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @diana-villalvazo-wgu!

This repository is currently maintained by @openedx/committers-frontend.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where 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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation Bot moved this to Needs Triage in Contributions Nov 24, 2026
@diana-villalvazo-wgu diana-villalvazo-wgu moved this from Needs Triage to Ready for Review in Contributions Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.13%. Comparing base (8394de7) to head (9c18c73).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@diana-villalvazo-wgu
diana-villalvazo-wgu force-pushed the diana/members-tab branch 2 times, most recently from 342cd95 to 5528a7f Compare November 25, 2026 23:07

@rodmgwgu rodmgwgu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Please update the PR description to reflect the latest changes and mention that it depends on openedx-authz#653

@rodmgwgu rodmgwgu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Screenshot 2026-11-26 at 12 43 06 p m

Also, are we validating if the user is superuser for hiding or disabling the edit and duplicate functions?

Comment thread src/authz-module/constants.ts Resolved
src={Edit}
iconAs={Icon}
size="sm"
alt={intl.formatMessage(messages['authz.custom.role.edit.name.alt'])}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was decided in ADR 0036 that custom role names won't be editable once created, so we should remove this.

@rodmgwgu

Copy link
Copy Markdown

@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?

@jacobo-dominguez-wgu jacobo-dominguez-wgu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am testing this locally and I see the scope filter shows options including all the resource types, like in the next example the role Course Admin specific for courses, the scope filter shows libraries options.
image

Should the filter display only resources of the same resource_type of the role?

Comment thread src/authz-module/messages.ts Resolved
{!isCustom && <DuplicateRoleButton />}
<AddRoleButton key="add-role-button" iconBefore={PersonAdd} />
</Stack>
]}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

Frontend: Role detail view Members tab

4 participants