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

Add autocomplete to search index #3604

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Add autocomplete to search index #3604

merged 3 commits into from
Dec 12, 2024

Conversation

kevindew
Copy link
Member

We've tried to add autocomplete to each site search input on GOV.UK. When reviewing this we noticed that one of them was missed, the one on https://www.gov.uk/search.

This PR corrects this by adding it to this page, with the first two commits doing foundational work for this change. More info in the commits.

We intend to use the conditional for which search component we use in
two places now: the search results page and the search entry form.

To facilitate this without requiring code to be copied I have moved the
logic for this into a helper method.
I intend to add a conditional to the index action of SearchController
and I want to test it. When I went to implement this I noticed there
were not any specs for the action so I thought adding some basic tests
would be appropriate.
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3604 December 12, 2024 08:58 Inactive
@kevindew kevindew force-pushed the show-autocomplete-on-search branch from 7434f92 to 4483a87 Compare December 12, 2024 09:03
We've tried to add autocomplete to each site search input on GOV.UK.
When reviewing this we noticed that one of them was missed, the one on
https://www.gov.uk/search.

This commit corrects this by adding the component here.
@kevindew kevindew force-pushed the show-autocomplete-on-search branch from 4483a87 to 4d75152 Compare December 12, 2024 09:03
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3604 December 12, 2024 09:03 Inactive
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3604 December 12, 2024 09:04 Inactive
@kevindew kevindew merged commit fec88b7 into main Dec 12, 2024
12 checks passed
@kevindew kevindew deleted the show-autocomplete-on-search branch December 12, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants