Skip to content

Task - RBAC AuthZ - US: M2.8 Assign role wizard - Cancelling and success redirections #93

@jacobo-dominguez-wgu

Description

@jacobo-dominguez-wgu

Description

Add a cancel button on the bottom of the wizard to cancel the operation and redirect to the prev view, also redirect to the prev page when a role assignation is successfully submitted.

Image

Acceptance criteria

General

  • A Cancel button is available at the bottom of both steps. Clicking it returns to the previous view.

Step 2 — Where It Applies

  • Clicking Save shows a loading state while the request is in flight.
  • On success, a toast appears and the user is redirected to the previous view.
  • On error, the existing error toast logic is reused. The user remains in Step 2 to retry.

Specs

  • There are two ways to get to the assign role wizard:
    • The first one is from the + Assign Role button on the header for the global view
    • And from the + Add New Role button on the specific user view, this one sets by default a selected user on the step 1 of the wizard.
  • When clicking the Cancel button, it redirects to the previous page (global tabs view or specific user view) canceling the role assignation operation.
  • The same redirection should happen when role assignation is successfully submitted.
  • In case of the global view it updates the team members tab with the new role assignation.
  • In case of the specific user view, it updates the roles table with the new role assignation.

Design

https://www.figma.com/design/onU2END2OXaF7RRLWEHsZI/AuthZ---v2?node-id=7639-19185&t=FLJ7Zz9Qhu9MtJVZ-4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions