Add edit button to work item weight widget
What does this MR do and why?
- Add edit button to weight widget, disable inline editing
- Add "Remove weight" button to the input form
- When not in edit mode, add a
h3
above the value as a landmark in the sidebar. In edit mode, visually hide it and put in label/field - Rename existing weight widget to
work_item_weight_inline.vue
For #429137 (closed), as part of Add edit button to work item widgets (&11836 - closed)
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- In rails console enable flags
Feature.enable(:work_items_mvc) Feature.enable(:work_items_mvc_2)
- Visit any task/issue work item, i.e.
http://127.0.0.1:3000/groups/flightjs/-/work_items/31
. If you don't have any you can go to issue page and edit URL, replace/issues/
with/work_items/
- Edit the weight
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 #429137 (closed)
Edited by Simon Knox