Skip to content

[Tagging] Enable or Disable Taxonomies from the UI #106

Description

@bradenmacdonald

"As a global staff user (aka 'instance-level super-user'), I can enable or disable taxonomies."

Depends on #104 , relates to and should follow #105

Acceptance criteria

  1. If and only if the user has permission to enable/disable taxonomies (they are global staff), display this new gear icon on each Taxonomy card:
    Screenshot 2023-09-19 at 4 11 38 PM
  2. Clicking it should show this menu:
    Screenshot 2023-09-19 at 4 56 15 PM
  3. System-defined taxonomies cannot be enabled/disabled, so this menu won't appear for them.
  4. Clicking "Disabled" or "Enabled" should call the API, make that change, and update the view to reflect the new status of the taxonomy, along with showing this toast at the bottom of the page:
    Screenshot 2023-09-19 at 4 57 15 PM.
    Screenshot 2023-09-19 at 4 57 51 PM
  5. If clicking the menu option to disable a Taxonomy, this prompt will first appear to confirm the action:
    Screenshot 2023-09-19 at 4 58 09 PM

Developer notes

  • Don't check if the user is global staff - check if they have "enable/disable permission" for the given taxonomy, and there should be a rule that only global staff have that permission, and only if the taxonomy is not system-defined.
  • 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.
  • Definitions for future reference: "Enabled: Course authors are able to add tags from the taxonomy to content in their courses and libraries. Disabled: Course authors are not able add tags from the taxonomy to content in their courses and libraries. Authors will not even see the taxonomy at the course level if it is disabled. If a taxonomy is disabled and it has tags in use, then the tags would disappear from the course view. However, the association of the content to the tags would remain intact, so that if the taxonomy is enabled again later, authors would not have to re-tag their content."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions