Repository navigation
feat(ui): list every application on the Applications sidebar page - #52496
Conversation
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>
…itellm_app_customer_surcharge
…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>
…tomer_surcharge Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…into litellm_applications_sidebar
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>
…into litellm_applications_sidebar
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.
…' into litellm_app_customer_provisioning
…g' into litellm_app_customer_surcharge
…into litellm_applications_sidebar
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>
…into litellm_applications_sidebar
…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>
…into litellm_applications_sidebar
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…into litellm_applications_sidebar
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
|
Merging this PR will not alter performance1 warning
Comparing Footnotes |
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:
How it solves it:
?app=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
After: every application is on one screen
Pre-Submission checklist
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-5requests. The app definition is Teams, with three teams, two of them configured as apps.Before (aec7713)
After (247ea82)
coworkeropens its settings with its name and ID as the title and "Back to applications" at the bottom?app=<resource id>URL reopens the same applicationsearchshows Blocked in its rowTests
Type
🆕 New Feature
Caveats (if any)
Medium
Low
Final Attestation
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 usespage/page_sizein the URL (default 25 rows). The sidebar label/strings are updated to “Applications” and the nav icon switches toAppWindow.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.