Skip to content

feat(ui): list every application on the Applications sidebar page - #52496

Merged
devin-ai-integration[bot] merged 84 commits into
mainfrom
litellm_applications_sidebar
Nov 18, 2026
Merged

devin-ai-integration[bot] merged 84 commits into
mainfrom
litellm_applications_sidebar

Conversation

@moe-berri

@moe-berri moe-berri commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

add applications to customer portal sidebar

Details

Link to Devin session: https://app.devin.ai/sessions/df57dd6feb764cd684428371c02d408b
Open in Devin Desktop: https://app.devin.ai/desktop/session/df57dd6feb764cd684428371c02d408b?variant=devin
Requested by: @moe-berri

Stacked on #52492 (base branch litellm_app_customer_surcharge). Dashboard only, no backend change.

TLDR

Problem this solves:

  • The sidebar entry is "Apps" with the Customers icon
  • The page is one dropdown, so apps cannot be seen at a glance

How it solves it:

  • Sidebar entry renamed "Applications" with its own window icon
  • Page lists every application in a searchable table
  • Columns show budget usage, surcharge, new customers and status
  • The budget column shows the current window's spend against its cap
  • The table shows 25 rows per page, with the page kept in the URL
  • Selecting an application opens its settings, with a way back
  • The open application is kept in the URL as ?app=
  • Same card, table, avatar and badge styles as the Customers list

Intentional product change: the "Select an app" dropdown is replaced by the table. Nothing is lost, each application's settings form is unchanged.

User Flow

Before: an admin who wants to see how their applications are set up has to open them one at a time

  1. Admin opens https://litellm-domain/ui/apps from the "Apps" sidebar entry, which has the same icon as Customers
  2. The page shows a "Select an app" dropdown and no list
  3. Admin picks one app to see its budget, surcharge and customer creation setting, then picks the next

After: every application is on one screen

  1. Admin opens https://litellm-domain/ui/apps from the "Applications" sidebar entry, which has its own icon
  2. The page lists every team, project or key of the chosen layer with budget usage, surcharge, whether it may create new customers and whether it is configured
  3. Admin types in the search box to filter by name or ID
  4. Admin selects an application, changes its surcharge and saves, then selects "Back to applications" and the table shows the new value

Before, Apps dropdown

After, Applications list

Customers list, same viewport

Applications list, same viewport

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally
  • My PR passes all required CI/CD checks
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished

Screenshots / Proof of Fix

Driven on the dashboard dev server against a live 2-worker proxy with real Postgres and Redis, on data from real anthropic/claude-haiku-4-5 requests. The app definition is Teams, with three teams, two of them configured as apps.

python litellm/proxy/proxy_cli.py --config config.yaml --num_workers 2 --detailed_debug --reload --use_v2_migration_resolver 2>&1 | tee litellm.log
LENS_DEV_PROXY_URL=http://127.0.0.1:4000 npm run dev -- --hostname 0.0.0.0 --port 3000

Before (aec7713)

  1. The sidebar shows "Apps" with the building icon that Customers uses
  2. /ui/apps shows a single "Select an app" dropdown, see the first screenshot above

After (247ea82)

  1. The sidebar shows Customers, Applications and Settings, and Applications has a window icon
  2. /ui/apps lists all three teams. The team that is not an app shows $0.00, Gateway default, Allowed and Not configured
  3. Searching by alias or by ID filters the rows, and a search with no match shows "No applications match your search."
  4. Selecting coworker opens its settings with its name and ID as the title and "Back to applications" at the bottom
  5. Saving its surcharge from 5 to 7.5 and going back shows 7.5% in the table with no reload. Reloading the ?app=<resource id> URL reopens the same application
  6. Turning off customer creation for search shows Blocked in its row
  7. Opening the unconfigured team and saving flips its status to Configured

Tests

src/app/(dashboard)/apps/_components (vitest): 68 passed
src/components/LeftNav.test.tsx: 63 passed

Type

🆕 New Feature

