s.count > 0)
+ .map((s) => ({
+ label: `${SOURCE_LABELS[s.source] ?? s.source} (${s.count})`,
+ value: formatAmount(s.net, "CRC"),
+ })),
+ {
+ label: "Gran total egresos",
+ value: formatAmount(q.data.gran_total_egresos, "CRC"),
+ },
+ ]}
+ />
+ ) : undefined
+ }
>
{balance !== null && (
@@ -105,6 +154,17 @@ function ProximasCuotasCard() {
loading={q.isPending}
to="/financiamientos"
ariaLabel="Ver financiamientos"
+ hoverContent={
+ upcoming.length > 0 ? (
+ ({
+ label: `${p.merchant} (${p.cuotas_billed}/${p.num_installments})`,
+ value: `${formatShortDate(p.next_cuota_date!)} · ${formatAmount(nextCuotaOf(p), p.currency)}`,
+ }))}
+ />
+ ) : undefined
+ }
>
{topThree.length > 0 && (
@@ -146,6 +206,17 @@ function PensionCard() {
loading={q.isPending}
to="/pensions"
ariaLabel="Ver pensiones"
+ hoverContent={
+ q.data && q.data.length > 0 ? (
+ ({
+ label: `${f.fund} · rendimientos`,
+ value: `+${formatAmount(f.rendimientos, "CRC")}`,
+ }))}
+ />
+ ) : undefined
+ }
>
{q.data && q.data.length > 0 && (