Commit Graph

2 Commits

Author SHA1 Message Date
Víctor Falcón ceef9cf26f refactor(import): merge storage helpers, keep file preview off the network path
- Merge the two ~identical import-config storage modules into one
  (transaction + balance share the same HTTP logic).
- Show the parsed file immediately and load the saved per-account config
  off the critical path, so a slow or hanging request never blocks the
  preview or Next button; a stale load can't clobber a newer file.
- Drop the dead $hidden on AccountImportConfig (the controller returns
  the raw config blob, never the serialized model).
2026-07-18 13:00:47 +02:00
Víctor Falcón b6c759cfd6 feat(import): persist per-account import config on the backend
Move the CSV/Excel import column mapping and date format from device
localStorage to a per-account backend record, so the configuration is
preconfigured and loaded automatically when importing from another
device.

Adds an account_import_configs table (one row per account per import
type), an API endpoint scoped by the AccountPolicy, and swaps the
client-side storage helpers from localStorage to axios.
2026-07-18 12:49:17 +02:00