Skip to content

Archive labels: Allow toggle attribute via dropdown in list view

What does this MR do and why?

This MR allows toggling the labels archived status right from the dropdown menu in the label lists. Previously, you had to edit each label and tick the checkbox.

It will:

  • Update the label counter for prioritized, other and archived labels.
  • Show the empty state for prioritized labels
  • Will not show the empty state for other labels, since this is currently the same behaviour when prioritizing a label.

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

demo

How to set up and validate locally

  1. Enable feature flag with rails c:
 Feature.enable(:labels_archive)
  1. You can now archive group and project labels right from the three-dot-dropdown in the index view.
  2. When archiving the last prioritized label, the empty state should be shown
  3. Archiving a label should move it from the Active tab to the Archived tab.
  4. After unarchiving a label from the Archived tab, it should now show up in the Active tab.

MR acceptance checklist

checklist

Related to #554227

Edited by Nicholas Wittstruck

Merge request reports

Loading