Add a delay before expanding epic within tree during drag and drop
What does this MR do?
This MR adds a delay before expanding an epic with children within the epics tree during drag and drop. Here's how the logic works;
- User grabs an item from the tree and drags it over an epic that contains children.
- User doesn't release the mouse button and also doesn't move the cursor, the position is in a paused state.
- We wait for one second to make sure user is indeed waiting for an item to expand before releasing the mouse button.
- Delay finishes and we check if the cursor is still in the same position (i.e. user is still waiting), and then expand the epic.
Screenshots (strongly suggested)
Screen_Recording_2021-04-01_at_4.12.09_PM
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. -
I have not included a changelog entry because _____.
-
-
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team
Related to #323866 (closed)
Edited by Kushal Pandya