Undo stolen issue from epic
Description
After adding issue(s) to an epic, if any of those issues were transferred from a previous epic, provide some messaging and action that allows the user to revert that move.
Proposal
Warning | Undoing | Success | Error |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- When you click “Add”:
- Disable the “Cancel” button during processing
- Hide the “Add” button label and show a progress spinner centered on the button, per the guidelines in gitlab-design#82
- If there were issues moved from another epic:
- If it was only one issue:
- Show the warning message
Issue <ISSUEREF> was moved from epic <EPICREF> to this one. [Undo]
- The issue and epic references link to their respective objects and show a tooltip with their title
- Show the warning message
- If it was more than one issue:
- Show the warning message
2 issues were moved from other epics to this one. [Undo]
- Show the warning message
- Pressing “Undo” moves the issues back to their previous epics. While in progress, replace the “Undo” link with a spinner.
- If it was only one issue:
- If the undo process succeeds, show the success message
You moved that issue back to its previous epic
orYou moved those issues back to their previous epics
, depending on the number of issues. - If the undo process fails, show the error message
Oops, could not undo due to server error. [Retry]
- Pressing “Retry” repeats the undo process. While in progress, replace the “Retry” link with a spinner.
- For this issue, all messages stay on screen until the user refreshes the page, presses “Cancel”, or adds new issues to the list
- API: When adding an issue to an epic and consequently stealing away from another epic, respond to the request saying that the issue was indeed stolen and from what epic it was stolen