The proof of a changed PUUID also requires the same champion in the
shared Match: anyone who played in it passed before, so a Friend whose
stale Riot ID was taken by a co-player could be merged into them. A
quota wait on a Friend's Riot ID resolution is told. The arc's paths
are built once per size and progress instead of at each paint of the
ring, and a signed-in Account the page has not read yet shows no arc.
Tests now cover the session state and the sync mark of a rekey.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An import of 10 Matches or more of the Account shown draws a thin arc
around the ring's ticks, filled from noon as Matches arrive and gone
when the import ends. The ring stays a cached view, told at most once a
second. While the import waits for a 429's Retry-After, the progress
carries the wait and the status line counts it down each second
(« Quota Riot atteint : reprise dans 12 s »), on a timer that only
exists during the wait.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A PUUID depends on the Riot application of the API key, so the relay's
production key gives every stored Account another one. Before a request
that carries a stored PUUID (a sync, a Friend's import), the Riot ID is
resolved; when its PUUID differs and a stored published Match is among
the new PUUID's, the Account, its Matches (stored Riot responses
included), Mastery, sync mark, platform, last active mark and Friend
status move to it in one transaction. A new PUUID already stored is
merged, the published Match winning. Without proof nothing changes.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A. The fixture's game id is the synthetic one every fixture uses; the test no longer rewrites it.
B. The decoder tries the key names verified on the capture first, the other spellings after.
C. The synthetic end-of-game blocks use the real block's shape: PUUID only, no names, the real
key spellings. The Riot-ID fallback test adds the names to its own block.
D. The captured-block follow test states that the fixture's player is the client's PUUID.
E. The recap of a Provisional Match flags the player with the Match's champion and Placement,
not every player on that champion; a test covers a champion played by two teams.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The relay forwards a Retry-After of up to a day, and an import waits out
each one: the app now clamps it to between a second and ten minutes (the
relay's longest quota window) where the header is read, and says so on
SourceError::RateLimited and with_retry.
The Death Recap comments now say what happens: the relay passes any
timeline 403, a rejected key included, and the Match asked next tells
the two apart. A test plays that case (timeline refused, Match
unavailable). The shared get and SourceError no longer speak only of
the relay, the routing docs tell a region from a platform, and test
names and comments no longer speak of a key the app does not have.
The riot suites share one local server and response builder, and the
app's first-launch setup reuses open_app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every Riot call goes to {relay}/{routing value}{Riot path} and sends no
key. The relay's address is built in (arena-tracker.nessar.fr);
relay_url in config.toml replaces it for development. A riot_api_key
left by an older version is never read, and is written back on save.
The personal keys' local pacing is gone. An import waits out each
Retry-After as often as it comes (at least a second each time), and so
do Mastery requests. A 5xx is the service unavailable, with its own
banner; a 401/403 is a refusal, which for a timeline the Match itself
confirms before it is stored, so a key failing on the relay's side
stores no refused Death Recap.
The first-launch key prompt, the key field in « Paramètres » and the
Friend refusal's « Paramètres » button are removed; the follower starts
with the app. KeyForm, KeyStore and KeyEvent become SettingsForm,
SettingsStore and SettingsEvent. README, user guide and interface spec
no longer ask for a key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lines are queued to one writer thread, idle at rest, that flushes once the
queue is drained and on quit. Riot calls are logged by type, never by URL;
PUUIDs are cut to 8 characters and the key never appears.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- add_friend resolves a Riot ID, refuses it with a French reason (malformed,
unknown, other region, no key) or answers the stored Account, and stores a
Friend with the platform its region gives (accounts.friend, migrated)
- import_friend imports a Friend's history: the current Season first, then
the rest, resumes from the listing when cut, then lists only since the mark
sync also uses; Mastery Points once per call, on the stored platform when
the Friend has no Match yet
- Each request of a Friend's import waits on a Condvar while a follower round
or refresh runs or a finished game's Match is awaited
- account_summary and delete_account: Match count and client-only details for
the confirmation; one transaction removes Matches, points, marks, blocks and
the Death Recaps no other Account shares; the follower forgets the Account
so it is adopted again with a full import
- RiotApi asks the active region by puuid and maps platforms to routing
regions; marks and points are not written for a deleted Account
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The core reads the champion played in the client's gameflow session
(champion selections, else the teams, by the summoner's client PUUID) and
follows the Live Match from one read to the next: it starts with an Arena
game in progress and lasts through that game's end-of-game screen.
- The follower tells the page the Live Match on each change, before the champ
select's end, so the end of a champ select that launched a game shows
« En partie » instead of « Défi », without computing the statistics again.
- « En partie »: the banner with the champion's splash, the Season and the
count, its tick of the ring lit and the stake (« Un top 1 validerait X :
88 / 172 », or the day it was validated); « Champion en cours
d’identification » until the client says it. Under it, the card's sheet and
the champion's 5 latest Matches of the Season, read at low priority.
- A Live Match is a phase like the champ select: the signed-in Account and the
current Season, the Account selector greyed, « Paramètres » closed, and a
minimised or hidden window shown again without the focus, never raised.
- Its end-of-game block ends it and #129 decides the screen; without a block,
the lobby shows « Défi ». A screen gone with its tab falls back to « Défi ».
- Tests with the simulated client: launch from the champ select, a client met
in a game, the champion identified late, the end with and without a block,
a game outside Arena. docs/interface.md and the guide are updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3BEKJ9v922udzup4Qn
- The recap draws six augment slots per player, like the seven item slots:
the augments taken, then empty slots, so the lines read in columns; the
name moves to the bubble.
- The catalog takes CommunityDragon's large augment icon (coloured by rarity)
instead of the small white glyph, shrunk to 64 px at download.
- catalog.json gets a format number: a cache from before is read again from
the sources at the same patch and its augment icons downloaded again.
- A first download tells the page every 100 icons, so icons show as they come
instead of after the whole pass.
- The icon download tests move to tests/game_data/icons.rs (Rule #2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3BEKJ9v922udzup4Qn
- A block is written as its event arrives, from the wait for client events, with the Riot ID
and client PUUID signed in at that moment: it builds the Match of that Account whoever signs
in before a round gets to it.
- A block whose mode nothing tells waits instead of losing its text; only a game known to be
of another mode is dropped.
- The follower remembers only the game in progress a Provisional Match stands for, and looks
at it only when that game has just ended (follow/game_end.rs).
- A Match no Season holds is still reported: its block opens its recap.
- The client leaving an Arena game is told to the page once: without a block, or with the
preference off, it shows the Challenge; a block decided on is not undone.
- « Parties » lists the Account signed in to the client, never the pinned one.
- Widening the Season for a new Match recomputes the statistics on the worker, to the Match's
own Season.
- A corrected Placement follows the unfolded player, or folds the details.
- One Death Recap read at a time; only the latest waits, and leaving the screen drops it.
- A narrow window builds its closed list no more and gives its portraits back.
- The game data cache is keyed by the client's locale too, and an icon whose route changed is
downloaded again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3AqGyEbouXkQJJdnQT
« En attente » is AWAITED, the block's PUUID is the client's; the filters
of « Parties » use the core's period of a Season instead of a copy; the
list view joins the cached views in docs/performance.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One timeline download per Match even when the queue and an opened recap
ask together; a Death Recap matched with an outdated catalog is matched
again; end-of-game blocks keep their text only while their Match may still
need it; block platforms are upper case; unbuilt blocks are retried during
their window, then only after a sync; the queue thread no longer wakes each
minute; auto-open widens Season and Format when they hide the new Match;
clearer mitigation and control-score labels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the victimDamageReceived entries of the Match-V5 timeline are kept,
fetched after a followed Match is published or when an older one is first
opened; a refusal is remembered, a passing failure is not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A game data catalog read from /lol-game-data in the client's language, kept
on disk and renewed once per game version, so recaps stay readable with the
client closed. It keeps each augment's augmentNameId for the Death Recap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The block is kept as soon as its event arrives and stored as a Match flagged
provisional under the Account that played; it counts at once (ADR 0006) and
Riot's published Match replaces it silently, looked up until it appears.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statistics list the portraits folder and its cards subfolder once
instead of checking about 340 files. The tall-portrait pass is skipped
when the catalog refresh failed and stops at the first network error;
the core tells after each attempt whether a portrait was saved, so the
worker's throttle can tell the page after any attempt, not only saves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Split the excluded set into banned and taken_by_ally, add
ChampSelect::unavailability (banned, taken_by_ally, not_offered; never for
the player's own pick) and make the anvil list an Option so an unreadable
list is not read as an empty one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tracker asks Riot for each Account's champion mastery (platform host) right
after a successful sync, and after a Match fetched by id is added, so no new
polling. Lists are stored per Account in one transaction and read back with
Tracker::mastery (None = never fetched). A failed fetch keeps the last values
and records no problem. Preferences gain champion_sort (mastery or name).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ChampionSource::card_portrait (Data Dragon loading art) and
Tracker::refresh_card_portraits, which downloads the missing ones, crops them
to the card's 0.68 aspect at the mockup's 24 % focus, shrinks them to
308 x 453 px and saves them as JPEG in portraits/cards via a .part file.
ChampionRow gains card_portrait.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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
Core half of tickets #4 to #12, behind one public interface tested with
fake sources and a real SQLite database:
- import of Arena Match history from the Riot API, idempotent and
resumable, with a sync mark written only when a sync completes
- Season table, champion catalog, Challenge summary, champion rows,
chart series, Season and Format scopes
- game client port and adapter: signed-in Account, end of an Arena
game fetched by its id, Official Progress cross-check
- update problems reported for banners while stored data stays readable
The app crate is adapted in the next commit.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>