Conversation
WalkthroughThe game history button now uses the ChangesGame stats label
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce confusion in the game stats modal by changing the button label from “Ranking” to “Stats”.
Changes:
- Updated the game history button label to use a new
game_list.statstranslation key. - Replaced the English translation entry from
game_list.rankingtogame_list.stats.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/client/components/baseComponents/stats/PlayerGameHistoryView.ts | Updates the button label translation key from game_list.ranking to game_list.stats. |
| resources/lang/en.json | Replaces the game_list.ranking entry with game_list.stats. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/client/components/baseComponents/stats/PlayerGameHistoryView.ts (1)
215-228: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider renaming
showRankingtoshowStatsfor consistency.The button label now says "Stats" but the handler method and its comment still reference "ranking". Renaming would keep the code aligned with the new terminology.
♻️ Optional rename for naming consistency
- // Opens the game-info ranking overlay on top of the account modal. The modal - // is a global singleton in the document (queried the same way as Main.ts), - // so we don't close the account modal — the overlay layers above it. - private showRanking(gameId: string) { + // Opens the game-info stats overlay on top of the account modal. The modal + // is a global singleton in the document (queried the same way as Main.ts), + // so we don't close the account modal — the overlay layers above it. + private showStats(gameId: string) {And update the call site at line 455:
- `@click`=${() => this.showRanking(game.gameId)} + `@click`=${() => this.showStats(game.gameId)}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/client/components/baseComponents/stats/PlayerGameHistoryView.ts` around lines 215 - 228, Rename the `showRanking` method in `PlayerGameHistoryView` to `showStats` and update its surrounding comment so it no longer refers to “ranking” but matches the current Stats terminology. Also update the call site that invokes this handler so the new `showStats` name is used consistently throughout the component.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/client/components/baseComponents/stats/PlayerGameHistoryView.ts`:
- Around line 215-228: Rename the `showRanking` method in
`PlayerGameHistoryView` to `showStats` and update its surrounding comment so it
no longer refers to “ranking” but matches the current Stats terminology. Also
update the call site that invokes this handler so the new `showStats` name is
used consistently throughout the component.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e170890c-6ed9-4503-81a9-71594099eeb6
📒 Files selected for processing (2)
resources/lang/en.jsonsrc/client/components/baseComponents/stats/PlayerGameHistoryView.ts
Description:
people confused what "ranking" means on the games stats modal

also sorta helps with the overflow
before:

after:

Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
w.o.n