neo4j / neo4j-browser

Neo4j Browser is the general purpose user interface for working with Neo4j. Query, visualize, administrate and monitor the database.
https://neo4j.com
GNU General Public License v3.0
671 stars 345 forks source link

NodeDrag by Petra Schanz on behalf of DB Systel GmbH #1928

Closed petra-schanz closed 11 months ago

petra-schanz commented 1 year ago

This fork implements the feature requested here: https://github.com/neo4j/neo4j-browser/issues/858 and was written by petra.schanz@deutschebahn.com on behalf of DB Systel GmbH.

Svgs exported by neo4j contain the positions of the drawn nodes. If you show the same nodes in the neo4j-browser you can use the new upload-button (below the zoom buttons because this is all about visualization) and upload your svg: The nodes will be dragged automatically to the positions shown in the svg. You can interact with them and use them as you are used to.

If you need to re-import the database data you should set a uuid before exporting the svg and after importing the data by using something along "MATCH (n) SET n.uuid = n.myEternalAndUniqeAttribute RETURN n"

tempsnip

petra-schanz commented 11 months ago

Hi! Could you, please, add my cla? Thank you!

OskarDamkjaer commented 11 months ago

@petra-schanz Hello and thanks putting in the time to open this PR! I added your cla just now.

It was a few years since we discussed if/how we wanted this feature internally so I was unsure if it was still something we were interested in supporting and I forgot to bring it up with our product manager. I did so now and will get back to you! Sorry about the delay.

OskarDamkjaer commented 11 months ago

Hello again @petra-schanz, I've spoken with product and I'm sorry to say it was decided we want to keep Browser more focused on quicker iterations rather than doing much work with the visualization results, in part because that use case is better covered by Neo4j Bloom. You can of course still use your work by deploying a your fork of Browser as seen in the Neo4j Browser manual here