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

set All as default for search bar #9032

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

RayBB
Copy link
Collaborator

@RayBB RayBB commented Apr 4, 2024

Ever notice how every time you go to a page on OL the search bar selector flickers a bit?

Current issue

flicker2

Well this will fix it. At least for all the users that keep it set to the default of All.

After this PR

after_flicker2

Technical

Testing

Screenshot

Stakeholders

@RayBB RayBB added the Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] label Apr 4, 2024
Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @RayBB!

The flash still exists if the patron has selected something other than All. This wouldn't be an issue if we didn't set the search mode to the last selected mode...

Anyway, I think that this prevents the flash for most patrons in most cases, which seems like a win to me.

@jimchamp jimchamp merged commit 53fb146 into master Apr 5, 2024
3 checks passed
@jimchamp jimchamp added On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing and removed Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] labels Apr 5, 2024
@jimchamp jimchamp self-assigned this Apr 5, 2024
@cdrini cdrini deleted the default-search-feature branch April 5, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants