Skip to content

Frontend: Duplicate role (row + detail kebab) opens create wizard in clone mode #583

Todo

Description

@rodmgwgu

Add "Duplicate" to the Roles and Permissions row kebab and the role-detail header kebab. Duplicate opens the create wizard (#571) with "Clone from role" selected and the source role preselected. The administrator enters a name, can change the permissions on page 2 (#572), and saves with the normal create call (#573).

There is no duplicate endpoint. Copying is a normal create request built from the source role in the catalog (ADR 0036, section 6). The name is required because the role ID is derived from it and never changes (ADR 0035).

Acceptance

  • Duplicate available from both kebab menus, for static and custom source roles.
  • Duplicate opens the create wizard in clone mode with the source role preselected; its resource type and permissions seed page 2.
  • The name field starts empty and is required; no "(copy)" name is generated.
  • Saving uses the create endpoint; success/error toasts and navigation follow Frontend: Custom role creation call + status toast #573.
  • The new role has no assignments and no link to the source role.

Design: Figma. The one-click duplicate and its "Role duplicated successfully" toast are superseded by ADR 0036.

Activity

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

    @rodmgwgu
    ContributorAuthor

    Under discussion: the draft Custom Roles API ADR for #469 (ADR 0036, not merged yet) proposes changes that affect this ticket. Nothing is final until the ADR is approved.

    Proposed change: Duplicate is not one click. The Duplicate item in the row menu and the role-detail menu opens the create wizard (#571) with "Clone from role" selected and the source role preselected. The administrator enters a name, can change the permissions on page 2, and saves with the normal create call (#573). The success toast and redirect follow create.

    Reason: a required name gives the role a meaningful ID. Role IDs are derived from the name and never change (ADR 0035), so auto-generated "(copy)" names would leave copied roles with IDs that don't describe them.

  3. self-assigned this
    on Nov 25, 2026
  4. changed the title [-]Frontend: Duplicate role (row + detail kebab) + toast[/-] [+]Frontend: Duplicate role (row + detail kebab) opens create wizard in clone mode[/+] on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions