Skip to content

[FE:] Build the Payment Summary cards #78

@dinahmaccodes

Description

@dinahmaccodes

[FE:] Build the Payment Summary cards

Tier: 🔴 Hard (200 pts)

Description:

A row of summary cards at the top of the Payment History page. Cards: Total Payments, Total Value (sum in XLM or token), Pending Payments, Released Payments. Same style as the dashboard summary cards (Issue #23). Mock data.

Design Reference:
Here is the link to the design: Figma Design. Use it as inspo for the frontend. Then message me personally for edit access for design issues.

File locations:

  • Component → frontend/src/pages/Payments/PaymentSummaryCards/PaymentSummaryCards.tsx
  • Styles → use Tailwind utility classes and shared tokens
  • Import and render at the top of frontend/src/pages/Payments/PaymentHistory/PaymentHistory.tsx

Acceptance Criteria:

  • 4 summary cards in a responsive row
  • Each card: icon, count/value, and label
  • Responsive (2×2 on mobile)
  • Screenshot included in PR

Verification Alignment:
Where payment/shipment trust data is displayed, include verification-aware UI states (verified, pending, mismatch, unavailable) and show chain-linkage fields (txHash or current backend equivalent).

Note

Same style as Issue #23 — These cards should match the metric cards from the Company Dashboard. Coordinate on card styling if #23 is in progress.

PR Checklist:

  • PaymentSummaryCards created at frontend/src/pages/Payments/PaymentSummaryCards/PaymentSummaryCards.tsx
  • Any images/assets placed in frontend/public/images/
  • Screenshot attached to the PR
  • PR description explains your approach
  • cd frontend && pnpm run lint — no errors show up after your changes
  • cd frontend && pnpm run build — builds successfully after your changes
  • cd frontend && pnpm run test — all tests pass after your changes

Reference: Read CONTRIBUTING.md before starting.

Enjoying this issue? Star the Navin repository — it helps the project grow and supports open-source development!

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendpriority: urgentMust be completed first — other issues depend on this

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions