forked from git.gladyson/openmonetis
refactor(sidebar): reorganizar navegação e aplicar formatação Biome
- Simplifica estrutura da sidebar combinando seções "Visão Geral" e "Gestão Financeira"
- Renomeia itens de relatórios para maior clareza ("Tendências", "Uso de Cartões")
- Aplica correções de formatação do Biome (ordenação de imports, quebras de linha)
- Remove código comentado não utilizado
- Adiciona migração 0014 do Drizzle
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ export function AppSidebar({
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton
|
||||
asChild
|
||||
className="data-[slot=sidebar-menu-button]:px-1.5! hover:bg-transparent active:bg-transparent pt-4 justify-center hover:scale-105 transition-all duration-200"
|
||||
className="data-[slot=sidebar-menu-button]:px-1.5! hover:bg-transparent active:bg-transparent pt-4 justify-center hover:scale-105 transition-all duration-200"
|
||||
>
|
||||
<a href="/dashboard">
|
||||
<LogoContent />
|
||||
|
||||
@@ -85,18 +85,13 @@ export function createSidebarNavData(
|
||||
return {
|
||||
navMain: [
|
||||
{
|
||||
title: "Visão Geral",
|
||||
title: "Gestão Financeira",
|
||||
items: [
|
||||
{
|
||||
title: "Dashboard",
|
||||
url: "/dashboard",
|
||||
icon: RiDashboardLine,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Gestão Financeira",
|
||||
items: [
|
||||
{
|
||||
title: "Lançamentos",
|
||||
url: "/lancamentos",
|
||||
@@ -164,11 +159,6 @@ export function createSidebarNavData(
|
||||
url: "/categorias",
|
||||
icon: RiPriceTag3Line,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Análise e Anotações",
|
||||
items: [
|
||||
{
|
||||
title: "Anotações",
|
||||
url: "/anotacoes",
|
||||
@@ -182,23 +172,23 @@ export function createSidebarNavData(
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Análise",
|
||||
items: [
|
||||
{
|
||||
title: "Insights",
|
||||
url: "/insights",
|
||||
icon: RiSparklingLine,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Relatórios",
|
||||
items: [
|
||||
{
|
||||
title: "Categorias",
|
||||
title: "Tendências",
|
||||
url: "/relatorios/categorias",
|
||||
icon: RiFileChartLine,
|
||||
},
|
||||
{
|
||||
title: "Cartões",
|
||||
title: "Uso de Cartões",
|
||||
url: "/relatorios/cartoes",
|
||||
icon: RiBankCard2Line,
|
||||
},
|
||||
@@ -206,11 +196,6 @@ export function createSidebarNavData(
|
||||
},
|
||||
],
|
||||
navSecondary: [
|
||||
// {
|
||||
// title: "Changelog",
|
||||
// url: "/changelog",
|
||||
// icon: RiGitCommitLine,
|
||||
// },
|
||||
{
|
||||
title: "Ajustes",
|
||||
url: "/ajustes",
|
||||
|
||||
@@ -113,9 +113,11 @@ export function NavMain({ sections }: { sections: NavSection[] }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{sections.map((section) => (
|
||||
{sections.map((section, index) => (
|
||||
<SidebarGroup key={section.title}>
|
||||
<SidebarGroupLabel>{section.title}</SidebarGroupLabel>
|
||||
<SidebarGroupLabel className="text-xs text-muted-foreground/60">
|
||||
{section.title}
|
||||
</SidebarGroupLabel>
|
||||
<SidebarGroupContent>
|
||||
<SidebarMenu>
|
||||
{section.items.map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user