fix(web): support fuzzy project search - #8434
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
ApprovabilityVerdict: Approved at 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. |
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
Created with GPT-5.6 Sol via Codex in T3 Code.
Note
Add fuzzy subsequence matching to
CommandPaletteproject searchReplaces substring-based matching with
scoreSubsequenceMatchfrom@t3tools/shared/searchRankingin CommandPalette.logic.ts.rankSearchFieldMatchnow treats fields without a subsequence match asNumber.NEGATIVE_INFINITY, andfilterCommandPaletteGroupsfilters items whose computed rank is0instead of gating on substring inclusion. The existing equality andstartsWithrank cases are unchanged.scoreSubsequenceMatchbehavior on edge-case queries like repeated characters.📊 Macroscope summarized 7be7d43. 1 file reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues