algolia / algolia/wordpress-search

Add page numbers in the infinite scroll navigation

Open
#5 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

There are a lot of discussion around infinite scroll, some people like it, some other don't most of the time due to the lack of pagination. Based on discussion I had with several people in the last months, it seems that a good way / compromise is to offer a good UX is to add page numbers to the results: like for instance on Google image

![image](https://cloud.githubusercontent.com/assets/1101220/8143435/3c963a08-11ac-11e5-859e-a2d7bdd21767.png)

Once that done, we could easily add the page number in the URL, so people could jump straight to the right page. They would then have a button on top of the list to load / display previous pages.

Since it would be our first demo to implement this best practice, it could be a real good example to share, and in the same time, a good opportunity for us to spread the world.

What do you think?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing infinite-scroll results navigation in the WordPress search website and the discussion in this issue. The proposal calls for visible page numbers, page numbers in the URL, and a way to load or display previous pages; completion would require agreeing on the intended UX and confirming each behavior works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.