-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Canvas): Consolidate groups interactions
Currently, expanded and collapsed groups don't have the interactions available, for instance: * Expanded groups: Only allowed to delete the entire flow * Collapsed groups: Only allowed to Insert step This commit consolidates both functionalities where it makes sense, so expanded groups allow the deletion of the flow, and collapsed ones allow to insert step (which expands the group) and the deletion of the entire flow. relates: #492
- Loading branch information
Showing
18 changed files
with
416 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
...ui/src/models/visualization/flows/__snapshots__/abstract-camel-visual-entity.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'from' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'intercept' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'interceptFrom' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'interceptSendToEndpoint' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'log' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'onCompletion' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'onException' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'route' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`AbstractCamelVisualEntity getNodeInteraction should return the correct interaction for the 'to' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; |
109 changes: 109 additions & 0 deletions
109
...rc/models/visualization/flows/__snapshots__/camel-on-exception-visual-entity.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'from' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'intercept' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'interceptFrom' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'interceptSendToEndpoint' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'log' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'onCompletion' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'onException' processor 1`] = ` | ||
{ | ||
"canHaveChildren": true, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'route' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`CamelOnExceptionVisualEntity getNodeInteraction should return the correct interaction for the 'to' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; |
49 changes: 49 additions & 0 deletions
49
packages/ui/src/models/visualization/flows/__snapshots__/pipe-visual-entity.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Pipe getNodeInteraction should return the correct interaction for the '#' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": true, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`Pipe getNodeInteraction should return the correct interaction for the 'sink' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": false, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`Pipe getNodeInteraction should return the correct interaction for the 'source' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": false, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; | ||
|
||
exports[`Pipe getNodeInteraction should return the correct interaction for the 'steps.1' processor 1`] = ` | ||
{ | ||
"canHaveChildren": false, | ||
"canHaveNextStep": true, | ||
"canHavePreviousStep": true, | ||
"canHaveSpecialChildren": false, | ||
"canRemoveFlow": false, | ||
"canRemoveStep": true, | ||
"canReplaceStep": true, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.