Skip to content

Hourly gift: its tokens count on every board, on all eight pages - #40

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

xuelink merged 1 commit into
mainfrom
fix/gift-tokens-leaderboard

Conversation

@xuelink

@xuelink xuelink commented Oct 27, 2026

Copy link
Copy Markdown
Member

Found while building the Token page for langx/langx#2067. Not part of that plan. It is held for Behic to review and merge.

What was wrong

The Hourly gift panel said gift tokens go to the balance and the all-time total, "never to the weekly, monthly or yearly boards". That stopped being true on 8 October 2026, when langx/langx#1758 (Count every reward on the week, month and year leaderboards) merged. Since then a gift counts in every leaderboard period.

Code evidence (langx/langx main at d0b2c88ec)

What changes

The PR changes the one wrong sentence on all eight pages (/, tr/, de/, es/, fr/, pt-br/, ru/, ar/). It now says gift tokens count like any others: they go to the balance and to the weekly, monthly, yearly and all-time boards. The rest of the panel, the figures and the FAQ are unchanged. The new text uses none of the brief's banned words.

  • node tools/check-token-rules.mjs against langx/langx main: all 8 pages agree, 60 rules each.
  • Checked at 375 px wide in all eight languages: the panel wraps cleanly, Arabic renders right to left, and nothing scrolls sideways.

Not changed here

  • This page follows langx/langx docs/token-messaging-brief.md. Lines 109–111 of the brief still say gift tokens "go to the all-time balance only and never move a leaderboard". That is out of date for the same reason and needs its own fix in langx/langx.
  • The panel's second sentence ("…not a game of chance", and the matching words in each language) is unchanged. The brief lists "chance" among the words to avoid. Here it appears only in a negation, and rewording it is outside this fix.

🤖 Generated with Claude Code

The gift panel said gift tokens reach the balance and the all-time total
but never the weekly, monthly or yearly boards. That stopped being true
on 8 October 2026 (langx/langx#1758): `gift` is no longer one of
TOKEN_GRANT_KINDS, so awardTokens credits all four period aggregates for
it and every leaderboard period ranks it. Only the sign-up bonus, the
welcome-back bonus and a converted v1 balance stay all-time only.

Only that sentence changes, in every language; the rest of the panel is
as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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