Skip to content

Add payment installment UI #39

@Kingsman-99

Description

@Kingsman-99

Label: complexity: high
Points: 200

Description

Payers who registered an installment plan on-chain have no way to view their schedule in the app. This issue adds an installment schedule panel on the invoice detail page showing each planned payment date and amount, with the current installment highlighted.

Technical Context

Involves invoice/[id]/page.tsx and a new src/components/InstallmentPanel.tsx. Calls splitClient.getInstallmentPlan(invoiceId, publicKey) to fetch the plan. Renders a timeline of (date, amount) pairs. Highlights the next due installment based on current timestamp.

Acceptance Criteria

  • Installment panel visible to payers who have a registered plan
  • Each installment shows date and amount
  • Next due installment is highlighted
  • Past installments marked as paid if payment exists
  • "No plan registered" shown if no plan exists
  • Mobile responsive — works on 375px screens
  • No TypeScript errors

Metadata

Metadata

Assignees

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