Skip to content

chore: remove in-product survey and Claude Code feedback nudges - #30773

Merged
ryan-crabbe-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_remove_feedback_nudges
Jun 18, 2026
Merged

ryan-crabbe-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_remove_feedback_nudges

Conversation

@ryan-crabbe-berri

@ryan-crabbe-berri ryan-crabbe-berri commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Relevant issues

Linear ticket

Refs LIT-3687

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have requested a Greptile review by commenting @greptileai and received a Confidence Score of at least 4/5 before requesting a maintainer review

CI (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):

  1. Log in and land on /ui/; confirm no survey prompt and no Claude Code feedback prompt appear, and there is no leftover popup/modal anywhere in the dashboard
  2. Go to Settings -> UI Settings; confirm there is no "Disable UI nudges" toggle
  3. curl -s -o /dev/null -w '%{http_code}\n' http://localhost:4000/in_product_nudges -> 404 (route removed)
  4. curl -s http://localhost:4000/get/ui_settings -H "Authorization: Bearer $LITELLM_MASTER_KEY" | jq '.field_schema.properties | has("disable_ui_nudges")' -> false

Type

🧹 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 whole src/components/survey/ module (components plus tests) is deleted, along with the index page's nudge state, the getInProductNudgesCall fetch effect, the auto-dismiss timers, the handlers, and the useUISettings/nudgesDisabled gating that existed only for them. The now-unused getInProductNudgesCall helper is dropped from networking.tsx, the orphaned "Disable UI nudges" toggle is removed from the admin UI Settings page, and the stale eslint-suppressions.json entries for the deleted files are pruned.

Backend: the only consumer of the nudge config was the frontend, so the now-dead /in_product_nudges route, its InProductNudgeResponse type, and the disable_ui_nudges UI setting (the Pydantic Field plus its ALLOWED_UI_SETTINGS_FIELDS entry) are removed. Nothing read disable_ui_nudges for runtime logic, and the UISettings model is extra="allow", so existing stored configs that still contain it are unaffected (the value is simply no longer surfaced or persisted). schema.d.ts is regenerated from the updated OpenAPI spec via npm 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.

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@greptile-apps

greptile-apps Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This 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.

  • Backend: Removes the /in_product_nudges GET endpoint, the InProductNudgeResponse Pydantic model, the disable_ui_nudges field from UISettings and its ALLOWED_UI_SETTINGS_FIELDS entry, the DailyTagSpendRepository import that was only used by that route, and two tests that pinned the removed route and setting.
  • Frontend: Deletes the entire src/components/survey/ module (10 files: NudgePrompt, SurveyPrompt, SurveyModal, ClaudeCodePrompt, ClaudeCodeModal, their test counterparts, and the barrel index.tsx); strips all nudge state, effects, handlers, and component renders from the dashboard index page; removes the getInProductNudgesCall networking helper; drops the "Disable UI nudges" admin toggle from UISettings.tsx; prunes the matching eslint-suppressions.json entries; and regenerates schema.d.ts to remove the deleted path and component definitions.

Confidence Score: 5/5

Safe 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.

Important Files Changed

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

@yuneng-berri

Copy link
Copy Markdown
Contributor

There is an option to hide these inside of the Logout dropdown too, please remove those as well.

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

that lives in ui settings if its the one i put in a while back, but yes i can remove that

@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_remove_feedback_nudges branch from 9dd603c to 0580839 Compare June 18, 2026 20:18
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai rereview

@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_remove_feedback_nudges branch from 0580839 to dfb5966 Compare June 18, 2026 21:03
@ryan-crabbe-berri ryan-crabbe-berri changed the title chore(ui): remove in-product survey and Claude Code feedback nudges chore: remove in-product survey and Claude Code feedback nudges Jun 18, 2026
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.
@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_remove_feedback_nudges branch from dfb5966 to f37bdd1 Compare June 18, 2026 21:37
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai re review, list everything being deprecated here

@ryan-crabbe-berri
ryan-crabbe-berri merged commit e4a53f5 into litellm_internal_staging Jun 18, 2026
119 of 122 checks passed
@ryan-crabbe-berri
ryan-crabbe-berri deleted the litellm_remove_feedback_nudges branch June 18, 2026 22:51
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
…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.
@ghost ghost mentioned this pull request Jun 25, 2026
9 of 13 tasks
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.

2 participants