Work items: Add edit button to weight widget
Adds a separate Edit state to the Weight widget, accessible from an "Edit" button.
UX Details
- Pressing "Edit" changes state from read, where the weight (or None) is displayed in a readonly label, to the active edit state where the input is displayed.
- Once in Edit mode, the input is immediately focused.
- Clicking outside of the input, pressing Enter or Esc, or clicking "Apply", returns to read state with the input value applied and shown.
- There is a "Clear" action on the input. If needed, this action can instead be moved back to the read state as it is on issues today (see designs).
- If used as a clear action on the input, this will be a small inconsistency until issues are migrated. As weight only exists on Tasks and Issues, this does not add new inconsistency and users still have multiple ways to clear (enter nothing or use action).
- A loading spinner is shown with the label during transition from Edit to Read states.
- There is no interaction on the weight value in the read state.
Edited by Nick Leonard