Add tag preview when importing and fix empty category bug #800

Merged
jakubkottnauer merged 1 commits from tag-import-preview-category-fix into main 2024-05-24 22:39:24 +08:00
jakubkottnauer commented 2024-05-24 03:53:39 +08:00 (Migrated from github.com)
  • Fixed reintroduced bug when importing transactions with empty categories (see screenshot below)
  • I have added tags to the import preview to verify visually that tags don't suffer from the same issue

Before category fix:

Screenshot 2024-05-23 at 21 53 14

After category fix:

Screenshot 2024-05-23 at 21 52 56

- Fixed reintroduced bug when importing transactions with empty categories (see screenshot below) - I have added tags to the import preview to verify visually that tags don't suffer from the same issue Before category fix: ![Screenshot 2024-05-23 at 21 53 14](https://github.com/maybe-finance/maybe/assets/113784/429a8a11-d73a-4f07-92f6-fc7376e214ab) After category fix: ![Screenshot 2024-05-23 at 21 52 56](https://github.com/maybe-finance/maybe/assets/113784/c1c3bb32-babc-4e99-ac12-2999ffefe477)
zachgoll (Migrated from github.com) approved these changes 2024-05-24 22:39:16 +08:00
zachgoll (Migrated from github.com) left a comment

Looks good!

Looks good!
@@ -124,3 +124,3 @@
category = category_cache[category_name] ||= account.family.transaction_categories.find_or_initialize_by(name: category_name)
category = category_cache[category_name] ||= account.family.transaction_categories.find_or_initialize_by(name: category_name) if category_name.present?
zachgoll (Migrated from github.com) commented 2024-05-24 22:39:08 +08:00

Ahh my bad, I think that was a regression on my part

Ahh my bad, I think that was a regression on my part
Sign in to join this conversation.