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.
Important
This PR depends on PR #297 and is based on its branch.
This PR will be rebased after dependent PR is merged
Do not merge until dependent PR is merged and rebase occurs
Fixing Search Bugs
Problem
Four bugs in both search pages feature affecting user experience
Users couldn't backspace to clear the search field completely so the last character always would persist
Searching from page 3 would return page 3 of the new results instead of page 1
Clicking a page button while the input field had changes would use the input value instead of the search query
The search button briefly showed "Searching..." when navigating between pages, even though the user wasn't initiating a new search
Solution
DId some coding to fix each bug
Result
The search input now allows full clearing, new searches always start at page 1, pagination respects the committed query from the URL, and the search button only shows "Searching..." during actual search submissions and not during page navigation
Test Plan
make up