TokenStep 0.2.22: refresh the Token Rank board and show board tokens - #28
Merged
Merged
Conversation
refreshNow() refreshed usage and quotas but never the leaderboard, so the board could stay up to 30 minutes old after a manual refresh. It now forces a leaderboard fetch too, and the refresh buttons keep spinning until the board is back when Token Rank is linked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release notes, CHANGELOG, README and the build default, via script/prepare_release.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rank row already knew the viewer's token count on the board but never showed it. It now sits on the right of the rank, e.g. "#35 / 1200 人 … 榜单用量 28.5M". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
refreshNow()(popover and main window refresh buttons, ⌘R) now also callsrefreshTokenRank(force: true). Before, a manual refresh only updated usage and quotas, so the board could stay up to 30 minutes old.AppState.isRefreshingForDisplay: the refresh buttons and the main window's sync pill keep showing "同步中" until the board is back, but only when Token Rank is linked (shouldShowAgentWorkRank).myBoardTokens, already computed but never displayed), with English and Traditional Chinese strings.Test plan
swift test, fixture checks, build)🤖 Generated with Claude Code