- Introduced `Field` and `Label` components for better form handling. - Refactored `Input` and `Textarea` components to use forward refs and improved styling. - Updated `PendingSubmitButton` to use the new `Button` component. - Enhanced `Skeleton` component for better layout handling. - Revamped `Toast` component to support live regions and improved accessibility. - Updated sidebar configuration to use typed icons. - Added phase 3 UI boundary checks to prevent usage of deprecated imports. - Implemented new authentication action handler for better cookie management. - Improved setup logic for freelancer accounts with repair functionality.
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import {
|
|
BarChart3,
|
|
BookOpenText,
|
|
Building2,
|
|
Calendar,
|
|
CheckSquare2,
|
|
FolderKanban,
|
|
MessageCircleHeart,
|
|
Sparkles,
|
|
Wallet,
|
|
type LucideIcon,
|
|
} from "lucide-react";
|
|
|
|
export type SidebarNavItem = {
|
|
title: string;
|
|
href?: string;
|
|
icon?: LucideIcon;
|
|
items?: SidebarNavItem[];
|
|
};
|
|
|
|
export type SidebarNavGroup = {
|
|
title: string;
|
|
items: SidebarNavItem[];
|
|
};
|
|
|
|
export const sidebarData: SidebarNavGroup[] = [
|
|
{
|
|
title: "GENEL BAKIŞ",
|
|
items: [
|
|
{ title: "Dashboard", href: "/", icon: Sparkles },
|
|
{ title: "Takvim", href: "/calendar", icon: Calendar },
|
|
{ title: "Analizler", href: "/analytics", icon: BarChart3 },
|
|
],
|
|
},
|
|
{
|
|
title: "OPERASYON",
|
|
items: [
|
|
{ title: "Müşteriler", href: "/clients", icon: Building2 },
|
|
{ title: "Projeler", href: "/projects", icon: FolderKanban },
|
|
{ title: "Görevler", href: "/tasks", icon: CheckSquare2 },
|
|
{ title: "Finans", href: "/finance", icon: Wallet },
|
|
],
|
|
},
|
|
{
|
|
title: "KİŞİSEL",
|
|
items: [{ title: "Günlük", href: "/journal", icon: BookOpenText }],
|
|
},
|
|
{
|
|
title: "AI ASİSTAN",
|
|
items: [{ title: "Sohbet", href: "/chat", icon: MessageCircleHeart }],
|
|
},
|
|
];
|