Skip to content

Re-introduce the ability to set a framework as default from the dropdown

Dakota Dux requested to merge dakotadux/framework-dropdown-updates into master

What does this MR do and why?

This MR re-introduces the ability to set a framework as a default from the framework dropdown on the list frameworks page

This functionality should only be possible at the top level group compliance center (not subgroup or project levels). If the framework is already default, then the dropdown option should be to Remove framework as default. Otherwise the dropdown should say Set framework as default

There are two other UI changes that this introduces:

  • Left align the Manage Framework header in the dropdown
  • Close the dropdown after clicking on an item. This was changed because:
    • Some of the items in this dropdown work this way and the inconsistency seemed odd.
    • Other dropdowns work this way

References

I noticed this was referenced here and was informed that this functionality used to exist.

MR acceptance checklist

Before After
Screenshot_2025-02-17_at_8.48.37_AM Screenshot_2025-02-18_at_1.42.10_PM
Screenshot_2025-02-18_at_1.42.52_PM

How to set up and validate locally

To test setting a default frameworks

  1. Make sure you have admin rights and group with an Ultimate subscription
  2. Head over to the Compliance Center
  3. Add at least two frameworks
  4. Select a framework dropdown and click on "Set as default"

To test closing the dropdown

  1. Make sure you have admin rights and group with an Ultimate subscription
  2. Head over to the Compliance Center
  3. Add at least one frameworks
  4. Select a framework dropdown and click on the "Copy Id" option
Edited by Dakota Dux

Merge request reports

Loading