Skip to content

fix(repos): Set minMatchCharLength to 1 for repo search#114582

Merged
evanpurkhiser merged 1 commit intomasterfrom
evanpurkhiser/fix-repos-set-minmatchcharlength-to-1-for-repo-search
May 1, 2026
Merged

fix(repos): Set minMatchCharLength to 1 for repo search#114582
evanpurkhiser merged 1 commit intomasterfrom
evanpurkhiser/fix-repos-set-minmatchcharlength-to-1-for-repo-search

Conversation

@evanpurkhiser
Copy link
Copy Markdown
Member

@evanpurkhiser evanpurkhiser commented May 1, 2026

The global Fuse default of minMatchCharLength=2 caused a single-character query to activate the filter (returning {} instead of undefined) while matching nothing, showing "No repositories match your search" immediately on the first keystroke.

The global Fuse default of minMatchCharLength=2 caused a single-character
query to return zero matches while still activating the filter, showing
"No repositories match your search" immediately on the first keystroke.
@evanpurkhiser evanpurkhiser requested a review from a team as a code owner May 1, 2026 17:33
@evanpurkhiser evanpurkhiser requested a review from jaydgoss May 1, 2026 17:33
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) May 1, 2026 17:33
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 1, 2026
Copy link
Copy Markdown
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Should we consider making this the global default?

@evanpurkhiser evanpurkhiser merged commit 884fb73 into master May 1, 2026
72 of 73 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/fix-repos-set-minmatchcharlength-to-1-for-repo-search branch May 1, 2026 17:47
cleptric pushed a commit that referenced this pull request May 5, 2026
The global Fuse default of `minMatchCharLength=2` caused a
single-character query to activate the filter (returning `{}` instead of
`undefined`) while matching nothing, showing "No repositories match your
search" immediately on the first keystroke.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants