Apply tag colors to YNAB flag tags (#6866)

* Apply tag colors to match YNAB flags

* Update tag colors to match YNAB, add description on import

* Tighten types

* Use custom colors

* Use Actual palette equivalents for tag colors

* Nitpick fixes

* Fix nitpick 'fix'

* Handle YNAB flag tag conflicts

* Handle YNAB flag tag conflicts without creating separate color tags

* Simplify

* Reorganize
This commit is contained in:
Stephen Brown II
2026-02-05 16:22:01 -06:00
committed by GitHub
parent 16ec636358
commit deadd9aefc
4 changed files with 497 additions and 365 deletions

View File

@@ -1710,7 +1710,8 @@
"memo": "sending to savings",
"cleared": "cleared",
"approved": true,
"flag_color": null,
"flag_color": "blue",
"flag_name": "Savings",
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "8d3017e0-2aa6-4fe2-b011-c53c9f147eb6",
"category_id": null,
@@ -1730,7 +1731,8 @@
"memo": null,
"cleared": "cleared",
"approved": true,
"flag_color": null,
"flag_color": "red",
"flag_name": "One-off",
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "2a20470a-634f-4efa-a7f6-f1c0b0bdda41",
"category_id": "225be370-37da-4cf8-8b6b-4c6d61a0dd95",
@@ -1750,7 +1752,8 @@
"memo": "getting paid",
"cleared": "reconciled",
"approved": true,
"flag_color": null,
"flag_color": "green",
"flag_name": "JOB",
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "c843e030-5a77-4dc5-9b93-f8acc64b74f8",
"category_id": "36120d44-6c61-4402-985a-891a8d267858",
@@ -1770,7 +1773,8 @@
"memo": null,
"cleared": "cleared",
"approved": true,
"flag_color": null,
"flag_color": "purple",
"flag_name": "Savings",
"account_id": "125f339b-2a63-481e-84c0-f04d898905d2",
"payee_id": "c843e030-5a77-4dc5-9b93-f8acc64b74f8",
"category_id": "36120d44-6c61-4402-985a-891a8d267858",
@@ -1984,7 +1988,8 @@
"frequency": "monthly",
"amount": -100000,
"memo": "Scheduled - repeated monthly",
"flag_color": null,
"flag_color": "purple",
"flag_name": "Savings",
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "0f0899e3-242f-42e6-aae9-a751060d878e",
"category_id": "419ae801-27c8-424b-8f39-9611825803db",
@@ -1999,6 +2004,7 @@
"amount": -100000,
"memo": "Scheduled - repeated weekly",
"flag_color": "blue",
"flag_name": "Savings",
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "0f0899e3-242f-42e6-aae9-a751060d878e",
"category_id": "419ae801-27c8-424b-8f39-9611825803db",
@@ -2083,7 +2089,7 @@
"frequency": "daily",
"amount": -100000,
"memo": "Scheduled - repeated daily",
"flag_color": "purple",
"flag_color": null,
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "0f0899e3-242f-42e6-aae9-a751060d878e",
"category_id": "419ae801-27c8-424b-8f39-9611825803db",
@@ -2097,7 +2103,7 @@
"frequency": "monthly",
"amount": -100000,
"memo": "Scheduled - split categories monthly",
"flag_color": "green",
"flag_color": "yellow",
"flag_name": "Split",
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"payee_id": "0f0899e3-242f-42e6-aae9-a751060d878e",