Restrict group approvers to groups that have share access to the project
<!--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> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=2048) </details> <!--IssueSummary end--> ### Description - Restrict group approvers to groups that have share access to the project (https://docs.gitlab.com/ee/user/project/members/share_project_with_groups.html). - So in the design, there needs to be a way to indicate to the user that if they want a group to be an approver group, they have to configure them with a share link first. - Maybe guide the user to configure the link first? Or maybe automate it as part of the group approver assignment? And have some feedback that you made the link? - This issue _does not_ apply to the parent group of the project. That is handled in #1593. - This issue _does not_ apply to individuals that appear in the search box. Those are handled in https://gitlab.com/gitlab-org/gitlab-ee/issues/1593. Those restrictions are handled in #1593. - This applies to both the project settings and the per merge request settings. ### Design ##### Has no results Copy: `No matches found. [Share this project with a group] or [add a user as a member] to include them as an approver.` ![group-approver--no-matched-found](https://gitlab.com/gitlab-org/gitlab/uploads/ddd9bf82033f1e5a76e785daa7f72a0d/group-approver--no-matched-found.png) ##### Has some results-01 Copy: `Can't find a group or user? [Share this project with a group] or [add a user as a member] to include them as an approver.` ![group-approver--matched](https://gitlab.com/gitlab-org/gitlab/uploads/b18f1d4613108e07c5bb8ebdd774ae3b/group-approver--matched.png) ##### Has some results-02 ![group-approver--matched-02](https://gitlab.com/gitlab-org/gitlab/uploads/d3c3f8bf2808b0f1d535dde683bd0d59/group-approver--matched-02.png) ##### Send user back to the previous page ![members--message](https://gitlab.com/gitlab-org/gitlab/uploads/8ee43c15a6a0d83c731145852f270355/members--message.png) - The message bar is fixed on the top when scrolling down. ![members-group--message](https://gitlab.com/gitlab-org/gitlab/uploads/d9ba6737aa575974ea610db55bd94f98/members-group--message.png) <!-- triage-serverless v3 PLEASE DO NOT REMOVE THIS SECTION --> *This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.* <!-- triage-serverless v3 PLEASE DO NOT REMOVE THIS SECTION -->
issue