Skip to content

Do not truncate vulnerability report filter dropdown items

Daniel Tian requested to merge 338510-do-not-truncate-dropdown-items into master

What does this MR do?

On the vulnerability report, we have a bunch of filter dropdowns:

ksnip_20210817-233357

Previously, if a dropdown item was too long for the dropdown, the text was truncated. This MR changes it to line wrap instead. It's important that the user be able to see the entire text at once, particularly for the project filter where the project names are regularly long enough to cause truncation.

Previous behavior, truncated names This MR, no longer truncating
ksnip_20210817-233629 ksnip_20210817-233048

How to setup and validate locally (strongly suggested)

  1. Enable the vuln_report_new_project_filter feature flag:
rails c
Feature.enable(:vuln_report_new_project_filter)
  1. Clone this project locally: https://gitlab.com/gitlab-examples/security/security-reports

  2. Run a pipeline against the master branch.

  3. View the Security & Compliance -> Vulnerability Report.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #338510 (closed)

Edited by Daniel Tian

Merge request reports

Loading