feat(dashboard/boletos): nome do boleto como link para lançamentos do período

- nome do boleto virou link para /transactions?q=<nome>
- quando o período selecionado não é o atual, inclui ?periodo=<mes-ano> na URL
- ícone RiExternalLinkLine ao lado do nome, mesmo padrão do widget de faturas

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-05-02 22:08:23 +00:00
parent 0f5c735be0
commit 2fc6d11d78
5 changed files with 84 additions and 13 deletions

View File

@@ -93,7 +93,10 @@ export const widgetsConfig: WidgetConfig[] = [
subtitle: "Resumo das faturas do período",
icon: <RiBillLine className="size-4" />,
component: ({ data }) => (
<InvoicesWidget invoices={data.invoicesSnapshot.invoices} />
<InvoicesWidget
invoices={data.invoicesSnapshot.invoices}
paymentAccountOptions={data.invoicesSnapshot.paymentAccountOptions}
/>
),
},
{
@@ -101,7 +104,13 @@ export const widgetsConfig: WidgetConfig[] = [
title: "Boletos",
subtitle: "Controle de boletos do período",
icon: <RiBarcodeLine className="size-4" />,
component: ({ data }) => <BillWidget bills={data.billsSnapshot.bills} />,
component: ({ data, period }) => (
<BillWidget
bills={data.billsSnapshot.bills}
paymentAccountOptions={data.invoicesSnapshot.paymentAccountOptions}
period={period}
/>
),
},
{
id: "payment-status",