stakwork/sphinx-kotlin-ui

Invoices rows

Opened this issue · 0 comments

The invoices messages are pretty different depending on their state: PENDING OR PAID - SENT OR RECEIVED. So we have 6 different layouts to build:

1- RECEIVED PENDING INVOICE

pending-received-invoice

2- RECEIVED PAID INVOICE AND SENT PAYMENT FOR THAT INVOICE:

  • they are 2 rows showing together but they need to be built separately
  • Even when they represent a received invoice, it will show on the right side of the chat (as any sent message) because it's linked to sent payment for that invoice)

paid-received-invoice-and-payment

3- SENT PENDING INVOICE

pending-sent-invoice

4- SENT PAID INVOICE AND INVOICE PAYMENT

  • they are 2 rows showing together but they need to be built separately
  • Even when they represent a sent invoice, it will show on the left side of the chat (as any received message) because it's linked to received payment for that invoice)

paid-sent-invoice-and-payment