Show live Arena champion picks and anvil champions #51

Merged
nessar merged 6 commits from feat/13-champ-select-view into main 2026-11-19 22:17:17 +01:00
Owner

Closes #13.

During Arena champion select, Arena Tracker shows the signed-in player’s statistics for their hovered or locked champion, the five anvil champions and their Challenge status, and the remaining champions the player can pick. The list updates as picks and bans change. When the champ select ends, the tracker restores the previous statistics page and its filters.

The client integration is read-only. A sanitized Arena 3x6 fixture records bans, Briar and Soraka hovers, Soraka lock-in, and the five anvil champions. Live updates use the client’s events and continue during a match-history import.

Changes made after review:

  • The champion lists are read once per champ select, then follow the client’s events.
  • A champ select in another mode costs no requests.
  • The pickable list comes from the client, so free-rotation champions are no longer dropped.
  • A failed or timed-out client read keeps the view instead of ending it.

Verification

  • The full Windows workspace test suite and native core test suite passed.
  • The core replay covers pick and ban changes. It runs the captured session through the same reader as the League client, including its event updates.
  • A GPUI test covers the switch to the signed-in account’s Challenge and restoration of the pinned statistics page.
  • A live Arena session supplied the fixture.
  • A second live Arena champ select (queue 1750) on bf3b881 worked end to end:
    • the automatic switch to the view and back to the statistics page;
    • the hovered and locked champion’s row;
    • the five anvil champions with their status;
    • the pickable list updating on bans and picks.
  • Free rotation could not be tested: this account owns all 173 champions the client offered as pickable.
Closes #13. During Arena champion select, Arena Tracker shows the signed-in player’s statistics for their hovered or locked champion, the five anvil champions and their Challenge status, and the remaining champions the player can pick. The list updates as picks and bans change. When the champ select ends, the tracker restores the previous statistics page and its filters. The client integration is read-only. A sanitized Arena 3x6 fixture records bans, Briar and Soraka hovers, Soraka lock-in, and the five anvil champions. Live updates use the client’s events and continue during a match-history import. Changes made after review: - The champion lists are read once per champ select, then follow the client’s events. - A champ select in another mode costs no requests. - The pickable list comes from the client, so free-rotation champions are no longer dropped. - A failed or timed-out client read keeps the view instead of ending it. ## Verification - The full Windows workspace test suite and native core test suite passed. - The core replay covers pick and ban changes. It runs the captured session through the same reader as the League client, including its event updates. - A GPUI test covers the switch to the signed-in account’s Challenge and restoration of the pinned statistics page. - A live Arena session supplied the fixture. - A second live Arena champ select (queue 1750) on `bf3b881` worked end to end: - the automatic switch to the view and back to the statistics page; - the hovered and locked champion’s row; - the five anvil champions with their status; - the pickable list updating on bans and picks. - Free rotation could not be tested: this account owns all 173 champions the client offered as pickable.
nessar added 6 commits 2026-11-19 22:17:14 +01:00
- redraw the page on hover and lock-in changes, and reset the settings form
  when champ select takes the window away
- keep the current pick when a client read fails; only a real answer that
  the draft is over ends it
- read the client once per wake and share it between the follower and the
  live selection, reuse session event payloads, and touch only the cached
  champion list an event concerns
- replay the captured raw client responses in the fake and cover the list
  cache, event updates and the anvil-champion read
- name the five champions anvil champions and the set pickable, document
  them, and prepare redraw strings ahead of render
Event frames are [8, topic, {data, eventType, uri}]; decode_event returned the
whole envelope, so the cached session had no localPlayerCellId and the
pickable/disabled/anvil lists ignored the update until a fresh GET. It now
returns the envelope's data (null on Delete, which the cache already ignores).
The tests use enveloped frames, including one from raw text to the cached state.

transport_error mapped every non-TLS error to Absent, so one request timing out
while the client loads the draft sent the page back to statistics. A timeout or
an I/O error other than connection refused is now Other, which champ_select_with
treats as transient. Other readers of ClientError only use .ok(), so nothing
else changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix the final champ select review findings (#13)
CI / core (pull_request) Successful in 51s
CI / core (push) Successful in 49s
304d958c72
nessar force-pushed feat/13-champ-select-view from bf3b8814a5 to 304d958c72 2026-11-19 22:17:14 +01:00 Compare
nessar merged commit 304d958c72 into main 2026-11-19 22:17:17 +01:00
nessar deleted branch feat/13-champ-select-view 2026-11-19 22:17:17 +01:00
Sign in to join this conversation.