Skip to content

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.

Proposal

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.

Intended users

UX Proposal

  • Add an # Environments to the project home.
  • Hide this if there are no environments in the project.

Screen_Shot_2022-12-19_at_1.54.44_PM

Environments icon: https://gitlab.com/gitlab-org/gitlab-svgs/-/blob/main/sprite_icons/environment.svg

Metrics

Since the goal of the link is to increase awareness and usage of the Environments page, the primary KPI is clicks on the link.

Technical proposal

The links displayed in that area are rendered by app/views/projects/_stat_anchor_list.html.haml

The list is sourced from app/presenters/project_presenter.rb:26

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 environment

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.

Edited by Andrei Zubov