Add branch rules alert on repo setting page

What does this MR do and why?

Add a tip alert for new branch rules on repository setting page. Also update the alert after creating protected branch to only show when flag (edit_branch_rules) is off.

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.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Screenshot_2024-08-26_at_1.37.55_PM

How to set up and validate locally

  1. Enable the edit-branch-rules feature flag
  2. Go to a project
  3. Select Setting > Repository, a in-page level alert shows in the branch rule sextion
  4. Select close button means dismiss the alert for this user

For testing purpose, see steps here to modify the database so the alert shows up again.

Related to #475215 (closed)

Edited by Chaoyue Zhao

Merge request reports

Loading