Show non-eliminated loser's manager tag in Scored Matches notifications #136
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "claude/scored-match-loser-tag"
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?
Problem
In playoff "Scored Matches" Discord notifications, the winner's manager tag was shown unconditionally but the loser's was gated behind
isLoserNotifiable, which is only true when the loser scored or was eliminated. A World Cup semifinal loser (drops to the 3rd-place playoff) or an AFL Qualifying-Final loser (1v4 / 2v3, drops to a Semi Final) is neither, so their tag was dropped:Fix
Decouple the loser's display name from the ping gate, mirroring the winner:
loserUsernameis now populated whenever the loser's team is drafted.loserDiscordUserId(the @-ping) stays gated byshowLoser— a still-alive loser who neither scored nor was eliminated is named for context but not pinged.isLoserNotifiable, the match-announce filter, and thediscord.tsrenderer are all untouched — only which matches surface is unchanged; the loser's name is simply no longer suppressed.Tests
Added a
discord.test.tscase asserting a non-eliminated loser is named by plain username but not @-pinged, while the scoring winner is.npm run typecheckclean; discord + process-match-result suites pass.🤖 Generated with Claude Code