You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Store column mappings when importing transactions #225
Every import asks the user to map each file column (Description, Amount, Date, Category) from scratch, even when the file comes from the same bank export as last time.
The mapping lives only in the import dialog state and resets on every analyze.
Scope
Named column mappings saved per user and reused on the next import.
User-facing behavior
In the mapping step the user can save the current mapping with a name (e.g. "Fineco export"), update the selected one, or delete it.
Mappings are stored by column header name, not by position, and belong to the user (any pocket can use them).
After a file is analyzed, if a saved mapping fits the file's headers it is applied automatically and the user sees which one.
Fits = every mapped header exists exactly once in the file (trimmed, case-insensitive). Best fit: same header set, then more mapped headers, then most recently updated.
A "Saved mapping" picker lets the user switch to another mapping or clear it. Headers of the picked mapping that are not in the file are listed.
Limits: name 1–100 chars, unique per user; max 50 mappings per user. Amount and Date must be mapped, no field twice.
Delivery (stacked draft PRs)
Backend: ImportMapping model + migration, api/import-mappings CRUD (owner only), suggestedMappingId on the analyze response, tests, docs.
UI (on top of 1): saved-mapping bar in the mapping step, auto-apply on analyze, save / update / delete.
Out of scope
A settings page to manage mappings.
Sharing mappings between users.
Default pocket / category or date format per mapping.
Activity
[-]Store column maps when importing transactions[/-][+]Store column mappings when importing transactions[/+]Return import mapping errors as JSON so the UI can show them (#225)
Save, reuse and auto-apply column mappings in the import dialog (#225)
Saved import column mappings API (#225, 1/2) (#228)
Saved import column mappings: UI (#225, part 2/2) (#230)