Skip to content

feat: add pagination to transaction history #72

Description

@EmeditWeb

Problem

The History page (src/pages/History.tsx) fetches ALL transactions at once with no pagination. As the transaction count grows, this will cause slow page loads and excessive API responses.

User impact: Users with many transactions experience slow page loads. The API may return truncated results.

Root Cause

The fetchTransactions call in history.service.ts has no pagination parameters. The API, controller, and UI all lack pagination support.

What To Build

  1. Add page and limit parameters to history.service.ts:fetchTransactions()
  2. Add pagination controls to the History page (prev/next buttons or page numbers)
  3. Show "Page X of Y" indicator
  4. Add loading state while fetching each page
  5. Add empty state when no transactions exist

Files To Touch

  • src/pages/History.tsx — add pagination UI
  • src/services/history.service.ts — add pagination params

Acceptance Criteria

  • Pagination controls on History page
  • Page indicator showing current/total pages
  • Loading state during page transitions
  • Works with page/limit API parameters
  • Empty state shown when no results

Mandatory Checks

  • context/ files read
  • npm run build passes
  • PR references this issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions