refactor(data-table): remove redundant toolbar effects - #440
Open
IzumiSy wants to merge 1 commit into
Open
Conversation
IzumiSy
changed the base branch from
main
to
stack/data-table-filter-placement-and-column-ui-followups
August 13, 2026 04:05
IzumiSy
force-pushed
the
datatable_toolbar_refactor
branch
from
August 13, 2026 04:39
10f83ef to
9db0ff0
Compare
IzumiSy
marked this pull request as ready for review
August 13, 2026 07:31
Contributor
Author
|
/review |
Contributor
|
✅ API Design Review completed successfully! API Design Review complete for PR #440 (refactor(data-table): remove redundant toolbar effects). No High or Medium issues found. The handleFieldQueryChange refactor is equivalent to the removed useEffect, the Base UI focus contract is documented inline, and a regression test was added. Verdict: Approve — no unresolved issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The data-table toolbar had two local
useEffecthooks that were doing work already covered elsewhere: one only needed to react to the field-search input itself, and the other duplicated Base UI popover focus behavior. Removing them keeps the toolbar state flow more direct without changing the user-facing interaction.Design Decision
Chosen approach
Popover.Popup's default initial focus behavior.Alternatives considered
autoFocus. That also focuses the input, but it would bypass Base UI's built-in touch behavior.Summary