whisper-money/resources/js
Víctor Falcón 7a056213cf
feat(accounts): allow setting initial balance when creating balance-tracking accounts (#239)
## Summary

- Adds an optional balance input field to the account creation modal for
**investment**, **loan**, **retirement**, and **savings** account types.
- When a balance is provided, an `AccountBalance` record is created for
today's date upon account creation.
- The balance label adapts to the account type (e.g., "Owed Amount" for
loans, "Balance" for others).

## Changes

- **`account-form.tsx`** — Shows `AmountInput` when a balance-tracking
type is selected and currency is set.
- **`create-account-dialog.tsx`** — Passes `balance` in the POST payload
when present.
- **`StoreAccountRequest.php`** — Adds optional `balance` (nullable
integer) validation.
- **`AccountController::store`** — Creates an `AccountBalance` record
when balance is provided.
- **`AccountTest.php`** — 3 new tests covering creation with balance,
without balance, and invalid balance validation.

## Screenshots
<img width="1017" height="649" alt="image"
src="https://github.com/user-attachments/assets/4bf1530e-0faf-45a4-a3d1-d0ec49d5b412"
/>
2026-03-20 10:51:42 +00:00
..
components feat(accounts): allow setting initial balance when creating balance-tracking accounts (#239) 2026-03-20 10:51:42 +00:00
contexts Move transaction filtering from client-side to server-side (#126) 2026-02-16 12:49:04 +01:00
hooks fix(dashboard): treat loans as debt in net worth (#238) 2026-03-20 09:55:53 +00:00
layouts feat: (Onboarding) add categorization intro screen with benefit cards (#201) 2026-03-05 11:47:12 +01:00
lib fix(dashboard): treat loans as debt in net worth (#238) 2026-03-20 09:55:53 +00:00
pages fix(dashboard): treat loans as debt in net worth (#238) 2026-03-20 09:55:53 +00:00
providers feat(nav): add icon+label mobile nav with active pill and full-width buttons (#178) 2026-03-01 19:43:18 +01:00
services feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
types fix(dashboard): treat loans as debt in net worth (#238) 2026-03-20 09:55:53 +00:00
utils fix(i18n): force thousands separator for 4-digit amounts in es-ES locale (#193) 2026-03-03 14:50:41 +00:00
app.tsx Add chart color scheme setting (#101) 2026-02-28 12:58:21 +01:00
ssr.tsx Remove plaintext-transactions feature flag & E2E references (#116) 2026-02-13 11:10:21 +01:00