Skip to content

feat: add payment certificate, deadline suggester, payment source bar, and version history (#95-#98)#344

Merged
Kingsman-99 merged 2 commits into
Stellar-split:mainfrom
Buildwithlevo:feat/payment-certificate-deadline-suggester-source-bar-version-history-95-96-97-98
Jun 28, 2026
Merged

feat: add payment certificate, deadline suggester, payment source bar, and version history (#95-#98)#344
Kingsman-99 merged 2 commits into
Stellar-split:mainfrom
Buildwithlevo:feat/payment-certificate-deadline-suggester-source-bar-version-history-95-96-97-98

Conversation

@Buildwithlevo

@Buildwithlevo Buildwithlevo commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR resolves issues #95, #96, #97, and #98 by integrating all four UI feature components into the invoice pages.

Changes

#95 — Payment Certificate (PaymentCertificate)

  • Component renders on Released invoices with a Download Certificate button triggering window.print()
  • Certificate includes invoice ID, creator, recipients, total amount, release date formatted with Intl.DateTimeFormat, and a QR code linking to /verify/[id]
  • Print layout uses hidden print:block CSS to hide all non-certificate UI

#96 — Smart Deadline Suggester (DeadlineSuggester)

  • Component renders below the deadline input on the new invoice form
  • Analyses historical invoices from localStorage to compute average funding time by amount bracket
  • Falls back to static rules (small <100 USDC = 3 days, large >1000 USDC = 14 days)
  • "Use" button fills the deadline field with the suggestion

#97 — Payment Source Bar (PaymentSourceBar)

  • Stacked horizontal bar with each payer colour-coded and labelled
  • Tooltip on hover showing payer address and amount
  • Legend listing each payer with truncated address
  • Grey segment for unfunded portion
  • Integrated in the Payments section of the invoice detail page

#98 — Version History Viewer (VersionHistory)

  • Added a tabbed interface (Audit Log / History / Notes) to the invoice detail page
  • History tab renders VersionHistory component showing audit log entries as a diff-style timeline
  • Deadline extensions show old → new deadline; co-creator changes show address
  • Empty state for invoices with no history
  • Also fixes missing TransferOwnershipModal import (pre-existing bug)

Closes #95
Closes #96
Closes #97
Closes #98

…rsion history tabs (Stellar-split#95, Stellar-split#96, Stellar-split#97, Stellar-split#98)

- PaymentCertificate (closes Stellar-split#95): component integrated on Released invoices with Download Certificate button, QR code, print layout
- DeadlineSuggester (closes Stellar-split#96): component integrated below deadline input on new invoice form, uses historical data with static fallback
- PaymentSourceBar (closes Stellar-split#97): stacked bar showing each payer contribution colour-coded with legend, integrated in payments section
- VersionHistory (closes Stellar-split#98): add History tab to invoice detail page using VersionHistory component showing audit log diff-style timeline; also fix missing TransferOwnershipModal import
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Buildwithlevo is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Kingsman-99 Kingsman-99 merged commit d185e00 into Stellar-split:main Jun 28, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants