Skip to content

[ENG-1315] Canvas node type mismatch#728

Draft
trangdoan982 wants to merge 1 commit intomainfrom
cursor/ENG-1315-canvas-node-type-mismatch-dadb
Draft

[ENG-1315] Canvas node type mismatch#728
trangdoan982 wants to merge 1 commit intomainfrom
cursor/ENG-1315-canvas-node-type-mismatch-dadb

Conversation

@trangdoan982
Copy link
Collaborator

Update Canvas node creation to correctly reflect the selected node type when changed mid-creation.

Previously, if a user changed the node type in the ModifyNodeDialog during creation (e.g., from Claim to Hypothesis), the Canvas shape's underlying type would not update, leading to a mismatch between the UI and the internal data. This change ensures the selected node type is propagated and used to create the correct Canvas shape.


Linear Issue: ENG-1315

Open in Cursor Open in Web

- Update ModifyNodeDialog to return selectedNodeType in onSuccess callback
- Update DiscourseNodeUtil to use the returned nodeType when updating shape props
- Update uiOverrides.tsx to use the selected node type from dialog
- Update renderNodeTagPopup.tsx to handle new nodeType parameter

This ensures that when a user changes the node type mid-creation (e.g., from Claim to Hypothesis),
the resulting canvas node is created with the correct type instead of retaining the initial type.

Co-authored-by: doantranghp2000 <doantranghp2000@gmail.com>
@cursor
Copy link

cursor bot commented Jan 25, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@linear
Copy link

linear bot commented Jan 25, 2026

@supabase
Copy link

supabase bot commented Jan 25, 2026

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@trangdoan982 trangdoan982 changed the title Canvas node type mismatch [ENG-1315] Canvas node type mismatch Jan 25, 2026
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