-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feat(editor): Add initial code for NodeView and Canvas rewrite (no-changelog) #9135
Conversation
}); | ||
</script> | ||
|
||
<template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add unit tests to all these new components? Would be great to have that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job, the V2 canvas feels really smooth 👏 Dropped just a few comments but nothing that should prevent merging this in
|
||
const $style = useCssModule(); | ||
|
||
const emit = defineEmits(['update:modelValue', 'update:node:position', 'create:connection']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to add expected types here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
:max-zoom="2" | ||
data-test-id="canvas" | ||
@node-drag-stop="onNodeDragStop" | ||
@connect="onConnect" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea. The event works though. 😅
packages/editor-ui/src/components/canvas/elements/nodes/CanvasNode.vue
Outdated
Show resolved
Hide resolved
✅ All Cypress E2E specs passed |
3 flaky tests on run #5106 ↗︎
Details:
5-ndv.cy.ts • 2 flaky tests
24-ndv-paired-item.cy.ts • 1 flaky test
Review all test suite changes for PR #9135 ↗︎ |
✅ All Cypress E2E specs passed |
* master: refactor(core): Use consistent CSRF state validation across oAuth controllers (#9104) feat(core): Print the name of the migration that cannot be reverted when using `n8n db:revert` (#9473) fix(editor): Hard load after logout to reset stores (no-changelog) (#9500) refactor(core): Stop reporting `EAUTH` error codes to Sentry (no-changelog) (#9496) fix(core): Upgrade sheetjs to address CVE-2024-22363 (#9498) refactor: Remove skipped tests (no-changelog) (#9497) feat(editor): Add initial code for NodeView and Canvas rewrite (no-changelog) (#9135) fix(editor): Show input panel with not connected message (#9495) fix(editor): Prevent XSS in node-issues tooltip (#9490) # Conflicts: # pnpm-lock.yaml
Got released with |
Summary
This PR contains the initial code for the NodeView and Canvas rewrite. We're going through a big migration to VueFlow which should take our editor experience to the next level.
features.NodeViewV2
key with atrue
value tolocalStorage
/workflow-v2/:id
for any workflowNodeView.v2.vue
containing basic covered functionalityCanvas.vue
component and sub-components for nodes, edges, handles, buttonsCurrent supported features:
We're merging this to facilitate n8n team contributions and progressive reviewing of the added code.
Related tickets and issues
https://linear.app/n8n/project/nodeview-v2-58fb8eb1701b/issues
Review / Merge checklist
(no-changelog)
otherwise. (conventions)