feat(windsurf): add static recommended account sorting#674
Open
w2112515 wants to merge 1 commit intojlcodes99:mainfrom
Open
feat(windsurf): add static recommended account sorting#674w2112515 wants to merge 1 commit intojlcodes99:mainfrom
w2112515 wants to merge 1 commit intojlcodes99:mainfrom
Conversation
- Add computeWindsurfRecommendScoreStatic util using quota remaining and urgency - Add defaultSortBy to useProviderAccountsPage; set Windsurf default to recommended - Add recommended sort branch that keeps the current account pinned - Add recommended dropdown option and direction-aware tooltips - Add zh-CN and en labels for the new sort mode
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Motivation
Users managing many Windsurf Trial accounts get very little value from the existing
By remaining creditssort, because most Trial accounts report identical or null prompt/add-on credits. Sorting by credits therefore produces an order that doesn't answer the practical question: "which account is most worth switching to right now?"The new Recommended sort answers that question directly by combining daily/weekly quota remaining with reset/plan-cycle urgency, using exactly the numbers already shown on each account card. This is purely additive — the existing
By remaining creditssort is untouched.Summary
Adds a static "Recommended" sort mode to the Windsurf accounts page, so users with many similar Trial accounts can quickly spot which account is worth switching to based on remaining quota and urgency.
Changes
defaultSortByso each page can override the initial sort; Windsurf defaults torecommendedwhen no persisted preference exists.Scope intentionally excluded
Validation
npx tsc --noEmitnpx vite buildgit diff --checknpm run tauri devlaunched from a VS 2022 Build Tools + Rust environment on Windows.Risk
Low. The change only adds a new sort mode plus a small hook parameter, and keeps the existing sort modes untouched. Default sort change only affects Windsurf users with no persisted sort preference; anyone with a saved sort keeps their current behavior.