litellm/ui/litellm-dashboard/src/components/Navbar
ryan-crabbe-berri 1258d84221 refactor(ui): route the sidebar by pathname and shrink the ?page= shim to a redirect table
The sidebar and header were still keyed on legacy ?page= ids and mapped
back and forth through MIGRATED_PAGES, legacyPageHref and
legacyKeyForPathname. Leaves are now plain Next links to their path
route, the active item and breadcrumb come from usePathname, and the
setPage/defaultSelectedKey prop chain is gone.

The id-to-route table moves next to the dashboard root page as its only
consumer. That redirect now forwards the remaining query params instead
of dropping them, so deep links such as the proxy's MCP env-var setup
link (?page=mcp-servers&fill_env_vars=) no longer rely on the target page
reading the pre-redirect URL during its first render. The proxy builds
that link as /ui/mcp-servers?fill_env_vars= directly, and the Playground
warnings link to the real routes instead of relative ?page= URLs.

migratedHref is renamed uiHref, the /ui base-path helper it always was.
2026-09-05 16:44:11 -07:00
..
BlogDropdown fix(ui): restore the Blog hover highlight in the top bar 2026-08-27 20:58:16 -07:00
CommunityEngagementButtons fix(ui): de-duplicate the reset budget option and polish shadcn surfaces 2026-08-15 00:33:20 -07:00
DocsLink fix(ui): give the shared product-link class a focus ring 2026-08-27 20:50:41 -07:00
NotificationsBell refactor(ui): map hardcoded Tailwind palette classes onto semantic tokens (#37576) 2026-08-19 22:11:44 -07:00
UserDropdown fix(ui): give status colours a readable foreground and drop the muted 70% step (#37649) 2026-08-20 10:58:32 -07:00
WorkerDropdown test(ui): drive fields with change events where the typing is not the behaviour (#37495) 2026-08-19 12:11:37 -07:00
navDisplayName.test.ts chore(ci): merge dev branch (#28657) 2026-05-25 13:48:47 -07:00
navDisplayName.ts chore(ci): merge dev branch (#28657) 2026-05-25 13:48:47 -07:00
navProductLinkClass.ts fix(ui): give the shared product-link class a focus ring 2026-08-27 20:50:41 -07:00
ViewSwitcher.test.tsx refactor(ui): route the sidebar by pathname and shrink the ?page= shim to a redirect table 2026-09-05 16:44:11 -07:00
ViewSwitcher.tsx refactor(ui): route the sidebar by pathname and shrink the ?page= shim to a redirect table 2026-09-05 16:44:11 -07:00