Skip to content

Conversation

ARajan1084
Copy link
Collaborator

LiteLLM UI Refactor Infrastructure

This PR lays the groundwork for a full refactor of LiteLLM's UI. The refactored UI is feature flagged to avoid regressions. If a regression is encountered, users can switch back to the old UI via the feature flag.

Deprecation notices are added on components as they are refactored in order to direct developer effort towards working on the new components and avoiding 2 sources of truth (as much as possible).

This refactor will move fast, aiming to have the entire frontend on NextJS routing within 2 weeks. Here is the tentative plan:

  1. Move frontend components to NextJS routing
  2. Break down massive components into small, testable components, hooks, utils, and networking logic, eliminating prop drilling.
  3. Add vitests to critical components, hooks, and logic.

Relevant issues

N/A

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
🧹 Refactoring
🚄 Infrastructure

Changes

  • new (console) folder containing refactored UI components

simplifies handleCreate function for CreateKeyModal

moved hooks, components, files where I want them

moved virtual-key page to (console) for common layout

added layout for refactored console file structure, sidebar

wired teams to refactored components

fixing type issue

wired new top level hook useAuthorized

Adds routing to unrefactored pages

Update leftnav.tsx

Update useAuthorized.ts

useAuthorized in virtual-keys/page and deprecation notices

prelim VirtualKeyViewPage, removed old comment

Delete page.tsx
Copy link

vercel bot commented Oct 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Oct 7, 2025 3:44am

@krrishdholakia krrishdholakia marked this pull request as draft October 7, 2025 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant