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

Improve background-deploy notification handling #4692

Merged
merged 6 commits into from
May 14, 2024

Conversation

knolleary
Copy link
Member

This PR is a first iteration of improving the background conflict handling within the editor.

In Node-RED today, if another user deploys changes to the runtime whilst I have the editor open, it displays a modal notification and forces you to do something about it there and then. The choices being to merge, review or ignore the update.

If the other developer is being particular productive, they could be repeatedly deploying changes - causing this modal interruption every time.

The goal here is to remove this interruption, whilst still providing a way for a user to know there are upstream changes available for them to deal with at their time of choosing.


This PR updates the notification so that:
1. it is no longer modal - the user is not blocked from continuing what they were doing
2. it is stream-lined - single line notification to be less intrusive
3. it hides after 10s (or if clicked, as with other notifications)
4. the warning icon is shown - clicking on it reopens the notification

As part of this, I've fixed a few issues around tracking the changed/moved status of nodes across merges, as well as the undo/redo action of merging remote changes. There is still a bug with undo history going beyond a merge - but will look at separately.

image

Clicking the 'Review changes' button takes the user through the existing workflow - no changes in this area. This is the same dialog they see if they try deploying their changes with pending background changes.

image

Improve diff view display of nodes that have only moved
@knolleary knolleary merged commit a977b87 into dev May 14, 2024
4 checks passed
@knolleary knolleary deleted the improve-conflict-handling branch May 14, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant