whisper-money/resources/js/types
Víctor Falcón 186ae57c2d
refactor(accounts): unify account type icons via accountIconByType helper (#180)
## Why

### Problem
Account type icons were defined in two separate places —
`step-account-types.tsx` (onboarding) and `account-type-icon.tsx`
(dashboard) — using different icon choices for the same account types.
For example, `checking` showed `Building2` on the dashboard but `Wallet`
in onboarding, and `retirement` showed `Umbrella` vs `TrendingUp`. This
created a visually inconsistent experience.

## What

### Changes
- Added `accountIconByType(type: AccountType): LucideIcon` helper to
`resources/js/types/account.ts` as the single source of truth for
account type icons
- Updated `AccountTypeIcon` component to delegate to the new helper
instead of maintaining its own map
- Updated `StepAccountTypes` to derive icons from the helper instead of
storing them inline per entry
- Dashboard account cards now use the same icon set as the onboarding
screen (Wallet, PiggyBank, CreditCard, LineChart, TrendingUp, Building2)

## Verification

### Tests
No behaviour change — purely a refactor consolidating icon mapping into
one place. Existing tests remain unaffected.
2026-03-02 08:47:44 +00:00
..
account.ts refactor(accounts): unify account type icons via accountIconByType helper (#180) 2026-03-02 08:47:44 +00:00
automation-rule.ts feat: add transaction labels feature (#24) 2025-12-13 13:02:19 +01:00
balance-import.ts feat: investment benefits — show gains/losses on investment accounts (#140) 2026-02-23 13:59:10 +01:00
banking.ts feat: Integrate EnableBanking as open banking provider (#106) 2026-02-12 09:09:28 +01:00
budget.ts fix(i18n): localise missing strings in budget dialogs to Spanish (#177) 2026-03-01 17:56:02 +00:00
category.ts Add chart color scheme setting (#101) 2026-02-28 12:58:21 +01:00
import.ts Add transaction selection to import preview (#25) 2025-12-13 12:41:18 +01:00
index.d.ts fix(i18n): localize mobile bottom navigation labels into Spanish (#173) 2026-03-01 12:04:44 +00:00
label.ts feat: add transaction labels feature (#24) 2025-12-13 13:02:19 +01:00
language.ts feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
pricing.ts feat: centralize pricing config with multiple plans support (#20) 2025-12-09 10:03:35 +01:00
transaction.ts Move transaction filtering from client-side to server-side (#126) 2026-02-16 12:49:04 +01:00
uuid.ts Fix CI: Update bun.lock and fix linting errors 2025-12-01 15:16:06 +01:00
vite-env.d.ts feat: Add PostHog (#70) 2026-01-20 10:47:59 +01:00