Skip to content

🐛 fix(#601): Persist Search & Category Filters Across Modal Open/Close#720

Closed
priya05-git wants to merge 1 commit into
steam-bell-92:mainfrom
priya05-git:feature/your-project-name
Closed

🐛 fix(#601): Persist Search & Category Filters Across Modal Open/Close#720
priya05-git wants to merge 1 commit into
steam-bell-92:mainfrom
priya05-git:feature/your-project-name

Conversation

@priya05-git
Copy link
Copy Markdown
Contributor

📝 Description
Fixes a bug where applying a category filter or typing a search query, then opening and closing a project modal, caused all filters to silently reset to their default state — forcing users to reapply them every time they viewed a project.

Root causes identified and fixed.

Additional improvements:
× (Clear) button wired to reset query and refilter cards
Ctrl+K shortcut added to focus the search bar
Added missing CSS rules: .search-bar, .search-clear, .dropdown-label

🔗 Linked Issue
Closes #601

📋 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.

…dal open/close

- Add missing #projectSearch input bar to index.html (was referenced
  in JS but never existed in the DOM)
- Add performSearch() function that filters cards by query + category
- Wire search input event: debounced, saves currentSearchQuery to sessionStorage
- Wire searchClear button to reset query and refilter cards
- Tab click handler now updates and persists currentCategory
- moveTabFocus() also persists currentCategory on keyboard nav
- On page load, restore currentCategory and currentSearchQuery
- closeProjectSafe() re-applies filters after modal closes
- Add Ctrl+K shortcut to focus search
- Add .search-bar, .search-clear, .dropdown-label CSS rules

Fixes: steam-bell-92#601
@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

@priya05-git is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@priya05-git priya05-git marked this pull request as draft May 24, 2026 13:09
@priya05-git priya05-git marked this pull request as ready for review May 24, 2026 13:40
@priya05-git
Copy link
Copy Markdown
Contributor Author

Hi @steam-bell-92 by mistake i have pushed all the files i tried alot to resolve the conflict but unable to solve .
Please merge my PR request or suggest me what should i do .

@steam-bell-92
Copy link
Copy Markdown
Owner

@priya05-git can you redo the PR as there are too many merge conflicts after my recent commits in repo. Make sure to upstream

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 & Category Filters Reset After Closing Project Modal

2 participants