WP-14: Tier Completion Notifications #79

Closed
opened 2026-03-12 20:57:02 +00:00 by cal · 1 comment
Owner

Description

When a tier is completed during post-game evaluation, send a Discord notification embed to the game channel.

Repo: discord-app (tracked here for milestone)
Phase: 1c (Bot Integration)
Dependencies: WP-13
Complexity: S

Notification Design

[Title]: "Evolution Tier Up!"
[Description]: "Mike Trout reached Tier 2 (Rising) on the Batter track"
[Color]: Tier-specific (T1: green, T2: gold, T3: purple, T4: teal)

Fully Evolved (T4):
[Title]: "FULLY EVOLVED!"
[Description]: "Mike Trout has reached maximum evolution on the Batter track"
[Footer]: "Rating boosts coming in a future update!" (Phase 2 teaser)

Tests (write first in discord-app/tests/test_evolution_notifications.py)

  • Unit: tier-up embed format
  • Unit: fully evolved embed (distinct formatting)
  • Unit: multiple tier-ups in one game → separate embeds
  • Unit: no tier-ups → no notification

Plan reference: docs/prd-evolution/PHASE1_PROJECT_PLAN.md WP-14

## Description When a tier is completed during post-game evaluation, send a Discord notification embed to the game channel. **Repo:** `discord-app` (tracked here for milestone) **Phase:** 1c (Bot Integration) **Dependencies:** WP-13 **Complexity:** S ## Notification Design ``` [Title]: "Evolution Tier Up!" [Description]: "Mike Trout reached Tier 2 (Rising) on the Batter track" [Color]: Tier-specific (T1: green, T2: gold, T3: purple, T4: teal) Fully Evolved (T4): [Title]: "FULLY EVOLVED!" [Description]: "Mike Trout has reached maximum evolution on the Batter track" [Footer]: "Rating boosts coming in a future update!" (Phase 2 teaser) ``` ## Tests (write first in `discord-app/tests/test_evolution_notifications.py`) - [ ] Unit: tier-up embed format - [ ] Unit: fully evolved embed (distinct formatting) - [ ] Unit: multiple tier-ups in one game → separate embeds - [ ] Unit: no tier-ups → no notification **Plan reference:** `docs/prd-evolution/PHASE1_PROJECT_PLAN.md` WP-14
cal added this to the Card Evolution Phase 1 milestone 2026-03-12 20:59:16 +00:00
cal added the
evolution
phase-1c
labels 2026-03-12 20:59:27 +00:00
Claude added the
ai-working
label 2026-03-13 22:31:17 +00:00
Claude added
ai-pr-opened
and removed
ai-working
labels 2026-03-13 22:34:40 +00:00
Collaborator

Implemented in cal/paper-dynasty-discord — PR: cal/paper-dynasty-discord#89

Approach:

  • utilities/evolution_notifications.py: tier_up_embed() builds a single embed (T4 gets "FULLY EVOLVED!" title + Phase 2 teaser footer; T1–T3 get "Evolution Tier Up!" with tier name); build_tier_embeds() accepts a list of tier-up dicts and returns one embed per event (empty list if none)
  • TIER_COLORS exported (T1 green 0x57F287, T2 gold 0xF1C40F, T3 purple 0x9B59B6, T4 teal 0x1ABC9C)
  • 12 pure unit tests in tests/test_evolution_notifications.py — all pass
Implemented in **cal/paper-dynasty-discord** — PR: https://git.manticorum.com/cal/paper-dynasty-discord/pulls/89 **Approach:** - `utilities/evolution_notifications.py`: `tier_up_embed()` builds a single embed (T4 gets "FULLY EVOLVED!" title + Phase 2 teaser footer; T1–T3 get "Evolution Tier Up!" with tier name); `build_tier_embeds()` accepts a list of tier-up dicts and returns one embed per event (empty list if none) - `TIER_COLORS` exported (T1 green `0x57F287`, T2 gold `0xF1C40F`, T3 purple `0x9B59B6`, T4 teal `0x1ABC9C`) - 12 pure unit tests in `tests/test_evolution_notifications.py` — all pass
cal closed this issue 2026-03-18 21:23:30 +00:00
Sign in to join this conversation.
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-database#79
No description provided.