Merge QP scoreboard into a single Drafted Participants list with a Points Bubble divider #135
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "claude/qp-points-bubble"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The qualifying-points Discord announcement (golf/tennis) rendered the drafted scoreboard as two sections — Drafted Participants in Top 8 and Non-scoring Participants (a comma-separated line for everyone else). This replaces them with a single Drafted Participants section for a cleaner read.
Changes
qpTotal > 0) as ranked lines, ordered by full-season standing.═══ Points Bubble ═══divider marks the points cutoff between rank 8 and rank 9 (>= 9, so ties at rank 8 stay above the bubble).inTopEighthelper.Edge case handled
globalRankis a season-wide rank, but the scoreboard is scoped to a single league's drafts — so a league can have drafted nobody in the global top 8. The divider is only emitted once at least one above-the-cutoff row exists, avoiding a leading divider with nothing above it. Covered by a regression test.Testing
npm run test:run -- discord— 96 unit tests pass (added coverage for the divider placement and the all-below-cutoff case).npm run typecheck— clean.🤖 Generated with Claude Code