[go: up one dir, main page]

Skip to content

Add copy permalink to repository overflow menu

What does this MR do and why?

This MR adds the new copy permalink item to the repository overflow menu. This feature currently only exists on blob page.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

Desktop Mobile

CleanShot 2025-04-24 at 13.46.51.png

CleanShot 2025-04-24 at 13.44.56.png

CleanShot 2025-04-24 at 13.38.11.mp4

Flow Expected Url
At project overview https://gdk.test:3443/gitlab-org/gitlab-shell/-/tree/5059017dea6e834f2f86fc670703ca36cbae98d6/
Inside a folder https://gdk.test:3443/gitlab-org/gitlab-shell/-/tree/5059017dea6e834f2f86fc670703ca36cbae98d6/client
With branch https://gdk.test:3443/gitlab-org/gitlab-shell/-/tree/a5a772442204b68dd38a0ab8611e24824962260f/client
With tag https://gdk.test:3443/gitlab-org/gitlab-shell/-/tree/8b00540589eeeefc1774c92260286b7da1a112d1/client
With commit https://gdk.test:3443/gitlab-org/gitlab-shell/-/tree/8b00540589eeeefc1774c92260286b7da1a112d1/cmd

How to set up and validate locally

  1. Enable blob_repository_vue_header_app feature flag
  2. Go to a directory
    • This should work when viewing with:
      1. A branch
      2. A commit (Code > Repository > Commits > Brows files (folder icon)
      3. A tag
    • Press y should work the same as clicking the dropdown item

Related to #452305 (closed)

Edited by Chaoyue Zhao

Merge request reports

Loading