-
Notifications
You must be signed in to change notification settings - Fork 26
Add progress donut component to leaderboard entries with variant supp… #3192
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?
Add progress donut component to leaderboard entries with variant supp… #3192
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Bundle ReportChanges will decrease total bundle size by 632 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: client-array-pushAssets Changed:
|
…ghestPossibleScore
| Args: { | ||
| total: number; | ||
| completed: number; | ||
| variant?: 'default' | 'teal' | 'grey'; |
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.
What's your thought process behind this name? Why did we choose variant instead of color?
| return htmlSafe(`--target-offset: ${targetOffset}`); | ||
| } | ||
|
|
||
| get variant(): 'default' | 'teal' | 'grey' { |
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.
| class="{{if this.isComplete 'stroke-teal-100 dark:stroke-teal-900' 'stroke-blue-100 dark:stroke-blue-900'}}" | ||
| class="{{if | ||
| (eq this.variant 'grey') | ||
| 'stroke-gray-100 dark:stroke-gray-900' |
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.


…ort.
Checklist:
[percy]in the message to trigger)Note
Displays a progress donut in leaderboard rows and adds variant-based styling (teal/grey/default) to
ProgressDonut, with tests for visibility.ProgressDonuttoapp/components/leaderboard-page/entries-table/row.hbsnext to stages count (@total=@entry.leaderboard.language.liveOrBetaStagesCount,@completed=@entry.scoreUpdatesCount,@variant= teal for current user, grey otherwise). Usesdata-test-progress-donutand spacing tweaks.ProgressDonut:variant?: 'default' | 'teal' | 'grey'arg andvariantgetter with default.progressDonutvia[data-test-progress-donut].Written by Cursor Bugbot for commit e1a211d. This will update automatically on new commits. Configure here.