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

贡献者指南