refactor(ui): drop comments that restate the redirect table and home route

This commit is contained in:
ryan-crabbe-berri 2026-09-05 16:50:20 -07:00
parent 1258d84221
commit 2dfa14648a
2 changed files with 0 additions and 3 deletions

View file

@ -1,7 +1,5 @@
import { uiHref } from "@/utils/uiHref";
// Old ?page= bookmarks and the proxy's MCP env-var setup link still land on the UI root;
// this table sends them to the path route that replaced each page id.
const LEGACY_PAGE_ROUTES: ReadonlyMap<string, string> = new Map(
Object.entries({
"api-keys": "api-keys",

View file

@ -366,7 +366,6 @@ const HOME_ROUTE = "api-keys";
const routeOf = (item: MenuItem): string => item.route ?? item.page;
// The dashboard root serves Virtual Keys, so an empty segment selects that entry.
const routeForPathname = (pathname: string): string => routeSegmentForPathname(pathname) || HOME_ROUTE;
const findParentKey = (route: string): string | null => {