Skip to content

Role Comparison tab - #296

Merged
diana-villalvazo-wgu merged 2 commits into
masterfrom
diana/permissions-tab-standard
Dec 2, 2026
Merged

diana-villalvazo-wgu merged 2 commits into
masterfrom
diana/permissions-tab-standard

Conversation

@diana-villalvazo-wgu

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

Copy link
Copy Markdown
Contributor

Description

Role detail pages now have a Comparison tab.

  • It shows the roles and permissions matrix, limited to the role's scope type (courses or libraries). The buttons to switch between Courses and Libraries are hidden, because a role belongs to a single scope type.

  • The Permissions tab renders RolesPermissionsContent, which is an empty placeholder for now. Its content will come in a follow-up PR.

Changes

  • RolesPermissions accepts an optional scopeType prop. When it's set, the matrix stays on that scope type and the switch buttons are hidden. Without it, the component works as before.

In RoleDetailPage:

  • The Comparison tab renders RolesPermissions with the first scopeType of the role.
  • The Permissions tab renders the new RolesPermissionsContent placeholder.
  • Added a RolesPermissions test for a fixed scopeType: only that scope type's matrix is shown and the switch buttons aren't rendered.

Screenshots

Scope type: course

Screenshot 2026-12-01 at 2 47 20 p m

Scope type: libraries

Screenshot 2026-12-01 at 2 47 48 p m

Support Info

Closes openedx/openedx-authz#576

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 26, 2026
@openedx-webhooks

openedx-webhooks commented Nov 26, 2026 •

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.

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.14%. Comparing base (d953abb) to head (419faa8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #296   +/-   ##
=======================================
  Coverage   99.14%   99.14%           
=======================================
  Files          99      100    +1     
  Lines        1748     1752    +4     
  Branches      556      557    +1     
=======================================
+ Hits         1733     1737    +4     
  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/permissions-tab-standard branch 4 times, most recently from b7d209a to 6c25ed8 Compare December 1, 2026 20:44
@diana-villalvazo-wgu
diana-villalvazo-wgu marked this pull request as ready for review December 1, 2026 20:45
@diana-villalvazo-wgu diana-villalvazo-wgu changed the title Permissions tab for standard role Role Comparison tab for standard role Dec 1, 2026
@diana-villalvazo-wgu diana-villalvazo-wgu moved this from Needs Triage to Ready for Review in Contributions Dec 1, 2026
@diana-villalvazo-wgu
diana-villalvazo-wgu force-pushed the diana/permissions-tab-standard branch from 6c25ed8 to 0ea67bb Compare December 1, 2026 21:54
@diana-villalvazo-wgu diana-villalvazo-wgu changed the title Role Comparison tab for standard role Role Comparison tab Dec 1, 2026
@@ -0,0 +1,5 @@
const RolesPermissionsContent = () => {

@dcoa dcoa Dec 1, 2026 •

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.

Suggested change
const RolesPermissionsContent = () => {
const RolePermissionsContent = () => {

Or maybe PermisionsList or RolePermissionEditor?

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.

We could consider moving this, to role-detail. If not please use a barrel file for expose content to other features.

@dcoa dcoa 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.

In general this looks good, I leave a couple of comments but nothing blocking. Thank you

@diana-villalvazo-wgu
diana-villalvazo-wgu merged commit 707838f into master Dec 2, 2026
6 checks passed
@diana-villalvazo-wgu
diana-villalvazo-wgu deleted the diana/permissions-tab-standard branch December 2, 2026 17:55
@github-project-automation github-project-automation Bot moved this from Ready for Review to Done in Contributions Dec 2, 2026
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: Done

Development

Successfully merging this pull request may close these issues.

Frontend: Role detail Permissions tab (standard roles, read-only comparison matrix)

3 participants