Skip to content

Add invoice comment system #43

@Kingsman-99

Description

@Kingsman-99

Label: complexity: high
Points: 200

Description

Creators and payers have no way to leave notes on an invoice. This issue adds an off-chain comment system stored in localStorage per invoice, visible only to the wallet owner, with add/delete functionality on the invoice detail page.

Technical Context

Involves invoice/[id]/page.tsx and a new src/components/CommentSection.tsx. Store comments as { invoiceId, walletAddress, text, timestamp }[] in localStorage. Only show comments belonging to the connected wallet address.

Acceptance Criteria

  • Comment input and submit button on invoice detail page
  • Comments stored in localStorage keyed by invoice ID and wallet address
  • Comments visible only to the wallet that wrote them
  • Comments can be deleted individually
  • Timestamps shown in relative format (e.g. "2 hours ago")
  • 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