Skip to content

feat: add server-side search and pagination to payments dashboard#472

Merged
emdevelopa merged 1 commit intoemdevelopa:mainfrom
Nursca:feature/paginated-payment-table
Mar 28, 2026
Merged

feat: add server-side search and pagination to payments dashboard#472
emdevelopa merged 1 commit intoemdevelopa:mainfrom
Nursca:feature/paginated-payment-table

Conversation

@Nursca
Copy link
Copy Markdown
Contributor

@Nursca Nursca commented Mar 28, 2026

Overview

This PR enhances the payments dashboard with server-side search by amount and a scalable pagination system, making it easier to manage and navigate large datasets.


What’s Included

Server-side Search (Amount)

  • Updated payments.js to support numeric search
  • Detects when a search term is a number and applies:
    amount.eq.${numTerm}
    
  • Enables exact amount matching directly from the backend

Pagination with URL Sync

  • Extracted page and limit from URL search params
  • Added Items per page selector (10, 20, 50, 100)
  • Automatically resets to page 1 when filters change

Pagination Controls UI

  • Added Previous and Next buttons
  • Properly handles:
    • Disabled states
    • Boundary checks using totalCount and limit
  • Prevents navigation to empty pages

CSV Export Improvement

  • Export now reflects the current paginated view
  • Avoids performance issues from exporting large datasets at once

Validation

  • Passed TypeScript checks (tsc --noEmit)
  • Confirmed pagination state resets correctly on filter updates

Related Issue

Fixes #306

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 28, 2026

@Nursca is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@Nursca Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@emdevelopa emdevelopa merged commit f42a196 into emdevelopa:main Mar 28, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE] Dashboard: Add Search and Pagination to Payment Table

2 participants