Skip to content

Commit

Permalink
Support creating relationship on canvas by alt-clicking two nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 25, 2023
1 parent 1829e77 commit 5f4c245
Show file tree
Hide file tree
Showing 26 changed files with 615 additions and 251 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: Release

"on":
pull_request:
push:
branches:
- master
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/operations/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
* xref:operations/rest-requests.adoc[] -- HTTP REST commands.
* xref:operations/browser-rbac-count.adoc[] -- Manual refresh of counts due to RBAC.
* xref:operations/product-analytics.adoc[] -- Configure consent for anonymous usage statistics.

* xref:operations/on-canvas-operations.adoc[] -- On-Canvas Operations.
20 changes: 20 additions & 0 deletions docs/modules/ROOT/pages/operations/on-canvas-operations.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:description: On-Canvas Operations


[[on-canvas-operations]]
= On-Canvas Operations

== Double-Clicking the Canvas

*Double clicking the white area* on canvas will automatically generate a new node with

1. an auto-incremented ID, i.e. (the max ID of nodes on canvas) + 1
2. a label of "Undefined"
3. the node caption of "New Node"

== Editing the Node Properties in Inspector Panel

*Clicking the property value* in node inspector panel will make that property editable and un-clicking the text box
(by for example clicking somewhere else) will persist the new value into Neo4J database:

image:modifying-node-properties-example.png[width=600]
7 changes: 7 additions & 0 deletions e2e_tests/integration/viz.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ describe('Viz rendering', () => {
'Undefined'
)

cy.get('[data-testid="nodeGroups"]')
.contains('New Node')
.trigger('mouseover')
.get('[data-testid="viz-details-pane-properties-table"]')
.find('td:nth-child(4)')
.should('have.text', 'description')

cy.executeCommand('MATCH (n) DETACH DELETE n')
})
})
Loading

0 comments on commit 5f4c245

Please sign in to comment.