Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NV-2610 - [WF editor] Provide ability to rearrange steps #4835

Closed
wants to merge 1 commit into from

Conversation

gitstart
Copy link
Contributor

What change does this PR introduce?

This PR enhances the user experience in the workflow area, allowing users to easily update the position of individual steps. Previously, users had to remove all steps below a wrongly placed step to reposition it. With this update, users can now directly drag and move a step to a different position, making the process more intuitive and efficient.

The following improvements were implemented to achieve a seamless repositioning experience:

  • When a user starts dragging a step, it is detached from its parent and child nodes, ensuring that only the selected step is moved without affecting its descendants.
  • To maintain clarity and prevent confusion, the descendants of the repositioned step remain at their original positions during the drag operation.
  • The step position is now correctly updated in the form state, reflecting the changes made by the user during the repositioning.
  • A special styling is applied to the step being repositioned, providing a visual cue that it can be placed in a new position.

Why was this change needed?

To allow users to change the position of steps without having to remove all steps down to the wrongly placed step.

Other information

Closes #3854

Loom Video https://www.loom.com/share/ba3167669ba545bd996181466f22cd67


This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.

@gitstart
Copy link
Contributor Author

@LetItRock this PR is ready for review

@github-actions github-actions bot added the stale Pull Request that needs to be reviewed label Nov 27, 2023
Copy link

github-actions bot commented Apr 7, 2024

This PR is being closed due to inactivity. Please reopen if work is intended to be continued.

@github-actions github-actions bot closed this Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community @novu/design-system @novu/web stale Pull Request that needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NV-2610] 🏗️ Provide the ability to rearrange steps in a workflow
1 participant