Skip to content

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

Availability and Testing

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

Merge request reports