Repository navigation
feat: Add search to model picker - #450
Merged
Merged
Conversation
Collaborator
|
Hey @barelyhuman this is a draft were you intending to actually have this reviewed or was this a mistake. In the future I would love if you could follow the CONTRIBUTING.md and open an issue for new features. |
Contributor
Author
|
i plan to polish it, the keyboard focus needs some work, will remove the draft status post that |
Contributor
Author
Understood |
barelyhuman
force-pushed
the
feat/model-picker-search
branch
from
July 5, 2026 08:49
b5dbf23 to
cfb24dc
Compare
barelyhuman
marked this pull request as ready for review
July 5, 2026 08:49
Address review feedback on the model-picker search: - Flatten "More models" into the search results so every match is keyboard-reachable on desktop (previously a dead-end: the search Enter opened the hover submenu, which immediately re-closed). - Drive arrow/Enter/active-highlight from a single buildModelNavRows() model instead of hand-computed indices; derive+clamp the active index so opening or narrowing the list never auto-selects a row. - Add combobox/listbox ARIA (role, aria-controls, aria-activedescendant, aria-selected) and unique per-instance option ids via useId so multiple pickers never collide. - Match search against the rendered (brand-stripped) label plus the model id, so results reflect what the user sees. - Only show the search box for longer model lists; tighten the search padding and align the search icon with the Fast mode icon. - Remove unrelated formatting churn and the setState-in-effect passes. - Add tests for buildModelNavRows/buildFuzzyRegex and the search + keyboard-selection flow (incl. reaching selected-only models). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Collaborator
|
I went ahead and made some adjustments:
|
This was referenced Jul 6, 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.
Fixes: #496
Screen.Recording.2026-07-01.at.9.55.35.AM.mov