Skip to content

Frontend: Edit a custom role description (inline pencil) #578

Open

Description

@rodmgwgu

The custom-role detail header shows an inline pencil next to the role name for renaming (and editing the description). Build the inline edit: pencil opens an editable name/description field, submit calls the Custom Roles update endpoint (ADR from #469), with name-uniqueness validation and a toast. Only for definition_kind=user_defined (standard role names are schema-owned and not editable). Superuser-only.

Acceptance

  • Pencil enables inline name (and description) edit; update endpoint called.
  • Unique name enforced; success/error toast; header reflects the new name.
  • Absent on standard roles.

Design: https://www.figma.com/design/xnmQJq1cTRVqNrs31R8zDM/AuthZ---v2?node-id=40000174-2&p=f&t=AfaPxKGH7lD48V93-0

Activity

  1. added
    willow
    on Oct 30, 2026
  2. rodmgwgu commented on Nov 23, 2026

    @rodmgwgu
    ContributorAuthor

    @diana-villalvazo-wgu FYI: In the accepted ADRs (https://github.com/openedx/openedx-authz/blob/main/docs/decisions/0036-api-contract-for-custom-roles.rst), it was decided that custom role names won't be editable, so only descriptions will be editable in this ticket.

  3. changed the title [-]Frontend: Rename a custom role (inline pencil)[/-] [+]Frontend: Edit a custom role description (inline pencil)[/+] on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions