Link to existing Environments from Project Home
Problem to solve
Many users are not aware of the Environments page and functionality we currently have in GitLab. We would like to increase awareness and make it easy to navigate to the page.
This change can be shipped as an experiment.
Add a link at the top of the Project Home page that shows the number of environments a project has and links to the Environments page. Similar to the other links already on the page (Commits, Branches, Tags, Releases, etc.), we will use the same pattern and show:
<icon> <number of environments> Environments
We will also instrument the link to capture every time the link is clicked to understand its effectiveness in capturing attention and getting the user to navigate to the Environments page.
- Add an
# Environmentsto the project home.
- Hide this if there are no environments in the project.
Environments icon: https://gitlab.com/gitlab-org/gitlab-svgs/-/blob/main/sprite_icons/environment.svg
Since the goal of the link is to increase awareness and usage of the Environments page, the primary KPI is clicks on the link.
The links displayed in that area are rendered by
The list is sourced from
We should add another function, that would create a new
AnchorData object with the proper environments number, icon and text. For the example see
releases_anchor_data in the same file. The icon we're interested in is named
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.