Files
KomediruzeckiandGitHub d80089b949 feat(transactions): declutter Add modal (Basic/Advanced) + info tooltips + required account (#283)
* feat(transactions): declutter Add/Edit modal + per-field info tooltips + required account

The Add Transaction modal listed ~15 fields flat. Group it so you normally touch
only a few things, and explain each field.

- Basic (always shown): Type, Description, Amount + Currency, Date, Category
  (or "To account" for a transfer), and Account.
- Advanced (one "Show advanced options" toggle, collapsed by default):
  counterparties (Beneficiary/Payor), foreign-currency (Amount in local currency,
  Exchange rate), Tags, Receipt, Notes. Editing/copying a row that already uses an
  advanced field auto-expands the section so nothing is hidden.
- Info "i" tooltips (reusing InfoTip) next to every field label, explaining what
  it captures and why it helps.

Data-model tightening (no real users yet, so optimized for best insights):
- Account is now REQUIRED on a manual income/expense (and both From + To on a
  transfer) — every entry links to a real balance so per-account totals and net
  worth stay accurate. Enforced in the form only; import/API are unchanged.
- Transfers gain a proper "To account" (transfer_account_id) in the form, so a
  manual transfer moves money two-legged like the recurring transfers now do
  (previously a manual transfer had no destination).
- Means of Payment removed from the form (redundant with the structured Account).
  The column stays so the bank importer can still map it, and any existing value
  is preserved on edit.

Verified in-browser: 7 Basic fields, Advanced hidden until toggled, 14 tooltips,
Means gone, Category<->To-account swap on Transfer, and required-Account blocks the
save. Typecheck + lint clean; frontend suite 425 pass.

* feat(transactions): smart-prefill the account for fast entry

A required account shouldn't slow down quick adds:
- Prefill a new transaction's account with the last-used account (remembered per
  profile in localStorage), falling back to the first/primary account.
- Remember the chosen account on save, so the next entry is prefilled with it.
- When the profile has no accounts, the modal offers an inline "Create a Cash
  account" button that creates + selects one, instead of sending you elsewhere.

Verified in-browser: opens prefilled with the primary account; after a last-used
account is recorded, reopening prefills that one; the Create-Cash button appears
when there are no accounts. Typecheck + lint clean; frontend suite 425 pass.
2026-07-08 12:43:46 +02:00
..