From a57c73bd1151b53b782677b7ff0c3181f34e8e33 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Thu, 22 Jan 2026 12:38:47 +0000 Subject: [PATCH] =?UTF-8?q?feat(lancamentos):=20adiciona=20suporte=20a=20?= =?UTF-8?q?=C3=ADcone=20de=20categoria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adiciona campo categoriaIcon ao tipo LancamentoItem e seu mapeamento no page-helpers para exibir ícones das categorias na tabela. Co-Authored-By: Claude Opus 4.5 --- components/lancamentos/types.ts | 1 + lib/lancamentos/page-helpers.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/components/lancamentos/types.ts b/components/lancamentos/types.ts index cae9612..a175908 100644 --- a/components/lancamentos/types.ts +++ b/components/lancamentos/types.ts @@ -21,6 +21,7 @@ export type LancamentoItem = { categoriaId: string | null; categoriaName: string | null; categoriaType: string | null; + categoriaIcon: string | null; installmentCount: number | null; recurrenceCount: number | null; currentInstallment: number | null; diff --git a/lib/lancamentos/page-helpers.ts b/lib/lancamentos/page-helpers.ts index ede8d45..2bdabe8 100644 --- a/lib/lancamentos/page-helpers.ts +++ b/lib/lancamentos/page-helpers.ts @@ -413,6 +413,7 @@ export const mapLancamentosData = (rows: LancamentoRowWithRelations[]) => categoriaId: item.categoriaId ?? null, categoriaName: item.categoria?.name ?? null, categoriaType: item.categoria?.type ?? null, + categoriaIcon: item.categoria?.icon ?? null, installmentCount: item.installmentCount ?? null, recurrenceCount: item.recurrenceCount ?? null, currentInstallment: item.currentInstallment ?? null,