From a4da0a71432de301ef17c6a27763d991e0ad8f02 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Sun, 15 Mar 2026 23:24:10 +0000 Subject: [PATCH] feat: move o changelog para uma rota dedicada --- next.config.ts | 79 ------------------- .../{settings => }/changelog/layout.tsx | 2 +- .../{settings => }/changelog/page.tsx | 0 .../navigation/navbar/navbar-user.tsx | 4 +- 4 files changed, 3 insertions(+), 82 deletions(-) rename src/app/(dashboard)/{settings => }/changelog/layout.tsx (92%) rename src/app/(dashboard)/{settings => }/changelog/page.tsx (100%) diff --git a/next.config.ts b/next.config.ts index 34c8e03..f360909 100644 --- a/next.config.ts +++ b/next.config.ts @@ -19,85 +19,6 @@ const nextConfig: NextConfig = { devIndicators: { position: "bottom-right", }, - async redirects() { - return [ - { source: "/ajustes", destination: "/settings", permanent: true }, - { source: "/anotacoes", destination: "/notes", permanent: true }, - { source: "/calendario", destination: "/calendar", permanent: true }, - { source: "/cartoes", destination: "/cards", permanent: true }, - { - source: "/accounts/:accountId/extrato", - destination: "/accounts/:accountId/statement", - permanent: true, - }, - { - source: "/cartoes/:cartaoId/fatura", - destination: "/cards/:cartaoId/invoice", - permanent: true, - }, - { - source: "/cards/:cardId/fatura", - destination: "/cards/:cardId/invoice", - permanent: true, - }, - { - source: "/categorias/historico", - destination: "/categories/history", - permanent: true, - }, - { - source: "/categorias/:categoryId", - destination: "/categories/:categoryId", - permanent: true, - }, - { source: "/categorias", destination: "/categories", permanent: true }, - { source: "/contas", destination: "/accounts", permanent: true }, - { - source: "/contas/:contaId/extrato", - destination: "/accounts/:contaId/statement", - permanent: true, - }, - { source: "/lancamentos", destination: "/transactions", permanent: true }, - { source: "/orcamentos", destination: "/budgets", permanent: true }, - { source: "/pagadores", destination: "/payers", permanent: true }, - { - source: "/pagadores/:pagadorId", - destination: "/payers/:pagadorId", - permanent: true, - }, - { source: "/pre-lancamentos", destination: "/inbox", permanent: true }, - { - source: "/relatorios", - destination: "/reports/category-trends", - permanent: true, - }, - { - source: "/relatorios/analise-parcelas", - destination: "/reports/installment-analysis", - permanent: true, - }, - { - source: "/relatorios/estabelecimentos", - destination: "/reports/establishments", - permanent: true, - }, - { - source: "/relatorios/tendencias", - destination: "/reports/category-trends", - permanent: true, - }, - { - source: "/relatorios/uso-cartoes", - destination: "/reports/card-usage", - permanent: true, - }, - { - source: "/changelog", - destination: "/settings/changelog", - permanent: true, - }, - ]; - }, // Headers for Safari compatibility async headers() { return [ diff --git a/src/app/(dashboard)/settings/changelog/layout.tsx b/src/app/(dashboard)/changelog/layout.tsx similarity index 92% rename from src/app/(dashboard)/settings/changelog/layout.tsx rename to src/app/(dashboard)/changelog/layout.tsx index 226f8f2..cd1b546 100644 --- a/src/app/(dashboard)/settings/changelog/layout.tsx +++ b/src/app/(dashboard)/changelog/layout.tsx @@ -2,7 +2,7 @@ import { RiHistoryLine } from "@remixicon/react"; import PageDescription from "@/shared/components/page-description"; export const metadata = { - title: "Cartões | OpenMonetis", + title: "Changelog | OpenMonetis", }; export default function RootLayout({ diff --git a/src/app/(dashboard)/settings/changelog/page.tsx b/src/app/(dashboard)/changelog/page.tsx similarity index 100% rename from src/app/(dashboard)/settings/changelog/page.tsx rename to src/app/(dashboard)/changelog/page.tsx diff --git a/src/shared/components/navigation/navbar/navbar-user.tsx b/src/shared/components/navigation/navbar/navbar-user.tsx index 89cf378..c0ef339 100644 --- a/src/shared/components/navigation/navbar/navbar-user.tsx +++ b/src/shared/components/navigation/navbar/navbar-user.tsx @@ -105,12 +105,12 @@ export function NavbarUser({ user, pagadorAvatarUrl }: NavbarUserProps) { Changelog - v{version} + v{version}