Skip to content
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 and Top Polls Feature #40

Merged
merged 5 commits into from
May 16, 2024
Merged

Add Pagination and Top Polls Feature #40

merged 5 commits into from
May 16, 2024

Conversation

tristenwallace
Copy link
Owner

Summary

This pull request introduces pagination to the poll listing and updates the home page to display the top 5 polls for non-logged-in users. The PollFilter component has been added to manage pagination and list length filtering, allowing for a more organized and scalable codebase.

Changes Made

Added PollPagination Component:

Created a new PollFilter component to handle pagination and list length filtering.
This component manages pagination state and passes the filtered list of polls to the PollList component.

Updated Home Component:

Added logic to sort polls by the total number of votes and display the top 5 polls for users who are not logged in.

Incorporated the new PollPagination component to manage and display polls with pagination for logged-in users.

Simplified UI

@tristenwallace tristenwallace merged commit aaa5c0b into main May 16, 2024
2 checks passed
@tristenwallace tristenwallace deleted the pagination branch May 16, 2024 17:33
@tristenwallace
Copy link
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Filtering and Limit Controls for Polls and Leaderboard Listings
1 participant