Skip to content

Recent searches history#1279

Open
anushkagupta200615-jpg wants to merge 3 commits into
CodeGraphContext:mainfrom
anushkagupta200615-jpg:recent-searches-history
Open

Recent searches history#1279
anushkagupta200615-jpg wants to merge 3 commits into
CodeGraphContext:mainfrom
anushkagupta200615-jpg:recent-searches-history

Conversation

@anushkagupta200615-jpg

@anushkagupta200615-jpg anushkagupta200615-jpg commented Jun 17, 2026

Copy link
Copy Markdown

📌 Description

This PR addresses issue #1223 by implementing a LocalStorage-backed "Recent Queries" component inside the CodeGraphViewer dashboard to prevent loss of search context during extensive graph explorations.

🚀 Changes Made

  • Added recentSearches state hooked up to localStorage key cgc_recent_searches.
  • Added logic to automatically capture and sync search queries up to a limit of 8 unique terms whenever the user hits the Enter key in the filter input.
  • Rendered a lightweight list of clickable pills beneath the active search form wrapper.
  • Clicking a historical search string instantly sets the active query, triggering a graph filter reload, and bumping the clicked query to the front of the recent history.

Resolves #1223

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

@anushkagupta200615-jpg is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

Status: Backlog tasks

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Implement LocalStorage-Backed Recent Search Queries History on Explorer Dashboard

1 participant