Skip to content

Enhancement: withdrawal history only shows last 20 entries — add pagination or load-more #598

Description

@henrypeters

Category: Frontend - Enhancement
Priority: Low
Estimated Time: 1 hour

Description:
app/(app)/withdraw/page.tsx calls api.listWithdrawals(token, 20, signal) with a hard-coded limit of 20 and no UI to load more. A merchant with a longer cash-out history cannot audit older withdrawals from the dashboard. The API already accepts a limit parameter so the fix is purely UI-side.

// app/(app)/withdraw/page.tsx
api.listWithdrawals(token, 20, signal)  // older records not accessible

Tasks:

  • Add a "Load more" button below the withdrawals list that fetches the next page
  • Implement cursor/offset pagination in api.listWithdrawals() in lib/api.ts
  • Show the total count if the backend provides it
  • Add a test for the paginated load

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpaymentsPayment gateway integrationuxUser experience

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions