feat: add search history tracking with recency-based suggestions (#124) - #229
Closed
bbkenny wants to merge 1 commit into
Closed
feat: add search history tracking with recency-based suggestions (#124)#229bbkenny wants to merge 1 commit into
bbkenny wants to merge 1 commit into
Conversation
…ioBitsStellar#124) - Add hooks/useSearchHistory.ts hook for managing search history in localStorage - Max 20 unique searches stored, deduplicated, sorted by recency - Integrate useSearchHistory into SearchOverlay component - Show recent searches as dropdown when search input is empty - Allow clicking on a suggestion to populate and submit the search - Add clear history button with Trash2 icon - Each search query saved with timestamp
|
@thebabalola is attempting to deploy a commit to the akatenvictor's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Closes #124
Summary
Added search history tracking with recency-based suggestions to the SearchOverlay component. Users can now see their recent searches as autocomplete suggestions when the search overlay opens, reducing typing and speeding up content discovery.
What changed
New hook
hooks/useSearchHistory.ts:"search-history"addSearch,clearHistory, andsuggestionsAPIUpdated
components/common/SearchOverlay.tsx:useSearchHistoryhookAcceptance Criteria
Verification
npm run lint— no new warnings or errors introduced by this changenpm run test— 170/170 tests passnpm run build— builds successfully (pre-existing TS errors in unrelated files remain unchanged)