From 17ee294d5b3b2b07645cb460e426435ffeb7eb51 Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 22 Jun 2026 12:40:54 -0700 Subject: [PATCH] Surface alliance renewal & rejection events in important-events panel (#4354) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem The important-events notification panel splits events into a prominent **tier-1** list and a dim, auto-expiring **tier-2** list (capped at the 4 newest entries). Two alliance notifications were landing in tier-2, making them easy to miss: - **"X wants to renew your alliance"** (`RENEW_ALLIANCE`) — the core simulation still sends this when another player requests a renewal, but it was buried in tier-2, so you couldn't reliably tell whether someone had asked to renew. - **"X rejected your alliance"** (`ALLIANCE_REJECTED`) — also tier-2, so the outcome of a sent request was inconsistent (accepted was prominent, rejected was not). ## Fix Add `MessageType.RENEW_ALLIANCE` and `MessageType.ALLIANCE_REJECTED` to `TIER_1_TYPES` in `EventsDisplay.ts`, so they show prominently alongside the already-tier-1 `ALLIANCE_ACCEPTED` event. No core/simulation changes — the messages were already being emitted; only the client presentation needed fixing. Display styling for both message types already exists in `Utils.ts`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 --- src/client/hud/layers/EventsDisplay.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/hud/layers/EventsDisplay.ts b/src/client/hud/layers/EventsDisplay.ts index 0322d8403..042469ff2 100644 --- a/src/client/hud/layers/EventsDisplay.ts +++ b/src/client/hud/layers/EventsDisplay.ts @@ -51,7 +51,9 @@ const TIER_1_TYPES: ReadonlySet = new Set([ MessageType.NAVAL_INVASION_INBOUND, MessageType.ATTACK_REQUEST, MessageType.ALLIANCE_ACCEPTED, + MessageType.ALLIANCE_REJECTED, MessageType.ALLIANCE_BROKEN, + MessageType.RENEW_ALLIANCE, MessageType.CONQUERED_PLAYER, MessageType.CHAT, MessageType.DONATION_RECEIVED,