Skip to content

Add a load more button to algolia search bars#3249

Merged
joepavitt merged 3 commits into
mainfrom
add-a-load-more-button-to-algolia-search-boxes
Jun 2, 2025
Merged

Add a load more button to algolia search bars#3249
joepavitt merged 3 commits into
mainfrom
add-a-load-more-button-to-algolia-search-boxes

Conversation

@cstns
Copy link
Copy Markdown
Contributor

@cstns cstns commented May 13, 2025

Description

Add a load more button to algolia search bars.

Since algolia's autocomplete.js lib does not have a built in 'load more' functionality, I had to get creative with the implementation. Making the results per page dynamic and re-triggering the search functionality while increasing the no. of results per page does the trick quite nicely.

Related Issue(s)

part of #3185

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated

@cstns cstns requested a review from joepavitt May 13, 2025 13:24
@cstns cstns self-assigned this May 13, 2025
@joepavitt
Copy link
Copy Markdown
Contributor

joepavitt commented Jun 2, 2025

Just needed to add some hover behaviour on button, but it's now all good. Will merge on passing tests

@joepavitt joepavitt merged commit ee31842 into main Jun 2, 2025
5 checks passed
@joepavitt joepavitt deleted the add-a-load-more-button-to-algolia-search-boxes branch June 2, 2025 09:30
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.

2 participants