Skip to content

[Tagging] Edit a content item's tags from the tag drawer #122

Closed

Description

@bradenmacdonald

"As a Content Author, I can add/delete tags to content components (course blocks, course units, and library blocks)."

Builds on the read-only tag drawer created in #118 to make it editable. Also see #120 and #121 which provide different ways of opening the tag drawer.

Acceptance criteria

  1. Check permissions. This new edit functionality should only appear in the tag drawer if the user has permission to edit the unit/component/library-component in question. Otherwise, the previous read-only view should be used.
  2. Display an "x" for explicit tags in the tag drawer. Clicking the "x" will remove the tag from the content item.
  3. Removing an explicit child that is the only child of its implicit parent will remove the implicit parent too (and grandparent etc.)
  4. New tags can be added, using the filterable tags list box (filtering/searching is included in scope for this ticket):
    Screenshot 2023-09-21 at 3 13 26 PM
  5. Tag selection:
    • Selecting the checkbox of a parent tag does not select the tags it contains
    • Selecting a nested tag automatically assigns an indeterminate state to the parent checkbox
    • When users click on a nested tag, it becomes the explicit tag and its parent tags are included as implicit tags with a checkbox in a lighter shade of gray. Users cannot check/uncheck implicit tags
    • When users uncheck a nested, explicit tag, its implicit parent tags automatically become unchecked
    • The most granular tag in the hierarchy becomes the explicit tag with all its parent tags becoming implicit
  6. Tag interaction: To select/deselect an item, select either the checkbox or the tag name. To expand parent items, select the dropdown arrow or any empty area on the row
  7. Everything is fully accessible and in particular is easy to operate with a keyboard.

Developer Notes

Activity

  1. ChrisChV commented on Sep 26, 2023

    @ChrisChV

    @bradenmacdonald Is searching for tags within the scope of this task?

  2. bradenmacdonald commented on Sep 26, 2023

    @bradenmacdonald
    ContributorAuthor

    @ChrisChV Yes, I think so. Why? Let me know if you think we should split it out.

  3. ChrisChV commented on Sep 26, 2023

    @ChrisChV

    Let me know if you think we should split it out.

    @bradenmacdonald No, I think this is fine on this task. Only it would have to be specified in the description. There are several separate functionalities and since it was not specified, my first impression was that it was separated into another task.

  4. moved this from Refined - To do to In Progress in Modular Learning - Tagging and Librarieson Nov 6, 2023
  5. bradenmacdonald commented on Dec 8, 2023

    @bradenmacdonald
    ContributorAuthor

    This has now merged, except for the ability to search/filter the tags which is still WIP.

  6. bradenmacdonald commented on Dec 18, 2023

    @bradenmacdonald
    ContributorAuthor

    Searching tags has now merged!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions