From c5750b081fcd04228fd5ed674528b967a2eccf12 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Thu, 26 Feb 2026 17:23:51 +0000 Subject: [PATCH] style: reformatar pages com Biome (line wrapping) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Formatação automática do Biome em fatura/page, categorias/page e extrato/page — apenas line wrapping de destructuring de Promise.all. Co-Authored-By: Claude Opus 4.6 --- .../cartoes/[cartaoId]/fatura/page.tsx | 21 ++++++++++++------- .../categorias/[categoryId]/page.tsx | 13 ++++++------ .../contas/[contaId]/extrato/page.tsx | 21 ++++++++++++------- 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/app/(dashboard)/cartoes/[cartaoId]/fatura/page.tsx b/app/(dashboard)/cartoes/[cartaoId]/fatura/page.tsx index 0a7654d..b108dba 100644 --- a/app/(dashboard)/cartoes/[cartaoId]/fatura/page.tsx +++ b/app/(dashboard)/cartoes/[cartaoId]/fatura/page.tsx @@ -52,14 +52,19 @@ export default async function Page({ params, searchParams }: PageProps) { notFound(); } - const [filterSources, logoOptions, invoiceData, estabelecimentos, userPreferences] = - await Promise.all([ - fetchLancamentoFilterSources(userId), - loadLogoOptions(), - fetchInvoiceData(userId, cartaoId, selectedPeriod), - getRecentEstablishmentsAction(), - fetchUserPreferences(userId), - ]); + const [ + filterSources, + logoOptions, + invoiceData, + estabelecimentos, + userPreferences, + ] = await Promise.all([ + fetchLancamentoFilterSources(userId), + loadLogoOptions(), + fetchInvoiceData(userId, cartaoId, selectedPeriod), + getRecentEstablishmentsAction(), + fetchUserPreferences(userId), + ]); const sluggedFilters = buildSluggedFilters(filterSources); const slugMaps = buildSlugMaps(sluggedFilters); diff --git a/app/(dashboard)/categorias/[categoryId]/page.tsx b/app/(dashboard)/categorias/[categoryId]/page.tsx index ded00a2..6d7307d 100644 --- a/app/(dashboard)/categorias/[categoryId]/page.tsx +++ b/app/(dashboard)/categorias/[categoryId]/page.tsx @@ -37,12 +37,13 @@ export default async function Page({ params, searchParams }: PageProps) { const periodoParam = getSingleParam(resolvedSearchParams, "periodo"); const { period: selectedPeriod } = parsePeriodParam(periodoParam); - const [detail, filterSources, estabelecimentos, userPreferences] = await Promise.all([ - fetchCategoryDetails(userId, categoryId, selectedPeriod), - fetchLancamentoFilterSources(userId), - getRecentEstablishmentsAction(), - fetchUserPreferences(userId), - ]); + const [detail, filterSources, estabelecimentos, userPreferences] = + await Promise.all([ + fetchCategoryDetails(userId, categoryId, selectedPeriod), + fetchLancamentoFilterSources(userId), + getRecentEstablishmentsAction(), + fetchUserPreferences(userId), + ]); if (!detail) { notFound(); diff --git a/app/(dashboard)/contas/[contaId]/extrato/page.tsx b/app/(dashboard)/contas/[contaId]/extrato/page.tsx index 6537bdb..bb928dd 100644 --- a/app/(dashboard)/contas/[contaId]/extrato/page.tsx +++ b/app/(dashboard)/contas/[contaId]/extrato/page.tsx @@ -58,14 +58,19 @@ export default async function Page({ params, searchParams }: PageProps) { notFound(); } - const [filterSources, logoOptions, accountSummary, estabelecimentos, userPreferences] = - await Promise.all([ - fetchLancamentoFilterSources(userId), - loadLogoOptions(), - fetchAccountSummary(userId, contaId, selectedPeriod), - getRecentEstablishmentsAction(), - fetchUserPreferences(userId), - ]); + const [ + filterSources, + logoOptions, + accountSummary, + estabelecimentos, + userPreferences, + ] = await Promise.all([ + fetchLancamentoFilterSources(userId), + loadLogoOptions(), + fetchAccountSummary(userId, contaId, selectedPeriod), + getRecentEstablishmentsAction(), + fetchUserPreferences(userId), + ]); const sluggedFilters = buildSluggedFilters(filterSources); const slugMaps = buildSlugMaps(sluggedFilters);