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

Resolve search functionality bug with pagination #1116

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

Slacky300
Copy link
Contributor

Description

This PR addresses the pagination issue where search results did not paginate correctly.

Related Issues

Fixes #1096

Changes Proposed

  • Flattened combined data structure for profile handling.

  • Reset current page to 1 on search to display the first page of search results.

  • Updated pagination logic to work with both full and filtered datasets.

  • In handleSearch function I reset the pag to 1 to show the first page of the search results

    handleSearch

  • updated the logic to render the search list based on the search results

    return logic

Checklist

  • I have read and followed the Contribution Guidelines.
  • All new and existing tests passed.
  • I have updated the documentation to reflect the changes I've made.
  • My code follows the code style of this project.
  • The title of my pull request is a short description of the requested changes.

Copy link

vercel bot commented Aug 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dev-find ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 0:30am

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @Slacky300! 🎉 Thank you for opening a pull request. Your contribution is valuable and we appreciate your efforts to improve our project.

Soon the maintainers/owner will review it and provide you with feedback/suggestions.

@shyamtawli shyamtawli added the enhancement New feature or request label Sep 20, 2024
@shyamtawli shyamtawli merged commit b9bb605 into shyamtawli:master Sep 20, 2024
3 checks passed
@shyamtawli
Copy link
Owner

@Slacky300 Thank you so much for your contribution! Your efforts are greatly appreciated and will go a long way in improving our project. Please feel free to share it with others and help us grow even further!

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

Successfully merging this pull request may close these issues.

[Bug]: search functionality not working as expected
2 participants