-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 to project list #4990
Conversation
Related to #4918 Add pagination to the project list to improve navigation and reduce scroll time. * Add pagination controls (Next, Previous) to `index.html` below the project list. * Add a container for pagination controls in `index.html`. * Add a function to handle pagination logic in `javascripts/app.js`. * Update the `renderProjects` function in `javascripts/app.js` to render the correct page of projects. * Add event listeners for pagination controls in `javascripts/app.js`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/up-for-grabs/up-for-grabs.net/issues/4918?shareId=XXXX-XXXX-XXXX-XXXX).
👋 I'm a robot checking the state of this pull request to save the human reviewers time. I don't see any changes under As you make changes to this pull request, I'll re-run these checks. |
Does this work as expected? I'm using this link to test pagination of |
* **index.html** - Add pagination controls (Next, Previous) below the project list - Add a container for pagination controls * **javascripts/app.js** - Add a function to handle pagination logic - Update the renderProjects function to render the correct page of projects - Add event listeners for pagination controls
* **index.html** - Add pagination controls (Next, Previous) below the project list - Add a container for pagination controls * **javascripts/app.js** - Add a function to handle pagination logic - Update the `renderProjects` function to render the correct page of projects - Add event listeners for pagination controls
* **index.html** - Add pagination controls (Next, Previous) below the project list - Add a container for pagination controls * **javascripts/app.js** - Add a function to handle pagination logic - Update the `renderProjects` function to render the correct page of projects - Add event listeners for pagination controls - Fix the issue where next and previous buttons are disabled
* Remove the function to handle pagination logic * Update the `renderProjects` function to remove pagination logic * Remove event listeners for pagination controls
* **index.html** - Add pagination controls (Next, Previous) below the project list - Add a container for pagination controls * **javascripts/app.js** - Add a function to handle pagination logic - Update the `renderProjects` function to include pagination logic - Add event listeners for pagination controls
* **index.html** - Add pagination controls (Next, Previous) below the project list - Add a container for pagination controls * **javascripts/app.js** - Add a function to handle pagination logic - Update the `renderProjects` function to render the correct page of projects - Add event listeners for pagination controls
* **index.html** - Add pagination controls (Next, Previous) below the project list - Add a container for pagination controls * **javascripts/app.js** - Add a function to handle pagination logic - Update the `renderProjects` function to render the correct page of projects - Add event listeners for pagination controls - Fix the issue of showing more than 15 cards per page - Add a function to validate pagination logic - Add a function to ensure buttons functionality works properly - Add logic to disable/undisable buttons based on data
This pull request introduces pagination functionality to the projects panel on the website. It includes changes to both the HTML and JavaScript files to implement and handle pagination logic.
Pagination functionality:
index.html
: Added pagination controls with "Previous" and "Next" buttons and a page information display.javascripts/app.js
: Removed@ts-nocheck
directive and added a function to handle pagination logic.JavaScript enhancements:
javascripts/app.js
: Updated therenderProjects
function to render the correct page of projects and added event listeners for pagination controls.javascripts/app.js
: Added functions to validate pagination logic and ensure buttons functionality.This pull request introduces pagination functionality to the projects panel in the web application. The key changes include adding pagination controls to the HTML, updating the JavaScript to handle pagination logic, and modifying therenderProjects
function to support paginated data.HTML changes:
Previous
andNext
buttons) to the projects panel inindex.html
.JavaScript changes:
@ts-nocheck
directive fromjavascripts/app.js
.paginateProjects
function to handle slicing the projects array based on the current page and limit.renderProjects
function to render the correct page of projects and added logic to update pagination controls.Add pagination to the project list to improve navigation and reduce scroll time.
index.html
below the project list.index.html
.javascripts/app.js
.renderProjects
function injavascripts/app.js
to render the correct page of projects.javascripts/app.js
.For more details, open the Copilot Workspace session.