Skip to content

Conversation

@Arpan-206
Copy link
Contributor

@Arpan-206 Arpan-206 commented Oct 18, 2025

…ort.

Checklist:

  • I've thoroughly self-reviewed my changes
  • I've added tests for my changes, unless they affect admin-only areas (or are otherwise not worth testing)
  • I've verified any visual changes using Percy (add a commit with [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.

  • Leaderboard UI:
    • Adds ProgressDonut to app/components/leaderboard-page/entries-table/row.hbs next to stages count (@total = @entry.leaderboard.language.liveOrBetaStagesCount, @completed = @entry.scoreUpdatesCount, @variant = teal for current user, grey otherwise). Uses data-test-progress-donut and spacing tweaks.
  • Component: ProgressDonut:
    • Adds variant?: 'default' | 'teal' | 'grey' arg and variant getter with default.
    • Updates SVG stroke classes to support variant-based colors for base and progress circles.
  • Tests:
    • Acceptance: adds "shows progress donuts for entries" asserting donut visibility.
    • Page object: exposes progressDonut via [data-test-progress-donut].

Written by Cursor Bugbot for commit e1a211d. This will update automatically on new commits. Configure here.

@linear
Copy link

linear bot commented Oct 18, 2025

@github-actions
Copy link

github-actions bot commented Oct 18, 2025

Test Results

674 tests  +1   626 ✅ +1   9m 19s ⏱️ -6s
  1 suites ±0    48 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit e1a211d. ± Comparison against base commit 3cf6151.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov
Copy link

codecov bot commented Oct 18, 2025

Bundle Report

Changes will decrease total bundle size by 632 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
client-array-push 38.61MB -632 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/chunk.*.js -82 bytes 27.05kB -0.3%
assets/chunk.*.js -918 bytes 3.21MB -0.03%
assets/chunk.*.css 368 bytes 249.74kB 0.15%

cursor[bot]

This comment was marked as outdated.

Args: {
total: number;
completed: number;
variant?: 'default' | 'teal' | 'grey';
Copy link
Member

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' {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the default and make the caller always pass this in - defaults are used when it's obvious what the default is, here it's not obvious that a default progress donut would be blue.

Look at what other components do:

Image

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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These colors look weird in dark mode:

Image

Let's experiment with making them look better, feel free to share a few versions (screenshots) if you aren't sure and I can pick one

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.

3 participants