fix: debounce users page search input - #6474
Merged
Merged
Conversation
Contributor
WalkthroughThe users table now configures its global search input to wait 500 milliseconds after typing before triggering a search. ChangesUser search behavior
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
agogo233
pushed a commit
to agogo233/new-api
that referenced
this pull request
Jul 27, 2026
Jaykebc1
added a commit
to wrouter/wrouter
that referenced
this pull request
Jul 28, 2026
…bounce) Bring the aurora theme to parity with two rc.22 upstream web fixes that aurora reproduces (aurora is a separate implementation, so upstream web/ fixes don't carry over automatically): - Top-up amount input can now be fully cleared (QuantumNous#6473): preserve an empty localAmount instead of resetting to '0', and guard the one-time amount initialization with a ref instead of 'topupAmount === 0' so clearing the field no longer refills it. - Users page search is debounced 500ms (QuantumNous#6474) via the existing data-table toolbar searchDebounceMs prop. Other rc.22 web fixes (inline channel-priority edit, unset-price models tab, JSON editor unify, data-table column toggle) target upstream-specific components; aurora uses different implementations (e.g. channel cards vs inline table) or lacks the view, so they don't apply. aurora build + typecheck clean (6 pre-existing warnings, no new).
IQZZ020501
pushed a commit
to IQZZ020501/new-api
that referenced
this pull request
Jul 30, 2026
11 tasks
refeiner
pushed a commit
to wuqiang44444444/new-api
that referenced
this pull request
Aug 17, 2026
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
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.
用户页搜索框每输入一个字符就发一次
/api/user/search,每页 100 条时明显卡顿。参考渠道页的防抖逻辑, 这里给用户表同样加上
searchDebounceMs: 500🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
本地实例浏览器手测:用户页连续输入
8888,全程只发出一次搜索请求(修复前每个字符一次):Summary by CodeRabbit