fix(ui): restore the public model name tooltip layout in the add model flow - #37986
Merged
yuneng-berri merged 1 commit intoAug 24, 2026
Merged
Conversation
…l flow The tooltip popup is an inline-flex row, so the four sibling blocks passed as a fragment laid out side by side in four columns. Wrap them in a single flex-col container instead. The inline code samples also used bg-muted, which is defined against the page surface, not the inverted tooltip surface, so they rendered as near-white chips carrying near-white text. Tint them from the popup's own token instead.
Contributor
Greptile SummaryThis PR restores the Public Model Name tooltip’s readable layout and inline-code contrast in the Add Model flow.
Confidence Score: 5/5The PR appears safe to merge, with the isolated tooltip layout and contrast fix matching the dashboard’s tooltip and theme behavior. The changed wrapper corrects the row-layout issue, and the new theme-derived code styling remains supported and readable across the dashboard’s light and dark themes without affecting model-mapping logic.
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/add_model/conditional_public_model_name.tsx | Reworks the tooltip into a stacked layout and applies compatible theme-aware styling to its code samples without changing form behavior. |
Reviews (1): Last reviewed commit: "fix(ui): restore the public model name t..." | Re-trigger Greptile
yuneng-berri
enabled auto-merge (squash)
August 23, 2026 05:37
ryan-crabbe-berri
approved these changes
Aug 24, 2026
galactic-batter Bot
pushed a commit
to codgician/litellm
that referenced
this pull request
Sep 1, 2026
…l flow (BerriAI#37986) The tooltip popup is an inline-flex row, so the four sibling blocks passed as a fragment laid out side by side in four columns. Wrap them in a single flex-col container instead. The inline code samples also used bg-muted, which is defined against the page surface, not the inverted tooltip surface, so they rendered as near-white chips carrying near-white text. Tint them from the popup's own token instead. (cherry picked from commit 6db5a5d)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TLDR
Problem this solves:
How it solves it:
User Flow
Before: an admin adding a deployment opens the Public Model Name help and gets an unreadable band of text
After: the same tooltip reads as four normal lines with every sample visible
example-name,openai/qwen-plus-latest,model = "example-name"andqwen-plus-latestare all legibleRelevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Setup, the same for both sides: run the proxy with
python litellm/proxy/proxy_cli.py --config litellm/proxy/dev_config.yaml --detailed_debug, then runnpm run devinui/litellm-dashboardand log in to the dashboardBefore (aae36f4)
qwen-plus-latestas the model, so a row appears under Model MappingsAfter (70dc3d5)
qwen-plus-latestas the model, so a row appears under Model MappingsType
🐛 Bug Fix
Caveats (if any)
Final Attestation