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.
- Component was added in !181901 (merged) (merged)
- This was previously attempted in !183897 (closed)
- The requirement of the path format has changed #452305 (comment 2386425348)
- We're now getting the path through graphql query added in !186829 (merged)
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.38.11.mp4
How to set up and validate locally
- Enable
blob_repository_vue_header_app
feature flag - Go to a directory
- This should work when viewing with:
- A branch
- A commit (Code > Repository > Commits > Brows files (folder icon)
- A tag
- Press
y
should work the same as clicking the dropdown item
- This should work when viewing with:
Related to #452305 (closed)
Edited by Chaoyue Zhao