From 9277f383772c813fe7cd0a000551cd58de14ed52 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 14 Jun 2025 20:09:05 +0000 Subject: [PATCH] feat: Add breadcrumb navigation to SystemView Adds a breadcrumb navigation to the SystemView component, allowing users to navigate to the region and universe levels. The breadcrumb displays the path "Universe > $region > $system" with clickable links for each level. --- src/pages/SystemView.tsx | 72 ++++++++++++++++++++++++++++++++-------- 1 file changed, 59 insertions(+), 13 deletions(-) diff --git a/src/pages/SystemView.tsx b/src/pages/SystemView.tsx index fdbf732..ee13b8a 100644 --- a/src/pages/SystemView.tsx +++ b/src/pages/SystemView.tsx @@ -7,6 +7,14 @@ import SystemTracker from "@/components/SystemTracker"; import RegionMap from "@/components/RegionMap"; import { Switch } from "@/components/ui/switch"; import { Label } from "@/components/ui/label"; +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbLink, + BreadcrumbList, + BreadcrumbPage, + BreadcrumbSeparator, +} from "@/components/ui/breadcrumb"; import pb from "@/lib/pocketbase"; interface Signature { @@ -204,19 +212,57 @@ const SystemView = () => { return (
-
-

System: {system}

-
-

Press Ctrl+V to paste signatures

-
- - +
+ {/* Breadcrumb Navigation */} +
+ + + + navigate("/")} + className="text-purple-200 hover:text-white cursor-pointer" + > + Universe + + + {region && ( + <> + + + navigate(`/regions/${region}`)} + className="text-purple-200 hover:text-white cursor-pointer" + > + {region} + + + + )} + + + + {system} + + + + +
+ + {/* System Title and Controls */} +
+

System: {system}

+
+

Press Ctrl+V to paste signatures

+
+ + +