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.
How to set up and validate locally
- Enable the
edit-branch-rulesfeature flag - Go to a project
- Select Setting > Repository, a in-page level alert shows in the branch rule sextion
- 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
