Commit 5c16e7d
fix(subflow): add ability to remove block from subflow and refactor to consolidate subflow code (#983)
* added logic to remove blocks from subflows
* refactored logic into just subflow-node
* bun run lint
* added subflow test
* added a safety check for data.parentId
* added state update logic
* bun run lint
* removed old logic
* removed any
* added tests
* added type safety
* removed test script
* type safety
---------
Co-authored-by: Adam Gough <[email protected]>
Co-authored-by: waleedlatif1 <[email protected]>1 parent bd38062 commit 5c16e7d
File tree
21 files changed
+1241
-1469
lines changed- apps/sim
- app
- workspace/[workspaceId]/w
- [workflowId]
- components
- subflows
- components/iteration-badges
- loop
- parallel
- workflow-block
- components
- action-bar
- sub-block
- workflow-edge
- components/workflow-preview
- components/ui
- lib/workflows/diff
- socket-server/database
- stores/workflows
- workflow
- yaml
21 files changed
+1241
-1469
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
0 commit comments