app: rename the System map route /map -> /system

The nav label was already "System" and the page is SystemMap; only the URL
was stale. Move it to /system, add a back-compat redirect from /map, and update
the command-palette navigations. Unrelated graph node type "map" left as-is.
This commit is contained in:
2026-07-07 21:08:58 -07:00
parent a9f1e5b099
commit e33c505949
4 changed files with 9 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ interface AppItem {
function detailPathFor(kind: string, name: string): string {
if (kind === "job") return `/jobs/${name}`
if (kind === "tool") return `/tools/${name}`
if (kind === "reference") return `/map`
if (kind === "reference") return `/system`
return `/services/${name}`
}
@@ -137,13 +137,13 @@ function PaletteBody({ onClose }: { onClose: () => void }) {
const launch = (a: AppItem) => {
onClose()
if (a.launchUrl) window.open(a.launchUrl, "_blank", "noreferrer")
else if (a.mapNodeId) navigate(`/map?focus=${encodeURIComponent(a.mapNodeId)}`)
else if (a.mapNodeId) navigate(`/system?focus=${encodeURIComponent(a.mapNodeId)}`)
else navigate(a.detailPath)
}
const goToMap = (a: AppItem) => {
if (!a.mapNodeId) return
onClose()
navigate(`/map?focus=${encodeURIComponent(a.mapNodeId)}`)
navigate(`/system?focus=${encodeURIComponent(a.mapNodeId)}`)
}
const details = (a: AppItem) => {
onClose()

View File

@@ -32,7 +32,7 @@ type NavGroup = { label: string; icon: LucideIcon; children: NavLeaf[] }
// "Deployments" parent. Programs (the catalog) stays top-level.
const NAV: (NavLeaf | NavGroup)[] = [
{ to: "/", label: "Overview", icon: LayoutDashboard, end: true },
{ to: "/map", label: "System", icon: Gauge },
{ to: "/system", label: "System", icon: Gauge },
{ to: "/gateway", label: "Gateway", icon: Globe },
{
label: "Deployments",