diff --git a/src/app/(dashboard)/accounts/[accountId]/statement/page.tsx b/src/app/(dashboard)/accounts/[accountId]/statement/page.tsx index 7f5771c..17f12e2 100644 --- a/src/app/(dashboard)/accounts/[accountId]/statement/page.tsx +++ b/src/app/(dashboard)/accounts/[accountId]/statement/page.tsx @@ -11,10 +11,10 @@ import { import { fetchUserPreferences } from "@/features/settings/queries"; import { TransactionsPage as LancamentosSection } from "@/features/transactions/components/page/transactions-page"; import { - buildTransactionWhere, buildOptionSets, buildSluggedFilters, buildSlugMaps, + buildTransactionWhere, extractTransactionSearchFilters, getSingleParam, mapTransactionsData, diff --git a/src/features/accounts/components/accounts-page.tsx b/src/features/accounts/components/accounts-page.tsx index 415b332..2f86750 100644 --- a/src/features/accounts/components/accounts-page.tsx +++ b/src/features/accounts/components/accounts-page.tsx @@ -1,6 +1,6 @@ "use client"; -import { RiAddCircleLine, RiBankLine } from "@remixicon/react"; +import { RiAddCircleFill, RiBankLine } from "@remixicon/react"; import Image from "next/image"; import { useRouter } from "next/navigation"; import { useState } from "react"; @@ -176,7 +176,7 @@ export function AccountsPage({ logoOptions={logoOptions} trigger={ } diff --git a/src/features/budgets/components/budget-dialog.tsx b/src/features/budgets/components/budget-dialog.tsx index af4d32e..f797f00 100644 --- a/src/features/budgets/components/budget-dialog.tsx +++ b/src/features/budgets/components/budget-dialog.tsx @@ -207,7 +207,7 @@ export function BudgetDialog({ ) : (
- + onChange("accountId", value)} diff --git a/src/features/cards/components/cards-page.tsx b/src/features/cards/components/cards-page.tsx index 53b3445..e55cc03 100644 --- a/src/features/cards/components/cards-page.tsx +++ b/src/features/cards/components/cards-page.tsx @@ -1,6 +1,6 @@ "use client"; -import { RiAddCircleLine, RiBankCard2Line } from "@remixicon/react"; +import { RiAddCircleFill, RiBankCard2Line } from "@remixicon/react"; import { useRouter } from "next/navigation"; import { useMemo, useState } from "react"; import { toast } from "sonner"; @@ -164,7 +164,7 @@ export function CardsPage({ logoOptions={logoOptions} trigger={ } diff --git a/src/features/categories/components/categories-page.tsx b/src/features/categories/components/categories-page.tsx index 8285524..901bf28 100644 --- a/src/features/categories/components/categories-page.tsx +++ b/src/features/categories/components/categories-page.tsx @@ -1,7 +1,7 @@ "use client"; import { - RiAddCircleLine, + RiAddCircleFill, RiDeleteBin5Line, RiExternalLinkLine, RiPencilLine, @@ -127,7 +127,7 @@ export function CategoriesPage({ categories }: CategoriesPageProps) { defaultType={activeType} trigger={ } diff --git a/src/features/categories/components/category-detail-header.tsx b/src/features/categories/components/category-detail-header.tsx index c8fcfd2..5689c1d 100644 --- a/src/features/categories/components/category-detail-header.tsx +++ b/src/features/categories/components/category-detail-header.tsx @@ -1,5 +1,5 @@ import { RiArrowDownSFill, RiArrowUpSFill } from "@remixicon/react"; -import { TypeBadge } from "@/shared/components/type-badge"; +import { TransactionTypeBadge } from "@/shared/components/transaction-type-badge"; import { Card } from "@/shared/components/ui/card"; import type { CategoryType } from "@/shared/lib/categories/constants"; import { currencyFormatter } from "@/shared/utils/currency"; @@ -85,7 +85,7 @@ export function CategoryDetailHeader({ {category.name}
- + {transactionCount}{" "} {transactionCount === 1 ? "lançamento" : "lançamentos"} no{" "} diff --git a/src/features/dashboard/components/dashboard-grid-editable.tsx b/src/features/dashboard/components/dashboard-grid-editable.tsx index d12cf26..8e4d7a9 100644 --- a/src/features/dashboard/components/dashboard-grid-editable.tsx +++ b/src/features/dashboard/components/dashboard-grid-editable.tsx @@ -16,7 +16,7 @@ import { sortableKeyboardCoordinates, } from "@dnd-kit/sortable"; import { - RiAddCircleLine, + RiAddCircleFill, RiCheckLine, RiCloseLine, RiDragMove2Line, @@ -198,10 +198,7 @@ export function DashboardGridEditable({ {/* Toolbar */}
{!isEditing ? ( -
- - Ações rápidas - +
- + Receita Nova receita @@ -246,7 +243,7 @@ export function DashboardGridEditable({ className="h-12 w-full min-w-0 flex-col justify-center gap-0.5 px-1.5 text-sm whitespace-normal sm:h-8 sm:w-auto sm:flex-row sm:gap-2 sm:px-3 sm:whitespace-nowrap" > - + Despesa Nova despesa diff --git a/src/features/dashboard/payers-queries.ts b/src/features/dashboard/payers-queries.ts index f08fecf..4005a4e 100644 --- a/src/features/dashboard/payers-queries.ts +++ b/src/features/dashboard/payers-queries.ts @@ -113,10 +113,7 @@ export async function fetchDashboardPayers( })) .sort((a, b) => b.totalExpenses - a.totalExpenses); - const totalExpenses = payerList.reduce( - (sum, p) => sum + p.totalExpenses, - 0, - ); + const totalExpenses = payerList.reduce((sum, p) => sum + p.totalExpenses, 0); return { payers: payerList, diff --git a/src/features/insights/components/insights-page.tsx b/src/features/insights/components/insights-page.tsx index a9df324..97f3ac9 100644 --- a/src/features/insights/components/insights-page.tsx +++ b/src/features/insights/components/insights-page.tsx @@ -134,7 +134,7 @@ export function InsightsPage({ period, onAnalyze }: InsightsPageProps) { return (
{/* Privacy Warning */} - + Aviso de privacidade: Ao gerar insights, seus dados diff --git a/src/features/notes/components/note-dialog.tsx b/src/features/notes/components/note-dialog.tsx index 60b5439..d3d99d1 100644 --- a/src/features/notes/components/note-dialog.tsx +++ b/src/features/notes/components/note-dialog.tsx @@ -1,6 +1,6 @@ "use client"; -import { RiAddLine, RiDeleteBinLine } from "@remixicon/react"; +import { RiAddCircleFill, RiDeleteBinLine } from "@remixicon/react"; import { type ReactNode, useEffect, @@ -329,7 +329,7 @@ export function NoteDialog({ disabled={isPending || !normalize(newTaskText)} className="shrink-0" > - +
diff --git a/src/features/notes/components/notes-page.tsx b/src/features/notes/components/notes-page.tsx index edd8a35..699cd23 100644 --- a/src/features/notes/components/notes-page.tsx +++ b/src/features/notes/components/notes-page.tsx @@ -1,6 +1,6 @@ "use client"; -import { RiAddCircleLine, RiTodoLine } from "@remixicon/react"; +import { RiAddCircleFill, RiTodoLine } from "@remixicon/react"; import { useMemo, useState } from "react"; import { toast } from "sonner"; import { archiveNoteAction, deleteNoteAction } from "@/features/notes/actions"; @@ -208,7 +208,7 @@ export function NotesPage({ notes, archivedNotes }: NotesPageProps) { onOpenChange={handleCreateOpenChange} trigger={ } diff --git a/src/features/payers/components/details/payer-header-card.tsx b/src/features/payers/components/details/payer-header-card.tsx index 00a7575..ef94483 100644 --- a/src/features/payers/components/details/payer-header-card.tsx +++ b/src/features/payers/components/details/payer-header-card.tsx @@ -201,7 +201,7 @@ export function PayerHeaderCard({ {summary.periodLabel} {" "} para{" "} - + {payer.email} diff --git a/src/features/payers/components/details/payer-info-card.tsx b/src/features/payers/components/details/payer-info-card.tsx index 9fa923a..a36e2ab 100644 --- a/src/features/payers/components/details/payer-info-card.tsx +++ b/src/features/payers/components/details/payer-info-card.tsx @@ -32,7 +32,7 @@ export function PagadorInfoCard({ payer }: PayerInfoCardProps) { - Detalhes do payer + Detalhes do pagador {showSensitiveDetails diff --git a/src/features/payers/components/payers-page.tsx b/src/features/payers/components/payers-page.tsx index e9bfaa7..c16397f 100644 --- a/src/features/payers/components/payers-page.tsx +++ b/src/features/payers/components/payers-page.tsx @@ -1,6 +1,6 @@ "use client"; -import { RiAddCircleLine } from "@remixicon/react"; +import { RiAddCircleFill } from "@remixicon/react"; import { useRouter } from "next/navigation"; import { useMemo, useState, useTransition } from "react"; import { toast } from "sonner"; @@ -126,7 +126,7 @@ export function PayersPage({ payers, avatarOptions }: PayersPageProps) { avatarOptions={avatarOptions} trigger={ } diff --git a/src/features/payers/lib/build-readonly-option-sets.ts b/src/features/payers/lib/build-readonly-option-sets.ts index 3263987..dcc8741 100644 --- a/src/features/payers/lib/build-readonly-option-sets.ts +++ b/src/features/payers/lib/build-readonly-option-sets.ts @@ -1,8 +1,8 @@ import type { payers } from "@/db/schema"; import type { AccountCardFilterOption, - TransactionFilterOption, SelectOption, + TransactionFilterOption, TransactionItem, } from "@/features/transactions/components/types"; import type { buildOptionSets } from "@/features/transactions/page-helpers"; @@ -35,10 +35,7 @@ export function buildReadOnlyOptionSets( if (item.accountId && !contaOptionsMap.has(item.accountId)) { contaOptionsMap.set(item.accountId, { value: item.accountId, - label: normalizeOptionLabel( - item.contaName, - "FinancialAccount sem nome", - ), + label: normalizeOptionLabel(item.contaName, "Conta sem nome"), slug: item.accountId, }); } diff --git a/src/features/reports/components/cards/card-category-breakdown.tsx b/src/features/reports/components/cards/card-category-breakdown.tsx index 51b01fc..09032d8 100644 --- a/src/features/reports/components/cards/card-category-breakdown.tsx +++ b/src/features/reports/components/cards/card-category-breakdown.tsx @@ -24,7 +24,7 @@ export function CardCategoryBreakdown({ data }: CardCategoryBreakdownProps) { - Gastos por Category + Gastos por Categoria @@ -45,7 +45,7 @@ export function CardCategoryBreakdown({ data }: CardCategoryBreakdownProps) { - Gastos por Category + Gastos por Categoria diff --git a/src/features/reports/components/category-report-chart.tsx b/src/features/reports/components/category-report-chart.tsx index f3678ee..3393e20 100644 --- a/src/features/reports/components/category-report-chart.tsx +++ b/src/features/reports/components/category-report-chart.tsx @@ -150,7 +150,7 @@ export function CategoryReportChart({ data }: CategoryReportChartProps) {
- Evolução por Category + Evolução por Categoria {periodLabel}
- + @@ -274,7 +274,7 @@ export function BulkImportDialog({ {hasNonCredit && (
@@ -534,7 +534,7 @@ export function MassAddDialog({ htmlFor={`pagador-${transaction.id}`} className="sr-only" > - Payer {index + 1} + Pagador {index + 1} - + {groupedCategorias.map((group) => ( diff --git a/src/features/transactions/components/dialogs/transaction-details-dialog.tsx b/src/features/transactions/components/dialogs/transaction-details-dialog.tsx index 3ec865f..4561597 100644 --- a/src/features/transactions/components/dialogs/transaction-details-dialog.tsx +++ b/src/features/transactions/components/dialogs/transaction-details-dialog.tsx @@ -5,9 +5,8 @@ import { formatCondition, formatDate, formatPeriod, - getTransactionBadgeVariant, } from "@/features/transactions/formatting-helpers"; -import { Badge } from "@/shared/components/ui/badge"; +import { TransactionTypeBadge } from "@/shared/components/transaction-type-badge"; import { Button } from "@/shared/components/ui/button"; import { CardContent, @@ -93,12 +92,12 @@ export function TransactionDetailsDialog({ @@ -106,19 +105,13 @@ export function TransactionDetailsDialog({ Tipo de Transação - - - {transaction.categoriaName === "Saldo inicial" - ? "Saldo Inicial" - : transaction.transactionType} - - + - + - + onFieldChange("accountId", value)} diff --git a/src/features/transactions/components/shared/anticipation-card.tsx b/src/features/transactions/components/shared/anticipation-card.tsx index 409e444..8427d42 100644 --- a/src/features/transactions/components/shared/anticipation-card.tsx +++ b/src/features/transactions/components/shared/anticipation-card.tsx @@ -134,14 +134,14 @@ export function AnticipationCard({ {anticipation.payer && (
-
Payer
+
Pagador
{anticipation.payer.name}
)} {anticipation.category && (
-
Category
+
Categoria
{anticipation.category.name}
)} diff --git a/src/features/transactions/components/table/transactions-filters.tsx b/src/features/transactions/components/table/transactions-filters.tsx index 0a4a93d..607f6c2 100644 --- a/src/features/transactions/components/table/transactions-filters.tsx +++ b/src/features/transactions/components/table/transactions-filters.tsx @@ -368,7 +368,7 @@ export function TransactionsFilters({
- +