Repository navigation
feat(ui): give each Models + Endpoints tab its own path #34327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yuneng-berri
merged 6 commits into
litellm_internal_staging
from
litellm_models_tab_routes
Jul 23, 2026
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
38b6cda
feat(ui): give each Models + Endpoints tab its own path
ryan-crabbe-berri 9f80530
refactor(ui): decompose Models + Endpoints into per-tab pages with UR…
ryan-crabbe-berri d3cd0c1
fix(ui): render model tab panels standalone instead of Tremor TabPanel
ryan-crabbe-berri 54f2622
fix(ui): make model/team drill-in navigation work under the /ui stati…
ryan-crabbe-berri 2afe164
fix(ui): use window.location.replace for the tab-permission redirect
ryan-crabbe-berri 1ee5bc1
fix(ui): drive model/team drill-in with history.pushState for client-…
ryan-crabbe-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/TabRoutePlaceholder.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export default function TabRoutePlaceholder() { | ||
| return null; | ||
| } |
1 change: 1 addition & 0 deletions
1
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/add/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from "../TabRoutePlaceholder"; |
1 change: 1 addition & 0 deletions
1
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/health/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from "../TabRoutePlaceholder"; |
17 changes: 17 additions & 0 deletions
17
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/layout.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| "use client"; | ||
|
|
||
| import type { ReactNode } from "react"; | ||
| import ModelsAndEndpointsView from "@/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView"; | ||
| import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized"; | ||
| import { useTeams } from "@/app/(dashboard)/hooks/teams/useTeams"; | ||
|
|
||
| export default function ModelsAndEndpointsLayout({ children }: { children: ReactNode }) { | ||
| const { premiumUser } = useAuthorized(); | ||
| const { data: teams } = useTeams(); | ||
| return ( | ||
| <> | ||
| <ModelsAndEndpointsView premiumUser={premiumUser} teams={teams ?? null} /> | ||
| {children} | ||
| </> | ||
| ); | ||
| } |
1 change: 1 addition & 0 deletions
1
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/llm-credentials/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from "../TabRoutePlaceholder"; |
1 change: 1 addition & 0 deletions
1
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/model-group-alias/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from "../TabRoutePlaceholder"; |
12 changes: 1 addition & 11 deletions
12
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1 @@ | ||
| "use client"; | ||
|
|
||
| import ModelsAndEndpointsView from "@/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView"; | ||
| import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized"; | ||
| import { useTeams } from "@/app/(dashboard)/hooks/teams/useTeams"; | ||
|
|
||
| export default function ModelsAndEndpointsPage() { | ||
| const { premiumUser } = useAuthorized(); | ||
| const { data: teams } = useTeams(); | ||
| return <ModelsAndEndpointsView premiumUser={premiumUser} teams={teams ?? null} />; | ||
| } | ||
| export { default } from "./TabRoutePlaceholder"; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.