mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Create tagging system (#792)
* Repro * Fix * Update signage * Create tagging system * Add tags to transaction imports * Build tagging UI * Cleanup * More cleanup
This commit is contained in:
24
test/fixtures/imports.yml
vendored
24
test/fixtures/imports.yml
vendored
@@ -2,22 +2,6 @@ empty_import:
|
||||
account: checking
|
||||
created_at: <%= 1.minute.ago %>
|
||||
|
||||
loaded_import:
|
||||
account: checking
|
||||
raw_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food & Drink,-8.55
|
||||
2024-01-01,Etsy,Shopping,-80.98
|
||||
2024-01-02,Amazon stuff,Shopping,-200
|
||||
2024-01-03,Paycheck,Income,1000
|
||||
normalized_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food & Drink,-8.55
|
||||
2024-01-01,Etsy,Shopping,-80.98
|
||||
2024-01-02,Amazon stuff,Shopping,-200
|
||||
2024-01-03,Paycheck,Income,1000
|
||||
created_at: <%= 2.days.ago %>
|
||||
|
||||
completed_import:
|
||||
account: checking
|
||||
column_mappings:
|
||||
@@ -26,11 +10,11 @@ completed_import:
|
||||
category: category
|
||||
amount: amount
|
||||
raw_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food & Drink,-20
|
||||
date,name,category,tags,amount
|
||||
2024-01-01,Starbucks drink,Food & Drink,Test Tag,-20
|
||||
normalized_csv_str: |
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food & Drink,-20
|
||||
date,name,category,tags,amount
|
||||
2024-01-01,Starbucks drink,Food & Drink,Test Tag,-20
|
||||
created_at: <%= 2.days.ago %>
|
||||
|
||||
|
||||
|
||||
10
test/fixtures/taggings.yml
vendored
Normal file
10
test/fixtures/taggings.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
one:
|
||||
tag: hawaii_trip
|
||||
taggable: checking_one
|
||||
taggable_type: Transaction
|
||||
|
||||
two:
|
||||
tag: emergency_fund
|
||||
taggable: checking_two
|
||||
taggable_type: Transaction
|
||||
|
||||
11
test/fixtures/tags.yml
vendored
Normal file
11
test/fixtures/tags.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
trips:
|
||||
name: Trips
|
||||
family: dylan_family
|
||||
|
||||
hawaii_trip:
|
||||
name: Hawaii Trip
|
||||
family: dylan_family
|
||||
|
||||
emergency_fund:
|
||||
name: Emergency Fund
|
||||
family: dylan_family
|
||||
Reference in New Issue
Block a user