Skip to content

Add invoice payment source tracker #97

Description

@Kingsman-99

Label: complexity: high
Points: 200

Description

The payment list shows amounts but not which portion of the invoice each payment covered. This issue adds a visual payment source breakdown on the invoice detail page showing a stacked bar where each payer's contribution is colour-coded and labelled with their truncated address.

Technical Context

Involves invoice/[id]/page.tsx and a new src/components/PaymentSourceBar.tsx. Aggregate invoice.payments by payer address. Render a stacked horizontal bar using Tailwind flex with each segment's width proportional to contribution. Assign colours from a fixed palette.

Acceptance Criteria

  • Stacked bar shows each payer's contribution colour-coded
  • Hovering a segment shows payer address and amount tooltip
  • Legend below bar lists each payer with truncated address
  • Unfunded portion shown as grey segment
  • Works correctly for single and multiple payers
  • Mobile responsive — works on 375px screens
  • No TypeScript errors

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions