Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Add pagination for wishlist_items. #141#151

Open
nenadmil wants to merge 2 commits intorubyforgood:master from
nenadmil:b141-pagination-wishlist-items
Open

Add pagination for wishlist_items. #141 #151
nenadmil wants to merge 2 commits intorubyforgood:master from
nenadmil:b141-pagination-wishlist-items

Conversation

@nenadmil
Copy link

@nenadmil nenadmil commented Oct 21, 2017

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

@leesharma leesharma Oct 21, 2017

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
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

Reviewers

@leesharma leesharma leesharma requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /