Skip to content

PM-5230: Show latest profile rating#1906

Open
jmgasper wants to merge 8 commits into
ai-ratingsfrom
PM-5230
Open

PM-5230: Show latest profile rating#1906
jmgasper wants to merge 8 commits into
ai-ratingsfrom
PM-5230

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Jun 5, 2026

What was broken
The compact profile card rendered memberStats.maxRating.rating, which is the historical max rating. For users whose newest rated track had moved below an older max, the card did not match the latest rating shown in the track stats.

Root cause (if identifiable)
The card read the stats API maxRating summary directly instead of deriving the display value from rated track entries.

What was changed
Added a helper that selects the rated track/subtrack with the newest mostRecentEventDate across Development, Design, and Data Science stats, falling back to maxRating only when no rated track entry exists. The card now renders that latest profile rating.

Any added/updated tests
Added unit tests for latest-track selection, configured Data Science rating paths, and maxRating fallback.

Harshit Chudasama and others added 7 commits June 4, 2026 10:05
What was broken
The compact profile card rendered memberStats.maxRating.rating, which is the historical max rating. For users whose newest rated track had moved below an older max, the card did not match the latest rating shown in the track stats.

Root cause (if identifiable)
The card read the stats API maxRating summary directly instead of deriving the display value from rated track entries.

What was changed
Added a helper that selects the rated track/subtrack with the newest mostRecentEventDate across Development, Design, and Data Science stats, falling back to maxRating only when no rated track entry exists. The card now renders that latest profile rating.

Any added/updated tests
Added unit tests for latest-track selection, configured Data Science rating paths, and maxRating fallback.
@jmgasper jmgasper requested a review from kkartunov as a code owner June 5, 2026 03:26
@jmgasper jmgasper changed the base branch from dev to ai-ratings June 5, 2026 03:37
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.

2 participants