Consolidate frontend visibility_level duplication
The following discussion from !92946 (merged) should be addressed:
-
@pslaughter started a discussion: suggestion (non-blocking): It looks like there's a number of places we can share the
visibility_level/constants
love:- https://gitlab.com/gitlab-org/gitlab/-/blob/756fb8ad31d25e89618142faa4f760a0581820a0/app/assets/javascripts/pages/projects/forks/new/components/fork_form.vue#L29
- https://gitlab.com/gitlab-org/gitlab/-/blob/39d35cb97853f4b5dc5e7b46a9d911ec2f34b9d9/app/assets/javascripts/pages/projects/shared/permissions/constants.js#L3
- https://gitlab.com/gitlab-org/gitlab/-/blob/39d35cb97853f4b5dc5e7b46a9d911ec2f34b9d9/app/assets/javascripts/projects/project_visibility.js#L6
- https://gitlab.com/gitlab-org/gitlab/-/blob/f9cc00cf830508d7e63356f5dd1666151bae5b97/app/assets/javascripts/snippets/constants.js#L3
WDYT of creating a follow-up for this?