From 0390ecd4a0372fc78cf43e1d7786cd3b9e5061e4 Mon Sep 17 00:00:00 2001 From: Padreug Date: Sat, 16 May 2026 23:24:20 +0200 Subject: [PATCH] feat(libra): color-code income/expense entries in transaction history MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Left green/red stripe on each card plus a matching tint on the income-entry / expense-entry tag badge — mirrors the Record page's red/green palette so the two screens read consistently. --- .../expenses/views/TransactionsPage.vue | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/modules/expenses/views/TransactionsPage.vue b/src/modules/expenses/views/TransactionsPage.vue index 416c645..62cac0c 100644 --- a/src/modules/expenses/views/TransactionsPage.vue +++ b/src/modules/expenses/views/TransactionsPage.vue @@ -30,6 +30,14 @@ const dateRangeType = ref(15) // 15, 30, 60, or 'custom' const customStartDate = ref('') const customEndDate = ref('') +function isIncome(t: Transaction): boolean { + return t.tags?.includes('income-entry') ?? false +} + +function isExpense(t: Transaction): boolean { + return t.tags?.includes('expense-entry') ?? false +} + const walletKey = computed(() => user.value?.wallets?.[0]?.inkey) // Fuzzy search state and configuration @@ -281,7 +289,11 @@ onMounted(() => {
@@ -335,7 +347,16 @@ onMounted(() => {
- + {{ tag }}