Skip to content

[Tagging] Rename an individual tag #131

Closed

Description

@bradenmacdonald

"As a global staff user (instance-level super admin), I can rename 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 this "three dots" menu for each tag with "Rename" as an option:
    Screenshot 2023-09-22 at 11 25 23 AM
  2. Clicking rename will make the tag name editable in-place:
    Screenshot 2023-09-22 at 11 28 00 AM
  3. Pressing ENTER or clicking elsewhere on the page will save the new name and display a toast. Pressing ESC will cancel the rename.
    Screenshot 2023-09-22 at 11 28 40 AM
  4. Make sure the whole workflow is keyboard accessible.

Previous description of deleting tags is now on a separate ticket: #260

Developer Notes

  • Screenshots above are for convenience - Figma is the most up-to-date source for mockups. The scale of UI elements seen in the screenshots above may be incorrect.

Activity

  1. added
    pending UX changes
    on Sep 22, 2023
  2. ali-hugo commented on Oct 12, 2023

    @ali-hugo

    @bradenmacdonald We have added a "save" and "cancel" button to the end of the row of the tag that is being edited (the save button remains disabled until the text has been edited):

    Screenshot 2023-10-12 at 10 20 30

    Please update point 3 in the description to something like:
    "Pressing ENTER or selecting the SAVE button will save the new name and display a toast. Pressing ESC or selecting the CANCEL button will cancel the rename".

    Note that "clicking elsewhere on the page" no longer cancels the rename.


    It might be worth mentioning what happens if the name change affects the tag's position alphabetically in the list i.e. the tag remains where it is currently until the page reloads or the user selects the sort icon next to the column title.


    Let me know if there's anything else you need before the "pending UX changes" label can be removed from this issue.

  3. thelmick-unicon commented on Feb 24, 2026

    @thelmick-unicon

    Gherkin style Acceptance Criteria

    Feature: Rename an individual tag

    As a user with permission to edit a taxonomy
    The user wants to rename or delete individual tags in a taxonomy
    So that taxonomy terms can be maintained without re-importing data

    Users with edit permission see the tag actions menu

    Given the user has permission to edit the taxonomy
    And the user is viewing the Taxonomy Detail page
    When the tag list is displayed
    Then each tag displays a "three dots" actions menu
    And the actions menu includes "Rename" and "Delete" (other options may also be listed, but these are the ones included in this feature)

    Selecting Rename enables in-place editing for a tag

    Given the user has permission to edit the taxonomy
    And the user is viewing the Taxonomy Detail page
    When the user selects "Rename" from a tag’s actions menu
    Then the tag name becomes editable in-place
    And Save and Cancel controls are displayed for the editable row
    And the Save control is disabled until the tag name is changed

    Renaming can be saved by pressing Enter or clicking Save

    Given the user is editing a tag name in-place
    When the user updates the tag name
    And the user presses Enter
    Or the user clicks the Save button
    Then the new tag name is saved
    And the updated tag name is displayed in the tag list
    And a success toast message is displayed
    And all uses of the tag within courses are updated
    And all uses of the tag within libraries are updated
    And the search index / library detail view tag search filter is updated

    Renaming can be cancelled by pressing Esc or clicking Cancel

    Given the user is editing a tag name in-place
    When the user presses Esc
    Or the user clicks the Cancel button
    Then the rename action is cancelled
    And the original tag name is displayed
    And no toast message is displayed

    Note: See all screenshots at the bottom of this comment.

    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

    Rename Screenshots of UI

    Image Image Image Image

    Delete Screenshots of UI

    Image Image Image Image Image
  4. self-assigned this
    on Feb 27, 2026
  5. removed
    pending UX changes
    on Mar 17, 2026
  6. jmakowski1123 commented on Apr 2, 2026

    @jmakowski1123

    Is there a missing AC here around the renamed and/or delete changes being pushed out to all content where the tag is used on clicking save?

    Otherwise approved.

  7. 1 remaining item

  8. added
    willow
    and removed
    willow
    on Apr 7, 2026
  9. changed the title [-][Tagging] Rename and delete an individual tag[/-] [+][Tagging] Rename an individual tag[/+] on Apr 13, 2026
  10. jesperhodge commented on Apr 13, 2026

    @jesperhodge
  11. jmakowski1123 commented on Apr 15, 2026

    @jmakowski1123

    Renaming a tag seems to be working as expected, with the exception of one use case:

    When I try to make a change that only involves changing capitalization, for example, I want to change "Client Support" to "Client support", I get an error message per below. I tried making capitalization changes on 4 separate tags and it happened each time.

    Image Image
  12. jesperhodge commented on Apr 16, 2026

    @jesperhodge

    Hi @jmakowski1123 ! Thanks for observing this.

    I think there are two parts to this.

    1. The error message should be explicit and mention that it's a duplicate tag error - I've included that in my changes in Issues discovered during QA for #132 #272, so when that's merged the error message should be better.
    2. I had not considered a use case of renaming a tag to a different capitalization. Here's why this is happening: The backend sees that a tag "Client Support" exist, and when we send an update request, it looks for duplicate tags. And that's case insensitive.

    So this relates to #261 and the fix is a backend adjustment - it should not be difficult, but I'd want to make a PR that fixes it on the backend. Okay if I open a "UAT fixes" ticket and add this?

  13. jesperhodge commented on Apr 16, 2026

    @jesperhodge

    Hi @jmakowski1123 , I created this ticket to address this: #274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

verawood

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions