Skip to content

fix: preserve search history#983

Open
samarthchawla2005 wants to merge 1 commit into
steam-bell-92:mainfrom
samarthchawla2005:search-history-fix
Open

fix: preserve search history#983
samarthchawla2005 wants to merge 1 commit into
steam-bell-92:mainfrom
samarthchawla2005:search-history-fix

Conversation

@samarthchawla2005
Copy link
Copy Markdown
Contributor

📝 Description

  1. Overall changes
  • Search history is now saved only when you actually mean to search, not while typing.
  • Typing in the search box now just shows results, but does not save anything.
  • Searches are saved when you:
    • Press Enter
    • Click a suggestion
    • Leave the search box (blur)
  1. Recent searches improvements
  • Added a “Clear All” button at the top of recent searches.
  • You can now delete all recent searches in one click.
  1. Clear All Search Pop-Up
  • Formed a custom popup based on website design to Clear All searches.
  • If the custom popup is not available, it still falls back to the default browser confirm.

Behavior changes

  • Recent searches are now cleaner and more meaningful (no partial words like “a”, “ap”, etc.).
  • Search feels smoother because it doesn’t constantly save while typing.
  • Overall interaction is more intentional and user-friendly.
image image image

🔗 Linked Issue

Closes #847


📋 Contribution Checklist

  • My code strictly adheres to the project guidelines (Standard library only, procedural code, clean spacing).
  • I have verified that my files are placed in the correct directory.
  • I have tested my changes thoroughly on my local machine.
  • I have included interactive emojis and clean console/UI outputs.
  • GSSoC 2026: I have been formally assigned to this issue and noted it above.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

@samarthchawla2005 is attempting to deploy a commit to the Anuj'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

None yet

Development

Successfully merging this pull request may close these issues.

🐛 [Bug]: Search History stores every typed character variation separately and also do not have a Clear All button.

1 participant