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 last page shortcut to Author works list #8525

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

sbwhitt
Copy link
Collaborator

@sbwhitt sbwhitt commented Nov 14, 2023

Closes #8420

Adds a shortcut to the last page of an author's works on the author page.

Technical

Testing

On an author record that has more than 10 pages of works, verify that the last page number is shown separated by an ellipsis.
Additionally, verify that the ellipsis is not present when the last page would normally be shown.

Screenshot

The last page being shown as an option at the beginning of the works.
(For testing, the number of works per page was set to 10 instead of 20)
image

When towards the back pages, the shortcut is not displayed.
image

Stakeholders

@cdrini

@sbwhitt sbwhitt marked this pull request as draft November 14, 2023 16:52
@sbwhitt sbwhitt force-pushed the feat/author-last-page branch from 50a12ee to e31d652 Compare November 15, 2023 02:14
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c46e517) 16.00% compared to head (50a12ee) 16.00%.

❗ Current head 50a12ee differs from pull request most recent head e31d652. Consider uploading reports for the commit e31d652 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8525   +/-   ##
=======================================
  Coverage   16.00%   16.00%           
=======================================
  Files          86       86           
  Lines        4692     4692           
  Branches      822      822           
=======================================
  Hits          751      751           
  Misses       3416     3416           
  Partials      525      525           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sbwhitt sbwhitt marked this pull request as ready for review November 15, 2023 18:16
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Phenomenal! Works like a charm! Tested on authors, search results, lists, and trending.

@cdrini cdrini merged commit ba81b43 into internetarchive:master Nov 24, 2023
2 checks passed
@cdrini cdrini added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Nov 24, 2023
@sbwhitt sbwhitt deleted the feat/author-last-page branch November 26, 2023 02:18
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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.

Page number option
4 participants