Frontend: Rename a custom role (inline pencil)

Aperta
#578 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
63/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start at the custom-role detail header and trace the existing pencil control, then read the Custom Roles update endpoint and the ADR from issue #469. Implement inline editing for user-defined roles only, with unique-name validation and success or error toasts; confirm standard roles have no edit control and the header updates after a successful save.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

willow

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

Lingua principale
Python
Stelle
0
Fork
10
Merge medio
5g 12h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openedx/openedx-authz

Tutte le issue di openedx/openedx-authz

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.