Skip to content

Comments

chore: Node Definition Cleanup#1731

Merged
camielvs merged 1 commit intomasterfrom
01-30-chore_node_definition_cleanup
Feb 19, 2026
Merged

chore: Node Definition Cleanup#1731
camielvs merged 1 commit intomasterfrom
01-30-chore_node_definition_cleanup

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Jan 30, 2026

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 readOnly mode 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

  • Cleanup/Refactor

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

Confirm the app still works as expected.

Additional Comments

@camielvs camielvs mentioned this pull request Jan 30, 2026
3 tasks
Copy link
Collaborator Author

camielvs commented Jan 30, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camielvs camielvs mentioned this pull request Jan 30, 2026
3 tasks
@camielvs camielvs changed the base branch from 01-30-feat_add_basic_flexnode to graphite-base/1731 February 2, 2026 19:05
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from 2c2d8ab to 8dca03b Compare February 2, 2026 19:06
@camielvs camielvs changed the base branch from graphite-base/1731 to master February 2, 2026 19:06
@camielvs camielvs mentioned this pull request Feb 2, 2026
3 tasks
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from 8dca03b to f0ac49b Compare February 2, 2026 21:30
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from f0ac49b to d8bc666 Compare February 3, 2026 22:36
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from d8bc666 to 47ebeb8 Compare February 3, 2026 23:32
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch 2 times, most recently from 31dfecb to 851a7d9 Compare February 4, 2026 19:05
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from 851a7d9 to 8b7dbf9 Compare February 5, 2026 21:42
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch 2 times, most recently from e547e8d to c656456 Compare February 6, 2026 16:07
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch 3 times, most recently from e457cec to b255032 Compare February 6, 2026 23:17
@camielvs camielvs marked this pull request as ready for review February 6, 2026 23:34
@camielvs camielvs requested a review from a team as a code owner February 6, 2026 23:34
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch 2 times, most recently from 254de19 to ed84970 Compare February 10, 2026 21:48
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from ed84970 to c59d689 Compare February 17, 2026 18:38
customEdge: SmoothEdge,
};

export function isTaskNodeType(type: string): type is TaskType {
Copy link
Collaborator

@maxy-shpfy maxy-shpfy Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Collaborator

@maxy-shpfy maxy-shpfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, why we drilling readonly prop thru the stack, instead of making it a property of TaskNodeData structure?

Copy link
Collaborator Author

^ it already is a property of TaskNodeData. However, I opted to keep it separate in advance of flex nodes which will not use TaskNodeData and so hence will need readOnly explicitly passed down anyway.

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 readOnly state to the page via a provider rather than passing it manually through nodes and other data.

@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from c59d689 to 872e475 Compare February 18, 2026 23:18
@camielvs camielvs mentioned this pull request Feb 19, 2026
3 tasks
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from 872e475 to b47c34c Compare February 19, 2026 17:59
@camielvs camielvs force-pushed the 01-30-chore_node_definition_cleanup branch from b47c34c to f81ec04 Compare February 19, 2026 19:53
Copy link
Collaborator Author

camielvs commented Feb 19, 2026

Merge activity

  • Feb 19, 7:57 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 19, 7:57 PM UTC: @camielvs merged this pull request with Graphite.

@camielvs camielvs merged commit cd0d7e8 into master Feb 19, 2026
7 of 8 checks passed
@camielvs camielvs deleted the 01-30-chore_node_definition_cleanup branch February 19, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants