tomginsberg / xpnz3

Track Group Expenses with Ease
https://xpnz.ca
MIT License
2 stars 0 forks source link

New user interface for transfers. #68

Open tomginsberg opened 1 week ago

tomginsberg commented 1 week ago

Improvement: A simplified version of the expense drawer for transfers (e.g. debt settlement).

Here is a rough mockup made by V0

https://v0.dev/chat/Nt36nQWX7FQ?b=b_IHFX9NJ3jAv&p=0

The main idea is there should be a drop-down at the top of the expense drawer to select between income/expense/transfer. Income and expense should use the current UI but transfer should switch the drawer UI to something simpler that only has "Sent By", "Received By", "Amount" and "Currency".

The next step would be to make the settle debt button on the debts page open up a pre-population transfer drawer (giving the user a chance to edit it before sending it off).

When is transfer is saved, it is an expense with

const expenseName = `${memberFrom} → ${memberTo}`
const currency = (selected currency)
const category = "💸 Transfer"
const dateString = ( today)
const expense_type = "transfer"
const contributions = [
  { id: mapMemberToMemberId(memberFrom, members), paid: amount, weight: 0 },
  { id: mapMemberToMemberId(memberTo, members), paid: 0, weight: 1 }
]
linear[bot] commented 1 week ago

XPN-86 New UI for Transfers