From e29eacf5c7c2635903b677fd0850be300ae11559 Mon Sep 17 00:00:00 2001 From: marcoitaloesp-ai Date: Tue, 16 Dec 2025 17:03:14 +0000 Subject: [PATCH] =?UTF-8?q?v1.43.13=20-=20Padroniza=C3=A7=C3=A3o=20visual?= =?UTF-8?q?=20de=20badges=20em=20relat=C3=B3rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 18 +++++++++++++++ VERSION | 2 +- frontend/src/pages/Reports.jsx | 40 +++++++++++++++++++++++----------- 3 files changed, 46 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d78283..5db8a51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,24 @@ O formato segue [Keep a Changelog](https://keepachangelog.com/pt-BR/). Este projeto adota [Versionamento Semântico](https://semver.org/pt-BR/). +## [1.43.13] - 2025-12-16 + +### Changed +- **Relatórios - Padronização de Badges** + - **Categorias**: Agora usam cores personalizadas (category_color) ao invés de `bg-primary` + * Mostram ícone da categoria quando disponível + * Fallback para `bg-secondary` quando sem categoria + * Aplicado em: Maiores Gastos, Transações Futuras + - **Tamanhos de fonte**: Padronizados em `0.75rem` para todos os badges + * Porcentagens, contadores, dias, frequências, tipos + - **Tipo de Passivo**: Alterado de `bg-secondary` para `bg-info` (azul) + - **Frequência (Recorrentes)**: Alterado de `bg-secondary` para `bg-primary` (destaque) + - **Consistência visual**: Todos os badges agora seguem o mesmo padrão de estilo + +### Fixed +- Cards mobile de Maiores Gastos agora mostram cor e ícone corretos da categoria +- Transações Futuras mostram fallback quando sem categoria + ## [1.43.12] - 2025-12-16 ### Fixed diff --git a/VERSION b/VERSION index 3b1654c..42feb01 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.43.12 +1.43.13 diff --git a/frontend/src/pages/Reports.jsx b/frontend/src/pages/Reports.jsx index b77df65..d760a14 100644 --- a/frontend/src/pages/Reports.jsx +++ b/frontend/src/pages/Reports.jsx @@ -566,7 +566,7 @@ const Reports = () => { {currency(cat.total, categoryData.currency)} - {cat.percentage}% + {cat.percentage}% ))} @@ -1236,7 +1236,14 @@ const Reports = () => { - {item.category || '-'} + {item.category ? ( + + {item.category_icon && } + {item.category} + + ) : ( + - + )} {item.date} @@ -1299,9 +1306,14 @@ const Reports = () => { {/* Footer: Categoria e Data */}
- - {item.category || '-'} - + {item.category ? ( + + {item.category_icon && } + {item.category} + + ) : ( + - + )} {item.date} @@ -1489,7 +1501,7 @@ const Reports = () => { {t(`reports.dayOfWeek.${d.day_key}`)} - {d.count} + {d.count} {currency(d.total, dayOfWeekData.currency)} {currency(d.average, dayOfWeekData.currency)} @@ -1806,7 +1818,7 @@ const Reports = () => { )} - {t.frequency} + {t.frequency} {t.next_date} {t.type === 'credit' ? '+' : '-'}{currency(t.amount, t.currency)} @@ -1871,10 +1883,10 @@ const Reports = () => {
{liability.name}
- {liability.type} + {liability.type}
{liability.overdue_installments > 0 && ( - + {liability.overdue_installments} {t('reports.overdueInstallments')} )} @@ -1997,16 +2009,18 @@ const Reports = () => { {data.map(tx => ( - {tx.days_until}d + {tx.days_until}d {tx.date} {tx.description} - {tx.category && ( - + {tx.category ? ( + {tx.category} + ) : ( + - )} {tx.account} @@ -2086,7 +2100,7 @@ const Reports = () => { {item.description} {item.due_date} - {item.days_overdue} {t('common.days')} + {item.days_overdue} {t('common.days')} {currency(item.amount, item.currency)}