-
Notifications
You must be signed in to change notification settings - Fork 67
Feature/205 add pagination #206
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive pagination functionality to the home page, allowing users to control how many cards are displayed and navigate through results. The implementation includes support for filtering integration, ensuring pagination works seamlessly with existing search and category filter features.
Key changes:
- Added pagination controls with dropdown for page size selection (6, 12, 24, 48 items)
- Implemented previous/next navigation buttons with Bootstrap icons
- Created comprehensive test coverage for pagination logic and UI components
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/scripts/paginate.ts | Core pagination logic managing card display, navigation, and filter integration |
| src/scripts/paginate.test.ts | Comprehensive test suite covering pagination functionality and edge cases |
| src/components/CardList.astro | Updated UI to include pagination controls and navigation buttons |
| src/components/CardList.test.ts | Added tests for pagination UI rendering and component structure |
| src/scripts/hero-action.ts | Modified to dispatch events for pagination refresh when filters change |
| src/styles/global.css | Added CSS styling for pagination controls and dark mode support |
| src/pages/index.astro | Added bootstrap-icons dependency and pagination script import |
| package.json | Added bootstrap-icons and @types/jsdom dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
|
Hi @KC900201 |
Include pagination logic to home page
Improvements completed:
6is default)Screenshot:
Before
After