Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,420 changes: 1,385 additions & 35 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@radix-ui/react-radio-group": "1.3.6",
"@radix-ui/react-slot": "1.2.0",
"@tanstack/react-query": "5.83.0",
"baseui": "15.0.0",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"date-fns": "4.1.0",
Expand All @@ -37,6 +38,8 @@
"react-hook-form": "7.55.0",
"recharts": "3.1.0",
"sonner": "2.0.4",
"styletron-engine-atomic": "1.6.2",
"styletron-react": "6.1.1",
"tailwind-merge": "3.2.0",
"zod": "3.24.3",
"zustand": "5.0.6"
Expand Down
2 changes: 1 addition & 1 deletion public/images/brand/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions src/app/(dashboard)/_sidebar/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ export function SidebarHeader() {
return (
<header className='relative flex items-center'>
<Link href={ROUTES.dashboard.main}>
<div className='flex items-center'>
<div className='flex items-center gap-3'>
<Image src={icon} alt='Símbolo do SVM' className='size-10 shrink-0' />
<span
data-visible={expanded}
className='text-primary absolute left-13 text-lg leading-none font-bold whitespace-nowrap opacity-0 transition-opacity duration-200 data-[visible=true]:opacity-100 data-[visible=true]:delay-150'
className='text-lg font-bold opacity-0 transition-opacity duration-200 data-[visible=true]:opacity-100 data-[visible=true]:delay-150'
>
Sistema
<br />
Viver Melhor
SVM
</span>
</div>
</Link>
Expand Down
45 changes: 23 additions & 22 deletions src/app/(dashboard)/_sidebar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {
BoltIcon,
HeartHandshakeIcon,
LayoutDashboardIcon,
Share2Icon,
UserRoundCheckIcon,
Bolt,
Headset,
LayoutDashboard,
Share2,
UserRoundCheck,
UserRoundCog,
Users2Icon,
} from 'lucide-react'

Expand Down Expand Up @@ -36,11 +37,11 @@ export async function DashboardSidebar() {

const SIDEBAR_SECTIONS = [
{
id: 'common',
title: 'Geral',
links: [
{
label: 'Visão Geral',
icon: <LayoutDashboardIcon />,
icon: <LayoutDashboard />,
path: ROUTES.dashboard.main,
},
{
Expand All @@ -50,34 +51,34 @@ const SIDEBAR_SECTIONS = [
},
{
label: 'Encaminhados',
icon: <Share2Icon />,
path: ROUTES.dashboard.referrals.main,
icon: <Share2 />,
path: ROUTES.dashboard.forwarded.main,
},
{
label: 'Aprovações',
icon: <UserRoundCheckIcon />,
icon: <UserRoundCheck />,
path: ROUTES.dashboard.approvals.main,
},
{
label: 'Equipe',
icon: <HeartHandshakeIcon />,
path: ROUTES.dashboard.teams.main,
},
],
},
{
id: 'others',
title: 'Outros',
links: [
{
label: 'Equipes',
icon: <UserRoundCog />,
path: ROUTES.dashboard.teams.main,
},
{
label: 'Configurações',
icon: <BoltIcon />,
icon: <Bolt />,
path: ROUTES.dashboard.settings.main,
},
// {
// label: 'Suporte',
// icon: <HeadsetIcon />,
// path: ROUTES.dashboard.support.main,
// },
{
label: 'Suporte',
icon: <Headset />,
path: ROUTES.dashboard.support.main,
},
],
},
]
11 changes: 9 additions & 2 deletions src/app/(dashboard)/_sidebar/menu-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { cn } from '@/utils/class-name-merge'

interface DashboardSidebarMenuSectionProps {
sections: {
id: string
title: string
links: {
label: string
icon: React.ReactNode
Expand All @@ -26,7 +26,14 @@ export function DashboardSidebarMenuSection({
return (
<section className='mb-auto space-y-8'>
{sections.map((section) => (
<section key={section.id} className='transition-all'>
<section key={section.title} className='transition-all'>
<p
data-visible={expanded}
className='text-disabled mb-4 text-xs font-medium uppercase opacity-0 transition-opacity delay-75 data-[visible=true]:opacity-100'
>
{section.title}
</p>

<nav className='flex flex-col gap-2'>
{section.links.map((link) => {
const isActive = link.path === pathname
Expand Down
Loading
Loading