Several payers: clearer on phones, plus tests #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/multi-payer-polish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
You can already record an expense paid by several people, such as everyone
chipping in for a car: choose Paid by → Several people in the editor. I
checked the flow on a phone-size screen (390×844 in English, 360×780 in Czech).
It worked, but two things were rough:
Changes
plátce / plátci / plátců).placeholder. Once the amounts match the total, a green "✓ Adds up to the
total" line replaces "Remaining" / "Over by".
checkicon."add payer" button that doesn't exist.
No changes to money math or the event schema.
Tested
npm test: 29 core tests (2 new) and 15 server tests pass.out as 0 / +50k / −50k, and settle-up is a single transfer, Jana → Petr.
npm run check: 0 errors, 0 warnings.npm run test:e2e(app.spec.ts): passes. The new test covers theremaining hint, the placeholder, the over-by message, the save error, the
"Adds up" line, the "3 payers" list row, and balances and settle-up.
Czech. Not checked on a real device.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HA82gX9UJk6BEyaJJwiWPc
The editor already supported several payers ("Several people" in Paid by); this polishes it after checking it at 390x844 and 360x780 (Czech): - Expense list: "Paid by 3 people" was truncated on phones; now "3 payers" (proper Czech plurals: plátce / plátci / plátců). - Empty payer boxes show the unassigned remainder as a placeholder. - A green "Adds up to the total" line confirms when the payers match. - Tests: core balance + settle-up for a car bought by three people, a foreign-currency multi-payer case, and an e2e flow (remaining, over, validation error, save, balances). - SPEC: describe the actual several-payers UI (no "add payer" button). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HA82gX9UJk6BEyaJJwiWPc