Extract Work item contents and create a wrapper
What does this MR do and why?
As highlighted in the screenshot below, a single work item container which is shown in Hierarchy Widget will look exact same for Linked Work Items widget, including the metadata that is present within the container, so we need to create a component just for the contents of work item, such that it can be shared between both the apps (i.e. Hierarchy & Linked Items), additionally, any reusable parts of the app are required to be moved to shared folder within work items.
app/assets/javascripts/work_items/
:
Following changes are made to the component structure within - Created
components/shared/work_item_link_child_contents.vue
by extracting contents fromcomponents/work_item_links/work_item_link_child.vue
. - Move
components/work_item_links/work_item_link_child_metadata.vue
&components/work_item_links/work_item_links_menu.vue
tocomponents/shared
Screenshots or screen recordings
No visual impact.
How to set up and validate locally
Prerequisites:
Enable the OKRs feature as mentioned in the OKRs docs.
Steps to verify:
- Login with any user
- Go to any Project > Issues > List
- Create an new Objective under New issue split button
- Go to Objective detail page
- Add a Objective or Key result in the
Child objectives and key results
- Add few more so that the order of the list can be changed by dragging and dropping
- Click on any item and other meta data like Labels, Milestone, Progress, Health status.
- Check if all data are present on the list
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #416558 (closed)