Skip to content

Edit title in work item detail modal

Coung Ngo requested to merge 343668-edit-title-in-work-item-modal into master

What does this MR do and why?

This MR adds the ability to edit the work item title in the work item modal on the issue show page.

In this MR, the ItemTitle component was wrapped in a new component WorkItemTitle that performs update mutations and snowplow tracking. This new WorkItemTitle component is then used on the issue show page (in WorkItemDetailModal) and the work item show page (in WorkItemRoot).

In the follow up MR, the local resolvers and typedefs will be removed. They won't be removed in this MR to keep the diff size reasonable.

Screenshots or screen recordings

Screen_Recording_2022-03-22_at_12.27.15_pm

How to set up and validate locally

  1. In rails console enable the feature flag
    Feature.enable(:work_items)
  2. Visit any issue page such as http://127.0.0.1:3000/h5bp/html5-boilerplate/-/issues/1
  3. Create a task and convert it into a work item
  4. Open the work item in a modal and test editing the title

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #343668 (closed)

Edited by Coung Ngo

Merge request reports