Skip to content

fix(web): support fuzzy project search - #8434

Open
davidhu2000 wants to merge 2 commits into
pingdotgg:mainfrom
davidhu2000:fix/project-fuzzy-search
Open

fix(web): support fuzzy project search#8434
davidhu2000 wants to merge 2 commits into
pingdotgg:mainfrom
davidhu2000:fix/project-fuzzy-search

Conversation

@davidhu2000

@davidhu2000 davidhu2000 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Project search required a contiguous substring, so natural abbreviations could hide projects whose names contain separators

Use the existing shared subsequence matcher while preserving exact, prefix, and substring ranking.

the search below used to return no results, now it does fuzzy matching similar to the skills search

Screenshot 2026-08-27 at 10 45 26 AM

Created with GPT-5.6 Sol via Codex in T3 Code.

Note

Add fuzzy subsequence matching to CommandPalette project search

Replaces substring-based matching with scoreSubsequenceMatch from @t3tools/shared/searchRanking in CommandPalette.logic.ts. rankSearchFieldMatch now treats fields without a subsequence match as Number.NEGATIVE_INFINITY, and filterCommandPaletteGroups filters items whose computed rank is 0 instead of gating on substring inclusion. The existing equality and startsWith rank cases are unchanged.

  • Risk: items that previously matched only via raw substring but do not form a subsequence of the query will no longer appear in results; verify scoreSubsequenceMatch behavior on edge-case queries like repeated characters.
📊 Macroscope summarized 7be7d43. 1 file reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted

🗂️ Filtered Issues

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2027d5c5-3365-4d42-99c8-9afb5bfbeec2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 27, 2026
Comment thread apps/web/src/components/CommandPalette.logic.ts
@macroscopeapp

macroscopeapp Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at d266054

Macroscope's review found this PR approvable — This is a small, self-contained command-palette search fix that adds fuzzy matching while preserving existing exact, prefix, substring, and cross-field behavior. Its runtime effect is limited to search result filtering and ranking, with no sensitive, schema, infrastructure, or broad architectural changes.

You can add or adjust custom eligibility rules. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant