Skip to content

feat(leaderboard): added page indicator (@Repr-dev)#7818

Open
Repr-dev wants to merge 2 commits intomonkeytypegame:masterfrom
Repr-dev:master
Open

feat(leaderboard): added page indicator (@Repr-dev)#7818
Repr-dev wants to merge 2 commits intomonkeytypegame:masterfrom
Repr-dev:master

Conversation

@Repr-dev
Copy link
Copy Markdown

@Repr-dev Repr-dev commented Apr 12, 2026

Description

At the moment, it is impossible to tell which page of monkeytype.com/leaderboards you are on just from the content of the webpage. One must look at the URL parameters (/leaderboards?...&page=X) in order to get this information. So, I added a numerical indicator next to the page control buttons.

All this code does is add a span element in the same container as the page control buttons. The span is placed to the left of the buttons and is given a lot of the same Tailwind classes. The page number in the span comes from the data that is already being passed down to the buttons.

Old:
image

New (replication of my approach, made with Chrome Inspector):
image

Stems from Discussion #7815. First open source contribution

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Apr 12, 2026
@Repr-dev Repr-dev marked this pull request as ready for review April 15, 2026 12:57
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label Apr 15, 2026
@Miodec
Copy link
Copy Markdown
Member

Miodec commented Apr 30, 2026

Maybe something like this instead?
image

@Miodec Miodec added the waiting for update Pull requests or issues that require changes/comments before continuing label Apr 30, 2026
@Miodec
Copy link
Copy Markdown
Member

Miodec commented Apr 30, 2026

Or we could go with something more classic
image

@github-actions github-actions Bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Apr 30, 2026
@Repr-dev
Copy link
Copy Markdown
Author

@Miodec 5c9f425, should look like this:
image

I thought I'd go with your first proposition to preserve the clear user page and go-to-page buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants