Skip to content

fix: query block rename bugs - #114

Merged
sharppaul merged 1 commit into
mainfrom
features/ui-visual-updates
Sep 9, 2026
Merged

sharppaul merged 1 commit into
mainfrom
features/ui-visual-updates

Conversation

@Jasper-Maris

Copy link
Copy Markdown
Contributor

#92

@Jasper-Maris
Jasper-Maris requested review from sharppaul and a lite review from Copilot and removed request for sharppaul September 8, 2026 13:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes address the reported click-order bug and add focused guards without introducing new behavior risks.

Pull request overview

This PR fixes the query block rename flow in the query builder selector. It ensures the rename editor closes after one click, as described in issue #92.

Changes:

  • Replace unreliable autofocus with a Svelte action that focuses and selects the rename input on mount.
  • Guard the blur handler so it does not re-commit after the editor already closes.
  • Prevent the finish button mousedown from stealing focus, so a blur-commit cannot re-open edit mode.
File summaries
File Description
src/lib/components/query-builder/QueryBuilderSelectorBlock.svelte Fix input focus and blur/click ordering, so rename commit closes edit mode on the first click.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sharppaul
sharppaul merged commit a7ad53d into main Sep 9, 2026
1 check passed
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.

3 participants