Frontend: Duplicate role (row + detail kebab) + toast

Aperta
#583 1 commento 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
67/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
frontend

Direzione di ricerca

Start by locating the Roles and Permissions table row kebab and the role-detail header kebab, then trace how those menus call role actions and show toasts. Add the duplicate action to both menus and connect it to the duplicate endpoint. Done means either source role type can be duplicated with one click, success and failure toasts appear as specified, and navigation happens only when the toast button is selected.

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

Descrizione

willow

Add "Duplicate" to the Roles and Permissions row kebab and the role-detail header kebab. Duplicate is immediate and fire-and-forget (per design): clicking it calls the duplicate endpoint directly — no dialog or wizard — and shows a success toast "Role duplicated successfully. You can view it in the Roles & Permissions table." with a "Go to Roles and permissions" button that navigates to the table.

Acceptance
  • Duplicate available from both kebab menus (for standard and custom source roles).
  • One click calls the duplicate endpoint with no intermediate form.
  • Success toast with the "Go to Roles and permissions" action; error toast on failure.
  • No navigation away on its own (user chooses via the toast button).

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.