Commit 4a5e7ff
authored
refactoring - extract generateTaskSpec (#1074)
## Description
Moved the `generateTaskSpec` function from `GhostNode.tsx` to a dedicated utility file at `src/utils/nodes/generateTaskSpec.ts` to improve code organization and reusability. This function creates a TaskSpec object with default position annotations from a ComponentReference.
## Related Issue and Pull requests
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Improvement
- [x] Cleanup/Refactor
- [ ] Breaking change
- [ ] Documentation update
## Checklist
- [x] I have tested this does not break current pipelines / runs functionality
- [ ] I have tested the changes on staging
## Test Instructions
Verify that ghost nodes still render correctly in the flow canvas and that task specs are properly generated when creating new nodes.1 parent cbca62b commit 4a5e7ff
2 files changed
+15
-11
lines changedLines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments