Change BlobButtonGroup into a dropdown part 2
What does this MR do and why?
This MR is a part of a bigger effort that aims to rearrange controls for w blob viewer.
The breakdown of #450774 (closed) MRs:
step | status |
---|---|
Change Preview and Code buttons to text based and move Table of content dropdown | |
Change BlobHeaderDefaultActions into dropdown items | |
Change BlobButtonGroup into a dropdown | |
Move Permalink button and add copy functionality |
MR 2 of 2 for Change BlobButtonGroup into a dropdown (#508309 (closed))
- move Lock, Replace and Delete buttons
- change the dropdown to use GlDisclosureDropdownGroup
- I'm temporarily disabling controls for scenarios where we offered a notification to fork a project in order to Replace or Delete a file. See this comment on why the fork suggestion component should change as well. We're behind a feature flag, so I can still tackle that in another MR, before the flag is defaulted.
- Review against
app/assets/javascripts/repository/components/blob_button_group.vue
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.
- Rearrange and introduce overflow menu to single file page
- Change BlobButtonGroup into a dropdown part 1
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Context | Before | After |
---|---|---|
can edit | ![]() |
![]() |
needs to fork | ![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #450774 (closed)
Closes #508309 (closed)