Skip to content

ui: Fix state sync between ProfileSelector & MatchersInput#6081

Merged
yomete merged 2 commits intomainfrom
adv-mode-query-search
Dec 3, 2025
Merged

ui: Fix state sync between ProfileSelector & MatchersInput#6081
yomete merged 2 commits intomainfrom
adv-mode-query-search

Conversation

@yomete
Copy link
Copy Markdown
Contributor

@yomete yomete commented Dec 3, 2025

The bug occurs because two separate instances of the useQueryState hook will maintain independent local draft state which was the case here.

We had one in the ProfileSelector (where the search button actually triggers the query search) and another in the MatchersInput (where the "Enter" keyprees triggers the query search).

Fix here was to pass down setDraftMatchers, commitDraft, and draftParsedQuery from the ProfileSelector down to the MatchersInput component.

The bug occurs because two separate instances of the useQueryState hook maintain independent local draft state:

Fix here was to pass down the setDraftMatchers, commitDraft, and draftParsedQuery from the ProfileSelector down to the MatchersInput component.
@yomete yomete requested a review from a team as a code owner December 3, 2025 11:32
@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous bot commented Dec 3, 2025

✅ Meticulous spotted 0 visual differences across 318 screens tested: view results.

Meticulous evaluated ~4 hours of user flows against your PR.

Expected differences? Click here. Last updated for commit b81bf56. This comment will update as new commits are pushed.

Copy link
Copy Markdown
Contributor

@manojVivek manojVivek left a comment

Choose a reason for hiding this comment

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

Lgtm!

@yomete yomete merged commit 32f8e74 into main Dec 3, 2025
35 of 37 checks passed
@yomete yomete deleted the adv-mode-query-search branch December 3, 2025 11:47
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