Skip to content

fix: universal components delete roles ui preview fix - #1771

Open
chakrihacker wants to merge 2 commits into
feat/member-mgmt-docsfrom
fix/delete-roles-preview-fix
Open

fix: universal components delete roles ui preview fix#1771
chakrihacker wants to merge 2 commits into
feat/member-mgmt-docsfrom
fix/delete-roles-preview-fix

Conversation

@chakrihacker

Copy link
Copy Markdown
Contributor

Description

Fixes the Remove Roles button overflowing outside the component boundary in the OrganizationMemberDetail roles tab. On the docs preview's narrow column width, the destructive "Remove Roles" button spilled past the card's right edge. The root cause was a flex min-content sizing issue in the component itself, so the fix was made upstream in @auth0/universal-components-react and pulled into the docs bundle: flex-wrap on the header row, min-w-0 on the title block, and shrink-0 on the action group — so the actions wrap cleanly and stay inside the card.

Bundling in the updated react tarball surfaced a second issue that this PR also addresses:

  • Fixed preview crash — the refactored components now require a permissions object (gating canRemoveRole / canAssignRole / canRemoveFromOrganization), which the preview mocks didn't supply, causing Uncaught TypeError: Cannot read properties of undefined. Added an all-true permissions object to both organization-member-detail-mock.ts and organization-member-management-mock.ts.
  • Synced library artifacts — refreshed the core + react tarballs and regenerated the UMD bundle served from main/ui/universal-components/.

References

https://auth0team.atlassian.net/browse/UIC-1496

Testing

  • Run mint dev in main/, open the OrganizationMemberDetail component page.
  • Remove Roles button stays within the card boundary at the narrow preview width.
  • Both the OrganizationMemberDetail and OrganizationMemberManagement previews load, and their role/member actions render and are interactive.

Checklist

  • I've read and followed CONTRIBUTING.md.
  • I've tested the site build for this change locally.
  • I've made appropriate docs updates for any code or config changes.
  • I've coordinated with the Product Docs and/or Docs Management team about non-trivial changes.

@chakrihacker
chakrihacker requested a review from a team as a code owner August 25, 2026 08:48
@hazel-nut

Copy link
Copy Markdown
Contributor

make sure you submit this for review in #authn-docs-management-prs on slack :)

@chakrihacker
chakrihacker changed the base branch from feat/member-mgmt-docs to main August 27, 2026 10:19
@chakrihacker
chakrihacker requested a review from a team as a code owner August 27, 2026 10:19
@chakrihacker
chakrihacker changed the base branch from main to feat/member-mgmt-docs August 27, 2026 10:19
@chakrihacker
chakrihacker removed the request for review from a team August 27, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants