1
0
Fork 0

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
This commit is contained in:
Jason Fraley 2026-07-28 14:23:04 -04:00
parent 5d146f22bf
commit a456c8a246
3 changed files with 9 additions and 9 deletions

View file

@ -2,9 +2,9 @@ import config from "@payload-config";
import { getPayload } from "payload"; import { getPayload } from "payload";
import { GameStructure, Faction, Structure } from "@/payload-types"; import { GameStructure, Faction, Structure } from "@/payload-types";
import { StorageGrid } from "@/components/frontend/storage/StorageGrid"; 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 payloadConfig = await config;
const payload = await getPayload({ config: payloadConfig }); const payload = await getPayload({ config: payloadConfig });
@ -33,8 +33,8 @@ export default async function LogisticsStoragePage() {
<div className="p-5 flex flex-col gap-6"> <div className="p-5 flex flex-col gap-6">
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<WarehouseIcon className="size-5 text-muted-foreground" /> <Building2Icon className="size-5 text-muted-foreground" />
<h1 className="text-lg font-semibold">Storage</h1> <h1 className="text-lg font-semibold">Structures</h1>
</div> </div>
<p className="text-sm text-muted-foreground"> <p className="text-sm text-muted-foreground">
Overview of all structures and their stored resources across the theater of operations. Overview of all structures and their stored resources across the theater of operations.

View file

@ -77,11 +77,11 @@ export default async function StructureDetailPage({ params }: StructureDetailPag
<div className="p-5 flex flex-col gap-6 max-w-4xl"> <div className="p-5 flex flex-col gap-6 max-w-4xl">
<div className="flex flex-col gap-3"> <div className="flex flex-col gap-3">
<Link <Link
href="/logistics/storage" href="/logistics"
className="text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit" className="text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit"
> >
<ArrowLeftIcon className="size-3" /> <ArrowLeftIcon className="size-3" />
Back to Storage Back to Structures
</Link> </Link>
<div className="flex items-start justify-between gap-4"> <div className="flex items-start justify-between gap-4">

View file

@ -57,9 +57,9 @@ const data = {
icon: Warehouse, icon: Warehouse,
items: [ items: [
{ {
title: "Storage", title: "Structures",
url: "/logistics/storage", url: "/logistics",
// icon: Box, // icon: Building2,
}, },
{ {
title: "Market", title: "Market",