- Notifications
You must be signed in to change notification settings - Fork 23
feat: add leaderboard feature with language dropdown and entries table #3060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
export default class LeaderboardPageEntriesTableRow extends Component<Signature> { | ||
get isCurrentUser(): boolean { | ||
return this.args.entry.user.username === 'ry'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Hardcoded Username Causes Incorrect Highlighting
The isCurrentUser
getter hardcodes the username 'ry' instead of comparing against the actual authenticated user. This means only the 'ry' user's row will be highlighted, regardless of who is logged in. This looks like development code that was accidentally committed.
| ||
return { | ||
language: language, | ||
leaderboard: leaderboards[0]!, // TODO: Support actual filter of leaderboards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<LeaderboardPage::EntriesTable::FillerRow /> | ||
| ||
{{#each this.sortedBottomHalfEntries as |entry index|}} | ||
<LeaderboardPage::EntriesTable::Row @entry={{entry}} @index={{(add 33501 index)}} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<span class="inline-block align-middle text-red-500 triangle-down mr-1.5" aria-hidden="true"> | ||
<EmberTooltip @text="Decreased from 199 to 99 in the past month" /> | ||
</span> | ||
{{/if}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Results 1 files ±0 1 suites ±0 10m 12s ⏱️ + 1m 28s For more details on these errors, see this check. Results for commit 6144d88. ± Comparison against base commit 962994f. This pull request removes 6 and adds 1 tests. Note that renamed tests count towards both.
|
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 12.84kB (0.03%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: client-array-pushAssets Changed:
Files in
Files in
|
No description provided.