refactor(sidebar): group logistics nav into Assets/Operations/Personnel sections
Logistics entries are collapsed into collapsible groups, Personnel moves from its own sidebar section into Logistics, and an Event Log entry is added to Intelligence.
This commit is contained in:
parent
29f7e2b57a
commit
91dc48ad2c
2 changed files with 55 additions and 30 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
Users,
|
||||
Maximize,
|
||||
Minimize,
|
||||
ScrollText,
|
||||
SparkleIcon,
|
||||
} from "lucide-react";
|
||||
|
||||
|
|
@ -56,6 +57,11 @@ const data = {
|
|||
url: "/intelligence/missions/calendar",
|
||||
icon: CalendarDays,
|
||||
},
|
||||
{
|
||||
title: "Event Log",
|
||||
url: "/events",
|
||||
icon: ScrollText,
|
||||
},
|
||||
],
|
||||
...sidebarData,
|
||||
};
|
||||
|
|
@ -151,7 +157,6 @@ export function AppSidebar({
|
|||
)}
|
||||
<NavCore label="Helpdesk" items={data.navHelpdesk} />
|
||||
<NavCore label="Commerce" items={data.navCommerce} />
|
||||
<NavCore label="Personnel" items={data.navPersonnel} />
|
||||
<NavCore label="Personal" items={data.navPersonal} />
|
||||
{/*<NavProjects projects={data.projects} />*/}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import {
|
|||
TrendingUp,
|
||||
Truck,
|
||||
UserCog,
|
||||
Users,
|
||||
} from "lucide-react";
|
||||
|
||||
export const sidebarData = {
|
||||
|
|
@ -63,29 +64,60 @@ export const sidebarData = {
|
|||
],
|
||||
navLogistics: [
|
||||
{
|
||||
title: "Structures",
|
||||
url: "/logistics",
|
||||
icon: Building2,
|
||||
},
|
||||
{
|
||||
title: "Resources",
|
||||
url: "/logistics/resources",
|
||||
title: "Assets",
|
||||
url: "",
|
||||
icon: Boxes,
|
||||
items: [
|
||||
{
|
||||
title: "Structures",
|
||||
url: "/logistics",
|
||||
icon: Building2,
|
||||
},
|
||||
{
|
||||
title: "Resources",
|
||||
url: "/logistics/resources",
|
||||
icon: Boxes,
|
||||
},
|
||||
{
|
||||
title: "Vehicles",
|
||||
url: "/logistics/vehicles",
|
||||
icon: Truck,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Vehicles",
|
||||
url: "/logistics/vehicles",
|
||||
icon: Truck,
|
||||
},
|
||||
{
|
||||
title: "Shipments",
|
||||
url: "/logistics/shipments",
|
||||
title: "Operations",
|
||||
url: "",
|
||||
icon: Package,
|
||||
items: [
|
||||
{
|
||||
title: "Shipments",
|
||||
url: "/logistics/shipments",
|
||||
icon: Package,
|
||||
},
|
||||
{
|
||||
title: "Deployed Vehicles",
|
||||
url: "/logistics/game-vehicles",
|
||||
icon: Car,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Deployed Vehicles",
|
||||
url: "/logistics/game-vehicles",
|
||||
icon: Car,
|
||||
title: "Personnel",
|
||||
url: "",
|
||||
icon: Users,
|
||||
items: [
|
||||
{
|
||||
title: "Contacts",
|
||||
url: "/personnel/contacts",
|
||||
icon: Contact,
|
||||
},
|
||||
{
|
||||
title: "Statistics",
|
||||
url: "/personnel/statistics",
|
||||
icon: BarChart3,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
navCommerce: [
|
||||
|
|
@ -100,18 +132,6 @@ export const sidebarData = {
|
|||
icon: ShoppingBag,
|
||||
},
|
||||
],
|
||||
navPersonnel: [
|
||||
{
|
||||
title: "Contacts",
|
||||
url: "/personnel/contacts",
|
||||
icon: Contact,
|
||||
},
|
||||
{
|
||||
title: "Statistics",
|
||||
url: "/personnel/statistics",
|
||||
icon: BarChart3,
|
||||
},
|
||||
],
|
||||
navPersonal: [
|
||||
{
|
||||
title: "Awards",
|
||||
|
|
|
|||
Loading…
Reference in a new issue