Skip to content

PaymentProgress bar overflows past 100% when invoice is overpaid #592

Description

@Kingsman-99

Description

When a payer sends more than the invoice total, PaymentProgress renders the filled bar beyond the container boundary because the width percentage is not capped. The bar width should be capped at 100% visually while still showing the overpaid amount in the label.

Acceptance Criteria

  • The progress bar width is capped at 100% regardless of the paid/total ratio
  • An "Overpaid" label or indicator is shown when paid > total
  • The exact paid and total amounts are still displayed in the text label
  • Existing tests continue to pass

Context

  • Target file: src/components/PaymentProgress.tsx

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions