Add ability to edit work items weight widget
What does this MR do and why?
This MR adds the ability to inline edit the weight widget on the work items view, which was previously read-only.
The weight widget saves all weight updates in the frontend cache (the local types and mutations are temporary) and is not yet connected to the backend.
- The first MR was !89028 (merged)
- This is the second MR to resolve #362550 (closed)
- The next MR will hook up the weight widget to the backend to persist the weight updates in the database
Screenshots or screen recordings
Screen_Recording_2022-06-16_at_1.00.47_pm
How to set up and validate locally
- In rails console enable the feature flags
Feature.enable(:work_items) Feature.enable(:work_items_mvc_2)
- Visit an issue with a work item task, open the modal, and test the weight widget (e.g.
http://127.0.0.1:3000/h5bp/html5-boilerplate/-/issues/1
) - Visit a work item and test the weight widget (e.g.
http://127.0.0.1:3000/h5bp/html5-boilerplate/-/work_items/1
)
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 #362550 (closed)
Edited by Coung Ngo