refactor(endpoint): remove Token Saver UI from endpoint page - #78
Open
mahdiwafy wants to merge 1 commit into
Open
refactor(endpoint): remove Token Saver UI from endpoint page#78mahdiwafy wants to merge 1 commit into
mahdiwafy wants to merge 1 commit into
Conversation
Token Saver (RTK, Headroom, Caveman, Ponytail) settings removed from the Endpoint & API Keys page. These are now exclusively managed via the dedicated Token Saver menu at /dashboard/token-saver. Removed: - Token Saver card (RTK toggle, Headroom toggle+status, Caveman toggle+levels, Ponytail toggle+levels) - Headroom Install/Manage modal - All related state variables, handlers, and computed vars - locale/caveman sync useEffect and WENYAN_LOCALES import - Token saver settings loading from loadSettings
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.
Summary
Token Saver (RTK, Headroom, Caveman, Ponytail) settings have been removed from the Endpoint & API Keys page. These settings are now exclusively managed via the dedicated Token Saver menu at
/dashboard/token-saver.Changes
File:
src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js(-390 lines)Removed UI
Removed Code
rtkEnabled,headroomEnabled,headroomUrl,headroomStatus,headroomCompressUserMessages,showHeadroomInstallModal,headroomActionLoading,headroomActionError,cavemanEnabled,cavemanLevel,ponytailEnabled,ponytailLevelhandleRtkEnabled,patchSetting,handleCavemanEnabled,handleHeadroomEnabled,handleHeadroomUrlBlur,handleHeadroomCompressUserMessages,refreshHeadroomStatus,handleCavemanLevel,handlePonytailEnabled,handlePonytailLevelheadroomRunning,headroomLocalUrl,headroomCanStart,headroomManaged,headroomStatusLabellocalestate +isWenyanLocaleconstant +WENYAN_LOCALESimport + locale/caveman syncuseEffectloadSettingsCAVEMAN_LEVELS,PONYTAIL_LEVELS,getCurrentLocale,onLocaleChangeRationale
Centralizes token saver configuration into its own dedicated menu, reducing clutter on the endpoint page and improving UX clarity.
Verification
vansrouter:latest-revamp)/api/healthreturns{"ok":true})oc/deepseek-v4-flash-free→ HTTP 200)