Skip to content

Group visibility levels: Show alert for restricted visibility levels

  • Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA

What does this MR do and why?

As explained here, we noticed that there is no text hint for the users regarding the restricted visibility level when only one visibility level is restricted. This MR intends to fix this.

Additionally, this MR proposes the usage of a Pajama::AlertComponent to make the alert more present.

🛠 with at Siemens

MR acceptance checklist

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

MR Checklist (@gerardo-navarro)

Screenshots or screen recordings

The following screenshots shows the page when only one visibility is restricted. In this case, the visibility level "public" was restricted. As can be seen, there is no text hint similar to Other visibility settings have been disabled by the administrator. when one visibility level is restricted which can be considered a bug 🐛 .

Before After
image image

The following screenshots shows the page when only multiple visibility is restricted. In this case, the visibility levels "public" and "internal" were restricted.

Before After
image image

How to set up and validate locally

  1. Sign in as the admin user
  2. Go to Admin Area => Settings => General => Section Visibility and access control: http://gdk.test:3000/admin/application_settings/general#js-visibility-settings
  3. In the section Restricted visibility levels, check Public as one of the restricted restricted visibility levels
  4. In a private browser tab, sign in as the non-admin user
  5. Go to the create new group page: http://gdk.test:3000/groups/new
  6. You should see the warning alert regarding the restricted visibility levels

Ref #455668

Edited by Gerardo Navarro

Merge request reports