Several payers: clearer on phones, plus tests #10

Merged
reudy merged 1 commit from feat/multi-payer-polish into main 2026-11-19 15:52:19 +01:00
Member

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:

  • The expense list truncated the payer text to "Paid by 3 peo…".
  • The per-person amount boxes were blank, with no hint of how much was left to assign.

Changes

  • List row: now reads "3 payers", with Czech plurals (plátce / plátci / plátců).
  • Editor: empty payer boxes show the unassigned remainder as a muted
    placeholder. Once the amounts match the total, a green "✓ Adds up to the
    total" line replaces "Remaining" / "Over by".
  • Icon: adds a check icon.
  • SPEC §4: now describes the real several-payers UI. It used to mention an
    "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.
    • New: a car bought by three people (100k / 150k / 50k CZK). Balances come
      out as 0 / +50k / −50k, and settle-up is a single transfer, Jana → Petr.
    • New: several payers in EUR. Balances still sum to zero after conversion.
  • npm run check: 0 errors, 0 warnings.
  • npm run test:e2e (app.spec.ts): passes. The new test covers the
    remaining hint, the placeholder, the over-by message, the save error, the
    "Adds up" line, the "3 payers" list row, and balances and settle-up.
  • Visual check from Playwright screenshots on mobile Chromium, English and
    Czech. Not checked on a real device.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HA82gX9UJk6BEyaJJwiWPc

## 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: - The expense list truncated the payer text to "Paid by 3 peo…". - The per-person amount boxes were blank, with no hint of how much was left to assign. ## Changes - **List row:** now reads "3 payers", with Czech plurals (`plátce / plátci / plátců`). - **Editor:** empty payer boxes show the unassigned remainder as a muted placeholder. Once the amounts match the total, a green "✓ Adds up to the total" line replaces "Remaining" / "Over by". - **Icon:** adds a `check` icon. - **SPEC §4:** now describes the real several-payers UI. It used to mention an "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. - New: a car bought by three people (100k / 150k / 50k CZK). Balances come out as 0 / +50k / −50k, and settle-up is a single transfer, Jana → Petr. - New: several payers in EUR. Balances still sum to zero after conversion. - `npm run check`: 0 errors, 0 warnings. - `npm run test:e2e` (`app.spec.ts`): passes. The new test covers the remaining hint, the placeholder, the over-by message, the save error, the "Adds up" line, the "3 payers" list row, and balances and settle-up. - Visual check from Playwright screenshots on mobile Chromium, English and Czech. Not checked on a real device. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HA82gX9UJk6BEyaJJwiWPc
agent added 1 commit 2026-11-18 20:23:32 +01:00
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
reudy merged commit 6e6b06b399 into main 2026-11-19 15:52:19 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/oweme#10
No description provided.