Skip to content

Fix project name truncation in dependency project count dropdown

What does this MR do and why?

Fix project name truncation in dependency project count dropdown

The truncation for long project names is now working in the project count dropdown on the group-level dependency list.

Related #467688 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-07-23_at_10.56.45 Screenshot_2024-07-23_at_10.58.41

How to set up and validate locally

  1. Create a new group
  2. Import https://gitlab.com/lorenzvanherwaarden/security-reports-with-few-dependencies/ project in this new group (make sure the project name is quite long so it will show the truncation later on)
    1. Import https://gitlab.com/gitlab-examples/security/security-reports project in this new group
  3. Run a pipeline on both projects
  4. Go to http://gdk.test:3000/groups/<your-group-name>/-/dependencies
  5. Click on any "x projects" in the Project column and validate that the 1st project's name is truncated
Edited by Lorenz van Herwaarden

Merge request reports

Loading