Move Add to tree control
What does this MR do and why?
- Create a separate component for Add to tree dropdown. The code is moved as-is from
breadcrumbs.vue
andbreadcrumbs_spec.js
intoadd_to_tree.vue
andadd_to_tree_spec.js
- Change the position of the Add to tree dropdown, from breadcrumbs to next to Code button.
- The old dropdown is kept still in breadcrumbs under
directoryCodeDropdownUpdates
feature flag. We want to bundle all changes to this area together, to avoid multiple controls shifting around.
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.
- Directory page - Update layout of buttons and rearrange actions into overflow menu
- Add WebIDE and Gitpod buttons to Compact Code Dropdown
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.
feature flag off | feature flag on |
---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- In rails console enable the feature flag
Feature.enable(:directory_code_dropdown_updates)
- Go to Project / Repository
- Make sure the Add to tree dropdown is next to the Code button.
- Check the layout on the narrow viewport.
- In profile settings, change your default display of a project overview to Readme only.
- Navigate to project overview, make sure the Add to tree is no present.
Related to #450666 (closed)
Edited by Paulina Sedlak-Jakubowska
Merge request reports
Activity
Please register or sign in to reply