Add empty state when user tries to view a group-level branch rule on the project level
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=577324) </details> <!--IssueSummary end--> # Context See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/208771#note_2823214240 In https://gitlab.com/gitlab-org/gitlab/-/issues/569901 https://gitlab.com/gitlab-org/gitlab/-/merge_requests/208771, users are prevented from editing a group-level branch rule on the project level to reduce confusion. Users can still manually edit their url to navigate to a group-level branch rule page in the project-level branch rule section. Ex: `http://gdk.test:8080/flightjs/Flight/-/settings/repository/branch_rules?branch=\*-group-level` When users manually navigate to a group-level branch rule page inside the project-level branch rule section, display an empty state. # Design proposal <table> <tr> <th> Current state from https://gitlab.com/gitlab-org/gitlab/-/merge_requests/208771 </th> <th>Proposed</th> </tr> <tr> <td> ![Screenshot_2025-10-14_at_14.59.59.png](/uploads/4306fa3f6ad0ace1d3f45f6f203a3ca2/Screenshot_2025-10-14_at_14.59.59.png){width="1223" height="693"} </td> <td> User **DOES** have permission to view group-level Protected Branches ![empty state for group level branch rule in project level_ with permission.jpg](/uploads/ffd601b7ff29c89aa415d0f7c5c3bc2c/empty_state_for_group_level_branch_rule_in_project_level__with_permission.jpg) User **DOES NOT** have permission to view group-level Protected Branches ![empty state for group level branch rule in project level_ without permission.jpg](/uploads/0b37b9ba8df6576e1372ddfad56ef7f2/empty_state_for_group_level_branch_rule_in_project_level__without_permission.jpg) Illustration: https://gitlab.com/gitlab-org/gitlab-svgs/blob/main/illustrations/empty-state/empty-groups-md.svg </td> </tr> </table>
issue