Skip to content

ENG-1692: Open ModifyNodeModal pre-populated on hotkey node creation#1001

Open
trangdoan982 wants to merge 1 commit intomainfrom
eng-1692-open-modifynodemodal-for-hotkey-creation-pre-populated
Open

ENG-1692: Open ModifyNodeModal pre-populated on hotkey node creation#1001
trangdoan982 wants to merge 1 commit intomainfrom
eng-1692-open-modifynodemodal-for-hotkey-creation-pre-populated

Conversation

@trangdoan982
Copy link
Copy Markdown
Member

@trangdoan982 trangdoan982 commented May 5, 2026

https://www.loom.com/share/f5f4e01ba347431b89f50b0a4679d3fe

Summary

  • After selecting text and picking a node type from InlineNodeTypePicker, open ModifyNodeModal pre-filled with the selected text and the chosen node type — instead of immediately creating the node
  • Consistent with right-click and tag-click creation flows that already route through ModifyNodeModal
  • Reuses the existing createModifyNodeModalSubmitHandler from registerCommands.ts (already exported)

Test plan

  • Select text in a note → hit the node tag hotkey (\) → InlineNodeTypePicker appears
  • Pick a node type → ModifyNodeModal opens with title pre-filled to the selected text and the chosen type pre-selected
  • Confirm in modal → selected text in editor replaced with [[NodeTitle]]
  • Hotkey with no selection → NodeTagSuggestPopover unchanged (no regression)

🤖 Generated with Claude Code

Instead of immediately calling createDiscourseNode after a type is picked
in InlineNodeTypePicker, open ModifyNodeModal with the selected text as
initialTitle and the chosen type pre-selected — consistent with right-click
and tag-click creation flows.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 5, 2026

@supabase
Copy link
Copy Markdown

supabase Bot commented May 5, 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 ↗︎.

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.

1 participant