Repository navigation
chore: remove in-product survey and Claude Code feedback nudges - #30773
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Greptile SummaryThis PR removes the in-product survey and Claude Code feedback nudge features entirely, cleaning up both the frontend UI components and the backend route/configuration that supported them.
Confidence Score: 5/5Safe to merge — this is a clean, complete removal of a self-contained feature with no impact on authentication, request handling, or any other runtime path. Every consumer of the nudge feature (frontend components, backend route, type definitions, admin toggle, networking helper, OpenAPI schema, and corresponding tests) is removed consistently. The UISettings model's extra="allow" policy means any stored configs that still carry disable_ui_nudges are harmlessly ignored. No shared logic or unrelated routes are touched. No files require special attention.
|
| Filename | Overview |
|---|---|
| litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py | Removes the /in_product_nudges route, its handler, the disable_ui_nudges UISettings field, its ALLOWED_UI_SETTINGS_FIELDS entry, and the now-unused DailyTagSpendRepository and InProductNudgeResponse imports. Clean and complete. |
| litellm/types/proxy/management_endpoints/ui_sso.py | Removes the InProductNudgeResponse model and trims the now-unused BaseModel from the pydantic import. Correct. |
| tests/test_litellm/proxy/auth/test_route_checks.py | Removes /in_product_nudges from ADMIN_VIEWER_REPORTED_GET_ROUTES since the route no longer exists. Appropriate cleanup. |
| tests/test_litellm/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.py | Removes test_update_ui_settings_persists_disable_ui_nudges, which tested a setting that no longer exists. All remaining UI-settings and route-permission tests are intact. |
| ui/litellm-dashboard/src/app/(dashboard)/page.tsx | Removes useUISettings, getInProductNudgesCall, all survey/nudge state and effects, handler functions, and the survey component renders. The UserDashboard render is now direct without the wrapping fragment. |
| ui/litellm-dashboard/src/components/Settings/AdminSettings/UISettings/UISettings.tsx | Removes the disableUINudgesProperty reference, handleToggleDisableUINudges handler, and the Disable UI nudges Switch/toggle section from the admin settings UI. |
| ui/litellm-dashboard/src/components/networking.tsx | Removes the getInProductNudgesCall helper that called /in_product_nudges. No other callers remain in the codebase. |
| ui/litellm-dashboard/src/components/survey/index.tsx | Entire survey/ module deleted: NudgePrompt, SurveyPrompt, SurveyModal, ClaudeCodePrompt, ClaudeCodeModal, their test files, and the barrel index. All 10 files removed cleanly. |
| ui/litellm-dashboard/src/lib/http/schema.d.ts | Regenerated OpenAPI TypeScript types removing the /in_product_nudges path, InProductNudgeResponse component schema, and get_in_product_nudges_in_product_nudges_get operation. |
| ui/litellm-dashboard/eslint-suppressions.json | Removes stale eslint-suppression entries for the deleted NudgePrompt.tsx and SurveyModal.tsx files. |
Reviews (3): Last reviewed commit: "chore: remove in-product survey and Clau..." | Re-trigger Greptile
|
There is an option to hide these inside of the Logout dropdown too, please remove those as well. |
|
that lives in ui settings if its the one i put in a while back, but yes i can remove that |
9dd603c to
0580839
Compare
|
@greptileai rereview |
0580839 to
dfb5966
Compare
Delete the in-product survey and Claude Code feedback prompts end to end. Frontend: remove the src/components/survey/ module, the index page's nudge state/effects/handlers, the getInProductNudgesCall helper, and the orphaned "Disable UI nudges" toggle in the admin UI Settings page; prune the stale eslint-suppressions entries. Backend: remove the now-dead /in_product_nudges route, the InProductNudgeResponse type, and the disable_ui_nudges UI setting (Field + allowlist). Nothing read it for logic and the UISettings model is extra="allow", so existing stored configs are unaffected (the value is just no longer surfaced). schema.d.ts is regenerated and the two tests covering the removed route/setting are dropped.
dfb5966 to
f37bdd1
Compare
|
@greptileai re review, list everything being deprecated here |
e4a53f5
into
litellm_internal_staging
…iAI#30773) Delete the in-product survey and Claude Code feedback prompts end to end. Frontend: remove the src/components/survey/ module, the index page's nudge state/effects/handlers, the getInProductNudgesCall helper, and the orphaned "Disable UI nudges" toggle in the admin UI Settings page; prune the stale eslint-suppressions entries. Backend: remove the now-dead /in_product_nudges route, the InProductNudgeResponse type, and the disable_ui_nudges UI setting (Field + allowlist). Nothing read it for logic and the UISettings model is extra="allow", so existing stored configs are unaffected (the value is just no longer surfaced). schema.d.ts is regenerated and the two tests covering the removed route/setting are dropped.
Relevant issues
Linear ticket
Refs LIT-3687
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
make test-unit@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Screenshots / Proof of Fix
To verify against a live proxy (UI + a couple of curls):
/ui/; confirm no survey prompt and no Claude Code feedback prompt appear, and there is no leftover popup/modal anywhere in the dashboardcurl -s -o /dev/null -w '%{http_code}\n' http://localhost:4000/in_product_nudges-> 404 (route removed)curl -s http://localhost:4000/get/ui_settings -H "Authorization: Bearer $LITELLM_MASTER_KEY" | jq '.field_schema.properties | has("disable_ui_nudges")'-> falseType
🧹 Refactoring
Changes
Removes the in-product survey and Claude Code feedback nudges from the product, frontend and backend.
Frontend: the prompts (
SurveyPrompt,SurveyModal,ClaudeCodePrompt,ClaudeCodeModal) were rendered only by the dashboard index page, so the wholesrc/components/survey/module (components plus tests) is deleted, along with the index page's nudge state, thegetInProductNudgesCallfetch effect, the auto-dismiss timers, the handlers, and theuseUISettings/nudgesDisabledgating that existed only for them. The now-unusedgetInProductNudgesCallhelper is dropped fromnetworking.tsx, the orphaned "Disable UI nudges" toggle is removed from the admin UI Settings page, and the staleeslint-suppressions.jsonentries for the deleted files are pruned.Backend: the only consumer of the nudge config was the frontend, so the now-dead
/in_product_nudgesroute, itsInProductNudgeResponsetype, and thedisable_ui_nudgesUI setting (the PydanticFieldplus itsALLOWED_UI_SETTINGS_FIELDSentry) are removed. Nothing readdisable_ui_nudgesfor runtime logic, and theUISettingsmodel isextra="allow", so existing stored configs that still contain it are unaffected (the value is simply no longer surfaced or persisted).schema.d.tsis regenerated from the updated OpenAPI spec vianpm run gen:api, and the two tests that pinned the removed route/setting are dropped; the rest of the UI-settings and route-permission suites still pass.