From a456c8a246cb7d46b6e9a5174f4d31dbff8d38c8 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Tue, 28 Jul 2026 14:23:04 -0400 Subject: [PATCH] refactor(nav): replace Storage page with Structures list at /logistics - Move storage overview from /logistics/storage to /logistics root - Rename page heading and sidebar label from Storage to Structures - Update back link on structure detail page - Remove old /logistics/storage route --- src/app/(frontend)/logistics/{storage => }/page.tsx | 8 ++++---- src/app/(frontend)/logistics/structures/[id]/page.tsx | 4 ++-- src/components/frontend/blocks/AppSidebar.tsx | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) rename src/app/(frontend)/logistics/{storage => }/page.tsx (85%) diff --git a/src/app/(frontend)/logistics/storage/page.tsx b/src/app/(frontend)/logistics/page.tsx similarity index 85% rename from src/app/(frontend)/logistics/storage/page.tsx rename to src/app/(frontend)/logistics/page.tsx index 4d05153..757ae9e 100644 --- a/src/app/(frontend)/logistics/storage/page.tsx +++ b/src/app/(frontend)/logistics/page.tsx @@ -2,9 +2,9 @@ import config from "@payload-config"; import { getPayload } from "payload"; import { GameStructure, Faction, Structure } from "@/payload-types"; import { StorageGrid } from "@/components/frontend/storage/StorageGrid"; -import { WarehouseIcon } from "lucide-react"; +import { Building2Icon } from "lucide-react"; -export default async function LogisticsStoragePage() { +export default async function LogisticsPage() { const payloadConfig = await config; const payload = await getPayload({ config: payloadConfig }); @@ -33,8 +33,8 @@ export default async function LogisticsStoragePage() {
- -

Storage

+ +

Structures

Overview of all structures and their stored resources across the theater of operations. diff --git a/src/app/(frontend)/logistics/structures/[id]/page.tsx b/src/app/(frontend)/logistics/structures/[id]/page.tsx index 3bf481c..0eef2a5 100644 --- a/src/app/(frontend)/logistics/structures/[id]/page.tsx +++ b/src/app/(frontend)/logistics/structures/[id]/page.tsx @@ -77,11 +77,11 @@ export default async function StructureDetailPage({ params }: StructureDetailPag

- Back to Storage + Back to Structures
diff --git a/src/components/frontend/blocks/AppSidebar.tsx b/src/components/frontend/blocks/AppSidebar.tsx index a2fddb6..5cad616 100644 --- a/src/components/frontend/blocks/AppSidebar.tsx +++ b/src/components/frontend/blocks/AppSidebar.tsx @@ -57,9 +57,9 @@ const data = { icon: Warehouse, items: [ { - title: "Storage", - url: "/logistics/storage", - // icon: Box, + title: "Structures", + url: "/logistics", + // icon: Building2, }, { title: "Market",