Refactor protection component
What does this MR do and why?
I decided to refactor a bit our protection components before I add another type for toggles.
What has changed:
- removed protection row for approvals since we're now importing components for it from MR approvals settings module
- renamed
protection
toprotection_card
to better describe what it is - adjusting some styling to match the designs better
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.
Before | After |
---|---|
How to set up and validate locally
- Open Rails console. In your terminal:
rails c
- Enable the feature flag:
Feature.enable(:edit_branch_rules)
- In a project, go to Settings / Repository
- Expand Branch rules section.
- Choose an existing rule or create one.
- Navigate to Branch rule details page.
Numbered steps to set up and validate the change are strongly suggested.
Related to #438970 (closed)
Edited by Paulina Sedlak-Jakubowska