whisper-money/resources/js/components/transactions
Víctor Falcón a19a8d52ec
Fix: Use locale to disambiguate date format during CSV import (#107)
## Summary
- When CSV dates are ambiguous (e.g. `05/03/2024` parses as both
DD-MM-YYYY and MM-DD-YYYY), the auto-detection heuristic now uses the
user's locale preference as a tie-breaker instead of relying on array
order
- Adds `getLocaleDateFormat()` helper that maps locale strings to their
expected date format (US → MM-DD-YYYY, most others → DD-MM-YYYY, CJK →
YYYY-MM-DD)
- Passes locale from Inertia shared props to both transaction and
balance import flows

Closes #100

## Test plan
- [x] Added 15 Vitest tests for `getLocaleDateFormat` and
`autoDetectDateFormat` with locale tie-breaking
- [ ] Manual test: Import CSV with ambiguous dates (day ≤ 12) using a
non-US locale, verify DD-MM-YYYY is preferred
- [ ] Manual test: Import CSV with unambiguous dates (day > 12), verify
locale does NOT override correct detection
2026-02-12 09:08:52 +01:00
..
bulk-actions-bar.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
bulk-category-select.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
bulk-label-select.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
category-cell.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
category-select.tsx feat(shared): Add CategoryCombobox component 2025-11-14 16:05:53 +01:00
date-header.tsx Refactor: Transaction Table Layout and Styling Improvements (#26) 2025-12-14 12:56:05 +01:00
edit-transaction-dialog.tsx feat: Plaintext transactions behind feature flag (#105) 2026-02-10 14:31:24 +01:00
encrypted-transaction-description.tsx feat: Plaintext transactions behind feature flag (#105) 2026-02-10 14:31:24 +01:00
import-step-account.tsx Remove encryption from bank account names (#104) 2026-02-09 14:15:26 +01:00
import-step-mapping.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
import-step-preview.tsx feat: Docker dev env with Caddy, PHP on host (#103) 2026-02-09 13:31:16 +01:00
import-step-upload.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
import-transactions-button.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
import-transactions-drawer.tsx Fix: Use locale to disambiguate date format during CSV import (#107) 2026-02-12 09:08:52 +01:00
transaction-actions-menu.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
transaction-columns.tsx fix: Missing import 2026-02-10 15:13:04 +01:00
transaction-filters.tsx Remove encryption from bank account names (#104) 2026-02-09 14:15:26 +01:00
transaction-list.tsx feat: Plaintext transactions behind feature flag (#105) 2026-02-10 14:31:24 +01:00