Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autocomplete results showing up on pageload #10491

Merged

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented Feb 21, 2025

Closes #10484
Closes #10485

Addendum to #10415 ; we only want to show the results if the user has focus in the search bar component.

Technical

Testing

https://testing.openlibrary.org/search?q=harry+potter&mode=everything does not auto-show the auto complete, but changing the search type selector does cause them to appear.

Screenshot

Stakeholders

@cdrini cdrini force-pushed the fix/auto-autocomplete-results branch from 4ad8cb7 to 51ef9b9 Compare February 21, 2025 07:25
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 17.27%. Comparing base (606faaf) to head (51ef9b9).
Report is 433 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10491      +/-   ##
==========================================
- Coverage   17.31%   17.27%   -0.04%     
==========================================
  Files          87       87              
  Lines        4835     4845      +10     
  Branches      856      860       +4     
==========================================
  Hits          837      837              
- Misses       3471     3477       +6     
- Partials      527      531       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Feb 21, 2025
@jimchamp jimchamp merged commit 0af88bc into internetarchive:master Feb 21, 2025
4 checks passed
@cdrini cdrini deleted the fix/auto-autocomplete-results branch February 21, 2025 17:42
@tfmorris
Copy link
Contributor

What is holding up this fix? The broken behavior is super annoying!

@cdrini
Copy link
Collaborator Author

cdrini commented Feb 27, 2025

This should've gone out earlier that's my bad. The deploy just finished and should be out now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Response Issues which require feedback from lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search autocomplete results are displayed on search page load
4 participants