feat: (web) add item route

This commit is contained in:
syntaxbullet
2026-01-17 13:11:50 +01:00
parent afe82c449b
commit d7543d9f48
4 changed files with 26 additions and 2 deletions

1
.gitignore vendored
View File

@@ -46,3 +46,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
src/db/data src/db/data
src/db/log src/db/log
scratchpad/ scratchpad/
tickets/

View File

@@ -4,6 +4,7 @@ import "./index.css";
import { DesignSystem } from "./pages/DesignSystem"; import { DesignSystem } from "./pages/DesignSystem";
import { AdminQuests } from "./pages/AdminQuests"; import { AdminQuests } from "./pages/AdminQuests";
import { AdminOverview } from "./pages/admin/Overview"; import { AdminOverview } from "./pages/admin/Overview";
import { AdminItems } from "./pages/admin/Items";
import { Home } from "./pages/Home"; import { Home } from "./pages/Home";
import { Toaster } from "sonner"; import { Toaster } from "sonner";
@@ -28,6 +29,7 @@ export function App() {
<Route path="/admin" element={<Navigate to="/admin/overview" replace />} /> <Route path="/admin" element={<Navigate to="/admin/overview" replace />} />
<Route path="/admin/overview" element={<AdminOverview />} /> <Route path="/admin/overview" element={<AdminOverview />} />
<Route path="/admin/quests" element={<AdminQuests />} /> <Route path="/admin/quests" element={<AdminQuests />} />
<Route path="/admin/items" element={<AdminItems />} />
<Route path="/settings" element={<SettingsLayout />}> <Route path="/settings" element={<SettingsLayout />}>

View File

@@ -1,6 +1,6 @@
import * as React from "react" import * as React from "react"
import { useLocation, type Location } from "react-router-dom" import { useLocation, type Location } from "react-router-dom"
import { Home, Palette, ShieldCheck, Settings, LayoutDashboard, Trophy, SlidersHorizontal, Coins, Cog, UserCog, type LucideIcon } from "lucide-react" import { Home, Palette, ShieldCheck, Settings, LayoutDashboard, Trophy, SlidersHorizontal, Coins, Cog, UserCog, Package, type LucideIcon } from "lucide-react"
export interface NavSubItem { export interface NavSubItem {
title: string title: string
@@ -46,6 +46,7 @@ const NAV_CONFIG: NavConfigItem[] = [
subItems: [ subItems: [
{ title: "Overview", url: "/admin/overview", icon: LayoutDashboard }, { title: "Overview", url: "/admin/overview", icon: LayoutDashboard },
{ title: "Quests", url: "/admin/quests", icon: Trophy }, { title: "Quests", url: "/admin/quests", icon: Trophy },
{ title: "Items", url: "/admin/items", icon: Package },
] ]
}, },
{ {

View File

@@ -0,0 +1,20 @@
import React from "react";
import { SectionHeader } from "../../components/section-header";
export function AdminItems() {
return (
<main className="pt-8 px-8 pb-12 max-w-7xl mx-auto space-y-12">
<SectionHeader
badge="Item Management"
title="Items"
description="Create and manage items for the Aurora RPG."
/>
<div className="animate-in fade-in slide-up duration-700">
<p className="text-muted-foreground">Items management coming soon...</p>
</div>
</main>
);
}
export default AdminItems;