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

Added pagination to account holds history #1491

Merged
merged 1 commit into from
May 20, 2024

Conversation

crismali
Copy link
Contributor

What it does

Adds pagination to the accounts hold history page.

Why it is important

This will prevent long page load times for long time users. See #1475.

UI Change Screenshot

Screenshot 2024-05-12 at 3 01 48 AM

Implementation notes

I wasn't sure how many holds should be shown on each page, so I just left it as the pagy default.

The test I added might be considered redundant, but I figured I'd leave it in for now. It technically doesn't test the pagination functionality itself. I'm happy to make it do so, but I decided to hold off after I couldn't find a similar test for the other uses of pagy in the app.

I also left a small change in the Gemfile.lock regarding the installation of Nokogiri on laptops like mine.

Copy link
Member

@jim jim left a comment

Choose a reason for hiding this comment

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

This looks good to me!

@jim jim merged commit 26482f9 into main May 20, 2024
9 checks passed
@jim jim deleted the add-pagination-to-account-holds-history branch May 20, 2024 03:45
@jim
Copy link
Member

jim commented May 20, 2024

I think it's OK to not test the pagination directly- in theory the Pagy library should do that itself.

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.

None yet

2 participants