mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-06-14 00:56:00 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user