1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

CSV Imports Overhaul (Transactions, Trades, Accounts, and Mint import support) (#1209)

* Remove stale 1.0 import logic and model

* Fresh start

* Checkpoint before removing nav

* First working prototype

* Add trade, account, and mint import flows

* Basic working version with tests

* System tests for each import type

* Clean up mappings flow

* Clean up PR, refactor stale code, tests

* Add back row validations

* Row validations

* Fix import job test

* Fix import navigation

* Fix mint import configuration form

* Currency preset for new accounts
This commit is contained in:
Zach Gollwitzer 2024-10-01 10:47:59 -04:00 committed by GitHub
parent 23786b444a
commit 398b246965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
103 changed files with 2420 additions and 1689 deletions

View file

@ -21,23 +21,6 @@ Rails.application.routes.draw do
end
end
resources :imports, except: :show do
member do
get "load"
patch "load" => "imports#load_csv"
patch "upload" => "imports#upload_csv"
get "configure"
patch "configure" => "imports#update_mappings"
get "clean"
patch "clean" => "imports#update_csv"
get "confirm"
patch "confirm" => "imports#publish"
end
end
resources :tags, except: %i[show destroy] do
resources :deletions, only: %i[new create], module: :tag
end
@ -56,6 +39,18 @@ Rails.application.routes.draw do
resources :transfers, only: %i[new create destroy]
end
resources :imports, only: %i[index new show create destroy] do
post :publish, on: :member
resource :upload, only: %i[show update], module: :import
resource :configuration, only: %i[show update], module: :import
resource :clean, only: :show, module: :import
resource :confirm, only: :show, module: :import
resources :rows, only: %i[show update], module: :import
resources :mappings, only: :update, module: :import
end
resources :accounts do
collection do
get :summary