🐛 fix(#601): Persist Search & Category Filters Across Modal Open/Close#720
Closed
priya05-git wants to merge 1 commit into
Closed
🐛 fix(#601): Persist Search & Category Filters Across Modal Open/Close#720priya05-git wants to merge 1 commit into
priya05-git wants to merge 1 commit into
Conversation
…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
|
@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. |
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 . |
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 |
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.
📝 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.