Skip to content

Tokens page: gift tokens count on every leaderboard - #301

Merged
xuelink merged 1 commit into
mainfrom
fix/gift-tokens-count-on-boards
Oct 27, 2026
Merged

xuelink merged 1 commit into
mainfrom
fix/gift-tokens-count-on-boards

Conversation

@xuelink

@xuelink xuelink commented Oct 27, 2026

Copy link
Copy Markdown
Member

What was false

The /tokens page told readers the hourly gift "never counts toward a leaderboard", and the comment on tokenGift in src/lib/data/token.ts said gift tokens count toward the all-time balance only, never the weekly, monthly or yearly tables.

That stopped being true when langx/langx#1758 merged on 8 Oct 2026. Gift tokens are credited to every period, the same as any other reward.

What changed

  • tokenGift.description, shown on /tokens, now reads: "Gift tokens count like any others: they go to your balance and to every leaderboard — weekly, monthly, yearly and all-time." That matches token.langx.io's wording.
  • The code comment above it says the same.

Nothing else changed. In line with the token messaging brief, the copy states the fact and does not present the gift as a way to climb a board.

Facts (langx/langx at 4c22db2fb)

Same fix elsewhere

Checks

npm ci, then npm run check (0 errors, 0 warnings), npx vitest run (passed), npx vite build (the prerendered tokens.html has the new sentence and no longer has the old one). I also ran prettier and eslint on the changed file.

🤖 Generated with Claude Code

The hourly gift's description said it never counts toward a leaderboard,
and the comment above it said gift tokens reach the all-time balance only.
Neither has been true since langx/langx#1758: the gift is no longer a
grant kind, so its tokens are credited to the weekly, monthly, yearly and
all-time tables like any other reward. Both now say so, in the words
token.langx.io uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xuelink
xuelink merged commit e6ba262 into main Oct 27, 2026
1 check passed
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.

1 participant