Caveats (if any)

Medium

  • No sortable headers, the Customers list has them
  • Pagination, window budgets and the linked-application loading state were added after the live run and are covered by tests only
  • Rows sort by name only

Low

  • The page before a definition is chosen was not driven live
  • Loading and error states were not driven live
  • Only the English locale has the new strings

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Note

Low Risk
Dashboard-only UI refactor with no API or auth changes; behavior is covered by new integration tests.

Overview
Replaces the “Select an app” dropdown on the Applications admin page with a searchable, paginated table that shows every gateway resource at the configured layer, merged with configured app settings.

Each row surfaces current budget-window spend (via AppBudgetLimits), surcharge, new-customer allowance, and configured vs not configured. Clicking an application opens the existing defaults form in a detail view; selection is synced to ?app=, with Back to applications clearing it. Pagination uses page / page_size in the URL (default 25 rows). The sidebar label/strings are updated to “Applications” and the nav icon switches to AppWindow.

New pieces include ApplicationsTable, applicationRows / applicationInitials, unit tests, and expanded integration coverage for listing, search, pagination, deep links, and budget display.

Reviewed by Cursor Bugbot for commit ef36af9. Bugbot is set up for automated code reviews on this repo. Configure here.

devin-ai-integration Bot and others added 30 commits November 18, 2026 01:21
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
… requests

A cost_margin_config entry keyed customer adds a percentage to requests made for a customer organization. The surcharge is part of spend, so customer budgets count it, and each request records it in cost_breakdown and in a customer_margin_spend column on the daily spend tables so cost before the surcharge stays exact

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…t for customer requests

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Let administrators choose Teams, Projects, or Virtual Keys as the gateway-wide app scope and assign customer budgets from existing budget groups.

Includes the shared budget-group integration from PR #52411 and builds on the existing app accounting implementation.
Use the existing dashboard controls and compact budget rows. Add app filtering to customer usage and retain trusted app context for budget rejections.

Update request-header handling, tracing registry coverage, bounded app discovery, and optional caller-metadata tests.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…s binding

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…mber

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
moe-berri and others added 2 commits November 18, 2026 14:41
…tomer_surcharge

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
ishaan-j-berri and others added 18 commits November 19, 2026 00:20
Use shared customer budget controls for app forms and resolve member budgets at one owner. Remove unused app lifecycle and listing routes.

Parse request identity once, check each global and app scope once, and keep app counters alive through the existing database flush window.
Persist the original trusted customer and app billing context on managed jobs. Restore it in batch and background cost polling with the original request time, preserving admission windows and existing claim behavior.

Recognize the India Bedrock model prefix in dashboard model setup.
…omer_provisioning

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…tomer_surcharge

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Set the required migration lock timeout and add the billing-context column only if it is absent.

Use per-request completion test callbacks and await the MCP panel failure notification. Keep response, pricing, and complete callback-sequence assertions.
Use the upstream country-prefix handling to clear the model-setup merge conflict.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…tomer_surcharge

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ne helper

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…tomer_surcharge

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Base automatically changed from litellm_app_customer_surcharge to main November 18, 2026 19:56
@moe-berri
moe-berri requested a review from a team November 18, 2026 19:56
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot enabled auto-merge (squash) November 18, 2026 19:57
@greptile-apps
greptile-apps Bot dismissed their stale review November 18, 2026 19:58

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@CLAassistant

CLAassistant commented Nov 18, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ moe-berri
❌ devin-ai-integration[bot]
❌ ishaan-j-berri
You have signed the CLA already but the status is still pending? Let us recheck it.

@devin-ai-integration
devin-ai-integration Bot merged commit 0273cfe into main Nov 18, 2026
53 of 54 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the litellm_applications_sidebar branch November 18, 2026 20:08
@codspeed

codspeed Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 45 untouched benchmarks


Comparing litellm_applications_sidebar (47337bd) with main (facccd8)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (2568c47) during the generation of this report, so facccd8 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

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.

4 participants