Skip to content

[Tagging] Delete individual tags #260

@jesperhodge

Description

@jesperhodge

Description

"As a global staff user (instance-level super admin), I can delete individual tags in a taxonomy."

Acceptance Criteria

  1. On the Taxonomy Detail Page, users with permission to edit the taxonomy (only global staff for now) should see "three dots" menu for each tag with "Delete" as an option.

  2. If "Delete" is selected, a dialog will be shown.

Image
  1. But if some of the tags have subtags, another other dialog will be shown instead.
Image
  1. Upon confirmation, a toast is shown (Update: Undo button is now descoped)
Image
  1. The "Type DELETE to confirm" dialog needs to work in other languages ("Escribe BORRAR para confirmar")

  2. Make sure the whole workflow is keyboard accessible.

Updated Acceptance Criteria

Feature: Delete an individual tag

Selecting Delete shows a confirmation dialog for tags without sub-tags

Given the user has permission to edit the taxonomy
And the selected tag has no sub-tags
When the user selects "Delete" from the tag’s actions menu
Then a delete confirmation dialog is displayed
And the dialog requires the user to type "DELETE" to confirm
And the dialog includes Delete and Cancel controls

Selecting Delete shows a stronger confirmation dialog for tags with sub-tags

Given the user has permission to edit the taxonomy
And the selected tag has one or more sub-tags
When the user selects "Delete" from the tag’s actions menu
Then a delete confirmation dialog is displayed
And the dialog warns that sub-tags will also be deleted
And the dialog requires the user to type "DELETE WITH SUB-TAGS" to confirm
And the dialog includes Delete and Cancel controls

Confirming delete removes the tag and sub-tags.

Given the user is viewing a delete confirmation dialog
And the user has entered the required confirmation text
When the user confirms deletion
Then the tag is deleted
And any sub-tags are deleted
And a toast message is displayed confirming the deletion
And any use of the tag or sub-tag within a course is removed

The rename and delete workflow is keyboard accessible

Given the user is navigating the Taxonomy Detail page using a keyboard
When the user opens the tag actions menu
Then the user can navigate menu options using the keyboard
And the user can initiate Rename using the keyboard
And the user can initiate Delete using the keyboard
And the user can complete or cancel each workflow without using a mouse

Delete Screenshots of UI

Image Image Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    willowReleased in Willow

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions