Skip to content

Improve container registry image copy tooltip

What does this MR do and why?

This MR changes the clipboard copy button tooltip when copying an image path on the container registry image list (and detail page) from the verbose full image path to simply "Copy image path", in line with other similar clipboard copy tooltips, as per #349512 (closed).

Screenshots or screen recordings

Before After
Screen_Shot_2022-05-12_at_23.17.37 Screen_Shot_2022-05-12_at_23.18.12
Screen_Shot_2022-05-13_at_17.18.33 Screen_Shot_2022-05-13_at_17.18.57

How to set up and validate locally

  1. Follow the instructions on https://gitlab.com/gitlab-org/gitlab-development-kit/blob/main/doc/howto/registry.md to configure the container registry in GDK
  2. Visit http://localhost:3000/h5bp/html5-boilerplate/container_registry
  3. Follow the instructions for logging into the container registry
  4. Build and push an image to the container registry as per the instructions on that page
  5. Refresh the page - your image should now show up
  6. When you hover over the image path clipboard button it should show "Copy image path"
  7. Click into the image.
  8. On the detail page, hover over the image path clipboard button for the tag, it should show "Copy image path"

MR acceptance checklist

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

Edited by David Barr

Merge request reports