Add alert for archived groups and their content

What does this MR do and why?

With the introduction of Create an option to archive/unarchive Groups (&15019), we want to add a banner message in groups when they are archived. These banner messages are also displayed to their subgroups and projects.

The existing banner message in archived projects are also updated to respect the group's status.

References

Related to #481743 (closed)

Screenshots or screen recordings

State Image
Group is archived image
Group has archived parent image
Project is archived image
Project has archived parent image

How to set up and validate locally

  1. Enable archive_group feature flag.
  2. Go to Group > Settings > General > Advance > Archive group to archive a group.
    • Verify that the correct banner message is shown in the archived group.
    • Verify that the correct banner message is shown in the subgroups.
    • Verify that the correct banner message is shown in the group's project.
  3. Go to Project > Settings > General > Advance > Archive project to archive a project.
    • Verify that the correct banner message is shown in the project.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Shane Maglangit

Merge request reports

Loading