Move show labels in kebab menu of child items and linked items widget
What does this MR do and why?
This MR does moves the Show labels toggle to be within the current kebab menu on the Child items and Linked items widget.
To achieve that we have
- Replaced the
work_item_tree_actions.vuecomponent with a newly created shared componentwork_item_more_actions.vue - Use the shared component
work_item_more_actions.vuein- Child items widget for Objectives and work item Epics -
work_item_tree.vue - Child items widget for Issues -
work_item_links.vue - Linked items widget for all work items -
work_item_relationships.vue
- Child items widget for Objectives and work item Epics -
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
| Work item type | Before | After |
|---|---|---|
| Epic | Screen Recording 2024-08-06 at 11.23.43 PM.mov | Screen Recording 2024-08-06 at 11.19.28 PM.mov |
| Objective | Screen Recording 2024-08-06 at 11.24.29 PM.mov | Screen Recording 2024-08-06 at 11.20.51 PM.mov |
How to set up and validate locally
Prerequisites:
- Enable the OKRs feature as mentioned in the OKRs docs (e.g.
::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>))and the namespace must have Ultimate plan). - Enable Epic work items
Feature.enable(:work_item_epics_rollout)Feature.enable(:work_item_epics)
Steps to verify at Group level:
- Login with any user
- Go to Group > Epics
- Open or create an Epic
- Create a child item or add an existing child item in
Child itemswidget - Link few items in
Linked itemswidget - Add few labels to the added work items
- Notice the
Show labelstoggle in the kebab menu instead ofChild items/Linked itemswidget's header - Verify if the
View Roadmap buttonis working
Steps to verify at Project level:
- Login with any user
- Go to Project > Issues
- Open or create an Issue/Objective
- Create a child item or add an existing child item in
Child itemswidget - Link few items in
Linked itemswidget - Add few labels to the added work items
- Notice the
Show labelstoggle in the kebab menu instead ofChild items/Linked itemswidget's header
Related to #463654 (closed)
Edited by Rajan Mistry