swmcc/second_breakfast

✨ Add pagination for recipes list

Open

#63 建立於 2025年11月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)HTML (0 fork)auto 404
enhancementgood first issue

倉庫指標

Star
 (0 star)
PR 合併指標
 (PR 指標待抓取)

描述

Description

Add pagination to the recipes index page to improve performance and UX when there are many recipes.

Implementation options

  • Use Kaminari gem (already in funeralsni project)
  • Add pagination controls to views
  • Configure items per page (suggest 12-24 recipes)
  • Update search to work with pagination

Views to update

  • app/views/recipes/index.html.erb
  • app/controllers/recipes_controller.rb

Bonus

  • Add infinite scroll option
  • Preserve pagination state in basket actions

貢獻者指南