fix(ui): remove Chat item from dashboard leftnav - #33647
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
|
Greptile SummaryThis PR removes the "Chat" entry from the dashboard left-nav — including the
Confidence Score: 4/5Safe to merge — the change is a clean, self-contained UI removal with no runtime risk. All three files are internally consistent: the prop, state, filter branch, icon import, and tests are removed together with no dangling references. The only rough edge is that the admin-settings description for The unchanged
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/leftnav.tsx | Removes the "chat" menu entry, its associated filter predicate, the enableChatUI prop from SidebarProps, and the now-unused MessageSquare icon import — all consistently and without leaving dead branches. |
| ui/litellm-dashboard/src/app/(dashboard)/components/SidebarProvider.tsx | Drops the enableChatUI React state, the getUISettings branch that populated it, and the prop passthrough to Sidebar — fully consistent with the leftnav change. |
| ui/litellm-dashboard/src/components/leftnav.test.tsx | Removes the two tests that asserted Chat-item visibility behaviour; appropriate cleanup since the feature under test is removed, not broken. |
Reviews (1): Last reviewed commit: "fix(ui): remove Chat item from dashboard..." | Re-trigger Greptile
| @@ -88,7 +87,6 @@ interface SidebarProps { | |||
| onToggleCollapsed?: () => void; | |||
There was a problem hiding this comment.
Stale admin-settings description for
enable_chat_ui
UISettings.tsx (line 366) still renders the fallback description "If enabled, shows the Chat page in the UI sidebar…". After this PR the toggle no longer controls a sidebar entry, so an admin who reads that description will be misled about what the setting does. The toggle still has a real effect (gating direct /chat route access via the layout), but the description doesn't reflect that. Updating the fallback string (or the backend schema description) to describe the remaining behaviour would close the gap the PR description already acknowledges.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
4d33964
into
litellm_internal_staging
Relevant issues
Linear ticket
Pre-Submission checklist
Screenshots / Proof of Fix
UI-only change. Before: the AI Gateway section of the leftnav rendered a "Chat" entry (when
enable_chat_uiwas on). After: the entry is gone regardless of the settingType
🧹 Refactoring
Changes
Removes the "Chat" nav item from the dashboard leftnav and the now-dead
enableChatUIplumbing that only existed to gate itleftnav.tsx: drop thechatmenu entry, theitem.key === "chat"filter branch, theenableChatUIprop, and the now-unusedMessageSquareimportSidebarProvider.tsx: drop theenableChatUIstate, itsgetUISettingsread, and the prop passthroughleftnav.test.tsx: remove the two Chat-visibility tests that asserted the removed behaviorThe
/chatroute and theenable_chat_uiadmin toggle are left untouched; only the sidebar entry is removed.enable_chat_uistill gates direct access to the/chatpage via its layout, so the toggle text mentioning the sidebar is now slightly stale; happy to also drop the toggle if you'd prefer the feature fully goneFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/5714abeea5ef4d79a176a7f76a31ddad
Requested by: @krrish-berri-2