whisper-money/resources/js/components/cashflow
Víctor Falcón 30cc4da6c6
Fix cashflow null category rows (#382)
## Sentry
- Issue: PHP-LARAVEL-1T
- URL: https://whisper-money.sentry.io/issues/PHP-LARAVEL-1T

## Root cause
Cashflow breakdown UI assumed every API row has a category object.
Production returned a breakdown row with `category: null`, so rendering
read `item.category.icon` and crashed.

## Fix
- Allow breakdown rows to carry nullable category/category_id.
- Render null categories as Uncategorized with HelpCircle/gray fallback.
- Add focused Vitest regression.
- Enable Wayfinder Vite plugin in Vitest so components importing
generated actions resolve in tests.

## Verification
- `npm test -- resources/js/components/cashflow/breakdown-card.test.tsx`
- `npx prettier --write
resources/js/components/cashflow/breakdown-card.tsx
resources/js/components/cashflow/breakdown-card.test.tsx
resources/js/hooks/use-cashflow-data.ts vitest.config.ts`
- `npx eslint resources/js/components/cashflow/breakdown-card.tsx
resources/js/components/cashflow/breakdown-card.test.tsx
resources/js/hooks/use-cashflow-data.ts vitest.config.ts --fix`

## Notes
- `npm run types` currently fails on existing unrelated TypeScript
errors across account, transaction, chart, auth, crypto, and dexie
files.
2026-05-11 18:54:26 +02:00
..
breakdown-card.test.tsx Fix cashflow null category rows (#382) 2026-05-11 18:54:26 +02:00
breakdown-card.tsx Fix cashflow null category rows (#382) 2026-05-11 18:54:26 +02:00
net-cashflow-card.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
period-navigation.tsx feat(Budgets): add period navigation and unify period selector UI (#171) 2026-03-01 12:25:01 +00:00
savings-rate-card.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00