Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2c2d8ab to
8dca03b
Compare
4368a59 to
3afbeb3
Compare
8dca03b to
f0ac49b
Compare
f0ac49b to
d8bc666
Compare
d8bc666 to
47ebeb8
Compare
31dfecb to
851a7d9
Compare
851a7d9 to
8b7dbf9
Compare
e547e8d to
c656456
Compare
e457cec to
b255032
Compare
254de19 to
ed84970
Compare
ed84970 to
c59d689
Compare
| customEdge: SmoothEdge, | ||
| }; | ||
|
|
||
| export function isTaskNodeType(type: string): type is TaskType { |
There was a problem hiding this comment.
NIT: Naming is little bit confusing: in this file we have TaskType (task / input / output) - which technically is a "NodeType". Task is a member of tasks collection and is reflection of TaskSpec. While inputs and outputs are members of different collections with different shapes.
So TaskType -- isTask_Node_Type - I see names here also are not aligned.
NodeType as *keyof* available react flow node types. nodeTypes is a dict to match name to a component... maybe we should call it supportedNodeTypeComponents or nodeComponentsRegistry? Discussion is open.
There was a problem hiding this comment.
I agree. I do not like that TaskNodeData is overloaded with Input and Output Node data as well. This is something that was addressed in #928 as part of the foundations for the Node Manager, but sadly it was not shipped even though it has wider relevance outside of the Node Manager work.
I don't think this is the PR or place to go through such a rework again. But I can look at #928 again and reopen, if you'd like to see things cleaned up?
maxy-shpfy
left a comment
There was a problem hiding this comment.
Just wondering, why we drilling readonly prop thru the stack, instead of making it a property of TaskNodeData structure?
|
^ it already is a property of Now I think about it more it seems kind of silly to have the property there and not use it. But then it also makes me wonder if we should be supplying |
c59d689 to
872e475
Compare
872e475 to
b47c34c
Compare
b47c34c to
f81ec04
Compare

Description
Moves around a bit of code - particularly for Node Definition and types in React Flow - to standardise and tidy things in advance of Flex (sticky note) Nodes.
This includes the explicit provision of
readOnlymode to created nodes (flex nodes will make use of this).Also moves the Common Annotations list fallback to a more suitable location (to avoid flaky circular dependencies). And fixes a typo in
buildTaskSpecShape.No change to UI.
Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
Confirm the app still works as expected.
Additional Comments