Skip to content

Fix policy drawer title being too long

Alexander Turinske requested to merge 366669-fix-truncate-bug into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Fix policy drawer title being too long

  • when the policy title is too long in the drawer, it is truncated
  • the truncated string pushes the dismiss button off the view making it impossible to close the drawer
  • limit the length of the title
  • the titles still have tooltips associated with them

Changelog: fixed

EE: true

Screenshots or screen recordings

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

Scenario Before After
Truncated title Screen_Shot_2022-12-07_at_19.37.01 Screen_Shot_2022-12-07_at_19.53.45 image
not truncated title Screen_Shot_2022-12-07_at_19.37.27 No visual change

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to http://gdk.test:3000/flightjs/Flight/-/security/policies/new?type=scan_execution_policy => Create a policy with a long name => Save/merge it. You will now be in a different project Flight - Security Policy Project from where the policy will appear.
  3. Navigate to http://gdk.test:3443/flightjs/Flight/-/security/policies => Select policy => Verify drawer

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #366669 (closed)

Merge request reports