feat: Added a Reset/Clear Filters button to search form - #298
Conversation
|
@DeepeshKafalatiya is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi mentors, I have completed the implementation for issue #141. The form now correctly clears all filters, manages custom tag chips safely, and returns the cursor focus back to the primary inputs. Manual and local verification scripts have passed cleanly. Please review and approve the workflows when free. Thank you! |
|
Hi mentors! I've updated the implementation. The button logic has been cleanly integrated directly into |
komalharshita
left a comment
There was a problem hiding this comment.
Good contribution overall. Adding a Reset/Clear Filters button is a practical UX improvement that makes the search workflow smoother and more user-friendly, especially when multiple filters are applied.
The feature is well-scoped, useful, and fits naturally into the existing filtering system without introducing unnecessary complexity.
Minor future considerations would be ensuring all filter states/search inputs reset consistently and verifying keyboard accessibility behavior, but the current implementation looks solid and merge-ready.
Approved for merge.
Summary [required]
This pull request introduces a dedicated "Clear Filters" button to the main project recommendation form. Previously, users had to manually delete text from inputs and reset individual dropdown fields if they wanted to perform a brand-new search query. Adding a single-click reset button improves the application's layout accessibility and significantly smoothens the user journey when interacting with project recommendations.
Related Issue [required]
Closes #141
Type of Change [required]
What Was Changed [required]
templates/index.html.form-actionsflexbox container and added the secondary styled layout for the.btn-clearbutton element.static/script.jsselectedSkills, clears any visual text or generated skill chips, and resets element focuses natively.How to Test This PR [required]
git checkout feature/clear-filters-btnpip install -r requirements.txtpython app.pypython tests/test_basic.pyExpected test output:
27 passed, 0 failed out of 27 tests
Test Results [required]
27 passed, 0 failed out of 27 tests
Screenshots
Self-Review Checklist [required]
feat/,fix/,docs/,data/,style/,test/python tests/test_basic.pyand all 27 tests passflake8 .locally and there are no errorsprint()orconsole.log()debug statementsNotes for Reviewer
The new button logic handles native HTML form clearing using
form.reset(), but is intentionally integrated directly insidestatic/script.jsto clear the state of the active globalselectedSkillsarray tracker. This ensures complete data synchronization between the visual frontend elements and the underlying application query state.