feat(tasks): implement fuzzy search using Fuse.js#217
Merged
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom Nov 25, 2025
Merged
feat(tasks): implement fuzzy search using Fuse.js#217its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
Conversation
Replaces the previous exact-match `.includes()` search with a more flexible and powerful fuzzy search. Users can now find tasks even with partial matches or typos, improving workflow efficiency and overall usability. Key changes: - Integrated `Fuse.js` to perform fuzzy matching across `description`, `project`, and `tags`. - Added a dual-state search pattern (`searchInput` + `debouncedTerm`) to keep typing responsive while debouncing the expensive search operation. - Consolidated all filters (projects, tags, status) and fuzzy search into a single "Master Filter" `useEffect`, ensuring all filters interact correctly. - Updated Jest tests using `jest.useFakeTimers()` and `act` to validate the debounced fuzzy search, including typo-tolerant queries like "fiace". Fixes: CCExtractor#162
6 tasks
its-me-abhishek
approved these changes
Nov 25, 2025
ShivaGupta-14
added a commit
to ShivaGupta-14/ccsync
that referenced
this pull request
Dec 25, 2025
Replaces the previous exact-match `.includes()` search with a more flexible and powerful fuzzy search. Users can now find tasks even with partial matches or typos, improving workflow efficiency and overall usability. Key changes: - Integrated `Fuse.js` to perform fuzzy matching across `description`, `project`, and `tags`. - Added a dual-state search pattern (`searchInput` + `debouncedTerm`) to keep typing responsive while debouncing the expensive search operation. - Consolidated all filters (projects, tags, status) and fuzzy search into a single "Master Filter" `useEffect`, ensuring all filters interact correctly. - Updated Jest tests using `jest.useFakeTimers()` and `act` to validate the debounced fuzzy search, including typo-tolerant queries like "fiace". Fixes: CCExtractor#162
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.
Description
This PR adds fuzzy search to the Tasks screen using
Fuse.js, replacing the previous exact-match.includes()search.With this, users can now find tasks using partial matches or minor typos.
Fixes: #162
Key Changes
Fuzzy Search Integration
Fuse.jsfor fuzzy matching ondescription,project, andtags.Improved Search UX
searchInput+debouncedTerm) with 300ms debounce.Unified Filtering Logic
useEffect.Test Updates
"fiace"→"Finance").Checklist
npx prettier --write .gofmt -w .(Go backend)npm testAdditional Notes
Video demo: Click here to see