feat: add saved searches - #36
Conversation
|
@ShashankShekhar31 is attempting to deploy a commit to the arnabnandy7's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Adds “saved searches” to the Issue Finder, persisting user-selected filters (tech/label/sort/linked PR/Hacktoberfest) in browser localStorage so searches can be rerun or deleted across sessions.
Changes:
- Introduces typed
localStoragepersistence utilities for saved searches (load/add/delete + validation). - Extends the Issue Finder UI to save the current filter set under a user-provided name, list saved searches, rerun them, and delete them.
- Adds a search “override” pathway so rerunning a saved search uses the saved parameters immediately.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/features/issues/lib/saved-searches.ts | Adds saved-search storage/validation helpers backed by localStorage. |
| src/features/issues/components/issue-finder.tsx | Adds Saved Searches UI + wiring to persist, rerun, and delete saved searches. |
Suppressed comments (3)
src/features/issues/components/issue-finder.tsx:126
- The body of
handleRunSavedSearchis not indented consistently with the rest of this file; formatting it will improve readability and keep the file consistent.
setTech(savedSearch.tech);
setLabel(savedSearch.label);
setSort(savedSearch.sort);
setLinkedPr(savedSearch.linkedPr);
setHacktoberfest(savedSearch.hacktoberfest);
src/features/issues/components/issue-finder.tsx:141
- The
searchIssuesparameter list and the initial override-handling block are not indented consistently (compared to the rest of the function and surrounding code), which hurts readability and can trip format/lint checks.
async function searchIssues(
event?: FormEvent<HTMLFormElement>,
searchOverride?: {
tech: string;
label: string;
src/features/issues/components/issue-finder.tsx:413
- The new "Saved searches"
<Card>block has inconsistent JSX indentation (child components are less-indented than the parent), which makes this section much harder to scan and maintain.
<Card>
<CardHeader>
<CardTitle className="text-base">Saved searches</CardTitle>
<CardDescription>
Save your current filters and reuse them later.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Addressed the requested review feedback:
Also verified locally with The latest changes are pushed to the PR. |



Summary
Implements saved searches for the issue finder using browser localStorage.
Changes
localStorageValidation
git diff --checkpassesnpm run buildpassesCloses #13