feat(character): WCL-style Rankings tab — class percentiles, All Stars, parse links - #190
Merged
Conversation
…s, parse links
New GET /api/character/{name}/rankings computed over the /api/rankings
kills dataset (shared 60s cache), grouped by (zone, scope):
- Best % / Med % are rank percentiles WITHIN the character's class (pool
= every same-class parse on that boss); Med is the median across their
kills of it.
- All Stars: points = 100 x best / class record (closeness to the
record, distinct from the rank-based Best %); rank = position among
same-class characters. Zone header sums points and ranks the total -
peers get credit for bosses the target never killed.
- dps + hps computed in one response; the tab's Damage/Healing toggle
never refetches (priests default to Healing).
Character page renders the tab only when the character has >=1 ranked
kill (eager fetch; ?tab=rankings deep link falls back to equipment for
unranked characters). Boss / Highest / Fastest link to parse pages;
percentile colours via the shared percentileColors scale.
Dev tooling: scripts/dev/seed_fake_parses.py seeds winning kills against
real curated zones.db bosses (peers shape the percentile bands) so the
tab can be exercised without live ACT uploads; --wipe removes the batch.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Per-character rankings tab on the character page, modelled on Warcraft Logs (user feature request).
GET /api/character/{name}/rankings— computed over the/api/rankingskills dataset (shared 60s cache, zero extra load), grouped by (zone, scope).?tab=rankingsdeep links fall back to Equipment for unranked characters.percentileColorsscale; Boss / Highest / Fastest link to parse pages.scripts/dev/seed_fake_parses.pyseeds shaped winning kills against real curated zones.db bosses (--wipereverses).Test plan
🤖 Generated with Claude Code