[ENG-1545] Switch positions of node type and node title fields#907
[ENG-1545] Switch positions of node type and node title fields#907trangdoan982 wants to merge 6 commits intomainfrom
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Move Content input above Node Type selector so users can immediately start typing. Support empty Node Type (queries all node types), auto-detect type on selection, and lock type when a node is selected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43e24d0 to
91cec86
Compare
| style={{ pointerEvents: "all" }} | ||
| > | ||
| <div className={`${Classes.DIALOG_BODY} flex flex-col gap-4`}> | ||
| {/* Content Input */} |
There was a problem hiding this comment.
| renderModifyNodeDialog({ | ||
| mode: "create", | ||
| nodeType: defaultNodeType, | ||
| nodeType: "", |
There was a problem hiding this comment.
|
|
||
| const [selectedNodeType, setSelectedNodeType] = useState(() => { | ||
| const [selectedNodeType, setSelectedNodeType] = useState< | ||
| (typeof discourseNodes)[number] | null |
There was a problem hiding this comment.
| if (!selectedNodeType && r.uid) { | ||
| const detectedType = (r as Record<string, unknown>) | ||
| .discourseNodeType as string | undefined; | ||
| if (detectedType) { |
There was a problem hiding this comment.
mdroidian
left a comment
There was a problem hiding this comment.
Thank you for adding inline comments, but I'm not clear if this PR is solving all tickets, or these are intended to be some placeholder code. Unfortunately the YouTube video was private, so I'm not sure if that question was answered there.
If this PR is solving all tickets, make sure to link the PR to the Linear tickets.
This biggest change request is querying for all nodes when no node type is selected.
|
@mdroidian this PR addresses all of the sub-tickets and the inline comments meant to point out the section that work on each sub-ticket. My bad I also made the video unlisted so you can see again. Same behavior except the focus now shows for the node type menu when user focuses there
|
Ok. If this PR is ready for review again, please tag me as a reviewer/re-request review. |

https://youtu.be/X0MbEH5GjvU
Summary
ENG-1316 regression safety
All focus fixes preserved:
autoFocus={!isContentLocked}on Content,autoFocus={false}on Node Type Label,popoverProps={{ openOnTargetFocus: false }}, keyup handler in FuzzySelectInput, and confirm buttonautoFocus={isContentLocked}with key remount.Test plan
🤖 Generated with Claude Code