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 pagination for wishlist_items. #141 #151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nenadmil
Copy link

Resolves #141

Add pagination for wishlist_items using kaminari gem.

@micahbales micahbales temporarily deployed to project-playtime-stagin-pr-151 October 21, 2017 20:36 Inactive
Copy link
Collaborator

@leesharma leesharma left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! 🎉

Note: I set this up as a review app with 50 corgis: review app

The code looks good, but I've got a few bugs/change requests before merging:

  • Bug - On the wishlist page, it looks like all 50 items are shown (not just the first 10), despite the pagination links being at the bottom.

  • Request - The pagination links appear on the page, but they're not styled. Could you add the appropriate Bootstrap styles?

    Current view: unstyled pagination

  • Request - This is a small one! Since the partials are so big, could you please change the default page size to 5?

Again, thank you for the PR! Let me know if you have any questions about my review comments!

@@ -0,0 +1,12 @@
# frozen_string_literal: true
Kaminari.configure do |config|
config.default_per_page = 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

The config looks good!

Since our wishlist item partials are so large, could you please set the default to 5?

@micahbales micahbales temporarily deployed to project-playtime-stagin-pr-151 October 23, 2017 19:27 Inactive
@nenadmil
Copy link
Author

Hi,

I fixed all, but there is a known problem with bullet that pops-up:
flyerhzm/bullet#147

Regards,
Nenad

@micahbales micahbales temporarily deployed to project-playtime-stagin-pr-151 November 6, 2017 04:11 Inactive
@micahbales micahbales temporarily deployed to project-playtime-stagin-pr-151 November 21, 2017 03:33 Inactive
@micahbales micahbales temporarily deployed to project-playtime-stagin-pr-151 December 7, 2017 23:21 Inactive
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.

3 participants