Migrate `form_errors` in visiblity and access to Pajamas alert

What does this MR do and why?

Migrate form_errors in app/views/admin/application_settings/_visibility_and_access.html.haml to Pajamas::AlertComponent.

Screenshots or screen recordings

Scenario Screenshot
Before image
After image

How to set up and validate locally

  1. Login to your local GDK as an admin user.
  2. From the top left Menu go to Admin.
  3. From the left menu bar in Admin area go to Settings -> General.
  4. Expand the Visibility and access controls section.
  5. Enter an invalid IP address in the last field like abc.
  6. Click on Save changes.
  7. Observe that alert is shown.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #364912 (closed)

Edited by Sharmad Nachnolkar

Merge request reports

Loading